Lines Matching refs:fan_div
369 u8 fan_div[3]; /* Register encoding, shifted right */ member
671 (long)DIV_FROM_REG(data->fan_div[nr]))); in fan_input_show()
679 (long)DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show()
695 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store()
982 (long) DIV_FROM_REG(data->fan_div[nr])); in fan_div_show()
1009 DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
1011 data->fan_div[nr] = DIV_TO_REG(val); in fan_div_store()
1015 | ((data->fan_div[nr] & 0x03) << (nr==0 ? 4 : 6)); in fan_div_store()
1020 | ((data->fan_div[nr] & 0x04) << (3 + nr)); in fan_div_store()
1024 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
1031 static SENSOR_DEVICE_ATTR_RW(fan1_div, fan_div, 0);
1032 static SENSOR_DEVICE_ATTR_RW(fan2_div, fan_div, 1);
1033 static SENSOR_DEVICE_ATTR_RW(fan3_div, fan_div, 2);
1809 data->fan_div[0] = (reg >> 4) & 0x03; in w83627hf_update_fan_div()
1810 data->fan_div[1] = (reg >> 6) & 0x03; in w83627hf_update_fan_div()
1812 data->fan_div[2] = (w83627hf_read_value(data, in w83627hf_update_fan_div()
1816 data->fan_div[0] |= (reg >> 3) & 0x04; in w83627hf_update_fan_div()
1817 data->fan_div[1] |= (reg >> 4) & 0x04; in w83627hf_update_fan_div()
1819 data->fan_div[2] |= (reg >> 5) & 0x04; in w83627hf_update_fan_div()