Home
last modified time | relevance | path

Searched refs:superio_inb (Results 1 – 20 of 20) sorted by relevance

/drivers/watchdog/
Dw83627hf_wdt.c126 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 …]
Df71808e_wdt.c126 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 …]
Dit8712f_wdt.c92 static int superio_inb(int reg) in superio_inb() function
172 if (superio_inb(WDT_CONTROL) & 0x01) in it8712f_wdt_get_status()
372 if (!(superio_inb(ACT_REG) & 0x01)) { in it8712f_wdt_find()
384 revision = superio_inb(DEVREV) & 0x0f; in it8712f_wdt_find()
Dit87_wdt.c133 static inline int superio_inb(int reg) in superio_inb() function
266 chip_rev = superio_inb(CHIPREV) & 0x0f; in it87_wdt_init()
321 ctrl = superio_inb(WDTCTRL); in it87_wdt_init()
/drivers/char/
Dpc8736x_gpio.c87 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()
281 rc = superio_inb(SIO_CF1); in pc8736x_gpio_init()
288 if (!superio_inb(SIO_UNIT_ACT)) { in pc8736x_gpio_init()
295 pc8736x_gpio_base = (superio_inb(SIO_BASE_HADDR) << 8 in pc8736x_gpio_init()
296 | superio_inb(SIO_BASE_LADDR)); in pc8736x_gpio_init()
/drivers/gpio/
Dgpio-f7188x.c102 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 …]
Dgpio-it87.c105 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()
/drivers/hwmon/
Dsmsc47b397.c50 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()
Dit87.c91 static inline int superio_inb(int ioreg, int reg) in superio_inb() function
2770 if (!(superio_inb(sioaddr, IT87_ACT_REG) & 0x01)) { in it87_find()
2785 sio_data->revision = superio_inb(sioaddr, DEVREV) & 0x0f; in it87_find()
2817 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2824 reg25 = superio_inb(sioaddr, IT87_SIO_GPIO1_REG); in it87_find()
2825 reg27 = superio_inb(sioaddr, IT87_SIO_GPIO3_REG); in it87_find()
2826 reg2a = superio_inb(sioaddr, IT87_SIO_PINX1_REG); in it87_find()
2827 reg2c = superio_inb(sioaddr, IT87_SIO_PINX2_REG); in it87_find()
2828 regef = superio_inb(sioaddr, IT87_SIO_SPI_REG); in it87_find()
2885 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
[all …]
Dsch56xx-common.c65 static inline int superio_inb(int base, int reg) in superio_inb() function
461 devid = superio_inb(sioaddr, SIO_REG_DEVID); in sch56xx_find()
478 if (!(superio_inb(sioaddr, SIO_REG_ENABLE) & 0x01)) { in sch56xx_find()
488 address = superio_inb(sioaddr, SIO_REG_ADDR) | in sch56xx_find()
489 superio_inb(sioaddr, SIO_REG_ADDR + 1) << 8; in sch56xx_find()
Dpc87427.c114 static inline int superio_inb(int sioaddr, int reg) in superio_inb() function
1205 val = force_id ? force_id : superio_inb(sioaddr, SIOREG_DEVID); in pc87427_find()
1216 val = superio_inb(sioaddr, SIOREG_ACT); in pc87427_find()
1223 val = superio_inb(sioaddr, SIOREG_MAP); in pc87427_find()
1230 val = (superio_inb(sioaddr, SIOREG_IOBASE) << 8) in pc87427_find()
1231 | superio_inb(sioaddr, SIOREG_IOBASE + 1); in pc87427_find()
1249 cfg = superio_inb(sioaddr, SIOREG_CF2); in pc87427_find()
1255 cfg = superio_inb(sioaddr, SIOREG_CFD); in pc87427_find()
1259 cfg = superio_inb(sioaddr, SIOREG_CF4); in pc87427_find()
1262 cfg_b = superio_inb(sioaddr, SIOREG_CFB); in pc87427_find()
[all …]
Dnct6683.c84 superio_inb(int ioreg, int reg) in superio_inb() function
986 reg = superio_inb(data->sioreg, NCT6683_REG_CR_BEEP); in beep_enable_show()
1019 reg = superio_inb(data->sioreg, NCT6683_REG_CR_BEEP); in beep_enable_store()
1047 reg = superio_inb(data->sioreg, NCT6683_REG_CR_CASEOPEN); in intrusion0_alarm_show()
1085 reg = superio_inb(data->sioreg, NCT6683_REG_CR_CASEOPEN); in intrusion0_alarm_store()
1357 val = (superio_inb(sioaddr, SIO_REG_DEVID) << 8) in nct6683_find()
1358 | superio_inb(sioaddr, SIO_REG_DEVID + 1); in nct6683_find()
1378 val = (superio_inb(sioaddr, SIO_REG_ADDR) << 8) in nct6683_find()
1379 | superio_inb(sioaddr, SIO_REG_ADDR + 1); in nct6683_find()
1387 val = superio_inb(sioaddr, SIO_REG_ENABLE); in nct6683_find()
Dw83627ehf.c102 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 …]
Dsmsc47m1.c54 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()
Dw83627hf.c107 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()
1872 val = force_id ? force_id : superio_inb(sio_data, DEVID); in w83627hf_find()
1897 val = (superio_inb(sio_data, WINB_BASE_REG) << 8) | in w83627hf_find()
1898 superio_inb(sio_data, WINB_BASE_REG + 1); in w83627hf_find()
[all …]
Dpc87360.c93 static inline int superio_inb(int sioaddr, int reg) in superio_inb() function
1628 val = force_id ? force_id : superio_inb(sioaddr, DEVID); in pc87360_find()
1650 val = superio_inb(sioaddr, ACT); in pc87360_find()
1656 val = (superio_inb(sioaddr, BASE) << 8) in pc87360_find()
1657 | superio_inb(sioaddr, BASE + 1); in pc87360_find()
1667 confreg[0] = superio_inb(sioaddr, 0xF0); in pc87360_find()
1668 confreg[1] = superio_inb(sioaddr, 0xF1); in pc87360_find()
1687 confreg[2] = superio_inb(sioaddr, 0x2B); in pc87360_find()
1688 confreg[3] = superio_inb(sioaddr, 0x25); in pc87360_find()
Dvt1211.c198 static inline int superio_inb(int sio_cip, int reg) in superio_inb() function
1280 devid = force_id ? force_id : superio_inb(sio_cip, SIO_VT1211_DEVID); in vt1211_find()
1286 if ((superio_inb(sio_cip, SIO_VT1211_ACTIVE) & 1) == 0) { in vt1211_find()
1291 *address = ((superio_inb(sio_cip, SIO_VT1211_BADDR) << 8) | in vt1211_find()
1292 (superio_inb(sio_cip, SIO_VT1211_BADDR + 1))) & 0xff00; in vt1211_find()
1300 *address, superio_inb(sio_cip, SIO_VT1211_DEVREV)); in vt1211_find()
Df71805f.c62 superio_inb(int base, int reg) in superio_inb() function
1581 sio_data->fnsel1 = superio_inb(sioaddr, SIO_REG_FNSEL1); in f71805f_find()
1589 if (!(superio_inb(sioaddr, SIO_REG_ENABLE) & 0x01)) { in f71805f_find()
1604 superio_inb(sioaddr, SIO_REG_DEVREV)); in f71805f_find()
Df71882fg.c2065 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()
2588 if (!(superio_inb(sioaddr, SIO_REG_ENABLE) & 0x01)) { in f71882fg_find()
2605 (int)superio_inb(sioaddr, SIO_REG_DEVREV)); in f71882fg_find()
Dnct6775-platform.c215 static int superio_inb(struct nct6775_sio_data *sio_data, int reg) in superio_inb() function
1539 sio_data.sio_inb = superio_inb; in sensors_nct6775_platform_init()