Lines Matching refs:sio_data
1845 struct it87_sio_data *sio_data) in it87_find() argument
1861 sio_data->type = it87; in it87_find()
1864 sio_data->type = it8712; in it87_find()
1868 sio_data->type = it8716; in it87_find()
1871 sio_data->type = it8718; in it87_find()
1874 sio_data->type = it8720; in it87_find()
1877 sio_data->type = it8721; in it87_find()
1880 sio_data->type = it8728; in it87_find()
1883 sio_data->type = it8732; in it87_find()
1886 sio_data->type = it8771; in it87_find()
1889 sio_data->type = it8772; in it87_find()
1892 sio_data->type = it8781; in it87_find()
1895 sio_data->type = it8782; in it87_find()
1898 sio_data->type = it8783; in it87_find()
1901 sio_data->type = it8786; in it87_find()
1904 sio_data->type = it8790; in it87_find()
1908 sio_data->type = it8603; in it87_find()
1911 sio_data->type = it8620; in it87_find()
1933 sio_data->revision = superio_inb(DEVREV) & 0x0f; in it87_find()
1935 it87_devices[sio_data->type].suffix, in it87_find()
1936 *address, sio_data->revision); in it87_find()
1938 config = &it87_devices[sio_data->type]; in it87_find()
1942 sio_data->internal |= (1 << 1); in it87_find()
1945 sio_data->internal |= (1 << 2); in it87_find()
1948 if (sio_data->type != it8603) in it87_find()
1949 sio_data->skip_in |= (1 << 9); in it87_find()
1952 sio_data->skip_vid = 1; in it87_find()
1955 if (sio_data->type == it87) { in it87_find()
1958 sio_data->beep_pin = superio_inb(IT87_SIO_BEEP_PIN_REG) & 0x3f; in it87_find()
1959 } else if (sio_data->type == it8783) { in it87_find()
1972 sio_data->skip_fan |= (1 << 2); in it87_find()
1975 sio_data->skip_pwm |= (1 << 2); in it87_find()
1979 sio_data->skip_fan |= (1 << 1); in it87_find()
1981 sio_data->skip_pwm |= (1 << 1); in it87_find()
1985 sio_data->skip_in |= (1 << 5); /* No VIN5 */ in it87_find()
1989 sio_data->skip_in |= (1 << 6); /* No VIN6 */ in it87_find()
2019 sio_data->internal |= (1 << 0); in it87_find()
2021 sio_data->internal |= (1 << 1); in it87_find()
2023 sio_data->beep_pin = superio_inb(IT87_SIO_BEEP_PIN_REG) & 0x3f; in it87_find()
2024 } else if (sio_data->type == it8603) { in it87_find()
2033 sio_data->skip_pwm |= (1 << 2); in it87_find()
2035 sio_data->skip_fan |= (1 << 2); in it87_find()
2040 sio_data->skip_pwm |= (1 << 1); in it87_find()
2042 sio_data->skip_fan |= (1 << 1); in it87_find()
2044 sio_data->skip_in |= (1 << 5); /* No VIN5 */ in it87_find()
2045 sio_data->skip_in |= (1 << 6); /* No VIN6 */ in it87_find()
2047 sio_data->internal |= (1 << 3); /* in9 is AVCC */ in it87_find()
2049 sio_data->beep_pin = superio_inb(IT87_SIO_BEEP_PIN_REG) & 0x3f; in it87_find()
2050 } else if (sio_data->type == it8620) { in it87_find()
2058 sio_data->skip_fan |= (1 << 3); in it87_find()
2060 sio_data->skip_fan |= (1 << 4); in it87_find()
2065 sio_data->skip_pwm |= (1 << 2); in it87_find()
2067 sio_data->skip_fan |= (1 << 2); in it87_find()
2072 sio_data->skip_pwm |= (1 << 1); in it87_find()
2074 sio_data->skip_fan |= (1 << 1); in it87_find()
2076 sio_data->beep_pin = superio_inb(IT87_SIO_BEEP_PIN_REG) & 0x3f; in it87_find()
2084 if (!sio_data->skip_vid) { in it87_find()
2088 sio_data->skip_vid = 1; in it87_find()
2094 sio_data->skip_pwm |= (1 << 2); in it87_find()
2096 sio_data->skip_fan |= (1 << 2); in it87_find()
2101 sio_data->skip_pwm |= (1 << 1); in it87_find()
2103 sio_data->skip_fan |= (1 << 1); in it87_find()
2105 if ((sio_data->type == it8718 || sio_data->type == it8720) in it87_find()
2106 && !(sio_data->skip_vid)) in it87_find()
2107 sio_data->vid_value = superio_inb(IT87_SIO_VID_REG); in it87_find()
2111 uart6 = sio_data->type == it8782 && (reg & (1 << 2)); in it87_find()
2127 if ((sio_data->type == it8720 || uart6) && !(reg & (1 << 1))) { in it87_find()
2133 sio_data->internal |= (1 << 0); in it87_find()
2135 sio_data->internal |= (1 << 1); in it87_find()
2147 sio_data->skip_in |= (1 << 5) | (1 << 6); in it87_find()
2148 sio_data->skip_temp |= (1 << 2); in it87_find()
2151 sio_data->beep_pin = superio_inb(IT87_SIO_BEEP_PIN_REG) & 0x3f; in it87_find()
2153 if (sio_data->beep_pin) in it87_find()
2171 sio_data->skip_pwm = (1 << 1); in it87_find()
2183 struct it87_sio_data *sio_data = dev_get_platdata(dev); in it87_remove_files() local
2188 if (sio_data->skip_in & (1 << i)) in it87_remove_files()
2202 if (sio_data->beep_pin) in it87_remove_files()
2210 if (sio_data->beep_pin) in it87_remove_files()
2218 if (sio_data->skip_pwm & (1 << i)) in it87_remove_files()
2225 if (!sio_data->skip_vid) in it87_remove_files()
2235 struct it87_sio_data *sio_data = dev_get_platdata(dev); in it87_probe() local
2254 data->type = sio_data->type; in it87_probe()
2255 data->features = it87_devices[sio_data->type].features; in it87_probe()
2256 data->peci_mask = it87_devices[sio_data->type].peci_mask; in it87_probe()
2257 data->old_peci_mask = it87_devices[sio_data->type].old_peci_mask; in it87_probe()
2258 data->name = it87_devices[sio_data->type].name; in it87_probe()
2266 if (sio_data->revision >= 0x03) { in it87_probe()
2272 if (sio_data->revision >= 0x08) { in it87_probe()
2296 if (sio_data->internal & (1 << 0)) in it87_probe()
2298 if (sio_data->internal & (1 << 1)) in it87_probe()
2300 if (sio_data->internal & (1 << 2)) in it87_probe()
2302 if (sio_data->internal & (1 << 3)) in it87_probe()
2304 } else if (sio_data->type == it8781 || sio_data->type == it8782 || in it87_probe()
2305 sio_data->type == it8783) { in it87_probe()
2306 if (sio_data->internal & (1 << 0)) in it87_probe()
2308 if (sio_data->internal & (1 << 1)) in it87_probe()
2313 if (sio_data->skip_temp & (1 << 2)) { in it87_probe()
2314 if (sio_data->type == it8782 in it87_probe()
2328 if (sio_data->skip_in & (1 << i)) in it87_probe()
2333 if (sio_data->beep_pin && it87_attributes_in_beep[i]) { in it87_probe()
2353 if (sio_data->beep_pin) { in it87_probe()
2377 if (sio_data->beep_pin) { in it87_probe()
2401 if (sio_data->skip_pwm & (1 << i)) in it87_probe()
2417 if (!sio_data->skip_vid) { in it87_probe()
2420 data->vid = sio_data->vid_value; in it87_probe()
2428 if (!(sio_data->internal & (1 << i))) in it87_probe()
2541 struct it87_sio_data *sio_data = dev_get_platdata(&pdev->dev); in it87_init_device() local
2598 mask = 0x70 & ~(sio_data->skip_fan << 4); in it87_init_device()
2631 data->has_fan &= ~sio_data->skip_fan; in it87_init_device()
2772 const struct it87_sio_data *sio_data) in it87_device_add() argument
2799 err = platform_device_add_data(pdev, sio_data, in it87_device_add()
2824 struct it87_sio_data sio_data; in sm_it87_init() local
2826 memset(&sio_data, 0, sizeof(struct it87_sio_data)); in sm_it87_init()
2827 err = it87_find(&isa_address, &sio_data); in sm_it87_init()
2834 err = it87_device_add(isa_address, &sio_data); in sm_it87_init()