Home | History | Annotate | Download | only in at91

Lines Matching refs:usec

116 /* it will be used when usec < USEC_PER_TICK              */
118 usec_to_timer_count(uint32_t usec)
122 /* convert specified number of usec to timer ticks, and round up */
123 result = (AT91_SCLK * usec) / 1000000;
125 if ((result * 1000000) != (usec * AT91_SCLK))
271 static void udelay(unsigned int usec);
297 static void udelay(unsigned int usec)
304 if (usec > 0) {
332 if (usec <= diff)
336 usec -= diff;
352 delay(unsigned int usec)
363 if (usec >= sc->sc_usec_per_tick) {
365 unsigned int ticks = (usec + sc->sc_usec_per_tick - 1) / sc->sc_usec_per_tick;
370 /* less than 1 tick; can do as usec */
371 udelay(usec);