Lines Matching defs:base
239 static inline int superio_inb(int base, int reg);
240 static inline int superio_inw(int base, int reg);
241 static inline int superio_enter(int base);
242 static inline void superio_select(int base, int ld);
243 static inline void superio_exit(int base);
1104 static inline int superio_inb(int base, int reg)
1106 outb(reg, base);
1107 return inb(base + 1);
1110 static int superio_inw(int base, int reg)
1113 val = superio_inb(base, reg) << 8;
1114 val |= superio_inb(base, reg + 1);
1118 static inline int superio_enter(int base)
1121 if (!request_muxed_region(base, 2, DRVNAME)) {
1122 pr_err("I/O address 0x%04x already in use\n", base);
1127 outb(SIO_UNLOCK_KEY, base);
1128 outb(SIO_UNLOCK_KEY, base);
1133 static inline void superio_select(int base, int ld)
1135 outb(SIO_REG_LDSEL, base);
1136 outb(ld, base + 1);
1139 static inline void superio_exit(int base)
1141 outb(SIO_LOCK_KEY, base);
1142 release_region(base, 2);