Searched refs:timer_counter (Results 1 – 4 of 4) sorted by relevance
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()
163 u64 timer_counter; in rti_wdt_get_timeleft_ms() local172 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()
3235 u16 timer_counter; member
11039 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()