/linux-4.1.27/drivers/watchdog/ |
D | f71808e_wdt.c | 137 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/ |
D | pc87427.c | 109 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 …]
|
D | sch56xx-common.c | 506 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()
|
D | nct6683.c | 1293 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 …]
|
D | pc87360.c | 88 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 …]
|
D | w83627hf.c | 66 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 …]
|
D | f71805f.c | 1561 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()
|
D | nct6775.c | 4008 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 …]
|
D | w83627ehf.c | 2716 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 …]
|
D | f71882fg.c | 2525 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()
|