Searched refs:sio_data (Results 1 - 9 of 9) sorted by relevance

/linux-4.4.14/drivers/hwmon/
H A Dit87.c1845 struct it87_sio_data *sio_data) it87_find()
1861 sio_data->type = it87; it87_find()
1864 sio_data->type = it8712; it87_find()
1868 sio_data->type = it8716; it87_find()
1871 sio_data->type = it8718; it87_find()
1874 sio_data->type = it8720; it87_find()
1877 sio_data->type = it8721; it87_find()
1880 sio_data->type = it8728; it87_find()
1883 sio_data->type = it8732; it87_find()
1886 sio_data->type = it8771; it87_find()
1889 sio_data->type = it8772; it87_find()
1892 sio_data->type = it8781; it87_find()
1895 sio_data->type = it8782; it87_find()
1898 sio_data->type = it8783; it87_find()
1901 sio_data->type = it8786; it87_find()
1904 sio_data->type = it8790; it87_find()
1908 sio_data->type = it8603; it87_find()
1911 sio_data->type = it8620; it87_find()
1933 sio_data->revision = superio_inb(DEVREV) & 0x0f; it87_find()
1935 it87_devices[sio_data->type].suffix, it87_find()
1936 *address, sio_data->revision); it87_find()
1938 config = &it87_devices[sio_data->type]; it87_find()
1942 sio_data->internal |= (1 << 1); it87_find()
1945 sio_data->internal |= (1 << 2); it87_find()
1948 if (sio_data->type != it8603) it87_find()
1949 sio_data->skip_in |= (1 << 9); it87_find()
1952 sio_data->skip_vid = 1; it87_find()
1955 if (sio_data->type == it87) { it87_find()
1958 sio_data->beep_pin = superio_inb(IT87_SIO_BEEP_PIN_REG) & 0x3f; it87_find()
1959 } else if (sio_data->type == it8783) { it87_find()
1972 sio_data->skip_fan |= (1 << 2); it87_find()
1975 sio_data->skip_pwm |= (1 << 2); it87_find()
1979 sio_data->skip_fan |= (1 << 1); it87_find()
1981 sio_data->skip_pwm |= (1 << 1); it87_find()
1985 sio_data->skip_in |= (1 << 5); /* No VIN5 */ it87_find()
1989 sio_data->skip_in |= (1 << 6); /* No VIN6 */ it87_find()
2019 sio_data->internal |= (1 << 0); it87_find()
2021 sio_data->internal |= (1 << 1); it87_find()
2023 sio_data->beep_pin = superio_inb(IT87_SIO_BEEP_PIN_REG) & 0x3f; it87_find()
2024 } else if (sio_data->type == it8603) { it87_find()
2033 sio_data->skip_pwm |= (1 << 2); it87_find()
2035 sio_data->skip_fan |= (1 << 2); it87_find()
2040 sio_data->skip_pwm |= (1 << 1); it87_find()
2042 sio_data->skip_fan |= (1 << 1); it87_find()
2044 sio_data->skip_in |= (1 << 5); /* No VIN5 */ it87_find()
2045 sio_data->skip_in |= (1 << 6); /* No VIN6 */ it87_find()
2047 sio_data->internal |= (1 << 3); /* in9 is AVCC */ it87_find()
2049 sio_data->beep_pin = superio_inb(IT87_SIO_BEEP_PIN_REG) & 0x3f; it87_find()
2050 } else if (sio_data->type == it8620) { it87_find()
2058 sio_data->skip_fan |= (1 << 3); it87_find()
2060 sio_data->skip_fan |= (1 << 4); it87_find()
2065 sio_data->skip_pwm |= (1 << 2); it87_find()
2067 sio_data->skip_fan |= (1 << 2); it87_find()
2072 sio_data->skip_pwm |= (1 << 1); it87_find()
2074 sio_data->skip_fan |= (1 << 1); it87_find()
2076 sio_data->beep_pin = superio_inb(IT87_SIO_BEEP_PIN_REG) & 0x3f; it87_find()
2084 if (!sio_data->skip_vid) { it87_find()
2088 sio_data->skip_vid = 1; it87_find()
2094 sio_data->skip_pwm |= (1 << 2); it87_find()
2096 sio_data->skip_fan |= (1 << 2); it87_find()
2101 sio_data->skip_pwm |= (1 << 1); it87_find()
2103 sio_data->skip_fan |= (1 << 1); it87_find()
2105 if ((sio_data->type == it8718 || sio_data->type == it8720) it87_find()
2106 && !(sio_data->skip_vid)) it87_find()
2107 sio_data->vid_value = superio_inb(IT87_SIO_VID_REG); it87_find()
2111 uart6 = sio_data->type == it8782 && (reg & (1 << 2)); it87_find()
2127 if ((sio_data->type == it8720 || uart6) && !(reg & (1 << 1))) { it87_find()
2133 sio_data->internal |= (1 << 0); it87_find()
2135 sio_data->internal |= (1 << 1); it87_find()
2147 sio_data->skip_in |= (1 << 5) | (1 << 6); it87_find()
2148 sio_data->skip_temp |= (1 << 2); it87_find()
2151 sio_data->beep_pin = superio_inb(IT87_SIO_BEEP_PIN_REG) & 0x3f; it87_find()
2153 if (sio_data->beep_pin) it87_find()
2171 sio_data->skip_pwm = (1 << 1); it87_find()
2183 struct it87_sio_data *sio_data = dev_get_platdata(dev); it87_remove_files() local
2188 if (sio_data->skip_in & (1 << i)) it87_remove_files()
2202 if (sio_data->beep_pin) it87_remove_files()
2210 if (sio_data->beep_pin) it87_remove_files()
2218 if (sio_data->skip_pwm & (1 << i)) it87_remove_files()
2225 if (!sio_data->skip_vid) it87_remove_files()
2235 struct it87_sio_data *sio_data = dev_get_platdata(dev); it87_probe() local
2254 data->type = sio_data->type; it87_probe()
2255 data->features = it87_devices[sio_data->type].features; it87_probe()
2256 data->peci_mask = it87_devices[sio_data->type].peci_mask; it87_probe()
2257 data->old_peci_mask = it87_devices[sio_data->type].old_peci_mask; it87_probe()
2258 data->name = it87_devices[sio_data->type].name; it87_probe()
2266 if (sio_data->revision >= 0x03) { it87_probe()
2272 if (sio_data->revision >= 0x08) { it87_probe()
2296 if (sio_data->internal & (1 << 0)) it87_probe()
2298 if (sio_data->internal & (1 << 1)) it87_probe()
2300 if (sio_data->internal & (1 << 2)) it87_probe()
2302 if (sio_data->internal & (1 << 3)) it87_probe()
2304 } else if (sio_data->type == it8781 || sio_data->type == it8782 || it87_probe()
2305 sio_data->type == it8783) { it87_probe()
2306 if (sio_data->internal & (1 << 0)) it87_probe()
2308 if (sio_data->internal & (1 << 1)) it87_probe()
2313 if (sio_data->skip_temp & (1 << 2)) { it87_probe()
2314 if (sio_data->type == it8782 it87_probe()
2328 if (sio_data->skip_in & (1 << i)) it87_probe()
2333 if (sio_data->beep_pin && it87_attributes_in_beep[i]) { it87_probe()
2353 if (sio_data->beep_pin) { it87_probe()
2377 if (sio_data->beep_pin) { it87_probe()
2401 if (sio_data->skip_pwm & (1 << i)) it87_probe()
2417 if (!sio_data->skip_vid) { it87_probe()
2420 data->vid = sio_data->vid_value; it87_probe()
2428 if (!(sio_data->internal & (1 << i))) it87_probe()
2541 struct it87_sio_data *sio_data = dev_get_platdata(&pdev->dev); it87_init_device() local
2598 mask = 0x70 & ~(sio_data->skip_fan << 4); it87_init_device()
2631 data->has_fan &= ~sio_data->skip_fan; it87_init_device()
2772 const struct it87_sio_data *sio_data) it87_device_add()
2799 err = platform_device_add_data(pdev, sio_data, it87_device_add()
2824 struct it87_sio_data sio_data; sm_it87_init() local
2826 memset(&sio_data, 0, sizeof(struct it87_sio_data)); sm_it87_init()
2827 err = it87_find(&isa_address, &sio_data); sm_it87_init()
2834 err = it87_device_add(isa_address, &sio_data); sm_it87_init()
1844 it87_find(unsigned short *address, struct it87_sio_data *sio_data) it87_find() argument
2771 it87_device_add(unsigned short address, const struct it87_sio_data *sio_data) it87_device_add() argument
H A Dw83627ehf.c676 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); w83627ehf_write_fan_div_common() local
678 if (sio_data->kind == nct6776) w83627ehf_write_fan_div_common()
680 else if (sio_data->kind == nct6775) w83627ehf_write_fan_div_common()
727 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); w83627ehf_update_fan_div_common() local
729 if (sio_data->kind == nct6776) w83627ehf_update_fan_div_common()
731 else if (sio_data->kind == nct6775) w83627ehf_update_fan_div_common()
784 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); w83627ehf_update_pwm_common() local
786 if (sio_data->kind == nct6775 || sio_data->kind == nct6776) w83627ehf_update_pwm_common()
795 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); w83627ehf_update_device() local
840 && (reg >= 0xff || (sio_data->kind == nct6775 w83627ehf_update_device()
1395 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); store_pwm_mode() local
1409 if (sio_data->kind == nct6776 && nr && val != 1) store_pwm_mode()
1451 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); store_pwm_enable() local
1465 if (sio_data->kind == nct6776 && val == 4) store_pwm_enable()
1470 if (sio_data->kind == nct6775 || sio_data->kind == nct6776) { store_pwm_enable()
1530 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); store_tolerance() local
1545 if (sio_data->kind == nct6775 || sio_data->kind == nct6776) { store_tolerance()
1547 if (sio_data->kind == nct6776 && val > 7) store_tolerance()
1961 w83627ehf_check_fan_inputs(const struct w83627ehf_sio_data *sio_data, w83627ehf_check_fan_inputs() argument
1967 if (sio_data->kind == w83627uhg) { w83627ehf_check_fan_inputs()
1973 superio_enter(sio_data->sioreg); w83627ehf_check_fan_inputs()
1976 if (sio_data->kind == nct6775) { w83627ehf_check_fan_inputs()
1979 fan4pin = !(superio_inb(sio_data->sioreg, 0x2A) & 0x80); w83627ehf_check_fan_inputs()
1982 } else if (sio_data->kind == nct6776) { w83627ehf_check_fan_inputs()
1983 bool gpok = superio_inb(sio_data->sioreg, 0x27) & 0x80; w83627ehf_check_fan_inputs()
1985 superio_select(sio_data->sioreg, W83627EHF_LD_HWM); w83627ehf_check_fan_inputs()
1986 regval = superio_inb(sio_data->sioreg, SIO_REG_ENABLE); w83627ehf_check_fan_inputs()
1991 fan3pin = !(superio_inb(sio_data->sioreg, 0x24) & 0x40); w83627ehf_check_fan_inputs()
1996 fan4pin = !!(superio_inb(sio_data->sioreg, 0x1C) & 0x01); w83627ehf_check_fan_inputs()
2001 fan5pin = !!(superio_inb(sio_data->sioreg, 0x1C) & 0x02); w83627ehf_check_fan_inputs()
2004 } else if (sio_data->kind == w83667hg || sio_data->kind == w83667hg_b) { w83627ehf_check_fan_inputs()
2006 fan4pin = superio_inb(sio_data->sioreg, 0x27) & 0x40; w83627ehf_check_fan_inputs()
2007 fan5pin = superio_inb(sio_data->sioreg, 0x27) & 0x20; w83627ehf_check_fan_inputs()
2011 fan4pin = !(superio_inb(sio_data->sioreg, 0x29) & 0x06); w83627ehf_check_fan_inputs()
2012 fan5pin = !(superio_inb(sio_data->sioreg, 0x24) & 0x02); w83627ehf_check_fan_inputs()
2016 superio_exit(sio_data->sioreg); w83627ehf_check_fan_inputs()
2022 if (sio_data->kind == nct6775 || sio_data->kind == nct6776) { w83627ehf_check_fan_inputs()
2052 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); w83627ehf_probe() local
2077 data->name = w83627ehf_device_names[sio_data->kind]; w83627ehf_probe()
2082 data->in_num = (sio_data->kind == w83627ehf) ? 10 : 9; w83627ehf_probe()
2084 switch (sio_data->kind) { w83627ehf_probe()
2103 if (sio_data->kind == nct6775 || sio_data->kind == nct6776) { w83627ehf_probe()
2146 if (sio_data->kind == nct6776) { w83627ehf_probe()
2179 } else if (sio_data->kind == w83667hg_b) { w83627ehf_probe()
2226 } else if (sio_data->kind == w83627uhg) { w83627ehf_probe()
2272 if (sio_data->kind == w83667hg) { w83627ehf_probe()
2289 if (sio_data->kind == nct6775) { w83627ehf_probe()
2302 } else if (sio_data->kind == nct6776) { w83627ehf_probe()
2313 } else if (sio_data->kind == w83667hg_b) { w83627ehf_probe()
2346 if (sio_data->kind == w83627uhg) w83627ehf_probe()
2352 w83627ehf_init_device(data, sio_data->kind); w83627ehf_probe()
2355 superio_enter(sio_data->sioreg); w83627ehf_probe()
2357 if (sio_data->kind == w83667hg || sio_data->kind == w83667hg_b || w83627ehf_probe()
2358 sio_data->kind == nct6775 || sio_data->kind == nct6776) { w83627ehf_probe()
2364 superio_select(sio_data->sioreg, W83667HG_LD_VID); w83627ehf_probe()
2365 data->vid = superio_inb(sio_data->sioreg, 0xe3); w83627ehf_probe()
2369 } else if (sio_data->kind != w83627uhg) { w83627ehf_probe()
2370 superio_select(sio_data->sioreg, W83627EHF_LD_HWM); w83627ehf_probe()
2371 if (superio_inb(sio_data->sioreg, SIO_REG_VID_CTRL) & 0x80) { w83627ehf_probe()
2379 if (sio_data->kind == w83627ehf) { w83627ehf_probe()
2380 en_vrm10 = superio_inb(sio_data->sioreg, w83627ehf_probe()
2385 superio_outb(sio_data->sioreg, w83627ehf_probe()
2392 superio_outb(sio_data->sioreg, w83627ehf_probe()
2398 data->vid = superio_inb(sio_data->sioreg, w83627ehf_probe()
2400 if (sio_data->kind == w83627ehf) /* 6 VID pins only */ w83627ehf_probe()
2413 (sio_data->kind == nct6775 || sio_data->kind == nct6776)) { w83627ehf_probe()
2416 superio_select(sio_data->sioreg, W83627EHF_LD_HWM); w83627ehf_probe()
2417 tmp = superio_inb(sio_data->sioreg, NCT6775_REG_FAN_DEBOUNCE); w83627ehf_probe()
2418 if (sio_data->kind == nct6776) w83627ehf_probe()
2419 superio_outb(sio_data->sioreg, NCT6775_REG_FAN_DEBOUNCE, w83627ehf_probe()
2422 superio_outb(sio_data->sioreg, NCT6775_REG_FAN_DEBOUNCE, w83627ehf_probe()
2427 superio_exit(sio_data->sioreg); w83627ehf_probe()
2429 w83627ehf_check_fan_inputs(sio_data, data); w83627ehf_probe()
2492 if (sio_data->kind != nct6776) { w83627ehf_probe()
2564 if (sio_data->kind == nct6776) { w83627ehf_probe()
2605 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); w83627ehf_suspend() local
2609 if (sio_data->kind == nct6775) { w83627ehf_suspend()
2621 struct w83627ehf_sio_data *sio_data = dev_get_platdata(dev); w83627ehf_resume() local
2666 if (sio_data->kind == nct6775) { w83627ehf_resume()
2701 struct w83627ehf_sio_data *sio_data) w83627ehf_find()
2725 sio_data->kind = w83627ehf; w83627ehf_find()
2729 sio_data->kind = w83627ehf; w83627ehf_find()
2733 sio_data->kind = w83627dhg; w83627ehf_find()
2737 sio_data->kind = w83627dhg_p; w83627ehf_find()
2741 sio_data->kind = w83627uhg; w83627ehf_find()
2745 sio_data->kind = w83667hg; w83627ehf_find()
2749 sio_data->kind = w83667hg_b; w83627ehf_find()
2753 sio_data->kind = nct6775; w83627ehf_find()
2757 sio_data->kind = nct6776; w83627ehf_find()
2787 sio_data->sioreg = sioaddr; w83627ehf_find()
2805 struct w83627ehf_sio_data sio_data; sensors_w83627ehf_init() local
2808 * initialize sio_data->kind and sio_data->sioreg. sensors_w83627ehf_init()
2814 if (w83627ehf_find(0x2e, &address, &sio_data) && sensors_w83627ehf_init()
2815 w83627ehf_find(0x4e, &address, &sio_data)) sensors_w83627ehf_init()
2829 err = platform_device_add_data(pdev, &sio_data, sensors_w83627ehf_init()
2700 w83627ehf_find(int sioaddr, unsigned short *addr, struct w83627ehf_sio_data *sio_data) w83627ehf_find() argument
H A Dsmsc47m1.c530 static int __init smsc47m1_find(struct smsc47m1_sio_data *sio_data) smsc47m1_find() argument
555 sio_data->type = smsc47m1; smsc47m1_find()
559 sio_data->type = smsc47m1; smsc47m1_find()
563 sio_data->type = smsc47m1; smsc47m1_find()
567 sio_data->type = smsc47m1; smsc47m1_find()
577 sio_data->type = smsc47m2; smsc47m1_find()
597 sio_data->activate = superio_inb(SUPERIO_REG_ACT); smsc47m1_find()
598 if ((sio_data->activate & 0x01) == 0) { smsc47m1_find()
600 superio_outb(SUPERIO_REG_ACT, sio_data->activate | 0x01); smsc47m1_find()
608 static void smsc47m1_restore(const struct smsc47m1_sio_data *sio_data) smsc47m1_restore() argument
610 if ((sio_data->activate & 0x01) == 0) { smsc47m1_restore()
615 superio_outb(SUPERIO_REG_ACT, sio_data->activate); smsc47m1_restore()
707 struct smsc47m1_sio_data *sio_data = dev_get_platdata(dev); smsc47m1_probe() local
719 err = smsc47m1_handle_resources(res->start, sio_data->type, smsc47m1_probe()
729 data->type = sio_data->type; smsc47m1_probe()
730 data->name = names[sio_data->type]; smsc47m1_probe()
858 const struct smsc47m1_sio_data *sio_data) smsc47m1_device_add()
868 err = smsc47m1_handle_resources(address, sio_data->type, CHECK, NULL); smsc47m1_device_add()
885 err = platform_device_add_data(pdev, sio_data, smsc47m1_device_add()
910 struct smsc47m1_sio_data sio_data; sm_smsc47m1_init() local
912 err = smsc47m1_find(&sio_data); sm_smsc47m1_init()
918 err = smsc47m1_device_add(address, &sio_data); sm_smsc47m1_init()
930 smsc47m1_restore(&sio_data); sm_smsc47m1_init()
857 smsc47m1_device_add(unsigned short address, const struct smsc47m1_sio_data *sio_data) smsc47m1_device_add() argument
H A Dpc87427.c986 struct pc87427_sio_data *sio_data = dev_get_platdata(dev); pc87427_init_device() local
998 if (!(sio_data->has_fanin & (1 << i))) /* Not wired */ pc87427_init_device()
1009 if (!(sio_data->has_fanin & (1 << i))) /* Not wired */ pc87427_init_device()
1015 data->fan_enabled = sio_data->has_fanin; pc87427_init_device()
1020 if (!(sio_data->has_fanout & (1 << i))) /* Not wired */ pc87427_init_device()
1078 struct pc87427_sio_data *sio_data = dev_get_platdata(&pdev->dev); pc87427_probe() local
1087 data->address[0] = sio_data->address[0]; pc87427_probe()
1088 data->address[1] = sio_data->address[1]; pc87427_probe()
1162 static int __init pc87427_device_add(const struct pc87427_sio_data *sio_data) pc87427_device_add() argument
1172 if (!sio_data->address[i]) pc87427_device_add()
1174 res[res_count].start = sio_data->address[i]; pc87427_device_add()
1175 res[res_count].end = sio_data->address[i] + REGION_LENGTH - 1; pc87427_device_add()
1198 err = platform_device_add_data(pdev, sio_data, pc87427_device_add()
1219 static int __init pc87427_find(int sioaddr, struct pc87427_sio_data *sio_data) pc87427_find() argument
1233 sio_data->address[i] = 0; pc87427_find()
1258 sio_data->address[i] = val; pc87427_find()
1262 if (!sio_data->address[0] && !sio_data->address[1]) { pc87427_find()
1268 sio_data->has_fanin = (1 << 2) | (1 << 3); /* FANIN2, FANIN3 */ pc87427_find()
1272 sio_data->has_fanin |= (1 << 0); /* FANIN0 */ pc87427_find()
1274 sio_data->has_fanin |= (1 << 4); /* FANIN4 */ pc87427_find()
1278 sio_data->has_fanin |= (1 << 1); /* FANIN1 */ pc87427_find()
1282 sio_data->has_fanin |= (1 << 7); /* FANIN7 */ pc87427_find()
1285 sio_data->has_fanin |= (1 << 5); /* FANIN5 */ pc87427_find()
1288 sio_data->has_fanin |= (1 << 6); /* FANIN6 */ pc87427_find()
1291 sio_data->has_fanout = (1 << 0); /* FANOUT0 */ pc87427_find()
1293 sio_data->has_fanout |= (1 << 3); /* FANOUT3 */ pc87427_find()
1298 sio_data->has_fanout |= (1 << 1); /* FANOUT1 */ pc87427_find()
1300 sio_data->has_fanout |= (1 << 2); /* FANOUT2 */ pc87427_find()
1306 sio_data->has_fanout |= (1 << 1); /* FANOUT1 */ pc87427_find()
1308 sio_data->has_fanout |= (1 << 2); /* FANOUT2 */ pc87427_find()
1318 struct pc87427_sio_data sio_data; pc87427_init() local
1320 if (pc87427_find(0x2e, &sio_data) pc87427_init()
1321 && pc87427_find(0x4e, &sio_data)) pc87427_init()
1329 err = pc87427_device_add(&sio_data); pc87427_init()
H A Dw83627hf.c1276 struct w83627hf_sio_data *sio_data) w83627hf_find()
1289 sio_data->sioaddr = sioaddr; w83627hf_find()
1290 superio_enter(sio_data); w83627hf_find()
1291 val = force_id ? force_id : superio_inb(sio_data, DEVID); w83627hf_find()
1294 sio_data->type = w83627hf; w83627hf_find()
1297 sio_data->type = w83627thf; w83627hf_find()
1300 sio_data->type = w83697hf; w83627hf_find()
1303 sio_data->type = w83637hf; w83627hf_find()
1306 sio_data->type = w83687thf; w83627hf_find()
1315 superio_select(sio_data, W83627HF_LD_HWM); w83627hf_find()
1316 val = (superio_inb(sio_data, WINB_BASE_REG) << 8) | w83627hf_find()
1317 superio_inb(sio_data, WINB_BASE_REG + 1); w83627hf_find()
1324 val = superio_inb(sio_data, WINB_ACT_REG); w83627hf_find()
1327 superio_outb(sio_data, WINB_ACT_REG, val | 0x01); w83627hf_find()
1332 names[sio_data->type], *addr); w83627hf_find()
1335 superio_exit(sio_data); w83627hf_find()
1420 struct w83627hf_sio_data *sio_data = dev_get_platdata(dev); w83627hf_probe() local
1446 data->type = sio_data->type; w83627hf_probe()
1447 data->name = names[sio_data->type]; w83627hf_probe()
1641 struct w83627hf_sio_data *sio_data = dev_get_platdata(&pdev->dev); w83627thf_read_gpio5() local
1644 superio_enter(sio_data); w83627thf_read_gpio5()
1645 superio_select(sio_data, W83627HF_LD_GPIO5); w83627thf_read_gpio5()
1648 if (!(superio_inb(sio_data, W83627THF_GPIO5_EN) & (1<<3))) { w83627thf_read_gpio5()
1657 sel = superio_inb(sio_data, W83627THF_GPIO5_IOSR) & 0x3f; w83627thf_read_gpio5()
1665 res = superio_inb(sio_data, W83627THF_GPIO5_DR) & sel; w83627thf_read_gpio5()
1668 superio_exit(sio_data); w83627thf_read_gpio5()
1674 struct w83627hf_sio_data *sio_data = dev_get_platdata(&pdev->dev); w83687thf_read_vid() local
1677 superio_enter(sio_data); w83687thf_read_vid()
1678 superio_select(sio_data, W83627HF_LD_HWM); w83687thf_read_vid()
1681 if (!(superio_inb(sio_data, W83687THF_VID_EN) & (1 << 2))) { w83687thf_read_vid()
1687 if (!(superio_inb(sio_data, W83687THF_VID_CFG) & (1 << 4))) { w83687thf_read_vid()
1693 res = superio_inb(sio_data, W83687THF_VID_DATA) & 0x3f; w83687thf_read_vid()
1696 superio_exit(sio_data); w83687thf_read_vid()
1920 const struct w83627hf_sio_data *sio_data) w83627hf_device_add()
1947 err = platform_device_add_data(pdev, sio_data, w83627hf_device_add()
1972 struct w83627hf_sio_data sio_data; sensors_w83627hf_init() local
1974 if (w83627hf_find(0x2e, &address, &sio_data) sensors_w83627hf_init()
1975 && w83627hf_find(0x4e, &address, &sio_data)) sensors_w83627hf_init()
1983 err = w83627hf_device_add(address, &sio_data); sensors_w83627hf_init()
1275 w83627hf_find(int sioaddr, unsigned short *addr, struct w83627hf_sio_data *sio_data) w83627hf_find() argument
1919 w83627hf_device_add(unsigned short address, const struct w83627hf_sio_data *sio_data) w83627hf_device_add() argument
H A Df71805f.c1378 struct f71805f_sio_data *sio_data = dev_get_platdata(&pdev->dev); f71805f_probe() local
1402 data->name = names[sio_data->kind]; f71805f_probe()
1408 switch (sio_data->kind) { f71805f_probe()
1414 if (sio_data->fnsel1 & 0x01) f71805f_probe()
1416 if (sio_data->fnsel1 & 0x02) f71805f_probe()
1513 const struct f71805f_sio_data *sio_data) f71805f_device_add()
1540 err = platform_device_add_data(pdev, sio_data, f71805f_device_add()
1562 struct f71805f_sio_data *sio_data) f71805f_find()
1581 sio_data->kind = f71805f; f71805f_find()
1584 sio_data->kind = f71872f; f71805f_find()
1585 sio_data->fnsel1 = superio_inb(sioaddr, SIO_REG_FNSEL1); f71805f_find()
1607 names[sio_data->kind], *address, f71805f_find()
1619 struct f71805f_sio_data sio_data; f71805f_init() local
1621 if (f71805f_find(0x2e, &address, &sio_data) f71805f_init()
1622 && f71805f_find(0x4e, &address, &sio_data)) f71805f_init()
1630 err = f71805f_device_add(address, &sio_data); f71805f_init()
1512 f71805f_device_add(unsigned short address, const struct f71805f_sio_data *sio_data) f71805f_device_add() argument
1561 f71805f_find(int sioaddr, unsigned short *address, struct f71805f_sio_data *sio_data) f71805f_find() argument
H A Dnct6683.c1167 struct nct6683_sio_data *sio_data = dev->platform_data; nct6683_probe() local
1182 data->kind = sio_data->kind; nct6683_probe()
1183 data->sioreg = sio_data->sioreg; nct6683_probe()
1293 static int __init nct6683_find(int sioaddr, struct nct6683_sio_data *sio_data) nct6683_find() argument
1318 sio_data->kind = nct6683; nct6683_find()
1345 nct6683_chip_names[sio_data->kind], sioaddr, addr); nct6683_find()
1346 sio_data->sioreg = sioaddr; nct6683_find()
1365 struct nct6683_sio_data sio_data; sensors_nct6683_init() local
1377 * initialize sio_data->kind and sio_data->sioreg. sensors_nct6683_init()
1384 address = nct6683_find(sioaddr[i], &sio_data); sensors_nct6683_init()
1396 err = platform_device_add_data(pdev[i], &sio_data, sensors_nct6683_init()
H A Df71882fg.c2345 struct f71882fg_sio_data *sio_data = dev_get_platdata(&pdev->dev); f71882fg_probe() local
2346 int nr_fans = f71882fg_nr_fans[sio_data->type]; f71882fg_probe()
2347 int nr_temps = f71882fg_nr_temps[sio_data->type]; f71882fg_probe()
2358 data->type = sio_data->type; f71882fg_probe()
2628 static int __init f71882fg_find(int sioaddr, struct f71882fg_sio_data *sio_data) f71882fg_find() argument
2646 sio_data->type = f71808e; f71882fg_find()
2649 sio_data->type = f71808a; f71882fg_find()
2652 sio_data->type = f71858fg; f71882fg_find()
2655 sio_data->type = f71862fg; f71882fg_find()
2658 sio_data->type = f71868a; f71882fg_find()
2661 sio_data->type = f71869; f71882fg_find()
2664 sio_data->type = f71869a; f71882fg_find()
2667 sio_data->type = f71882fg; f71882fg_find()
2670 sio_data->type = f71889fg; f71882fg_find()
2673 sio_data->type = f71889ed; f71882fg_find()
2676 sio_data->type = f71889a; f71882fg_find()
2679 sio_data->type = f8000; f71882fg_find()
2682 sio_data->type = f81768d; f71882fg_find()
2685 sio_data->type = f81865f; f71882fg_find()
2688 sio_data->type = f81866a; f71882fg_find()
2697 if (sio_data->type == f71858fg) f71882fg_find()
2718 f71882fg_names[sio_data->type], (unsigned int)address, f71882fg_find()
2726 const struct f71882fg_sio_data *sio_data) f71882fg_device_add()
2750 err = platform_device_add_data(f71882fg_pdev, sio_data, f71882fg_device_add()
2775 struct f71882fg_sio_data sio_data; f71882fg_init() local
2777 memset(&sio_data, 0, sizeof(sio_data)); f71882fg_init()
2779 address = f71882fg_find(0x2e, &sio_data); f71882fg_init()
2781 address = f71882fg_find(0x4e, &sio_data); f71882fg_init()
2789 err = f71882fg_device_add(address, &sio_data); f71882fg_init()
2725 f71882fg_device_add(int address, const struct f71882fg_sio_data *sio_data) f71882fg_device_add() argument
H A Dnct6775.c3419 struct nct6775_sio_data *sio_data = dev_get_platdata(dev); nct6775_probe() local
3443 data->kind = sio_data->kind; nct6775_probe()
3444 data->sioreg = sio_data->sioreg; nct6775_probe()
4016 err = superio_enter(sio_data->sioreg); nct6775_probe()
4020 cr2a = superio_inb(sio_data->sioreg, 0x2a); nct6775_probe()
4041 superio_select(sio_data->sioreg, NCT6775_LD_VID); nct6775_probe()
4042 data->vid = superio_inb(sio_data->sioreg, 0xe3); nct6775_probe()
4049 superio_select(sio_data->sioreg, NCT6775_LD_HWM); nct6775_probe()
4050 tmp = superio_inb(sio_data->sioreg, nct6775_probe()
4069 superio_outb(sio_data->sioreg, NCT6775_REG_CR_FAN_DEBOUNCE, nct6775_probe()
4077 superio_exit(sio_data->sioreg); nct6775_probe()
4224 static int __init nct6775_find(int sioaddr, struct nct6775_sio_data *sio_data) nct6775_find() argument
4241 sio_data->kind = nct6106; nct6775_find()
4244 sio_data->kind = nct6775; nct6775_find()
4247 sio_data->kind = nct6776; nct6775_find()
4250 sio_data->kind = nct6779; nct6775_find()
4253 sio_data->kind = nct6791; nct6775_find()
4256 sio_data->kind = nct6792; nct6775_find()
4259 sio_data->kind = nct6793; nct6775_find()
4286 if (sio_data->kind == nct6791 || sio_data->kind == nct6792 || nct6775_find()
4287 sio_data->kind == nct6793) nct6775_find()
4292 nct6775_sio_names[sio_data->kind], sioaddr, addr); nct6775_find()
4293 sio_data->sioreg = sioaddr; nct6775_find()
4312 struct nct6775_sio_data sio_data; sensors_nct6775_init() local
4320 * initialize sio_data->kind and sio_data->sioreg. sensors_nct6775_init()
4327 address = nct6775_find(sioaddr[i], &sio_data); sensors_nct6775_init()
4339 err = platform_device_add_data(pdev[i], &sio_data, sensors_nct6775_init()

Completed in 619 milliseconds