Lines Matching refs:fan_div
464 u8 fan_div[5]; member
601 | (data->fan_div[0] & 0x7); in nct6775_write_fan_div()
606 | ((data->fan_div[1] << 4) & 0x70); in nct6775_write_fan_div()
611 | (data->fan_div[2] & 0x7); in nct6775_write_fan_div()
616 | ((data->fan_div[3] << 4) & 0x70); in nct6775_write_fan_div()
630 | ((data->fan_div[0] & 0x03) << 4); in w83627ehf_write_fan_div()
635 | ((data->fan_div[0] & 0x04) << 3); in w83627ehf_write_fan_div()
640 | ((data->fan_div[1] & 0x03) << 6); in w83627ehf_write_fan_div()
645 | ((data->fan_div[1] & 0x04) << 4); in w83627ehf_write_fan_div()
650 | ((data->fan_div[2] & 0x03) << 6); in w83627ehf_write_fan_div()
653 | ((data->fan_div[2] & 0x04) << 5); in w83627ehf_write_fan_div()
658 | (data->fan_div[3] & 0x03); in w83627ehf_write_fan_div()
661 | ((data->fan_div[3] & 0x04) << 5); in w83627ehf_write_fan_div()
666 | ((data->fan_div[4] & 0x03) << 2) in w83627ehf_write_fan_div()
667 | ((data->fan_div[4] & 0x04) << 5); in w83627ehf_write_fan_div()
691 data->fan_div[0] = i & 0x7; in nct6775_update_fan_div()
692 data->fan_div[1] = (i & 0x70) >> 4; in nct6775_update_fan_div()
694 data->fan_div[2] = i & 0x7; in nct6775_update_fan_div()
696 data->fan_div[3] = (i & 0x70) >> 4; in nct6775_update_fan_div()
704 data->fan_div[0] = (i >> 4) & 0x03; in w83627ehf_update_fan_div()
705 data->fan_div[1] = (i >> 6) & 0x03; in w83627ehf_update_fan_div()
707 data->fan_div[2] = (i >> 6) & 0x03; in w83627ehf_update_fan_div()
709 data->fan_div[0] |= (i >> 3) & 0x04; in w83627ehf_update_fan_div()
710 data->fan_div[1] |= (i >> 4) & 0x04; in w83627ehf_update_fan_div()
711 data->fan_div[2] |= (i >> 5) & 0x04; in w83627ehf_update_fan_div()
714 data->fan_div[3] = i & 0x03; in w83627ehf_update_fan_div()
715 data->fan_div[4] = ((i >> 2) & 0x03) in w83627ehf_update_fan_div()
720 data->fan_div[3] |= (i >> 5) & 0x04; in w83627ehf_update_fan_div()
828 data->fan_div[i]); in w83627ehf_update_device()
842 && data->fan_div[i] < 0x07) { in w83627ehf_update_device()
845 i + 1, div_from_reg(data->fan_div[i]), in w83627ehf_update_device()
846 div_from_reg(data->fan_div[i] + 1)); in w83627ehf_update_device()
847 data->fan_div[i]++; in w83627ehf_update_device()
1055 data->fan_div[nr])); in show_fan_min()
1065 return sprintf(buf, "%u\n", div_from_reg(data->fan_div[nr])); in show_fan_div()
1104 new_div = data->fan_div[nr]; /* No change */ in store_fan_min()
1144 if (new_div != data->fan_div[nr]) { in store_fan_min()
1146 nr + 1, div_from_reg(data->fan_div[nr]), in store_fan_min()
1148 data->fan_div[nr] = new_div; in store_fan_min()