Lines Matching refs:sio_data

2397 			    struct it87_sio_data *sio_data)  in it87_find()  argument
2413 sio_data->type = it87; in it87_find()
2416 sio_data->type = it8712; in it87_find()
2420 sio_data->type = it8716; in it87_find()
2423 sio_data->type = it8718; in it87_find()
2426 sio_data->type = it8720; in it87_find()
2429 sio_data->type = it8721; in it87_find()
2432 sio_data->type = it8728; in it87_find()
2435 sio_data->type = it8732; in it87_find()
2438 sio_data->type = it8792; in it87_find()
2441 sio_data->type = it8771; in it87_find()
2444 sio_data->type = it8772; in it87_find()
2447 sio_data->type = it8781; in it87_find()
2450 sio_data->type = it8782; in it87_find()
2453 sio_data->type = it8783; in it87_find()
2456 sio_data->type = it8786; in it87_find()
2459 sio_data->type = it8790; in it87_find()
2463 sio_data->type = it8603; in it87_find()
2466 sio_data->type = it8620; in it87_find()
2469 sio_data->type = it8622; in it87_find()
2472 sio_data->type = it8628; in it87_find()
2494 sio_data->sioaddr = sioaddr; in it87_find()
2495 sio_data->revision = superio_inb(sioaddr, DEVREV) & 0x0f; in it87_find()
2497 it87_devices[sio_data->type].suffix, in it87_find()
2498 *address, sio_data->revision); in it87_find()
2500 config = &it87_devices[sio_data->type]; in it87_find()
2504 sio_data->internal |= BIT(1); in it87_find()
2507 sio_data->internal |= BIT(2); in it87_find()
2511 sio_data->internal |= BIT(3); /* in9 is AVCC */ in it87_find()
2513 sio_data->skip_in |= BIT(9); in it87_find()
2516 sio_data->skip_pwm |= BIT(3) | BIT(4) | BIT(5); in it87_find()
2518 sio_data->skip_pwm |= BIT(5); in it87_find()
2521 sio_data->skip_vid = 1; in it87_find()
2524 if (sio_data->type == it87) { in it87_find()
2527 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2529 } else if (sio_data->type == it8783) { in it87_find()
2542 sio_data->skip_fan |= BIT(2); in it87_find()
2545 sio_data->skip_pwm |= BIT(2); in it87_find()
2549 sio_data->skip_fan |= BIT(1); in it87_find()
2551 sio_data->skip_pwm |= BIT(1); in it87_find()
2555 sio_data->skip_in |= BIT(5); /* No VIN5 */ in it87_find()
2559 sio_data->skip_in |= BIT(6); /* No VIN6 */ in it87_find()
2583 sio_data->need_in7_reroute = true; in it87_find()
2591 sio_data->internal |= BIT(0); in it87_find()
2593 sio_data->internal |= BIT(1); in it87_find()
2595 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2597 } else if (sio_data->type == it8603) { in it87_find()
2606 sio_data->skip_pwm |= BIT(2); in it87_find()
2608 sio_data->skip_fan |= BIT(2); in it87_find()
2613 sio_data->skip_pwm |= BIT(1); in it87_find()
2615 sio_data->skip_fan |= BIT(1); in it87_find()
2617 sio_data->skip_in |= BIT(5); /* No VIN5 */ in it87_find()
2618 sio_data->skip_in |= BIT(6); /* No VIN6 */ in it87_find()
2620 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2622 } else if (sio_data->type == it8620 || sio_data->type == it8628) { in it87_find()
2630 sio_data->skip_pwm |= BIT(4); in it87_find()
2635 sio_data->skip_fan |= BIT(3); in it87_find()
2637 sio_data->skip_fan |= BIT(4); in it87_find()
2642 sio_data->skip_pwm |= BIT(2); in it87_find()
2644 sio_data->skip_fan |= BIT(2); in it87_find()
2649 sio_data->skip_pwm |= BIT(3); in it87_find()
2654 sio_data->skip_pwm |= BIT(1); in it87_find()
2656 sio_data->skip_fan |= BIT(1); in it87_find()
2659 sio_data->skip_pwm |= BIT(5); in it87_find()
2660 sio_data->skip_fan |= BIT(5); in it87_find()
2666 sio_data->internal |= BIT(0); in it87_find()
2668 sio_data->skip_in |= BIT(9); in it87_find()
2670 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2672 } else if (sio_data->type == it8622) { in it87_find()
2680 sio_data->skip_fan |= BIT(3); in it87_find()
2682 sio_data->skip_pwm |= BIT(3); in it87_find()
2687 sio_data->skip_pwm |= BIT(2); in it87_find()
2689 sio_data->skip_fan |= BIT(2); in it87_find()
2691 sio_data->skip_pwm |= BIT(4); in it87_find()
2693 sio_data->skip_fan |= BIT(4); in it87_find()
2698 sio_data->skip_pwm |= BIT(1); in it87_find()
2700 sio_data->skip_fan |= BIT(1); in it87_find()
2705 sio_data->skip_in |= BIT(9); in it87_find()
2707 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2718 switch (sio_data->type) { in it87_find()
2721 sio_data->skip_fan |= BIT(3); in it87_find()
2723 sio_data->skip_fan |= BIT(4); in it87_find()
2729 sio_data->skip_fan |= BIT(3); in it87_find()
2731 sio_data->skip_fan |= BIT(4); in it87_find()
2739 if (!sio_data->skip_vid) { in it87_find()
2743 sio_data->skip_vid = 1; in it87_find()
2749 sio_data->skip_pwm |= BIT(2); in it87_find()
2751 sio_data->skip_fan |= BIT(2); in it87_find()
2756 sio_data->skip_pwm |= BIT(1); in it87_find()
2758 sio_data->skip_fan |= BIT(1); in it87_find()
2760 if ((sio_data->type == it8718 || sio_data->type == it8720) && in it87_find()
2761 !(sio_data->skip_vid)) in it87_find()
2762 sio_data->vid_value = superio_inb(sioaddr, in it87_find()
2767 uart6 = sio_data->type == it8782 && (reg & BIT(2)); in it87_find()
2783 if ((sio_data->type == it8720 || uart6) && !(reg & BIT(1))) { in it87_find()
2786 sio_data->need_in7_reroute = true; in it87_find()
2790 sio_data->internal |= BIT(0); in it87_find()
2792 sio_data->internal |= BIT(1); in it87_find()
2804 sio_data->skip_in |= BIT(5) | BIT(6); in it87_find()
2805 sio_data->skip_temp |= BIT(2); in it87_find()
2808 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2811 if (sio_data->beep_pin) in it87_find()
2829 sio_data->skip_pwm = BIT(1); in it87_find()
2876 struct it87_sio_data *sio_data = dev_get_platdata(&pdev->dev); in it87_check_tachometers_reset() local
2880 mask = 0x70 & ~(sio_data->skip_fan << 4); in it87_check_tachometers_reset()
2918 struct it87_sio_data *sio_data = dev_get_platdata(&pdev->dev); in it87_init_device() local
2972 data->has_fan &= ~sio_data->skip_fan; in it87_init_device()
2979 sio_data->skip_pwm |= BIT(4); in it87_init_device()
2981 sio_data->skip_pwm |= BIT(5); in it87_init_device()
3048 struct it87_sio_data *sio_data = dev_get_platdata(dev); in it87_probe() local
3066 data->sioaddr = sio_data->sioaddr; in it87_probe()
3067 data->type = sio_data->type; in it87_probe()
3068 data->features = it87_devices[sio_data->type].features; in it87_probe()
3069 data->peci_mask = it87_devices[sio_data->type].peci_mask; in it87_probe()
3070 data->old_peci_mask = it87_devices[sio_data->type].old_peci_mask; in it87_probe()
3078 if (sio_data->revision >= 0x03) { in it87_probe()
3084 if (sio_data->revision >= 0x08) { in it87_probe()
3111 if (sio_data->internal & BIT(0)) in it87_probe()
3113 if (sio_data->internal & BIT(1)) in it87_probe()
3115 if (sio_data->internal & BIT(2)) in it87_probe()
3117 if (sio_data->internal & BIT(3)) in it87_probe()
3119 } else if (sio_data->type == it8781 || sio_data->type == it8782 || in it87_probe()
3120 sio_data->type == it8783) { in it87_probe()
3121 if (sio_data->internal & BIT(0)) in it87_probe()
3123 if (sio_data->internal & BIT(1)) in it87_probe()
3128 if (sio_data->skip_temp & BIT(2)) { in it87_probe()
3129 if (sio_data->type == it8782 && in it87_probe()
3134 data->in_internal = sio_data->internal; in it87_probe()
3135 data->need_in7_reroute = sio_data->need_in7_reroute; in it87_probe()
3136 data->has_in = 0x3ff & ~sio_data->skip_in; in it87_probe()
3158 data->has_beep = !!sio_data->beep_pin; in it87_probe()
3163 if (!sio_data->skip_vid) { in it87_probe()
3167 data->vid = sio_data->vid_value; in it87_probe()
3178 data->has_pwm &= ~sio_data->skip_pwm; in it87_probe()
3186 it87_devices[sio_data->type].name, in it87_probe()
3261 const struct it87_sio_data *sio_data) in it87_device_add() argument
3286 err = platform_device_add_data(pdev, sio_data, in it87_device_add()
3310 struct it87_sio_data sio_data; in sm_it87_init() local
3320 memset(&sio_data, 0, sizeof(struct it87_sio_data)); in sm_it87_init()
3322 err = it87_find(sioaddr[i], &isa_address[i], &sio_data); in sm_it87_init()
3332 err = it87_device_add(i, isa_address[i], &sio_data); in sm_it87_init()
3342 if (sio_data.type == it87) in sm_it87_init()