Searched refs:ar7_wdt (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/drivers/watchdog/
H A Dar7_wdt.c2 * drivers/watchdog/ar7_wdt.c
60 struct ar7_wdt { struct
81 static struct ar7_wdt *ar7_wdt; variable in typeref:struct:ar7_wdt
87 WRITE_REG(ar7_wdt->kick_lock, 0x5555); ar7_wdt_kick()
88 if ((READ_REG(ar7_wdt->kick_lock) & 3) == 1) { ar7_wdt_kick()
89 WRITE_REG(ar7_wdt->kick_lock, 0xaaaa); ar7_wdt_kick()
90 if ((READ_REG(ar7_wdt->kick_lock) & 3) == 3) { ar7_wdt_kick()
91 WRITE_REG(ar7_wdt->kick, value); ar7_wdt_kick()
100 WRITE_REG(ar7_wdt->prescale_lock, 0x5a5a); ar7_wdt_prescale()
101 if ((READ_REG(ar7_wdt->prescale_lock) & 3) == 1) { ar7_wdt_prescale()
102 WRITE_REG(ar7_wdt->prescale_lock, 0xa5a5); ar7_wdt_prescale()
103 if ((READ_REG(ar7_wdt->prescale_lock) & 3) == 3) { ar7_wdt_prescale()
104 WRITE_REG(ar7_wdt->prescale, value); ar7_wdt_prescale()
113 WRITE_REG(ar7_wdt->change_lock, 0x6666); ar7_wdt_change()
114 if ((READ_REG(ar7_wdt->change_lock) & 3) == 1) { ar7_wdt_change()
115 WRITE_REG(ar7_wdt->change_lock, 0xbbbb); ar7_wdt_change()
116 if ((READ_REG(ar7_wdt->change_lock) & 3) == 3) { ar7_wdt_change()
117 WRITE_REG(ar7_wdt->change, value); ar7_wdt_change()
126 WRITE_REG(ar7_wdt->disable_lock, 0x7777); ar7_wdt_disable()
127 if ((READ_REG(ar7_wdt->disable_lock) & 3) == 1) { ar7_wdt_disable()
128 WRITE_REG(ar7_wdt->disable_lock, 0xcccc); ar7_wdt_disable()
129 if ((READ_REG(ar7_wdt->disable_lock) & 3) == 2) { ar7_wdt_disable()
130 WRITE_REG(ar7_wdt->disable_lock, 0xdddd); ar7_wdt_disable()
131 if ((READ_REG(ar7_wdt->disable_lock) & 3) == 3) { ar7_wdt_disable()
132 WRITE_REG(ar7_wdt->disable, value); ar7_wdt_disable()
281 ar7_wdt = devm_ioremap_resource(&pdev->dev, ar7_regs_wdt); ar7_wdt_probe()
282 if (IS_ERR(ar7_wdt)) ar7_wdt_probe()
283 return PTR_ERR(ar7_wdt); ar7_wdt_probe()
327 .name = "ar7_wdt",
H A DMakefile145 obj-$(CONFIG_AR7_WDT) += ar7_wdt.o
/linux-4.4.14/arch/mips/ar7/
H A Dplatform.c554 static struct platform_device ar7_wdt = { variable in typeref:struct:platform_device
555 .name = "ar7_wdt",
724 res = platform_device_register(&ar7_wdt); ar7_register_devices()

Completed in 396 milliseconds