Lines Matching refs:fan_div
369 u8 fan_div[3]; /* Register encoding, shifted right */ member
464 data->fan_div[0] = (reg >> 4) & 0x03; in w83627hf_update_fan_div()
465 data->fan_div[1] = (reg >> 6) & 0x03; in w83627hf_update_fan_div()
467 data->fan_div[2] = (w83627hf_read_value(data, in w83627hf_update_fan_div()
471 data->fan_div[0] |= (reg >> 3) & 0x04; in w83627hf_update_fan_div()
472 data->fan_div[1] |= (reg >> 4) & 0x04; in w83627hf_update_fan_div()
474 data->fan_div[2] |= (reg >> 5) & 0x04; in w83627hf_update_fan_div()
1102 (long)DIV_FROM_REG(data->fan_div[nr]))); in fan_input_show()
1111 (long)DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show()
1128 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store()
1149 (long) DIV_FROM_REG(data->fan_div[nr])); in fan_div_show()
1177 DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
1179 data->fan_div[nr] = DIV_TO_REG(val); in fan_div_store()
1183 | ((data->fan_div[nr] & 0x03) << (nr==0 ? 4 : 6)); in fan_div_store()
1188 | ((data->fan_div[nr] & 0x04) << (3 + nr)); in fan_div_store()
1192 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
1199 static SENSOR_DEVICE_ATTR_RW(fan1_div, fan_div, 0);
1200 static SENSOR_DEVICE_ATTR_RW(fan2_div, fan_div, 1);
1201 static SENSOR_DEVICE_ATTR_RW(fan3_div, fan_div, 2);