Lines Matching refs:fan_div
131 u8 fan_div[3]; /* Register encoding, shifted right */ member
300 DIV_FROM_REG(data->fan_div[nr]))); in fan_show()
310 DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show()
327 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store()
338 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index])); in fan_div_show()
364 DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
368 data->fan_div[nr] = 0; in fan_div_store()
371 data->fan_div[nr] = 1; in fan_div_store()
374 data->fan_div[nr] = 2; in fan_div_store()
377 data->fan_div[nr] = 3; in fan_div_store()
390 reg = (reg & 0xcf) | (data->fan_div[nr] << 4); in fan_div_store()
393 reg = (reg & 0x3f) | (data->fan_div[nr] << 6); in fan_div_store()
399 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
414 static SENSOR_DEVICE_ATTR_RW(fan1_div, fan_div, 0);
415 static SENSOR_DEVICE_ATTR_RW(fan2_div, fan_div, 1);
416 static SENSOR_DEVICE_ATTR_RO(fan3_div, fan_div, 2);
770 data->fan_div[0] = (i >> 4) & 0x03; in lm78_update_device()
771 data->fan_div[1] = i >> 6; in lm78_update_device()
777 data->fan_div[2] = 1; in lm78_update_device()