Lines Matching refs:sio_data

1819 	struct it87_sio_data *sio_data)  in it87_find()  argument
1835 sio_data->type = it87; in it87_find()
1838 sio_data->type = it8712; in it87_find()
1842 sio_data->type = it8716; in it87_find()
1845 sio_data->type = it8718; in it87_find()
1848 sio_data->type = it8720; in it87_find()
1851 sio_data->type = it8721; in it87_find()
1854 sio_data->type = it8728; in it87_find()
1857 sio_data->type = it8771; in it87_find()
1860 sio_data->type = it8772; in it87_find()
1863 sio_data->type = it8781; in it87_find()
1866 sio_data->type = it8782; in it87_find()
1869 sio_data->type = it8783; in it87_find()
1872 sio_data->type = it8786; in it87_find()
1875 sio_data->type = it8790; in it87_find()
1879 sio_data->type = it8603; in it87_find()
1882 sio_data->type = it8620; in it87_find()
1904 sio_data->revision = superio_inb(DEVREV) & 0x0f; in it87_find()
1906 it87_devices[sio_data->type].suffix, in it87_find()
1907 *address, sio_data->revision); in it87_find()
1909 config = &it87_devices[sio_data->type]; in it87_find()
1913 sio_data->internal |= (1 << 1); in it87_find()
1916 sio_data->internal |= (1 << 2); in it87_find()
1919 if (sio_data->type != it8603) in it87_find()
1920 sio_data->skip_in |= (1 << 9); in it87_find()
1923 sio_data->skip_vid = 1; in it87_find()
1926 if (sio_data->type == it87) { in it87_find()
1929 sio_data->beep_pin = superio_inb(IT87_SIO_BEEP_PIN_REG) & 0x3f; in it87_find()
1930 } else if (sio_data->type == it8783) { in it87_find()
1943 sio_data->skip_fan |= (1 << 2); in it87_find()
1946 sio_data->skip_pwm |= (1 << 2); in it87_find()
1950 sio_data->skip_fan |= (1 << 1); in it87_find()
1952 sio_data->skip_pwm |= (1 << 1); in it87_find()
1956 sio_data->skip_in |= (1 << 5); /* No VIN5 */ in it87_find()
1960 sio_data->skip_in |= (1 << 6); /* No VIN6 */ in it87_find()
1990 sio_data->internal |= (1 << 0); in it87_find()
1992 sio_data->internal |= (1 << 1); in it87_find()
1994 sio_data->beep_pin = superio_inb(IT87_SIO_BEEP_PIN_REG) & 0x3f; in it87_find()
1995 } else if (sio_data->type == it8603) { in it87_find()
2004 sio_data->skip_pwm |= (1 << 2); in it87_find()
2006 sio_data->skip_fan |= (1 << 2); in it87_find()
2011 sio_data->skip_pwm |= (1 << 1); in it87_find()
2013 sio_data->skip_fan |= (1 << 1); in it87_find()
2015 sio_data->skip_in |= (1 << 5); /* No VIN5 */ in it87_find()
2016 sio_data->skip_in |= (1 << 6); /* No VIN6 */ in it87_find()
2018 sio_data->internal |= (1 << 3); /* in9 is AVCC */ in it87_find()
2020 sio_data->beep_pin = superio_inb(IT87_SIO_BEEP_PIN_REG) & 0x3f; in it87_find()
2021 } else if (sio_data->type == it8620) { in it87_find()
2029 sio_data->skip_fan |= (1 << 3); in it87_find()
2031 sio_data->skip_fan |= (1 << 4); in it87_find()
2036 sio_data->skip_pwm |= (1 << 2); in it87_find()
2038 sio_data->skip_fan |= (1 << 2); in it87_find()
2043 sio_data->skip_pwm |= (1 << 1); in it87_find()
2045 sio_data->skip_fan |= (1 << 1); in it87_find()
2047 sio_data->beep_pin = superio_inb(IT87_SIO_BEEP_PIN_REG) & 0x3f; in it87_find()
2055 if (!sio_data->skip_vid) { in it87_find()
2059 sio_data->skip_vid = 1; 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 if ((sio_data->type == it8718 || sio_data->type == it8720) in it87_find()
2077 && !(sio_data->skip_vid)) in it87_find()
2078 sio_data->vid_value = superio_inb(IT87_SIO_VID_REG); in it87_find()
2082 uart6 = sio_data->type == it8782 && (reg & (1 << 2)); in it87_find()
2098 if ((sio_data->type == it8720 || uart6) && !(reg & (1 << 1))) { in it87_find()
2104 sio_data->internal |= (1 << 0); in it87_find()
2106 sio_data->internal |= (1 << 1); in it87_find()
2118 sio_data->skip_in |= (1 << 5) | (1 << 6); in it87_find()
2119 sio_data->skip_temp |= (1 << 2); in it87_find()
2122 sio_data->beep_pin = superio_inb(IT87_SIO_BEEP_PIN_REG) & 0x3f; in it87_find()
2124 if (sio_data->beep_pin) in it87_find()
2142 sio_data->skip_pwm = (1 << 1); in it87_find()
2154 struct it87_sio_data *sio_data = dev_get_platdata(dev); in it87_remove_files() local
2159 if (sio_data->skip_in & (1 << i)) in it87_remove_files()
2173 if (sio_data->beep_pin) in it87_remove_files()
2181 if (sio_data->beep_pin) in it87_remove_files()
2189 if (sio_data->skip_pwm & (1 << i)) in it87_remove_files()
2196 if (!sio_data->skip_vid) in it87_remove_files()
2206 struct it87_sio_data *sio_data = dev_get_platdata(dev); in it87_probe() local
2225 data->type = sio_data->type; in it87_probe()
2226 data->features = it87_devices[sio_data->type].features; in it87_probe()
2227 data->peci_mask = it87_devices[sio_data->type].peci_mask; in it87_probe()
2228 data->old_peci_mask = it87_devices[sio_data->type].old_peci_mask; in it87_probe()
2229 data->name = it87_devices[sio_data->type].name; in it87_probe()
2237 if (sio_data->revision >= 0x03) { in it87_probe()
2243 if (sio_data->revision >= 0x08) { in it87_probe()
2267 if (sio_data->internal & (1 << 0)) in it87_probe()
2269 if (sio_data->internal & (1 << 1)) in it87_probe()
2271 if (sio_data->internal & (1 << 2)) in it87_probe()
2273 if (sio_data->internal & (1 << 3)) in it87_probe()
2275 } else if (sio_data->type == it8781 || sio_data->type == it8782 || in it87_probe()
2276 sio_data->type == it8783) { in it87_probe()
2277 if (sio_data->internal & (1 << 0)) in it87_probe()
2279 if (sio_data->internal & (1 << 1)) in it87_probe()
2284 if (sio_data->skip_temp & (1 << 2)) { in it87_probe()
2285 if (sio_data->type == it8782 in it87_probe()
2299 if (sio_data->skip_in & (1 << i)) in it87_probe()
2304 if (sio_data->beep_pin && it87_attributes_in_beep[i]) { in it87_probe()
2324 if (sio_data->beep_pin) { in it87_probe()
2348 if (sio_data->beep_pin) { in it87_probe()
2372 if (sio_data->skip_pwm & (1 << i)) in it87_probe()
2388 if (!sio_data->skip_vid) { in it87_probe()
2391 data->vid = sio_data->vid_value; in it87_probe()
2399 if (!(sio_data->internal & (1 << i))) in it87_probe()
2512 struct it87_sio_data *sio_data = dev_get_platdata(&pdev->dev); in it87_init_device() local
2569 mask = 0x70 & ~(sio_data->skip_fan << 4); in it87_init_device()
2602 data->has_fan &= ~sio_data->skip_fan; in it87_init_device()
2743 const struct it87_sio_data *sio_data) in it87_device_add() argument
2770 err = platform_device_add_data(pdev, sio_data, in it87_device_add()
2795 struct it87_sio_data sio_data; in sm_it87_init() local
2797 memset(&sio_data, 0, sizeof(struct it87_sio_data)); in sm_it87_init()
2798 err = it87_find(&isa_address, &sio_data); in sm_it87_init()
2805 err = it87_device_add(isa_address, &sio_data); in sm_it87_init()