/linux-6.12.1/drivers/watchdog/ |
D | w83627hf_wdt.c | 126 static inline int superio_inb(int reg) in superio_inb() function 166 t = superio_inb(0x30); in w83627hf_init() 173 t = superio_inb(0x2B) & ~0x10; in w83627hf_init() 178 t = superio_inb(0x29) & ~0x60; in w83627hf_init() 184 t = superio_inb(0x2b) & ~0x04; in w83627hf_init() 188 t = (superio_inb(0x2B) & ~0x08) | 0x04; in w83627hf_init() 193 t = superio_inb(0x2D) & ~0x01; /* PIN77 -> WDT0# */ in w83627hf_init() 195 t = superio_inb(cr_wdt_control); in w83627hf_init() 203 t = superio_inb(0x2C) & ~0x80; /* PIN47 -> WDT0# */ in w83627hf_init() 226 t = superio_inb(cr_wdt_control); in w83627hf_init() [all …]
|
D | f71808e_wdt.c | 126 static inline int superio_inb(int base, int reg); 152 static inline int superio_inb(int base, int reg) in superio_inb() function 161 val = superio_inb(base, reg) << 8; in superio_inw() 162 val |= superio_inb(base, reg + 1); in superio_inw() 174 unsigned long val = superio_inb(base, reg); in superio_set_bit() 181 unsigned long val = superio_inb(base, reg); in superio_clear_bit() 335 superio_inb(wd->sioaddr, SIO_REG_MFUNCT3) & 0xcf); in fintek_wdt_start() 343 superio_inb(wd->sioaddr, SIO_REG_TSI_LEVEL_SEL)); in fintek_wdt_start() 359 tmp = superio_inb(wd->sioaddr, SIO_F81866_REG_PORT_SEL); in fintek_wdt_start() 391 u8 wdt_conf = superio_inb(wd->sioaddr, in fintek_wdt_start() [all …]
|
D | it8712f_wdt.c | 92 static int superio_inb(int reg) in superio_inb() function 172 if (superio_inb(WDT_CONTROL) & 0x01) in it8712f_wdt_get_status() 371 if (!(superio_inb(ACT_REG) & 0x01)) { in it8712f_wdt_find() 383 revision = superio_inb(DEVREV) & 0x0f; in it8712f_wdt_find()
|
D | it87_wdt.c | 135 static inline int superio_inb(int reg) in superio_inb() function 273 chip_rev = superio_inb(CHIPREV) & 0x0f; in it87_wdt_init() 328 ctrl = superio_inb(WDTCTRL); in it87_wdt_init()
|
/linux-6.12.1/drivers/char/ |
D | pc8736x_gpio.c | 87 static inline int superio_inb(int addr) in superio_inb() function 99 id = superio_inb(SIO_SID); in pc8736x_superio_present() 104 id = superio_inb(SIO_SID); in pc8736x_superio_present() 136 config = superio_inb(func_slct); in pc8736x_gpio_configure_fn() 280 rc = superio_inb(SIO_CF1); in pc8736x_gpio_init() 287 if (!superio_inb(SIO_UNIT_ACT)) { in pc8736x_gpio_init() 294 pc8736x_gpio_base = (superio_inb(SIO_BASE_HADDR) << 8 in pc8736x_gpio_init() 295 | superio_inb(SIO_BASE_LADDR)); in pc8736x_gpio_init()
|
/linux-6.12.1/drivers/gpio/ |
D | gpio-f7188x.c | 102 static inline int superio_inb(int base, int reg) in superio_inb() function 300 dir = superio_inb(sio->addr, f7188x_gpio_dir(bank->regbase)); in f7188x_gpio_get_direction() 325 dir = superio_inb(sio->addr, f7188x_gpio_dir(bank->regbase)); in f7188x_gpio_direction_in() 350 dir = superio_inb(sio->addr, f7188x_gpio_dir(bank->regbase)); in f7188x_gpio_get() 353 data = superio_inb(sio->addr, f7188x_gpio_data_out(bank->regbase)); in f7188x_gpio_get() 355 data = superio_inb(sio->addr, f7188x_gpio_data_in(bank->regbase)); in f7188x_gpio_get() 375 data_out = superio_inb(sio->addr, f7188x_gpio_data_out(bank->regbase)); in f7188x_gpio_direction_out() 382 dir = superio_inb(sio->addr, f7188x_gpio_dir(bank->regbase)); in f7188x_gpio_direction_out() 406 data_out = superio_inb(sio->addr, f7188x_gpio_data_out(bank->regbase)); in f7188x_gpio_set() 434 data = superio_inb(sio->addr, f7188x_gpio_out_mode(bank->regbase)); in f7188x_gpio_set_config() [all …]
|
D | gpio-it87.c | 105 static inline int superio_inb(int reg) in superio_inb() function 130 u8 curr_val = superio_inb(reg); in superio_set_mask() 139 u8 curr_val = superio_inb(reg); in superio_clear_mask() 286 chip_rev = superio_inb(CHIPREV) & 0x0f; in it87_gpio_init()
|
/linux-6.12.1/drivers/hwmon/ |
D | smsc47b397.c | 50 static inline int superio_inb(int reg) in superio_inb() function 301 id = force_id ? force_id : superio_inb(SUPERIO_REG_DEVID); in smsc47b397_find() 319 rev = superio_inb(SUPERIO_REG_DEVREV); in smsc47b397_find() 322 addr = (superio_inb(SUPERIO_REG_BASE_MSB) << 8) in smsc47b397_find() 323 | superio_inb(SUPERIO_REG_BASE_LSB); in smsc47b397_find()
|
D | it87.c | 91 static inline int superio_inb(int ioreg, int reg) in superio_inb() function 2813 if (!(superio_inb(sioaddr, IT87_ACT_REG) & 0x01)) { in it87_find() 2828 sio_data->revision = superio_inb(sioaddr, DEVREV) & 0x0f; in it87_find() 2860 sio_data->beep_pin = superio_inb(sioaddr, in it87_find() 2867 reg25 = superio_inb(sioaddr, IT87_SIO_GPIO1_REG); in it87_find() 2868 reg27 = superio_inb(sioaddr, IT87_SIO_GPIO3_REG); in it87_find() 2869 reg2a = superio_inb(sioaddr, IT87_SIO_PINX1_REG); in it87_find() 2870 reg2c = superio_inb(sioaddr, IT87_SIO_PINX2_REG); in it87_find() 2871 regef = superio_inb(sioaddr, IT87_SIO_SPI_REG); in it87_find() 2928 sio_data->beep_pin = superio_inb(sioaddr, in it87_find() [all …]
|
D | pc87427.c | 114 static inline int superio_inb(int sioaddr, int reg) in superio_inb() function 1203 val = force_id ? force_id : superio_inb(sioaddr, SIOREG_DEVID); in pc87427_find() 1214 val = superio_inb(sioaddr, SIOREG_ACT); in pc87427_find() 1221 val = superio_inb(sioaddr, SIOREG_MAP); in pc87427_find() 1228 val = (superio_inb(sioaddr, SIOREG_IOBASE) << 8) in pc87427_find() 1229 | superio_inb(sioaddr, SIOREG_IOBASE + 1); in pc87427_find() 1247 cfg = superio_inb(sioaddr, SIOREG_CF2); in pc87427_find() 1253 cfg = superio_inb(sioaddr, SIOREG_CFD); in pc87427_find() 1257 cfg = superio_inb(sioaddr, SIOREG_CF4); in pc87427_find() 1260 cfg_b = superio_inb(sioaddr, SIOREG_CFB); in pc87427_find() [all …]
|
D | sch56xx-common.c | 71 static inline int superio_inb(int base, int reg) in superio_inb() function 568 devid = superio_inb(sioaddr, SIO_REG_DEVID); in sch56xx_find() 585 if (!(superio_inb(sioaddr, SIO_REG_ENABLE) & 0x01)) { in sch56xx_find() 595 address = superio_inb(sioaddr, SIO_REG_ADDR) | in sch56xx_find() 596 superio_inb(sioaddr, SIO_REG_ADDR + 1) << 8; in sch56xx_find()
|
D | nct6683.c | 84 superio_inb(int ioreg, int reg) in superio_inb() function 988 reg = superio_inb(data->sioreg, NCT6683_REG_CR_BEEP); in beep_enable_show() 1021 reg = superio_inb(data->sioreg, NCT6683_REG_CR_BEEP); in beep_enable_store() 1049 reg = superio_inb(data->sioreg, NCT6683_REG_CR_CASEOPEN); in intrusion0_alarm_show() 1087 reg = superio_inb(data->sioreg, NCT6683_REG_CR_CASEOPEN); in intrusion0_alarm_store() 1365 val = (superio_inb(sioaddr, SIO_REG_DEVID) << 8) in nct6683_find() 1366 | superio_inb(sioaddr, SIO_REG_DEVID + 1); in nct6683_find() 1386 val = (superio_inb(sioaddr, SIO_REG_ADDR) << 8) in nct6683_find() 1387 | superio_inb(sioaddr, SIO_REG_ADDR + 1); in nct6683_find() 1395 val = superio_inb(sioaddr, SIO_REG_ENABLE); in nct6683_find()
|
D | w83627ehf.c | 102 superio_inb(int ioreg, int reg) in superio_inb() function 1306 fan4pin = superio_inb(sio_data->sioreg, 0x27) & 0x40; in w83627ehf_check_fan_inputs() 1307 fan5pin = superio_inb(sio_data->sioreg, 0x27) & 0x20; in w83627ehf_check_fan_inputs() 1310 fan4pin = !(superio_inb(sio_data->sioreg, 0x29) & 0x06); in w83627ehf_check_fan_inputs() 1311 fan5pin = !(superio_inb(sio_data->sioreg, 0x24) & 0x02); in w83627ehf_check_fan_inputs() 1885 data->vid = superio_inb(sio_data->sioreg, 0xe3); in w83627ehf_probe() 1889 if (superio_inb(sio_data->sioreg, SIO_REG_VID_CTRL) & 0x80) { in w83627ehf_probe() 1898 en_vrm10 = superio_inb(sio_data->sioreg, in w83627ehf_probe() 1916 data->vid = superio_inb(sio_data->sioreg, in w83627ehf_probe() 2045 val = (superio_inb(sioaddr, SIO_REG_DEVID) << 8) in w83627ehf_find() [all …]
|
D | smsc47m1.c | 54 superio_inb(int reg) in superio_inb() function 538 val = force_id ? force_id : superio_inb(SUPERIO_REG_DEVID); in smsc47m1_find() 572 if (superio_inb(SUPERIO_REG_DEVREV) & 0x80) { in smsc47m1_find() 587 addr = (superio_inb(SUPERIO_REG_BASE) << 8) in smsc47m1_find() 588 | superio_inb(SUPERIO_REG_BASE + 1); in smsc47m1_find() 599 sio_data->activate = superio_inb(SUPERIO_REG_ACT); in smsc47m1_find()
|
D | w83627hf.c | 107 superio_inb(struct w83627hf_sio_data *sio, int reg) in superio_inb() function 658 if (!(superio_inb(sio_data, W83627THF_GPIO5_EN) & (1<<3))) { in w83627thf_read_gpio5() 667 sel = superio_inb(sio_data, W83627THF_GPIO5_IOSR) & 0x3f; in w83627thf_read_gpio5() 675 res = superio_inb(sio_data, W83627THF_GPIO5_DR) & sel; in w83627thf_read_gpio5() 701 if (!(superio_inb(sio_data, W83687THF_VID_EN) & (1 << 2))) { in w83687thf_read_vid() 707 if (!(superio_inb(sio_data, W83687THF_VID_CFG) & (1 << 4))) { in w83687thf_read_vid() 713 res = superio_inb(sio_data, W83687THF_VID_DATA) & 0x3f; in w83687thf_read_vid() 1870 val = force_id ? force_id : superio_inb(sio_data, DEVID); in w83627hf_find() 1895 val = (superio_inb(sio_data, WINB_BASE_REG) << 8) | in w83627hf_find() 1896 superio_inb(sio_data, WINB_BASE_REG + 1); in w83627hf_find() [all …]
|
D | pc87360.c | 93 static inline int superio_inb(int sioaddr, int reg) in superio_inb() function 1626 val = force_id ? force_id : superio_inb(sioaddr, DEVID); in pc87360_find() 1648 val = superio_inb(sioaddr, ACT); in pc87360_find() 1654 val = (superio_inb(sioaddr, BASE) << 8) in pc87360_find() 1655 | superio_inb(sioaddr, BASE + 1); in pc87360_find() 1665 confreg[0] = superio_inb(sioaddr, 0xF0); in pc87360_find() 1666 confreg[1] = superio_inb(sioaddr, 0xF1); in pc87360_find() 1685 confreg[2] = superio_inb(sioaddr, 0x2B); in pc87360_find() 1686 confreg[3] = superio_inb(sioaddr, 0x25); in pc87360_find()
|
D | vt1211.c | 198 static inline int superio_inb(int sio_cip, int reg) in superio_inb() function 1278 devid = force_id ? force_id : superio_inb(sio_cip, SIO_VT1211_DEVID); in vt1211_find() 1284 if ((superio_inb(sio_cip, SIO_VT1211_ACTIVE) & 1) == 0) { in vt1211_find() 1289 *address = ((superio_inb(sio_cip, SIO_VT1211_BADDR) << 8) | in vt1211_find() 1290 (superio_inb(sio_cip, SIO_VT1211_BADDR + 1))) & 0xff00; in vt1211_find() 1298 *address, superio_inb(sio_cip, SIO_VT1211_DEVREV)); in vt1211_find()
|
D | f71805f.c | 62 superio_inb(int base, int reg) in superio_inb() function 1579 sio_data->fnsel1 = superio_inb(sioaddr, SIO_REG_FNSEL1); in f71805f_find() 1587 if (!(superio_inb(sioaddr, SIO_REG_ENABLE) & 0x01)) { in f71805f_find() 1602 superio_inb(sioaddr, SIO_REG_DEVREV)); in f71805f_find()
|
D | f71882fg.c | 2065 static inline int superio_inb(int base, int reg) in superio_inb() function 2074 val = superio_inb(base, reg) << 8; in superio_inw() 2075 val |= superio_inb(base, reg + 1); in superio_inw() 2587 if (!(superio_inb(sioaddr, SIO_REG_ENABLE) & 0x01)) { in f71882fg_find() 2604 (int)superio_inb(sioaddr, SIO_REG_DEVREV)); in f71882fg_find()
|
D | nct6775-platform.c | 215 static int superio_inb(struct nct6775_sio_data *sio_data, int reg) in superio_inb() function 1538 sio_data.sio_inb = superio_inb; in sensors_nct6775_platform_init()
|