/linux-6.1.9/drivers/watchdog/ |
D | f71808e_wdt.c | 137 unsigned short sioaddr; member 264 err = superio_enter(wd->sioaddr); in fintek_wdt_keepalive() 267 superio_select(wd->sioaddr, SIO_F71808FG_LD_WDT); in fintek_wdt_keepalive() 271 superio_set_bit(wd->sioaddr, F71808FG_REG_WDT_CONF, in fintek_wdt_keepalive() 275 superio_clear_bit(wd->sioaddr, F71808FG_REG_WDT_CONF, in fintek_wdt_keepalive() 279 superio_outb(wd->sioaddr, F71808FG_REG_WD_TIME, in fintek_wdt_keepalive() 282 superio_exit(wd->sioaddr); in fintek_wdt_keepalive() 298 err = superio_enter(wd->sioaddr); in fintek_wdt_start() 301 superio_select(wd->sioaddr, SIO_F71808FG_LD_WDT); in fintek_wdt_start() 307 superio_clear_bit(wd->sioaddr, SIO_REG_MFUNCT2, 3); in fintek_wdt_start() [all …]
|
/linux-6.1.9/drivers/hwmon/ |
D | pc87427.c | 101 static inline int superio_enter(int sioaddr) in superio_enter() argument 103 if (!request_muxed_region(sioaddr, 2, DRVNAME)) in superio_enter() 108 static inline void superio_outb(int sioaddr, int reg, int val) in superio_outb() argument 110 outb(reg, sioaddr); in superio_outb() 111 outb(val, sioaddr + 1); in superio_outb() 114 static inline int superio_inb(int sioaddr, int reg) in superio_inb() argument 116 outb(reg, sioaddr); in superio_inb() 117 return inb(sioaddr + 1); in superio_inb() 120 static inline void superio_exit(int sioaddr) in superio_exit() argument 122 outb(0x02, sioaddr); in superio_exit() [all …]
|
D | it87.c | 491 int sioaddr; member 513 int sioaddr; member 2387 static int __init it87_find(int sioaddr, unsigned short *address, in it87_find() argument 2395 err = superio_enter(sioaddr); in it87_find() 2400 chip_type = force_id ? force_id : superio_inw(sioaddr, DEVID); in it87_find() 2472 superio_select(sioaddr, PME); in it87_find() 2473 if (!(superio_inb(sioaddr, IT87_ACT_REG) & 0x01)) { in it87_find() 2478 *address = superio_inw(sioaddr, IT87_BASE_REG) & ~(IT87_EXTENT - 1); in it87_find() 2485 sio_data->sioaddr = sioaddr; in it87_find() 2486 sio_data->revision = superio_inb(sioaddr, DEVREV) & 0x0f; in it87_find() [all …]
|
D | sch56xx-common.c | 456 static int __init sch56xx_find(int sioaddr, const char **name) in sch56xx_find() argument 462 err = superio_enter(sioaddr); in sch56xx_find() 466 devid = superio_inb(sioaddr, SIO_REG_DEVID); in sch56xx_find() 481 superio_select(sioaddr, SIO_SCH56XX_LD_EM); in sch56xx_find() 483 if (!(superio_inb(sioaddr, SIO_REG_ENABLE) & 0x01)) { in sch56xx_find() 493 address = superio_inb(sioaddr, SIO_REG_ADDR) | in sch56xx_find() 494 superio_inb(sioaddr, SIO_REG_ADDR + 1) << 8; in sch56xx_find() 503 superio_exit(sioaddr); in sch56xx_find()
|
D | nct6683.c | 1344 static int __init nct6683_find(int sioaddr, struct nct6683_sio_data *sio_data) in nct6683_find() argument 1350 err = superio_enter(sioaddr); in nct6683_find() 1354 val = (superio_inb(sioaddr, SIO_REG_DEVID) << 8) in nct6683_find() 1355 | superio_inb(sioaddr, SIO_REG_DEVID + 1); in nct6683_find() 1374 superio_select(sioaddr, NCT6683_LD_HWM); in nct6683_find() 1375 val = (superio_inb(sioaddr, SIO_REG_ADDR) << 8) in nct6683_find() 1376 | superio_inb(sioaddr, SIO_REG_ADDR + 1); in nct6683_find() 1384 val = superio_inb(sioaddr, SIO_REG_ENABLE); in nct6683_find() 1387 superio_outb(sioaddr, SIO_REG_ENABLE, val | 0x01); in nct6683_find() 1390 superio_exit(sioaddr); in nct6683_find() [all …]
|
D | pc87360.c | 87 static inline void superio_outb(int sioaddr, int reg, int val) in superio_outb() argument 89 outb(reg, sioaddr); in superio_outb() 90 outb(val, sioaddr + 1); in superio_outb() 93 static inline int superio_inb(int sioaddr, int reg) in superio_inb() argument 95 outb(reg, sioaddr); in superio_inb() 96 return inb(sioaddr + 1); in superio_inb() 99 static inline void superio_exit(int sioaddr) in superio_exit() argument 101 outb(0x02, sioaddr); in superio_exit() 102 outb(0x02, sioaddr + 1); in superio_exit() 1614 static int __init pc87360_find(int sioaddr, u8 *devid, in pc87360_find() argument [all …]
|
D | w83627hf.c | 53 int sioaddr; member 102 outb(reg, sio->sioaddr); in superio_outb() 103 outb(val, sio->sioaddr + 1); in superio_outb() 109 outb(reg, sio->sioaddr); in superio_inb() 110 return inb(sio->sioaddr + 1); in superio_inb() 116 outb(DEV, sio->sioaddr); in superio_select() 117 outb(ld, sio->sioaddr + 1); in superio_select() 123 if (!request_muxed_region(sio->sioaddr, 2, DRVNAME)) in superio_enter() 126 outb(0x87, sio->sioaddr); in superio_enter() 127 outb(0x87, sio->sioaddr); in superio_enter() [all …]
|
D | w83627ehf.c | 2023 static int __init w83627ehf_find(int sioaddr, unsigned short *addr, in w83627ehf_find() argument 2038 err = superio_enter(sioaddr); in w83627ehf_find() 2045 val = (superio_inb(sioaddr, SIO_REG_DEVID) << 8) in w83627ehf_find() 2046 | superio_inb(sioaddr, SIO_REG_DEVID + 1); in w83627ehf_find() 2079 superio_exit(sioaddr); in w83627ehf_find() 2084 superio_select(sioaddr, W83627EHF_LD_HWM); in w83627ehf_find() 2085 val = (superio_inb(sioaddr, SIO_REG_ADDR) << 8) in w83627ehf_find() 2086 | superio_inb(sioaddr, SIO_REG_ADDR + 1); in w83627ehf_find() 2090 superio_exit(sioaddr); in w83627ehf_find() 2095 val = superio_inb(sioaddr, SIO_REG_ENABLE); in w83627ehf_find() [all …]
|
D | f71805f.c | 1554 static int __init f71805f_find(int sioaddr, unsigned short *address, in f71805f_find() argument 1565 err = superio_enter(sioaddr); in f71805f_find() 1570 devid = superio_inw(sioaddr, SIO_REG_MANID); in f71805f_find() 1574 devid = force_id ? force_id : superio_inw(sioaddr, SIO_REG_DEVID); in f71805f_find() 1581 sio_data->fnsel1 = superio_inb(sioaddr, SIO_REG_FNSEL1); in f71805f_find() 1588 superio_select(sioaddr, F71805F_LD_HWM); in f71805f_find() 1589 if (!(superio_inb(sioaddr, SIO_REG_ENABLE) & 0x01)) { in f71805f_find() 1594 *address = superio_inw(sioaddr, SIO_REG_ADDR); in f71805f_find() 1604 superio_inb(sioaddr, SIO_REG_DEVREV)); in f71805f_find() 1607 superio_exit(sioaddr); in f71805f_find()
|
D | nct6775-platform.c | 943 static int __init nct6775_find(int sioaddr, struct nct6775_sio_data *sio_data) in nct6775_find() argument 950 sio_data->sioreg = sioaddr; in nct6775_find() 1031 nct6775_sio_names[sio_data->kind], sioaddr, addr); in nct6775_find() 1109 int sioaddr[2] = { 0x2e, 0x4e }; in sensors_nct6775_platform_init() local 1150 address = nct6775_find(sioaddr[i], &sio_data); in sensors_nct6775_platform_init()
|
D | f71882fg.c | 2509 static int __init f71882fg_find(int sioaddr, struct f71882fg_sio_data *sio_data) in f71882fg_find() argument 2513 int err = superio_enter(sioaddr); in f71882fg_find() 2517 devid = superio_inw(sioaddr, SIO_REG_MANID); in f71882fg_find() 2524 devid = force_id ? force_id : superio_inw(sioaddr, SIO_REG_DEVID); in f71882fg_find() 2581 superio_select(sioaddr, SIO_F71858FG_LD_HWM); in f71882fg_find() 2583 superio_select(sioaddr, SIO_F71882FG_LD_HWM); in f71882fg_find() 2585 if (!(superio_inb(sioaddr, SIO_REG_ENABLE) & 0x01)) { in f71882fg_find() 2591 address = superio_inw(sioaddr, SIO_REG_ADDR); in f71882fg_find() 2602 (int)superio_inb(sioaddr, SIO_REG_DEVREV)); in f71882fg_find() 2604 superio_exit(sioaddr); in f71882fg_find()
|