Searched refs:counts_per_usec (Results 1 – 3 of 3) sorted by relevance
280 int64_t counts, counts_per_usec; in DELAY() local300 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()
497 int32_t counts_per_usec; in arm_tmr_delay() local502 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()
844 int64_t counts, counts_per_usec; in arm_tmr_get_counts() local847 counts_per_usec = ((arm_tmr_timecount.tc_frequency / 1000000) + 1); in arm_tmr_get_counts()855 if (usec >= (0x80000000U / counts_per_usec)) in arm_tmr_get_counts()856 counts = (0x80000000U / counts_per_usec) - 1; in arm_tmr_get_counts()858 counts = usec * counts_per_usec; in arm_tmr_get_counts()