Home | History | Annotate | Download | only in sa11x0

Lines Matching defs:nextmatch

148 	uint32_t oscr, nextmatch, oldmatch;
155 nextmatch = oldmatch + TIMER_FREQUENCY / hz;
157 bus_space_write_4(sc->sc_iot, sc->sc_ioh, SAOST_MR0, nextmatch);
160 if ((nextmatch > oldmatch &&
161 (oscr > nextmatch || oscr < oldmatch)) ||
162 (nextmatch < oldmatch && oscr > nextmatch && oscr < oldmatch)) {
171 nextmatch = oscr + 10;
172 bus_space_write_4(sc->sc_iot, sc->sc_ioh, SAOST_MR0, nextmatch);
176 sc->sc_clock_count = nextmatch;
187 uint32_t oscr, nextmatch, oldmatch;
194 nextmatch = oldmatch + sc->sc_statclock_step;
196 bus_space_write_4(sc->sc_iot, sc->sc_ioh, SAOST_MR1, nextmatch);
199 if ((nextmatch > oldmatch &&
200 (oscr > nextmatch || oscr < oldmatch)) ||
201 (nextmatch < oldmatch && oscr > nextmatch && oscr < oldmatch)) {
210 nextmatch = oscr + 10;
211 bus_space_write_4(sc->sc_iot, sc->sc_ioh, SAOST_MR1, nextmatch);
215 sc->sc_statclock_count = nextmatch;