Lines Matching refs:sio_data
669 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_write_fan_div_common() local
671 if (sio_data->kind == nct6776) in w83627ehf_write_fan_div_common()
673 else if (sio_data->kind == nct6775) in w83627ehf_write_fan_div_common()
720 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_update_fan_div_common() local
722 if (sio_data->kind == nct6776) in w83627ehf_update_fan_div_common()
724 else if (sio_data->kind == nct6775) in w83627ehf_update_fan_div_common()
777 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_update_pwm_common() local
779 if (sio_data->kind == nct6775 || sio_data->kind == nct6776) in w83627ehf_update_pwm_common()
788 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_update_device() local
833 && (reg >= 0xff || (sio_data->kind == nct6775 in w83627ehf_update_device()
1388 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in show_pwm_reg() local
1402 if (sio_data->kind == nct6776 && nr && val != 1) in show_pwm_reg()
1444 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in store_pwm_enable() local
1458 if (sio_data->kind == nct6776 && val == 4) in store_pwm_enable()
1463 if (sio_data->kind == nct6775 || sio_data->kind == nct6776) { in store_pwm_enable()
1523 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in store_tolerance() local
1538 if (sio_data->kind == nct6775 || sio_data->kind == nct6776) { in store_tolerance()
1540 if (sio_data->kind == nct6776 && val > 7) in store_tolerance()
1954 w83627ehf_check_fan_inputs(const struct w83627ehf_sio_data *sio_data, in w83627ehf_check_fan_inputs() argument
1960 if (sio_data->kind == w83627uhg) { in w83627ehf_check_fan_inputs()
1967 if (sio_data->kind == nct6775) { in w83627ehf_check_fan_inputs()
1970 fan4pin = !(superio_inb(sio_data->sioreg, 0x2A) & 0x80); in w83627ehf_check_fan_inputs()
1973 } else if (sio_data->kind == nct6776) { in w83627ehf_check_fan_inputs()
1974 bool gpok = superio_inb(sio_data->sioreg, 0x27) & 0x80; in w83627ehf_check_fan_inputs()
1976 superio_select(sio_data->sioreg, W83627EHF_LD_HWM); in w83627ehf_check_fan_inputs()
1977 regval = superio_inb(sio_data->sioreg, SIO_REG_ENABLE); in w83627ehf_check_fan_inputs()
1982 fan3pin = !(superio_inb(sio_data->sioreg, 0x24) & 0x40); in w83627ehf_check_fan_inputs()
1987 fan4pin = !!(superio_inb(sio_data->sioreg, 0x1C) & 0x01); in w83627ehf_check_fan_inputs()
1992 fan5pin = !!(superio_inb(sio_data->sioreg, 0x1C) & 0x02); in w83627ehf_check_fan_inputs()
1995 } else if (sio_data->kind == w83667hg || sio_data->kind == w83667hg_b) { in w83627ehf_check_fan_inputs()
1997 fan4pin = superio_inb(sio_data->sioreg, 0x27) & 0x40; in w83627ehf_check_fan_inputs()
1998 fan5pin = superio_inb(sio_data->sioreg, 0x27) & 0x20; in w83627ehf_check_fan_inputs()
2002 fan4pin = !(superio_inb(sio_data->sioreg, 0x29) & 0x06); in w83627ehf_check_fan_inputs()
2003 fan5pin = !(superio_inb(sio_data->sioreg, 0x24) & 0x02); in w83627ehf_check_fan_inputs()
2011 if (sio_data->kind == nct6775 || sio_data->kind == nct6776) { in w83627ehf_check_fan_inputs()
2041 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_probe() local
2066 data->name = w83627ehf_device_names[sio_data->kind]; in w83627ehf_probe()
2071 data->in_num = (sio_data->kind == w83627ehf) ? 10 : 9; in w83627ehf_probe()
2073 switch (sio_data->kind) { in w83627ehf_probe()
2092 if (sio_data->kind == nct6775 || sio_data->kind == nct6776) { in w83627ehf_probe()
2135 if (sio_data->kind == nct6776) { in w83627ehf_probe()
2168 } else if (sio_data->kind == w83667hg_b) { in w83627ehf_probe()
2215 } else if (sio_data->kind == w83627uhg) { in w83627ehf_probe()
2261 if (sio_data->kind == w83667hg) { in w83627ehf_probe()
2278 if (sio_data->kind == nct6775) { in w83627ehf_probe()
2291 } else if (sio_data->kind == nct6776) { in w83627ehf_probe()
2302 } else if (sio_data->kind == w83667hg_b) { in w83627ehf_probe()
2335 if (sio_data->kind == w83627uhg) in w83627ehf_probe()
2341 w83627ehf_init_device(data, sio_data->kind); in w83627ehf_probe()
2345 err = superio_enter(sio_data->sioreg); in w83627ehf_probe()
2350 if (sio_data->kind == w83667hg || sio_data->kind == w83667hg_b || in w83627ehf_probe()
2351 sio_data->kind == nct6775 || sio_data->kind == nct6776) { in w83627ehf_probe()
2357 superio_select(sio_data->sioreg, W83667HG_LD_VID); in w83627ehf_probe()
2358 data->vid = superio_inb(sio_data->sioreg, 0xe3); in w83627ehf_probe()
2361 superio_exit(sio_data->sioreg); in w83627ehf_probe()
2364 } else if (sio_data->kind != w83627uhg) { in w83627ehf_probe()
2365 superio_select(sio_data->sioreg, W83627EHF_LD_HWM); in w83627ehf_probe()
2366 if (superio_inb(sio_data->sioreg, SIO_REG_VID_CTRL) & 0x80) { in w83627ehf_probe()
2374 if (sio_data->kind == w83627ehf) { in w83627ehf_probe()
2375 en_vrm10 = superio_inb(sio_data->sioreg, in w83627ehf_probe()
2380 superio_outb(sio_data->sioreg, in w83627ehf_probe()
2387 superio_outb(sio_data->sioreg, in w83627ehf_probe()
2393 data->vid = superio_inb(sio_data->sioreg, in w83627ehf_probe()
2395 if (sio_data->kind == w83627ehf) /* 6 VID pins only */ in w83627ehf_probe()
2400 superio_exit(sio_data->sioreg); in w83627ehf_probe()
2410 (sio_data->kind == nct6775 || sio_data->kind == nct6776)) { in w83627ehf_probe()
2413 superio_select(sio_data->sioreg, W83627EHF_LD_HWM); in w83627ehf_probe()
2414 tmp = superio_inb(sio_data->sioreg, NCT6775_REG_FAN_DEBOUNCE); in w83627ehf_probe()
2415 if (sio_data->kind == nct6776) in w83627ehf_probe()
2416 superio_outb(sio_data->sioreg, NCT6775_REG_FAN_DEBOUNCE, in w83627ehf_probe()
2419 superio_outb(sio_data->sioreg, NCT6775_REG_FAN_DEBOUNCE, in w83627ehf_probe()
2424 w83627ehf_check_fan_inputs(sio_data, data); in w83627ehf_probe()
2426 superio_exit(sio_data->sioreg); in w83627ehf_probe()
2489 if (sio_data->kind != nct6776) { in w83627ehf_probe()
2561 if (sio_data->kind == nct6776) { in w83627ehf_probe()
2602 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_suspend() local
2606 if (sio_data->kind == nct6775) { in w83627ehf_suspend()
2618 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); in w83627ehf_resume() local
2663 if (sio_data->kind == nct6775) { in w83627ehf_resume()
2698 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()