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

/linux-4.1.27/drivers/watchdog/
H A Drdc321x_wdt.c66 } rdc321x_wdt_device; variable in typeref:struct:__anon10696
75 if (rdc321x_wdt_device.running) rdc321x_wdt_trigger()
79 spin_lock_irqsave(&rdc321x_wdt_device.lock, flags); rdc321x_wdt_trigger()
80 pci_read_config_dword(rdc321x_wdt_device.sb_pdev, rdc321x_wdt_trigger()
81 rdc321x_wdt_device.base_reg, &val); rdc321x_wdt_trigger()
83 pci_write_config_dword(rdc321x_wdt_device.sb_pdev, rdc321x_wdt_trigger()
84 rdc321x_wdt_device.base_reg, val); rdc321x_wdt_trigger()
85 spin_unlock_irqrestore(&rdc321x_wdt_device.lock, flags); rdc321x_wdt_trigger()
88 if (rdc321x_wdt_device.queue && ticks) rdc321x_wdt_trigger()
89 mod_timer(&rdc321x_wdt_device.timer, rdc321x_wdt_trigger()
93 complete(&rdc321x_wdt_device.stop); rdc321x_wdt_trigger()
100 ticks = rdc321x_wdt_device.default_ticks; rdc321x_wdt_reset()
107 if (!rdc321x_wdt_device.queue) { rdc321x_wdt_start()
108 rdc321x_wdt_device.queue = 1; rdc321x_wdt_start()
111 spin_lock_irqsave(&rdc321x_wdt_device.lock, flags); rdc321x_wdt_start()
112 pci_write_config_dword(rdc321x_wdt_device.sb_pdev, rdc321x_wdt_start()
113 rdc321x_wdt_device.base_reg, RDC_CLS_TMR); rdc321x_wdt_start()
116 pci_write_config_dword(rdc321x_wdt_device.sb_pdev, rdc321x_wdt_start()
117 rdc321x_wdt_device.base_reg, rdc321x_wdt_start()
119 spin_unlock_irqrestore(&rdc321x_wdt_device.lock, flags); rdc321x_wdt_start()
121 mod_timer(&rdc321x_wdt_device.timer, rdc321x_wdt_start()
126 rdc321x_wdt_device.running++; rdc321x_wdt_start()
131 if (rdc321x_wdt_device.running) rdc321x_wdt_stop()
132 rdc321x_wdt_device.running = 0; rdc321x_wdt_stop()
134 ticks = rdc321x_wdt_device.default_ticks; rdc321x_wdt_stop()
142 if (test_and_set_bit(0, &rdc321x_wdt_device.inuse)) rdc321x_wdt_open()
150 clear_bit(0, &rdc321x_wdt_device.inuse); rdc321x_wdt_release()
171 spin_lock_irqsave(&rdc321x_wdt_device.lock, flags); rdc321x_wdt_ioctl()
172 pci_read_config_dword(rdc321x_wdt_device.sb_pdev, rdc321x_wdt_ioctl()
173 rdc321x_wdt_device.base_reg, &value); rdc321x_wdt_ioctl()
174 spin_unlock_irqrestore(&rdc321x_wdt_device.lock, flags); rdc321x_wdt_ioctl()
245 rdc321x_wdt_device.sb_pdev = pdata->sb_pdev; rdc321x_wdt_probe()
246 rdc321x_wdt_device.base_reg = r->start; rdc321x_wdt_probe()
254 spin_lock_init(&rdc321x_wdt_device.lock); rdc321x_wdt_probe()
257 pci_write_config_dword(rdc321x_wdt_device.sb_pdev, rdc321x_wdt_probe()
258 rdc321x_wdt_device.base_reg, RDC_WDT_RST); rdc321x_wdt_probe()
260 init_completion(&rdc321x_wdt_device.stop); rdc321x_wdt_probe()
261 rdc321x_wdt_device.queue = 0; rdc321x_wdt_probe()
263 clear_bit(0, &rdc321x_wdt_device.inuse); rdc321x_wdt_probe()
265 setup_timer(&rdc321x_wdt_device.timer, rdc321x_wdt_trigger, 0); rdc321x_wdt_probe()
267 rdc321x_wdt_device.default_ticks = ticks; rdc321x_wdt_probe()
276 if (rdc321x_wdt_device.queue) { rdc321x_wdt_remove()
277 rdc321x_wdt_device.queue = 0; rdc321x_wdt_remove()
278 wait_for_completion(&rdc321x_wdt_device.stop); rdc321x_wdt_remove()

Completed in 79 milliseconds