Lines Matching refs:fan_div
163 u8 fan_div[2]; /* register value, shifted right */ member
242 data->fan_div[0] = (i >> 4) & 0x03; in lm87_update_device()
243 data->fan_div[1] = (i >> 6) & 0x03; in lm87_update_device()
469 FAN_DIV_FROM_REG(data->fan_div[nr]))); in fan_input_show()
479 FAN_DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show()
489 FAN_DIV_FROM_REG(data->fan_div[nr])); in fan_div_show()
508 FAN_DIV_FROM_REG(data->fan_div[nr])); in fan_min_store()
538 FAN_DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
542 data->fan_div[nr] = 0; in fan_div_store()
545 data->fan_div[nr] = 1; in fan_div_store()
548 data->fan_div[nr] = 2; in fan_div_store()
551 data->fan_div[nr] = 3; in fan_div_store()
561 reg = (reg & 0xCF) | (data->fan_div[0] << 4); in fan_div_store()
564 reg = (reg & 0x3F) | (data->fan_div[1] << 6); in fan_div_store()
579 static SENSOR_DEVICE_ATTR_RW(fan1_div, fan_div, 0);
582 static SENSOR_DEVICE_ATTR_RW(fan2_div, fan_div, 1);