Lines Matching refs:sio_data
676 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_write_fan_div_common() local
678 if (sio_data->kind == nct6776) in w83627ehf_write_fan_div_common()
680 else if (sio_data->kind == nct6775) in w83627ehf_write_fan_div_common()
727 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_update_fan_div_common() local
729 if (sio_data->kind == nct6776) in w83627ehf_update_fan_div_common()
731 else if (sio_data->kind == nct6775) in w83627ehf_update_fan_div_common()
784 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_update_pwm_common() local
786 if (sio_data->kind == nct6775 || sio_data->kind == nct6776) in w83627ehf_update_pwm_common()
795 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_update_device() local
840 && (reg >= 0xff || (sio_data->kind == nct6775 in w83627ehf_update_device()
1395 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in show_pwm_reg() local
1409 if (sio_data->kind == nct6776 && nr && val != 1) in show_pwm_reg()
1451 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in store_pwm_enable() local
1465 if (sio_data->kind == nct6776 && val == 4) in store_pwm_enable()
1470 if (sio_data->kind == nct6775 || sio_data->kind == nct6776) { in store_pwm_enable()
1530 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in store_tolerance() local
1545 if (sio_data->kind == nct6775 || sio_data->kind == nct6776) { in store_tolerance()
1547 if (sio_data->kind == nct6776 && val > 7) in store_tolerance()
1961 w83627ehf_check_fan_inputs(const struct w83627ehf_sio_data *sio_data, in w83627ehf_check_fan_inputs() argument
1967 if (sio_data->kind == w83627uhg) { in w83627ehf_check_fan_inputs()
1973 superio_enter(sio_data->sioreg); in w83627ehf_check_fan_inputs()
1976 if (sio_data->kind == nct6775) { in w83627ehf_check_fan_inputs()
1979 fan4pin = !(superio_inb(sio_data->sioreg, 0x2A) & 0x80); in w83627ehf_check_fan_inputs()
1982 } else if (sio_data->kind == nct6776) { in w83627ehf_check_fan_inputs()
1983 bool gpok = superio_inb(sio_data->sioreg, 0x27) & 0x80; in w83627ehf_check_fan_inputs()
1985 superio_select(sio_data->sioreg, W83627EHF_LD_HWM); in w83627ehf_check_fan_inputs()
1986 regval = superio_inb(sio_data->sioreg, SIO_REG_ENABLE); in w83627ehf_check_fan_inputs()
1991 fan3pin = !(superio_inb(sio_data->sioreg, 0x24) & 0x40); in w83627ehf_check_fan_inputs()
1996 fan4pin = !!(superio_inb(sio_data->sioreg, 0x1C) & 0x01); in w83627ehf_check_fan_inputs()
2001 fan5pin = !!(superio_inb(sio_data->sioreg, 0x1C) & 0x02); in w83627ehf_check_fan_inputs()
2004 } else if (sio_data->kind == w83667hg || sio_data->kind == w83667hg_b) { in w83627ehf_check_fan_inputs()
2006 fan4pin = superio_inb(sio_data->sioreg, 0x27) & 0x40; in w83627ehf_check_fan_inputs()
2007 fan5pin = superio_inb(sio_data->sioreg, 0x27) & 0x20; in w83627ehf_check_fan_inputs()
2011 fan4pin = !(superio_inb(sio_data->sioreg, 0x29) & 0x06); in w83627ehf_check_fan_inputs()
2012 fan5pin = !(superio_inb(sio_data->sioreg, 0x24) & 0x02); in w83627ehf_check_fan_inputs()
2016 superio_exit(sio_data->sioreg); in w83627ehf_check_fan_inputs()
2022 if (sio_data->kind == nct6775 || sio_data->kind == nct6776) { in w83627ehf_check_fan_inputs()
2052 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_probe() local
2077 data->name = w83627ehf_device_names[sio_data->kind]; in w83627ehf_probe()
2082 data->in_num = (sio_data->kind == w83627ehf) ? 10 : 9; in w83627ehf_probe()
2084 switch (sio_data->kind) { in w83627ehf_probe()
2103 if (sio_data->kind == nct6775 || sio_data->kind == nct6776) { in w83627ehf_probe()
2146 if (sio_data->kind == nct6776) { in w83627ehf_probe()
2179 } else if (sio_data->kind == w83667hg_b) { in w83627ehf_probe()
2226 } else if (sio_data->kind == w83627uhg) { in w83627ehf_probe()
2272 if (sio_data->kind == w83667hg) { in w83627ehf_probe()
2289 if (sio_data->kind == nct6775) { in w83627ehf_probe()
2302 } else if (sio_data->kind == nct6776) { in w83627ehf_probe()
2313 } else if (sio_data->kind == w83667hg_b) { in w83627ehf_probe()
2346 if (sio_data->kind == w83627uhg) in w83627ehf_probe()
2352 w83627ehf_init_device(data, sio_data->kind); in w83627ehf_probe()
2355 superio_enter(sio_data->sioreg); in w83627ehf_probe()
2357 if (sio_data->kind == w83667hg || sio_data->kind == w83667hg_b || in w83627ehf_probe()
2358 sio_data->kind == nct6775 || sio_data->kind == nct6776) { in w83627ehf_probe()
2364 superio_select(sio_data->sioreg, W83667HG_LD_VID); in w83627ehf_probe()
2365 data->vid = superio_inb(sio_data->sioreg, 0xe3); in w83627ehf_probe()
2369 } else if (sio_data->kind != w83627uhg) { in w83627ehf_probe()
2370 superio_select(sio_data->sioreg, W83627EHF_LD_HWM); in w83627ehf_probe()
2371 if (superio_inb(sio_data->sioreg, SIO_REG_VID_CTRL) & 0x80) { in w83627ehf_probe()
2379 if (sio_data->kind == w83627ehf) { in w83627ehf_probe()
2380 en_vrm10 = superio_inb(sio_data->sioreg, in w83627ehf_probe()
2385 superio_outb(sio_data->sioreg, in w83627ehf_probe()
2392 superio_outb(sio_data->sioreg, in w83627ehf_probe()
2398 data->vid = superio_inb(sio_data->sioreg, in w83627ehf_probe()
2400 if (sio_data->kind == w83627ehf) /* 6 VID pins only */ in w83627ehf_probe()
2413 (sio_data->kind == nct6775 || sio_data->kind == nct6776)) { in w83627ehf_probe()
2416 superio_select(sio_data->sioreg, W83627EHF_LD_HWM); in w83627ehf_probe()
2417 tmp = superio_inb(sio_data->sioreg, NCT6775_REG_FAN_DEBOUNCE); in w83627ehf_probe()
2418 if (sio_data->kind == nct6776) in w83627ehf_probe()
2419 superio_outb(sio_data->sioreg, NCT6775_REG_FAN_DEBOUNCE, in w83627ehf_probe()
2422 superio_outb(sio_data->sioreg, NCT6775_REG_FAN_DEBOUNCE, in w83627ehf_probe()
2427 superio_exit(sio_data->sioreg); in w83627ehf_probe()
2429 w83627ehf_check_fan_inputs(sio_data, data); in w83627ehf_probe()
2492 if (sio_data->kind != nct6776) { in w83627ehf_probe()
2564 if (sio_data->kind == nct6776) { in w83627ehf_probe()
2605 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_suspend() local
2609 if (sio_data->kind == nct6775) { in w83627ehf_suspend()
2621 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_resume() local
2666 if (sio_data->kind == nct6775) { in w83627ehf_resume()
2701 struct w83627ehf_sio_data *sio_data) in w83627ehf_find() argument
2725 sio_data->kind = w83627ehf; in w83627ehf_find()
2729 sio_data->kind = w83627ehf; in w83627ehf_find()
2733 sio_data->kind = w83627dhg; in w83627ehf_find()
2737 sio_data->kind = w83627dhg_p; in w83627ehf_find()
2741 sio_data->kind = w83627uhg; in w83627ehf_find()
2745 sio_data->kind = w83667hg; in w83627ehf_find()
2749 sio_data->kind = w83667hg_b; in w83627ehf_find()
2753 sio_data->kind = nct6775; in w83627ehf_find()
2757 sio_data->kind = nct6776; in w83627ehf_find()
2787 sio_data->sioreg = sioaddr; in w83627ehf_find()
2805 struct w83627ehf_sio_data sio_data; in sensors_w83627ehf_init() local
2814 if (w83627ehf_find(0x2e, &address, &sio_data) && in sensors_w83627ehf_init()
2815 w83627ehf_find(0x4e, &address, &sio_data)) in sensors_w83627ehf_init()
2829 err = platform_device_add_data(pdev, &sio_data, in sensors_w83627ehf_init()