Home
last modified time | relevance | path

Searched refs:timer_counter (Results 1 – 6 of 6) sorted by relevance

/openbmc/qemu/tests/qtest/
H A Dtest-arm-mptimer.c82 static uint32_t timer_counter(void) in timer_counter() function
103 g_assert_cmpuint(timer_counter(), ==, 9990000); in test_timer_oneshot()
107 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_oneshot()
112 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_oneshot()
126 g_assert_cmpuint(timer_counter(), ==, 999999000); in test_timer_pause()
131 g_assert_cmpuint(timer_counter(), ==, 999990000); in test_timer_pause()
136 g_assert_cmpuint(timer_counter(), ==, 999990000); in test_timer_pause()
141 g_assert_cmpuint(timer_counter(), ==, 999990000); in test_timer_pause()
149 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_pause()
154 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_pause()
[all …]
/openbmc/linux/drivers/watchdog/
H A Ddavinci_wdt.c119 u64 timer_counter; in davinci_wdt_get_timeleft() local
134 timer_counter = ioread32(davinci_wdt->base + TIM12); in davinci_wdt_get_timeleft()
135 timer_counter |= ((u64)ioread32(davinci_wdt->base + TIM34) << 32); in davinci_wdt_get_timeleft()
137 timer_counter = div64_ul(timer_counter, freq); in davinci_wdt_get_timeleft()
139 return wdd->timeout - timer_counter; in davinci_wdt_get_timeleft()
H A Drti_wdt.c174 u64 timer_counter; in rti_wdt_get_timeleft_ms() local
183 timer_counter = readl_relaxed(wdt->base + RTIDWDCNTR); in rti_wdt_get_timeleft_ms()
185 timer_counter *= 1000; in rti_wdt_get_timeleft_ms()
187 do_div(timer_counter, wdt->freq); in rti_wdt_get_timeleft_ms()
189 return timer_counter; in rti_wdt_get_timeleft_ms()
/openbmc/linux/arch/mips/include/asm/mach-rc32434/
H A Dtimer.h37 struct timer_counter { struct
44 struct timer_counter tim[TIMER_COUNT]; argument
/openbmc/linux/drivers/net/ethernet/broadcom/
H A Dtg3.h3235 u16 timer_counter; member
H A Dtg3.c11023 if (!--tp->timer_counter) { in tg3_timer()
11081 tp->timer_counter = tp->timer_multiplier; in tg3_timer()
11147 tp->timer_counter = tp->timer_multiplier; in tg3_timer_start()