Lines Matching refs:sch311x_wdt_data

59 } sch311x_wdt_data;  variable
124 outb(timeout_unit, sch311x_wdt_data.runtime_reg + WDT_TIME_OUT); in sch311x_wdt_set_timeout()
129 outb(t, sch311x_wdt_data.runtime_reg + WDT_VAL); in sch311x_wdt_set_timeout()
136 spin_lock(&sch311x_wdt_data.io_lock); in sch311x_wdt_start()
149 t = inb(sch311x_wdt_data.runtime_reg + GP60); in sch311x_wdt_start()
150 outb((t & ~0x0d) | 0x0c, sch311x_wdt_data.runtime_reg + GP60); in sch311x_wdt_start()
152 spin_unlock(&sch311x_wdt_data.io_lock); in sch311x_wdt_start()
160 spin_lock(&sch311x_wdt_data.io_lock); in sch311x_wdt_stop()
163 t = inb(sch311x_wdt_data.runtime_reg + GP60); in sch311x_wdt_stop()
164 outb((t & ~0x0d) | 0x01, sch311x_wdt_data.runtime_reg + GP60); in sch311x_wdt_stop()
168 spin_unlock(&sch311x_wdt_data.io_lock); in sch311x_wdt_stop()
173 spin_lock(&sch311x_wdt_data.io_lock); in sch311x_wdt_keepalive()
175 spin_unlock(&sch311x_wdt_data.io_lock); in sch311x_wdt_keepalive()
198 spin_lock(&sch311x_wdt_data.io_lock); in sch311x_wdt_get_status()
210 new_status = inb(sch311x_wdt_data.runtime_reg + WDT_CTRL); in sch311x_wdt_get_status()
214 spin_unlock(&sch311x_wdt_data.io_lock); in sch311x_wdt_get_status()
270 return put_user(sch311x_wdt_data.boot_status, p); in sch311x_wdt_ioctl()
360 spin_lock_init(&sch311x_wdt_data.io_lock); in sch311x_wdt_probe()
362 if (!request_region(sch311x_wdt_data.runtime_reg + GP60, 1, DRV_NAME)) { in sch311x_wdt_probe()
364 sch311x_wdt_data.runtime_reg + GP60, in sch311x_wdt_probe()
365 sch311x_wdt_data.runtime_reg + GP60); in sch311x_wdt_probe()
370 if (!request_region(sch311x_wdt_data.runtime_reg + WDT_TIME_OUT, 4, in sch311x_wdt_probe()
373 sch311x_wdt_data.runtime_reg + WDT_TIME_OUT, in sch311x_wdt_probe()
374 sch311x_wdt_data.runtime_reg + WDT_CTRL); in sch311x_wdt_probe()
391 outb(0, sch311x_wdt_data.runtime_reg + WDT_CFG); in sch311x_wdt_probe()
402 sch311x_wdt_get_status(&sch311x_wdt_data.boot_status); in sch311x_wdt_probe()
420 release_region(sch311x_wdt_data.runtime_reg + WDT_TIME_OUT, 4); in sch311x_wdt_probe()
422 release_region(sch311x_wdt_data.runtime_reg + GP60, 1); in sch311x_wdt_probe()
423 sch311x_wdt_data.runtime_reg = 0; in sch311x_wdt_probe()
436 release_region(sch311x_wdt_data.runtime_reg + WDT_TIME_OUT, 4); in sch311x_wdt_remove()
437 release_region(sch311x_wdt_data.runtime_reg + GP60, 1); in sch311x_wdt_remove()
438 sch311x_wdt_data.runtime_reg = 0; in sch311x_wdt_remove()
510 sch311x_wdt_data.runtime_reg = addr; in sch311x_wdt_init()