Lines Matching full:ioreg
83 static inline void __superio_enter(int ioreg) in __superio_enter() argument
85 outb(0x87, ioreg); in __superio_enter()
86 outb(0x01, ioreg); in __superio_enter()
87 outb(0x55, ioreg); in __superio_enter()
88 outb(ioreg == REG_4E ? 0xaa : 0x55, ioreg); in __superio_enter()
91 static inline int superio_inb(int ioreg, int reg) in superio_inb() argument
93 outb(reg, ioreg); in superio_inb()
94 return inb(ioreg + 1); in superio_inb()
97 static inline void superio_outb(int ioreg, int reg, int val) in superio_outb() argument
99 outb(reg, ioreg); in superio_outb()
100 outb(val, ioreg + 1); in superio_outb()
103 static int superio_inw(int ioreg, int reg) in superio_inw() argument
107 outb(reg++, ioreg); in superio_inw()
108 val = inb(ioreg + 1) << 8; in superio_inw()
109 outb(reg, ioreg); in superio_inw()
110 val |= inb(ioreg + 1); in superio_inw()
114 static inline void superio_select(int ioreg, int ldn) in superio_select() argument
116 outb(DEV, ioreg); in superio_select()
117 outb(ldn, ioreg + 1); in superio_select()
120 static inline int superio_enter(int ioreg, bool noentry) in superio_enter() argument
123 * Try to reserve ioreg and ioreg + 1 for exclusive access. in superio_enter()
125 if (!request_muxed_region(ioreg, 2, DRVNAME)) in superio_enter()
129 __superio_enter(ioreg); in superio_enter()
133 static inline void superio_exit(int ioreg, bool noexit) in superio_exit() argument
136 outb(0x02, ioreg); in superio_exit()
137 outb(0x02, ioreg + 1); in superio_exit()
139 release_region(ioreg, 2); in superio_exit()
2814 pr_info("Device (chip %s ioreg 0x%x) not activated, skipping\n", in it87_find()
2821 pr_info("Base address not set (chip %s ioreg 0x%x), skipping\n", in it87_find()