Lines Matching full:ticks
78 u32 ticks) in bcma_chipco_watchdog_timer_set_wdt() argument
82 return bcma_chipco_watchdog_timer_set(cc, ticks); in bcma_chipco_watchdog_timer_set_wdt()
89 u32 ticks; in bcma_chipco_watchdog_timer_set_ms_wdt() local
91 ticks = bcma_chipco_watchdog_timer_set(cc, cc->ticks_per_ms * ms); in bcma_chipco_watchdog_timer_set_ms_wdt()
92 return ticks / cc->ticks_per_ms; in bcma_chipco_watchdog_timer_set_ms_wdt()
235 /* Set chip watchdog reset timer to fire in 'ticks' backplane cycles */
236 u32 bcma_chipco_watchdog_timer_set(struct bcma_drv_cc *cc, u32 ticks) in bcma_chipco_watchdog_timer_set() argument
242 if (ticks == 1) in bcma_chipco_watchdog_timer_set()
243 ticks = 2; in bcma_chipco_watchdog_timer_set()
244 else if (ticks > maxt) in bcma_chipco_watchdog_timer_set()
245 ticks = maxt; in bcma_chipco_watchdog_timer_set()
246 bcma_pmu_write32(cc, BCMA_CC_PMU_WATCHDOG, ticks); in bcma_chipco_watchdog_timer_set()
254 ticks ? BCMA_CLKMODE_FAST : BCMA_CLKMODE_DYNAMIC); in bcma_chipco_watchdog_timer_set()
256 if (ticks > maxt) in bcma_chipco_watchdog_timer_set()
257 ticks = maxt; in bcma_chipco_watchdog_timer_set()
259 bcma_cc_write32(cc, BCMA_CC_WATCHDOG, ticks); in bcma_chipco_watchdog_timer_set()
261 return ticks; in bcma_chipco_watchdog_timer_set()