Home
last modified time | relevance | path

Searched refs:counts_per_usec (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/riscv/riscv/
H A Dtimer.c280 int64_t counts, counts_per_usec; in DELAY() local
300 counts_per_usec = ((riscv_timer_timecount.tc_frequency / 1000000) + 1); in DELAY()
308 if (usec >= (0x80000000U / counts_per_usec)) in DELAY()
309 counts = (0x80000000U / counts_per_usec) - 1; in DELAY()
311 counts = usec * counts_per_usec; in DELAY()
/freebsd/sys/arm/arm/
H A Dmpcore_timer.c497 int32_t counts_per_usec; in arm_tmr_delay() local
502 counts_per_usec = ((arm_tmr_timecount.tc_frequency / 1000000) + 1); in arm_tmr_delay()
510 if (usec >= (0x80000000U / counts_per_usec)) in arm_tmr_delay()
511 counts = (0x80000000U / counts_per_usec) - 1; in arm_tmr_delay()
513 counts = usec * counts_per_usec; in arm_tmr_delay()
H A Dgeneric_timer.c817 int64_t counts, counts_per_usec; in arm_tmr_get_counts() local
820 counts_per_usec = ((arm_tmr_timecount.tc_frequency / 1000000) + 1); in arm_tmr_get_counts()
828 if (usec >= (0x80000000U / counts_per_usec)) in arm_tmr_get_counts()
829 counts = (0x80000000U / counts_per_usec) - 1; in arm_tmr_get_counts()
831 counts = usec * counts_per_usec; in arm_tmr_get_counts()