Lines Matching refs:fan_div
125 u8 fan_div[2]; /* Register encoding, shifted right */ member
227 data->fan_div[0] = (rv >> 2) & 0x03; in lm80_update_device()
228 data->fan_div[1] = (rv >> 4) & 0x03; in lm80_update_device()
302 DIV_FROM_REG(data->fan_div[index]))); in fan_show()
312 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in fan_div_show()
329 DIV_FROM_REG(data->fan_div[index])); in fan_store()
360 DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
364 data->fan_div[nr] = 0; in fan_div_store()
367 data->fan_div[nr] = 1; in fan_div_store()
370 data->fan_div[nr] = 2; in fan_div_store()
373 data->fan_div[nr] = 3; in fan_div_store()
389 | (data->fan_div[nr] << (2 * (nr + 1))); in fan_div_store()
393 data->fan[f_min][nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
475 static SENSOR_DEVICE_ATTR_RW(fan1_div, fan_div, 0);
476 static SENSOR_DEVICE_ATTR_RW(fan2_div, fan_div, 1);