Searched refs:timer_counter (Results 1 – 5 of 5) sorted by relevance
158 u64 timer_counter; in rti_wdt_get_timeleft_ms() local167 timer_counter = readl_relaxed(wdt->base + RTIDWDCNTR); in rti_wdt_get_timeleft_ms()169 timer_counter *= 1000; in rti_wdt_get_timeleft_ms()171 do_div(timer_counter, wdt->freq); in rti_wdt_get_timeleft_ms()173 return timer_counter; in rti_wdt_get_timeleft_ms()
119 u64 timer_counter; in davinci_wdt_get_timeleft() local134 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()
37 struct timer_counter { struct44 struct timer_counter tim[TIMER_COUNT]; argument
3235 u16 timer_counter; member
11021 if (!--tp->timer_counter) { in tg3_timer()11079 tp->timer_counter = tp->timer_multiplier; in tg3_timer()11145 tp->timer_counter = tp->timer_multiplier; in tg3_timer_start()