Lines Matching refs:fan_div
118 u8 fan_div[2]; /* Register encoding, shifted right */ member
193 data->fan_div[0] = (val >> 6) & 0x03; in gl518_update_device()
194 data->fan_div[1] = (val >> 4) & 0x03; in gl518_update_device()
260 DIV_FROM_REG(data->fan_div[nr]))); in fan_input_show()
269 DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show()
277 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in fan_div_show()
357 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store()
411 data->fan_div[nr] = val; in fan_div_store()
413 | (data->fan_div[nr] << (6 - 2 * nr)); in fan_div_store()
428 static SENSOR_DEVICE_ATTR_RW(fan1_div, fan_div, 0);
429 static SENSOR_DEVICE_ATTR_RW(fan2_div, fan_div, 1);