Lines Matching refs:fan_div
318 u8 fan_div[2]; /* Register encoding, shifted right */ member
503 DIV_FROM_REG(data->fan_div[nr]))); in fan_show()
512 DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show()
519 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in fan_div_show()
534 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store()
554 data->fan_div[nr] = DIV_TO_REG(val); in fan_div_store()
555 old = (old & 0x0f) | (data->fan_div[1] << 6) | (data->fan_div[0] << 4); in fan_div_store()
563 static SENSOR_DEVICE_ATTR_RW(fan1_div, fan_div, 0);
566 static SENSOR_DEVICE_ATTR_RW(fan2_div, fan_div, 1);
725 data->fan_div[0] = (reg >> 4) & 0x03; in via686a_update_fan_div()
726 data->fan_div[1] = reg >> 6; in via686a_update_fan_div()