Lines Matching refs:fan_div
320 u8 fan_div[2]; /* Register encoding, shifted right */ member
340 data->fan_div[0] = (reg >> 4) & 0x03; in via686a_update_fan_div()
341 data->fan_div[1] = reg >> 6; in via686a_update_fan_div()
570 DIV_FROM_REG(data->fan_div[nr]))); in fan_show()
579 DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show()
586 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in fan_div_show()
601 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store()
621 data->fan_div[nr] = DIV_TO_REG(val); in fan_div_store()
622 old = (old & 0x0f) | (data->fan_div[1] << 6) | (data->fan_div[0] << 4); in fan_div_store()
630 static SENSOR_DEVICE_ATTR_RW(fan1_div, fan_div, 0);
633 static SENSOR_DEVICE_ATTR_RW(fan2_div, fan_div, 1);