Lines Matching refs:io_base
49 u16 io_base; member
67 u8 control = inb(wdt->io_base + NIWD_CONTROL); in ni903x_start()
69 outb(control | NIWD_CONTROL_RESET, wdt->io_base + NIWD_CONTROL); in ni903x_start()
70 outb(control | NIWD_CONTROL_PET, wdt->io_base + NIWD_CONTROL); in ni903x_start()
79 outb(((0x00FF0000 & counter) >> 16), wdt->io_base + NIWD_SEED2); in ni903x_wdd_set_timeout()
80 outb(((0x0000FF00 & counter) >> 8), wdt->io_base + NIWD_SEED1); in ni903x_wdd_set_timeout()
81 outb((0x000000FF & counter), wdt->io_base + NIWD_SEED0); in ni903x_wdd_set_timeout()
94 control = inb(wdt->io_base + NIWD_CONTROL); in ni903x_wdd_get_timeleft()
96 outb(control, wdt->io_base + NIWD_CONTROL); in ni903x_wdd_get_timeleft()
98 counter2 = inb(wdt->io_base + NIWD_COUNTER2); in ni903x_wdd_get_timeleft()
99 counter1 = inb(wdt->io_base + NIWD_COUNTER1); in ni903x_wdd_get_timeleft()
100 counter0 = inb(wdt->io_base + NIWD_COUNTER0); in ni903x_wdd_get_timeleft()
112 control = inb(wdt->io_base + NIWD_CONTROL); in ni903x_wdd_ping()
113 outb(control | NIWD_CONTROL_PET, wdt->io_base + NIWD_CONTROL); in ni903x_wdd_ping()
123 wdt->io_base + NIWD_CONTROL); in ni903x_wdd_start()
135 outb(NIWD_CONTROL_RESET, wdt->io_base + NIWD_CONTROL); in ni903x_wdd_stop()
147 if (wdt->io_base != 0) { in ni903x_resources()
152 wdt->io_base = res->data.io.minimum; in ni903x_resources()
160 if (!devm_request_region(wdt->dev, wdt->io_base, io_size, in ni903x_resources()
206 if (ACPI_FAILURE(status) || wdt->io_base == 0) { in ni903x_acpi_add()
232 wdt->io_base + NIWD_CONTROL); in ni903x_acpi_add()
235 wdt->io_base, timeout, nowayout); in ni903x_acpi_add()