Home
last modified time | relevance | path

Searched refs:sioaddr (Results 1 – 10 of 10) sorted by relevance

/linux-4.1.27/drivers/watchdog/
Df71808e_wdt.c137 unsigned short sioaddr; member
274 err = superio_enter(watchdog.sioaddr); in watchdog_keepalive()
277 superio_select(watchdog.sioaddr, SIO_F71808FG_LD_WDT); in watchdog_keepalive()
281 superio_set_bit(watchdog.sioaddr, F71808FG_REG_WDT_CONF, in watchdog_keepalive()
285 superio_clear_bit(watchdog.sioaddr, F71808FG_REG_WDT_CONF, in watchdog_keepalive()
289 superio_outb(watchdog.sioaddr, F71808FG_REG_WD_TIME, in watchdog_keepalive()
292 superio_exit(watchdog.sioaddr); in watchdog_keepalive()
328 err = superio_enter(watchdog.sioaddr); in watchdog_start()
331 superio_select(watchdog.sioaddr, SIO_F71808FG_LD_WDT); in watchdog_start()
337 superio_clear_bit(watchdog.sioaddr, SIO_REG_MFUNCT2, 3); in watchdog_start()
[all …]
/linux-4.1.27/drivers/hwmon/
Dpc87427.c109 static inline void superio_outb(int sioaddr, int reg, int val) in superio_outb() argument
111 outb(reg, sioaddr); in superio_outb()
112 outb(val, sioaddr + 1); in superio_outb()
115 static inline int superio_inb(int sioaddr, int reg) in superio_inb() argument
117 outb(reg, sioaddr); in superio_inb()
118 return inb(sioaddr + 1); in superio_inb()
121 static inline void superio_exit(int sioaddr) in superio_exit() argument
123 outb(0x02, sioaddr); in superio_exit()
124 outb(0x02, sioaddr + 1); in superio_exit()
1219 static int __init pc87427_find(int sioaddr, struct pc87427_sio_data *sio_data) in pc87427_find() argument
[all …]
Dsch56xx-common.c506 static int __init sch56xx_find(int sioaddr, const char **name) in sch56xx_find() argument
512 err = superio_enter(sioaddr); in sch56xx_find()
516 devid = superio_inb(sioaddr, SIO_REG_DEVID); in sch56xx_find()
531 superio_select(sioaddr, SIO_SCH56XX_LD_EM); in sch56xx_find()
533 if (!(superio_inb(sioaddr, SIO_REG_ENABLE) & 0x01)) { in sch56xx_find()
543 address = superio_inb(sioaddr, SIO_REG_ADDR) | in sch56xx_find()
544 superio_inb(sioaddr, SIO_REG_ADDR + 1) << 8; in sch56xx_find()
553 superio_exit(sioaddr); in sch56xx_find()
Dnct6683.c1293 static int __init nct6683_find(int sioaddr, struct nct6683_sio_data *sio_data) in nct6683_find() argument
1309 err = superio_enter(sioaddr); in nct6683_find()
1313 val = (superio_inb(sioaddr, SIO_REG_DEVID) << 8) in nct6683_find()
1314 | superio_inb(sioaddr, SIO_REG_DEVID + 1); in nct6683_find()
1327 superio_select(sioaddr, NCT6683_LD_HWM); in nct6683_find()
1328 val = (superio_inb(sioaddr, SIO_REG_ADDR) << 8) in nct6683_find()
1329 | superio_inb(sioaddr, SIO_REG_ADDR + 1); in nct6683_find()
1337 val = superio_inb(sioaddr, SIO_REG_ENABLE); in nct6683_find()
1343 superio_exit(sioaddr); in nct6683_find()
1345 nct6683_chip_names[sio_data->kind], sioaddr, addr); in nct6683_find()
[all …]
Dpc87360.c88 static inline void superio_outb(int sioaddr, int reg, int val) in superio_outb() argument
90 outb(reg, sioaddr); in superio_outb()
91 outb(val, sioaddr + 1); in superio_outb()
94 static inline int superio_inb(int sioaddr, int reg) in superio_inb() argument
96 outb(reg, sioaddr); in superio_inb()
97 return inb(sioaddr + 1); in superio_inb()
100 static inline void superio_exit(int sioaddr) in superio_exit() argument
102 outb(0x02, sioaddr); in superio_exit()
103 outb(0x02, sioaddr + 1); in superio_exit()
1122 static int __init pc87360_find(int sioaddr, u8 *devid, in pc87360_find() argument
[all …]
Dw83627hf.c66 int sioaddr; member
115 outb(reg, sio->sioaddr); in superio_outb()
116 outb(val, sio->sioaddr + 1); in superio_outb()
122 outb(reg, sio->sioaddr); in superio_inb()
123 return inb(sio->sioaddr + 1); in superio_inb()
129 outb(DEV, sio->sioaddr); in superio_select()
130 outb(ld, sio->sioaddr + 1); in superio_select()
136 outb(0x87, sio->sioaddr); in superio_enter()
137 outb(0x87, sio->sioaddr); in superio_enter()
143 outb(0xAA, sio->sioaddr); in superio_exit()
[all …]
Df71805f.c1561 static int __init f71805f_find(int sioaddr, unsigned short *address, in f71805f_find() argument
1572 superio_enter(sioaddr); in f71805f_find()
1574 devid = superio_inw(sioaddr, SIO_REG_MANID); in f71805f_find()
1578 devid = force_id ? force_id : superio_inw(sioaddr, SIO_REG_DEVID); in f71805f_find()
1585 sio_data->fnsel1 = superio_inb(sioaddr, SIO_REG_FNSEL1); in f71805f_find()
1592 superio_select(sioaddr, F71805F_LD_HWM); in f71805f_find()
1593 if (!(superio_inb(sioaddr, SIO_REG_ENABLE) & 0x01)) { in f71805f_find()
1598 *address = superio_inw(sioaddr, SIO_REG_ADDR); in f71805f_find()
1608 superio_inb(sioaddr, SIO_REG_DEVREV)); in f71805f_find()
1611 superio_exit(sioaddr); in f71805f_find()
Dnct6775.c4008 static void nct6791_enable_io_mapping(int sioaddr) in nct6791_enable_io_mapping() argument
4012 val = superio_inb(sioaddr, NCT6791_REG_HM_IO_SPACE_LOCK_ENABLE); in nct6791_enable_io_mapping()
4015 superio_outb(sioaddr, NCT6791_REG_HM_IO_SPACE_LOCK_ENABLE, in nct6791_enable_io_mapping()
4123 static int __init nct6775_find(int sioaddr, struct nct6775_sio_data *sio_data) in nct6775_find() argument
4129 err = superio_enter(sioaddr); in nct6775_find()
4136 val = (superio_inb(sioaddr, SIO_REG_DEVID) << 8) in nct6775_find()
4137 | superio_inb(sioaddr, SIO_REG_DEVID + 1); in nct6775_find()
4160 superio_exit(sioaddr); in nct6775_find()
4165 superio_select(sioaddr, NCT6775_LD_HWM); in nct6775_find()
4166 val = (superio_inb(sioaddr, SIO_REG_ADDR) << 8) in nct6775_find()
[all …]
Dw83627ehf.c2716 static int __init w83627ehf_find(int sioaddr, unsigned short *addr, in w83627ehf_find() argument
2732 superio_enter(sioaddr); in w83627ehf_find()
2737 val = (superio_inb(sioaddr, SIO_REG_DEVID) << 8) in w83627ehf_find()
2738 | superio_inb(sioaddr, SIO_REG_DEVID + 1); in w83627ehf_find()
2779 superio_exit(sioaddr); in w83627ehf_find()
2784 superio_select(sioaddr, W83627EHF_LD_HWM); in w83627ehf_find()
2785 val = (superio_inb(sioaddr, SIO_REG_ADDR) << 8) in w83627ehf_find()
2786 | superio_inb(sioaddr, SIO_REG_ADDR + 1); in w83627ehf_find()
2790 superio_exit(sioaddr); in w83627ehf_find()
2795 val = superio_inb(sioaddr, SIO_REG_ENABLE); in w83627ehf_find()
[all …]
Df71882fg.c2525 static int __init f71882fg_find(int sioaddr, struct f71882fg_sio_data *sio_data) in f71882fg_find() argument
2529 int err = superio_enter(sioaddr); in f71882fg_find()
2533 devid = superio_inw(sioaddr, SIO_REG_MANID); in f71882fg_find()
2540 devid = force_id ? force_id : superio_inw(sioaddr, SIO_REG_DEVID); in f71882fg_find()
2586 superio_select(sioaddr, SIO_F71858FG_LD_HWM); in f71882fg_find()
2588 superio_select(sioaddr, SIO_F71882FG_LD_HWM); in f71882fg_find()
2590 if (!(superio_inb(sioaddr, SIO_REG_ENABLE) & 0x01)) { in f71882fg_find()
2596 address = superio_inw(sioaddr, SIO_REG_ADDR); in f71882fg_find()
2607 (int)superio_inb(sioaddr, SIO_REG_DEVREV)); in f71882fg_find()
2609 superio_exit(sioaddr); in f71882fg_find()