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()
1977 w83627ehf_check_fan_inputs(const struct w83627ehf_sio_data *sio_data, in w83627ehf_check_fan_inputs() argument
1983 if (sio_data->kind == w83627uhg) { in w83627ehf_check_fan_inputs()
1989 superio_enter(sio_data->sioreg); in w83627ehf_check_fan_inputs()
1992 if (sio_data->kind == nct6775) { in w83627ehf_check_fan_inputs()
1995 fan4pin = !(superio_inb(sio_data->sioreg, 0x2A) & 0x80); in w83627ehf_check_fan_inputs()
1998 } else if (sio_data->kind == nct6776) { in w83627ehf_check_fan_inputs()
1999 bool gpok = superio_inb(sio_data->sioreg, 0x27) & 0x80; in w83627ehf_check_fan_inputs()
2001 superio_select(sio_data->sioreg, W83627EHF_LD_HWM); in w83627ehf_check_fan_inputs()
2002 regval = superio_inb(sio_data->sioreg, SIO_REG_ENABLE); in w83627ehf_check_fan_inputs()
2007 fan3pin = !(superio_inb(sio_data->sioreg, 0x24) & 0x40); in w83627ehf_check_fan_inputs()
2012 fan4pin = !!(superio_inb(sio_data->sioreg, 0x1C) & 0x01); in w83627ehf_check_fan_inputs()
2017 fan5pin = !!(superio_inb(sio_data->sioreg, 0x1C) & 0x02); in w83627ehf_check_fan_inputs()
2020 } else if (sio_data->kind == w83667hg || sio_data->kind == w83667hg_b) { in w83627ehf_check_fan_inputs()
2022 fan4pin = superio_inb(sio_data->sioreg, 0x27) & 0x40; in w83627ehf_check_fan_inputs()
2023 fan5pin = superio_inb(sio_data->sioreg, 0x27) & 0x20; in w83627ehf_check_fan_inputs()
2027 fan4pin = !(superio_inb(sio_data->sioreg, 0x29) & 0x06); in w83627ehf_check_fan_inputs()
2028 fan5pin = !(superio_inb(sio_data->sioreg, 0x24) & 0x02); in w83627ehf_check_fan_inputs()
2032 superio_exit(sio_data->sioreg); in w83627ehf_check_fan_inputs()
2038 if (sio_data->kind == nct6775 || sio_data->kind == nct6776) { in w83627ehf_check_fan_inputs()
2068 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_probe() local
2093 data->name = w83627ehf_device_names[sio_data->kind]; in w83627ehf_probe()
2098 data->in_num = (sio_data->kind == w83627ehf) ? 10 : 9; in w83627ehf_probe()
2100 switch (sio_data->kind) { in w83627ehf_probe()
2119 if (sio_data->kind == nct6775 || sio_data->kind == nct6776) { in w83627ehf_probe()
2162 if (sio_data->kind == nct6776) { in w83627ehf_probe()
2195 } else if (sio_data->kind == w83667hg_b) { in w83627ehf_probe()
2242 } else if (sio_data->kind == w83627uhg) { in w83627ehf_probe()
2288 if (sio_data->kind == w83667hg) { in w83627ehf_probe()
2305 if (sio_data->kind == nct6775) { in w83627ehf_probe()
2318 } else if (sio_data->kind == nct6776) { in w83627ehf_probe()
2329 } else if (sio_data->kind == w83667hg_b) { in w83627ehf_probe()
2362 if (sio_data->kind == w83627uhg) in w83627ehf_probe()
2368 w83627ehf_init_device(data, sio_data->kind); in w83627ehf_probe()
2371 superio_enter(sio_data->sioreg); in w83627ehf_probe()
2373 if (sio_data->kind == w83667hg || sio_data->kind == w83667hg_b || in w83627ehf_probe()
2374 sio_data->kind == nct6775 || sio_data->kind == nct6776) { in w83627ehf_probe()
2380 superio_select(sio_data->sioreg, W83667HG_LD_VID); in w83627ehf_probe()
2381 data->vid = superio_inb(sio_data->sioreg, 0xe3); in w83627ehf_probe()
2385 } else if (sio_data->kind != w83627uhg) { in w83627ehf_probe()
2386 superio_select(sio_data->sioreg, W83627EHF_LD_HWM); in w83627ehf_probe()
2387 if (superio_inb(sio_data->sioreg, SIO_REG_VID_CTRL) & 0x80) { in w83627ehf_probe()
2395 if (sio_data->kind == w83627ehf) { in w83627ehf_probe()
2396 en_vrm10 = superio_inb(sio_data->sioreg, in w83627ehf_probe()
2401 superio_outb(sio_data->sioreg, in w83627ehf_probe()
2408 superio_outb(sio_data->sioreg, in w83627ehf_probe()
2414 data->vid = superio_inb(sio_data->sioreg, in w83627ehf_probe()
2416 if (sio_data->kind == w83627ehf) /* 6 VID pins only */ in w83627ehf_probe()
2429 (sio_data->kind == nct6775 || sio_data->kind == nct6776)) { in w83627ehf_probe()
2432 superio_select(sio_data->sioreg, W83627EHF_LD_HWM); in w83627ehf_probe()
2433 tmp = superio_inb(sio_data->sioreg, NCT6775_REG_FAN_DEBOUNCE); in w83627ehf_probe()
2434 if (sio_data->kind == nct6776) in w83627ehf_probe()
2435 superio_outb(sio_data->sioreg, NCT6775_REG_FAN_DEBOUNCE, in w83627ehf_probe()
2438 superio_outb(sio_data->sioreg, NCT6775_REG_FAN_DEBOUNCE, in w83627ehf_probe()
2443 superio_exit(sio_data->sioreg); in w83627ehf_probe()
2445 w83627ehf_check_fan_inputs(sio_data, data); in w83627ehf_probe()
2508 if (sio_data->kind != nct6776) { in w83627ehf_probe()
2580 if (sio_data->kind == nct6776) { in w83627ehf_probe()
2621 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_suspend() local
2625 if (sio_data->kind == nct6775) { in w83627ehf_suspend()
2637 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_resume() local
2682 if (sio_data->kind == nct6775) { in w83627ehf_resume()
2717 struct w83627ehf_sio_data *sio_data) in w83627ehf_find() argument
2741 sio_data->kind = w83627ehf; in w83627ehf_find()
2745 sio_data->kind = w83627ehf; in w83627ehf_find()
2749 sio_data->kind = w83627dhg; in w83627ehf_find()
2753 sio_data->kind = w83627dhg_p; in w83627ehf_find()
2757 sio_data->kind = w83627uhg; in w83627ehf_find()
2761 sio_data->kind = w83667hg; in w83627ehf_find()
2765 sio_data->kind = w83667hg_b; in w83627ehf_find()
2769 sio_data->kind = nct6775; in w83627ehf_find()
2773 sio_data->kind = nct6776; in w83627ehf_find()
2803 sio_data->sioreg = sioaddr; in w83627ehf_find()
2821 struct w83627ehf_sio_data sio_data; in sensors_w83627ehf_init() local
2830 if (w83627ehf_find(0x2e, &address, &sio_data) && in sensors_w83627ehf_init()
2831 w83627ehf_find(0x4e, &address, &sio_data)) in sensors_w83627ehf_init()
2845 err = platform_device_add_data(pdev, &sio_data, in sensors_w83627ehf_init()