Lines Matching refs:fan_div
376 u8 fan_div[3]; /* Register encoding, shifted right */ member
667 (long)DIV_FROM_REG(data->fan_div[nr]))); in show_fan_input()
675 (long)DIV_FROM_REG(data->fan_div[nr]))); in show_fan_min()
691 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min()
996 (long) DIV_FROM_REG(data->fan_div[nr])); in show_fan_div()
1023 DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
1025 data->fan_div[nr] = DIV_TO_REG(val); in store_fan_div()
1029 | ((data->fan_div[nr] & 0x03) << (nr==0 ? 4 : 6)); in store_fan_div()
1034 | ((data->fan_div[nr] & 0x04) << (3 + nr)); in store_fan_div()
1038 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
1810 data->fan_div[0] = (reg >> 4) & 0x03; in w83627hf_update_fan_div()
1811 data->fan_div[1] = (reg >> 6) & 0x03; in w83627hf_update_fan_div()
1813 data->fan_div[2] = (w83627hf_read_value(data, in w83627hf_update_fan_div()
1817 data->fan_div[0] |= (reg >> 3) & 0x04; in w83627hf_update_fan_div()
1818 data->fan_div[1] |= (reg >> 4) & 0x04; in w83627hf_update_fan_div()
1820 data->fan_div[2] |= (reg >> 5) & 0x04; in w83627hf_update_fan_div()