Lines Matching refs:sio_data

1291 w83627ehf_check_fan_inputs(const struct w83627ehf_sio_data *sio_data,  in w83627ehf_check_fan_inputs()  argument
1297 if (sio_data->kind == w83627uhg) { in w83627ehf_check_fan_inputs()
1304 if (sio_data->kind == w83667hg || sio_data->kind == w83667hg_b) { in w83627ehf_check_fan_inputs()
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()
1698 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_probe() local
1716 data->name = w83627ehf_device_names[sio_data->kind]; in w83627ehf_probe()
1721 data->in_num = (sio_data->kind == w83627ehf) ? 10 : 9; in w83627ehf_probe()
1723 switch (sio_data->kind) { in w83627ehf_probe()
1740 if (sio_data->kind == w83667hg_b) { in w83627ehf_probe()
1787 } else if (sio_data->kind == w83627uhg) { in w83627ehf_probe()
1833 if (sio_data->kind == w83667hg) { in w83627ehf_probe()
1850 if (sio_data->kind == w83667hg_b) { in w83627ehf_probe()
1863 if (sio_data->kind == w83627uhg) in w83627ehf_probe()
1869 w83627ehf_init_device(data, sio_data->kind); in w83627ehf_probe()
1873 err = superio_enter(sio_data->sioreg); in w83627ehf_probe()
1878 if (sio_data->kind == w83667hg || sio_data->kind == w83667hg_b) { in w83627ehf_probe()
1884 superio_select(sio_data->sioreg, W83667HG_LD_VID); in w83627ehf_probe()
1885 data->vid = superio_inb(sio_data->sioreg, 0xe3); in w83627ehf_probe()
1887 } else if (sio_data->kind != w83627uhg) { in w83627ehf_probe()
1888 superio_select(sio_data->sioreg, W83627EHF_LD_HWM); in w83627ehf_probe()
1889 if (superio_inb(sio_data->sioreg, SIO_REG_VID_CTRL) & 0x80) { in w83627ehf_probe()
1897 if (sio_data->kind == w83627ehf) { in w83627ehf_probe()
1898 en_vrm10 = superio_inb(sio_data->sioreg, in w83627ehf_probe()
1903 superio_outb(sio_data->sioreg, in w83627ehf_probe()
1910 superio_outb(sio_data->sioreg, in w83627ehf_probe()
1916 data->vid = superio_inb(sio_data->sioreg, in w83627ehf_probe()
1918 if (sio_data->kind == w83627ehf) /* 6 VID pins only */ in w83627ehf_probe()
1927 w83627ehf_check_fan_inputs(sio_data, data); in w83627ehf_probe()
1929 superio_exit(sio_data->sioreg); in w83627ehf_probe()
2024 struct w83627ehf_sio_data *sio_data) in w83627ehf_find() argument
2049 sio_data->kind = w83627ehf; in w83627ehf_find()
2053 sio_data->kind = w83627ehf; in w83627ehf_find()
2057 sio_data->kind = w83627dhg; in w83627ehf_find()
2061 sio_data->kind = w83627dhg_p; in w83627ehf_find()
2065 sio_data->kind = w83627uhg; in w83627ehf_find()
2069 sio_data->kind = w83667hg; in w83627ehf_find()
2073 sio_data->kind = w83667hg_b; in w83627ehf_find()
2103 sio_data->sioreg = sioaddr; in w83627ehf_find()
2123 struct w83627ehf_sio_data sio_data; in sensors_w83627ehf_init() local
2132 if (w83627ehf_find(0x2e, &address, &sio_data) && in sensors_w83627ehf_init()
2133 w83627ehf_find(0x4e, &address, &sio_data)) in sensors_w83627ehf_init()
2143 pdev = platform_create_bundle(&w83627ehf_driver, w83627ehf_probe, &res, 1, &sio_data, in sensors_w83627ehf_init()