/Linux-v4.19/drivers/watchdog/ |
D | f71808e_wdt.c | 149 unsigned short sioaddr; member 293 err = superio_enter(watchdog.sioaddr); in watchdog_keepalive() 296 superio_select(watchdog.sioaddr, SIO_F71808FG_LD_WDT); in watchdog_keepalive() 300 superio_set_bit(watchdog.sioaddr, F71808FG_REG_WDT_CONF, in watchdog_keepalive() 304 superio_clear_bit(watchdog.sioaddr, F71808FG_REG_WDT_CONF, in watchdog_keepalive() 308 superio_outb(watchdog.sioaddr, F71808FG_REG_WD_TIME, in watchdog_keepalive() 311 superio_exit(watchdog.sioaddr); in watchdog_keepalive() 347 err = superio_enter(watchdog.sioaddr); in watchdog_start() 350 superio_select(watchdog.sioaddr, SIO_F71808FG_LD_WDT); in watchdog_start() 356 superio_clear_bit(watchdog.sioaddr, SIO_REG_MFUNCT2, 3); in watchdog_start() [all …]
|
/Linux-v4.19/drivers/hwmon/ |
D | it87.c | 500 int sioaddr; member 522 int sioaddr; member 2396 static int __init it87_find(int sioaddr, unsigned short *address, in it87_find() argument 2404 err = superio_enter(sioaddr); in it87_find() 2409 chip_type = force_id ? force_id : superio_inw(sioaddr, DEVID); in it87_find() 2481 superio_select(sioaddr, PME); in it87_find() 2482 if (!(superio_inb(sioaddr, IT87_ACT_REG) & 0x01)) { in it87_find() 2487 *address = superio_inw(sioaddr, IT87_BASE_REG) & ~(IT87_EXTENT - 1); in it87_find() 2494 sio_data->sioaddr = sioaddr; in it87_find() 2495 sio_data->revision = superio_inb(sioaddr, DEVREV) & 0x0f; in it87_find() [all …]
|
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 | 476 static int __init sch56xx_find(int sioaddr, const char **name) in sch56xx_find() argument 482 err = superio_enter(sioaddr); in sch56xx_find() 486 devid = superio_inb(sioaddr, SIO_REG_DEVID); in sch56xx_find() 501 superio_select(sioaddr, SIO_SCH56XX_LD_EM); in sch56xx_find() 503 if (!(superio_inb(sioaddr, SIO_REG_ENABLE) & 0x01)) { in sch56xx_find() 513 address = superio_inb(sioaddr, SIO_REG_ADDR) | in sch56xx_find() 514 superio_inb(sioaddr, SIO_REG_ADDR + 1) << 8; in sch56xx_find() 523 superio_exit(sioaddr); in sch56xx_find()
|
D | nct6683.c | 1347 static int __init nct6683_find(int sioaddr, struct nct6683_sio_data *sio_data) in nct6683_find() argument 1353 err = superio_enter(sioaddr); in nct6683_find() 1357 val = (superio_inb(sioaddr, SIO_REG_DEVID) << 8) in nct6683_find() 1358 | superio_inb(sioaddr, SIO_REG_DEVID + 1); in nct6683_find() 1371 superio_select(sioaddr, NCT6683_LD_HWM); in nct6683_find() 1372 val = (superio_inb(sioaddr, SIO_REG_ADDR) << 8) in nct6683_find() 1373 | superio_inb(sioaddr, SIO_REG_ADDR + 1); in nct6683_find() 1381 val = superio_inb(sioaddr, SIO_REG_ENABLE); in nct6683_find() 1384 superio_outb(sioaddr, SIO_REG_ENABLE, val | 0x01); in nct6683_find() 1387 superio_exit(sioaddr); 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 | 4345 static void nct6791_enable_io_mapping(int sioaddr) in nct6791_enable_io_mapping() argument 4349 val = superio_inb(sioaddr, NCT6791_REG_HM_IO_SPACE_LOCK_ENABLE); in nct6791_enable_io_mapping() 4352 superio_outb(sioaddr, NCT6791_REG_HM_IO_SPACE_LOCK_ENABLE, in nct6791_enable_io_mapping() 4453 static int __init nct6775_find(int sioaddr, struct nct6775_sio_data *sio_data) in nct6775_find() argument 4459 err = superio_enter(sioaddr); in nct6775_find() 4463 val = (superio_inb(sioaddr, SIO_REG_DEVID) << 8) | in nct6775_find() 4464 superio_inb(sioaddr, SIO_REG_DEVID + 1); in nct6775_find() 4499 superio_exit(sioaddr); in nct6775_find() 4504 superio_select(sioaddr, NCT6775_LD_HWM); in nct6775_find() 4505 val = (superio_inb(sioaddr, SIO_REG_ADDR) << 8) in nct6775_find() [all …]
|
D | w83627ehf.c | 2710 static int __init w83627ehf_find(int sioaddr, unsigned short *addr, in w83627ehf_find() argument 2727 err = superio_enter(sioaddr); in w83627ehf_find() 2734 val = (superio_inb(sioaddr, SIO_REG_DEVID) << 8) in w83627ehf_find() 2735 | superio_inb(sioaddr, SIO_REG_DEVID + 1); in w83627ehf_find() 2776 superio_exit(sioaddr); in w83627ehf_find() 2781 superio_select(sioaddr, W83627EHF_LD_HWM); in w83627ehf_find() 2782 val = (superio_inb(sioaddr, SIO_REG_ADDR) << 8) in w83627ehf_find() 2783 | superio_inb(sioaddr, SIO_REG_ADDR + 1); in w83627ehf_find() 2787 superio_exit(sioaddr); in w83627ehf_find() 2792 val = superio_inb(sioaddr, SIO_REG_ENABLE); in w83627ehf_find() [all …]
|
D | f71882fg.c | 2628 static int __init f71882fg_find(int sioaddr, struct f71882fg_sio_data *sio_data) in f71882fg_find() argument 2632 int err = superio_enter(sioaddr); in f71882fg_find() 2636 devid = superio_inw(sioaddr, SIO_REG_MANID); in f71882fg_find() 2643 devid = force_id ? force_id : superio_inw(sioaddr, SIO_REG_DEVID); in f71882fg_find() 2698 superio_select(sioaddr, SIO_F71858FG_LD_HWM); in f71882fg_find() 2700 superio_select(sioaddr, SIO_F71882FG_LD_HWM); in f71882fg_find() 2702 if (!(superio_inb(sioaddr, SIO_REG_ENABLE) & 0x01)) { in f71882fg_find() 2708 address = superio_inw(sioaddr, SIO_REG_ADDR); in f71882fg_find() 2719 (int)superio_inb(sioaddr, SIO_REG_DEVREV)); in f71882fg_find() 2721 superio_exit(sioaddr); in f71882fg_find()
|