Lines Matching refs:sio_data
1293 w83627ehf_check_fan_inputs(const struct w83627ehf_sio_data *sio_data, in w83627ehf_check_fan_inputs() argument
1299 if (sio_data->kind == w83627uhg) { in w83627ehf_check_fan_inputs()
1306 if (sio_data->kind == w83667hg || sio_data->kind == w83667hg_b) { in w83627ehf_check_fan_inputs()
1308 fan4pin = superio_inb(sio_data->sioreg, 0x27) & 0x40; in w83627ehf_check_fan_inputs()
1309 fan5pin = superio_inb(sio_data->sioreg, 0x27) & 0x20; in w83627ehf_check_fan_inputs()
1312 fan4pin = !(superio_inb(sio_data->sioreg, 0x29) & 0x06); in w83627ehf_check_fan_inputs()
1313 fan5pin = !(superio_inb(sio_data->sioreg, 0x24) & 0x02); in w83627ehf_check_fan_inputs()
1700 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_probe() local
1726 data->name = w83627ehf_device_names[sio_data->kind]; in w83627ehf_probe()
1731 data->in_num = (sio_data->kind == w83627ehf) ? 10 : 9; in w83627ehf_probe()
1733 switch (sio_data->kind) { in w83627ehf_probe()
1750 if (sio_data->kind == w83667hg_b) { in w83627ehf_probe()
1797 } else if (sio_data->kind == w83627uhg) { in w83627ehf_probe()
1843 if (sio_data->kind == w83667hg) { in w83627ehf_probe()
1860 if (sio_data->kind == w83667hg_b) { in w83627ehf_probe()
1873 if (sio_data->kind == w83627uhg) in w83627ehf_probe()
1879 w83627ehf_init_device(data, sio_data->kind); in w83627ehf_probe()
1883 err = superio_enter(sio_data->sioreg); in w83627ehf_probe()
1888 if (sio_data->kind == w83667hg || sio_data->kind == w83667hg_b) { in w83627ehf_probe()
1894 superio_select(sio_data->sioreg, W83667HG_LD_VID); in w83627ehf_probe()
1895 data->vid = superio_inb(sio_data->sioreg, 0xe3); in w83627ehf_probe()
1897 } else if (sio_data->kind != w83627uhg) { in w83627ehf_probe()
1898 superio_select(sio_data->sioreg, W83627EHF_LD_HWM); in w83627ehf_probe()
1899 if (superio_inb(sio_data->sioreg, SIO_REG_VID_CTRL) & 0x80) { in w83627ehf_probe()
1907 if (sio_data->kind == w83627ehf) { in w83627ehf_probe()
1908 en_vrm10 = superio_inb(sio_data->sioreg, in w83627ehf_probe()
1913 superio_outb(sio_data->sioreg, in w83627ehf_probe()
1920 superio_outb(sio_data->sioreg, in w83627ehf_probe()
1926 data->vid = superio_inb(sio_data->sioreg, in w83627ehf_probe()
1928 if (sio_data->kind == w83627ehf) /* 6 VID pins only */ in w83627ehf_probe()
1937 w83627ehf_check_fan_inputs(sio_data, data); in w83627ehf_probe()
1939 superio_exit(sio_data->sioreg); in w83627ehf_probe()
2066 struct w83627ehf_sio_data *sio_data) in w83627ehf_find() argument
2091 sio_data->kind = w83627ehf; in w83627ehf_find()
2095 sio_data->kind = w83627ehf; in w83627ehf_find()
2099 sio_data->kind = w83627dhg; in w83627ehf_find()
2103 sio_data->kind = w83627dhg_p; in w83627ehf_find()
2107 sio_data->kind = w83627uhg; in w83627ehf_find()
2111 sio_data->kind = w83667hg; in w83627ehf_find()
2115 sio_data->kind = w83667hg_b; in w83627ehf_find()
2145 sio_data->sioreg = sioaddr; in w83627ehf_find()
2163 struct w83627ehf_sio_data sio_data; in sensors_w83627ehf_init() local
2172 if (w83627ehf_find(0x2e, &address, &sio_data) && in sensors_w83627ehf_init()
2173 w83627ehf_find(0x4e, &address, &sio_data)) in sensors_w83627ehf_init()
2187 err = platform_device_add_data(pdev, &sio_data, in sensors_w83627ehf_init()