Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/watchdog/
Df71808e_wdt.c140 unsigned short sioaddr; member
286 err = superio_enter(watchdog.sioaddr); in watchdog_keepalive()
289 superio_select(watchdog.sioaddr, SIO_F71808FG_LD_WDT); in watchdog_keepalive()
293 superio_set_bit(watchdog.sioaddr, F71808FG_REG_WDT_CONF, in watchdog_keepalive()
297 superio_clear_bit(watchdog.sioaddr, F71808FG_REG_WDT_CONF, in watchdog_keepalive()
301 superio_outb(watchdog.sioaddr, F71808FG_REG_WD_TIME, in watchdog_keepalive()
304 superio_exit(watchdog.sioaddr); in watchdog_keepalive()
322 err = superio_enter(watchdog.sioaddr); in watchdog_start()
325 superio_select(watchdog.sioaddr, SIO_F71808FG_LD_WDT); in watchdog_start()
331 superio_clear_bit(watchdog.sioaddr, SIO_REG_MFUNCT2, 3); in watchdog_start()
[all …]
/kernel/linux/linux-5.10/drivers/hwmon/
Dpc87427.c101 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 …]
Dit87.c491 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 …]
Dsch56xx-common.c463 static int __init sch56xx_find(int sioaddr, const char **name) in sch56xx_find() argument
469 err = superio_enter(sioaddr); in sch56xx_find()
473 devid = superio_inb(sioaddr, SIO_REG_DEVID); in sch56xx_find()
488 superio_select(sioaddr, SIO_SCH56XX_LD_EM); in sch56xx_find()
490 if (!(superio_inb(sioaddr, SIO_REG_ENABLE) & 0x01)) { in sch56xx_find()
500 address = superio_inb(sioaddr, SIO_REG_ADDR) | in sch56xx_find()
501 superio_inb(sioaddr, SIO_REG_ADDR + 1) << 8; in sch56xx_find()
510 superio_exit(sioaddr); in sch56xx_find()
Dnct6683.c1338 static int __init nct6683_find(int sioaddr, struct nct6683_sio_data *sio_data) in nct6683_find() argument
1344 err = superio_enter(sioaddr); in nct6683_find()
1348 val = (superio_inb(sioaddr, SIO_REG_DEVID) << 8) in nct6683_find()
1349 | superio_inb(sioaddr, SIO_REG_DEVID + 1); in nct6683_find()
1362 superio_select(sioaddr, NCT6683_LD_HWM); in nct6683_find()
1363 val = (superio_inb(sioaddr, SIO_REG_ADDR) << 8) in nct6683_find()
1364 | superio_inb(sioaddr, SIO_REG_ADDR + 1); in nct6683_find()
1372 val = superio_inb(sioaddr, SIO_REG_ENABLE); in nct6683_find()
1375 superio_outb(sioaddr, SIO_REG_ENABLE, val | 0x01); in nct6683_find()
1378 superio_exit(sioaddr); in nct6683_find()
[all …]
Dpc87360.c75 static inline void superio_outb(int sioaddr, int reg, int val) in superio_outb() argument
77 outb(reg, sioaddr); in superio_outb()
78 outb(val, sioaddr + 1); in superio_outb()
81 static inline int superio_inb(int sioaddr, int reg) in superio_inb() argument
83 outb(reg, sioaddr); in superio_inb()
84 return inb(sioaddr + 1); in superio_inb()
87 static inline void superio_exit(int sioaddr) in superio_exit() argument
89 outb(0x02, sioaddr); in superio_exit()
90 outb(0x02, sioaddr + 1); in superio_exit()
1090 static int __init pc87360_find(int sioaddr, u8 *devid, in pc87360_find() argument
[all …]
Dw83627hf.c53 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 …]
Dw83627ehf.c2065 static int __init w83627ehf_find(int sioaddr, unsigned short *addr, in w83627ehf_find() argument
2080 err = superio_enter(sioaddr); in w83627ehf_find()
2087 val = (superio_inb(sioaddr, SIO_REG_DEVID) << 8) in w83627ehf_find()
2088 | superio_inb(sioaddr, SIO_REG_DEVID + 1); in w83627ehf_find()
2121 superio_exit(sioaddr); in w83627ehf_find()
2126 superio_select(sioaddr, W83627EHF_LD_HWM); in w83627ehf_find()
2127 val = (superio_inb(sioaddr, SIO_REG_ADDR) << 8) in w83627ehf_find()
2128 | superio_inb(sioaddr, SIO_REG_ADDR + 1); in w83627ehf_find()
2132 superio_exit(sioaddr); in w83627ehf_find()
2137 val = superio_inb(sioaddr, SIO_REG_ENABLE); in w83627ehf_find()
[all …]
Df71805f.c1554 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()
Dnct6775.c4616 static void nct6791_enable_io_mapping(int sioaddr) in nct6791_enable_io_mapping() argument
4620 val = superio_inb(sioaddr, NCT6791_REG_HM_IO_SPACE_LOCK_ENABLE); in nct6791_enable_io_mapping()
4623 superio_outb(sioaddr, NCT6791_REG_HM_IO_SPACE_LOCK_ENABLE, in nct6791_enable_io_mapping()
4725 static int __init nct6775_find(int sioaddr, struct nct6775_sio_data *sio_data) in nct6775_find() argument
4731 err = superio_enter(sioaddr); in nct6775_find()
4735 val = (superio_inb(sioaddr, SIO_REG_DEVID) << 8) | in nct6775_find()
4736 superio_inb(sioaddr, SIO_REG_DEVID + 1); in nct6775_find()
4780 superio_exit(sioaddr); in nct6775_find()
4785 superio_select(sioaddr, NCT6775_LD_HWM); in nct6775_find()
4786 val = (superio_inb(sioaddr, SIO_REG_ADDR) << 8) in nct6775_find()
[all …]
Df71882fg.c2615 static int __init f71882fg_find(int sioaddr, struct f71882fg_sio_data *sio_data) in f71882fg_find() argument
2619 int err = superio_enter(sioaddr); in f71882fg_find()
2623 devid = superio_inw(sioaddr, SIO_REG_MANID); in f71882fg_find()
2630 devid = force_id ? force_id : superio_inw(sioaddr, SIO_REG_DEVID); in f71882fg_find()
2685 superio_select(sioaddr, SIO_F71858FG_LD_HWM); in f71882fg_find()
2687 superio_select(sioaddr, SIO_F71882FG_LD_HWM); in f71882fg_find()
2689 if (!(superio_inb(sioaddr, SIO_REG_ENABLE) & 0x01)) { in f71882fg_find()
2695 address = superio_inw(sioaddr, SIO_REG_ADDR); in f71882fg_find()
2706 (int)superio_inb(sioaddr, SIO_REG_DEVREV)); in f71882fg_find()
2708 superio_exit(sioaddr); in f71882fg_find()