Home
last modified time | relevance | path

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

/drivers/watchdog/
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 do_div(timer_counter, freq); in davinci_wdt_get_timeleft()
139 return wdd->timeout - timer_counter; in davinci_wdt_get_timeleft()
Drti_wdt.c163 u64 timer_counter; in rti_wdt_get_timeleft_ms() local
172 timer_counter = readl_relaxed(wdt->base + RTIDWDCNTR); in rti_wdt_get_timeleft_ms()
174 timer_counter *= 1000; in rti_wdt_get_timeleft_ms()
176 do_div(timer_counter, wdt->freq); in rti_wdt_get_timeleft_ms()
178 return timer_counter; in rti_wdt_get_timeleft_ms()
/drivers/net/ethernet/broadcom/
Dtg3.h3235 u16 timer_counter; member
Dtg3.c11039 if (!--tp->timer_counter) { in tg3_timer()
11097 tp->timer_counter = tp->timer_multiplier; in tg3_timer()
11163 tp->timer_counter = tp->timer_multiplier; in tg3_timer_start()