Lines Matching refs:index
652 int index = to_sensor_dev_attr(devattr)->index;
655 type = i8k_get_temp_type(index);
667 int index = to_sensor_dev_attr(devattr)->index;
670 temp = i8k_get_temp(index);
688 int index = to_sensor_dev_attr(devattr)->index;
692 type = i8k_get_fan_type(index);
710 int index = to_sensor_dev_attr(devattr)->index;
713 fan_speed = i8k_get_fan_speed(index);
722 int index = to_sensor_dev_attr(devattr)->index;
725 status = i8k_get_fan_status(index);
735 int index = to_sensor_dev_attr(attr)->index;
745 err = i8k_set_fan(index, val);
846 int index)
848 if (disallow_fan_support && index >= 20)
851 (index == 21 || index == 25 || index == 28))
853 if (index >= 0 && index <= 1 &&
856 if (index >= 2 && index <= 3 &&
859 if (index >= 4 && index <= 5 &&
862 if (index >= 6 && index <= 7 &&
865 if (index >= 8 && index <= 9 &&
868 if (index >= 10 && index <= 11 &&
871 if (index >= 12 && index <= 13 &&
874 if (index >= 14 && index <= 15 &&
877 if (index >= 16 && index <= 17 &&
880 if (index >= 18 && index <= 19 &&
884 if (index >= 20 && index <= 23 &&
887 if (index >= 24 && index <= 26 &&
890 if (index >= 27 && index <= 29 &&
894 if (index == 23 && !auto_fan)