Lines Matching full:ticks
311 u32 ssb_chipco_watchdog_timer_set_wdt(struct bcm47xx_wdt *wdt, u32 ticks) in ssb_chipco_watchdog_timer_set_wdt() argument
318 return ssb_chipco_watchdog_timer_set(cc, ticks); in ssb_chipco_watchdog_timer_set_wdt()
324 u32 ticks; in ssb_chipco_watchdog_timer_set_ms() local
329 ticks = ssb_chipco_watchdog_timer_set(cc, cc->ticks_per_ms * ms); in ssb_chipco_watchdog_timer_set_ms()
330 return ticks / cc->ticks_per_ms; in ssb_chipco_watchdog_timer_set_ms()
470 /* Set chip watchdog reset timer to fire in 'ticks' backplane cycles */
471 u32 ssb_chipco_watchdog_timer_set(struct ssb_chipcommon *cc, u32 ticks) in ssb_chipco_watchdog_timer_set() argument
478 if (ticks == 1) in ssb_chipco_watchdog_timer_set()
479 ticks = 2; in ssb_chipco_watchdog_timer_set()
480 else if (ticks > maxt) in ssb_chipco_watchdog_timer_set()
481 ticks = maxt; in ssb_chipco_watchdog_timer_set()
482 chipco_write32(cc, SSB_CHIPCO_PMU_WATCHDOG, ticks); in ssb_chipco_watchdog_timer_set()
484 clkmode = ticks ? SSB_CLKMODE_FAST : SSB_CLKMODE_DYNAMIC; in ssb_chipco_watchdog_timer_set()
486 if (ticks > maxt) in ssb_chipco_watchdog_timer_set()
487 ticks = maxt; in ssb_chipco_watchdog_timer_set()
489 chipco_write32(cc, SSB_CHIPCO_WATCHDOG, ticks); in ssb_chipco_watchdog_timer_set()
491 return ticks; in ssb_chipco_watchdog_timer_set()