Lines Matching refs:bcm63xx_wdt_device
48 } bcm63xx_wdt_device; variable
61 bcm_writel(0xfffffffe, bcm63xx_wdt_device.regs + WDT_DEFVAL_REG); in bcm63xx_wdt_hw_start()
62 bcm_writel(WDT_START_1, bcm63xx_wdt_device.regs + WDT_CTL_REG); in bcm63xx_wdt_hw_start()
63 bcm_writel(WDT_START_2, bcm63xx_wdt_device.regs + WDT_CTL_REG); in bcm63xx_wdt_hw_start()
68 bcm_writel(WDT_STOP_1, bcm63xx_wdt_device.regs + WDT_CTL_REG); in bcm63xx_wdt_hw_stop()
69 bcm_writel(WDT_STOP_2, bcm63xx_wdt_device.regs + WDT_CTL_REG); in bcm63xx_wdt_hw_stop()
81 if (!atomic_dec_and_test(&bcm63xx_wdt_device.ticks)) { in bcm63xx_timer_tick()
83 mod_timer(&bcm63xx_wdt_device.timer, jiffies + HZ); in bcm63xx_timer_tick()
90 atomic_set(&bcm63xx_wdt_device.ticks, wdt_time); in bcm63xx_wdt_pet()
101 del_timer_sync(&bcm63xx_wdt_device.timer); in bcm63xx_wdt_pause()
117 if (test_and_set_bit(0, &bcm63xx_wdt_device.inuse)) in bcm63xx_wdt_open()
133 clear_bit(0, &bcm63xx_wdt_device.inuse); in bcm63xx_wdt_release()
243 setup_timer(&bcm63xx_wdt_device.timer, bcm63xx_timer_tick, 0L); in bcm63xx_wdt_probe()
251 bcm63xx_wdt_device.regs = ioremap_nocache(r->start, r->end - r->start); in bcm63xx_wdt_probe()
252 if (!bcm63xx_wdt_device.regs) { in bcm63xx_wdt_probe()
284 iounmap(bcm63xx_wdt_device.regs); in bcm63xx_wdt_probe()
295 iounmap(bcm63xx_wdt_device.regs); in bcm63xx_wdt_remove()