Lines Matching refs:fan_div
189 u8 fan_div[2]; /* Register encoding, shifted right */ member
251 data->fan_div[0] = (i >> 4) & 0x03; in sis5595_update_device()
252 data->fan_div[1] = i >> 6; in sis5595_update_device()
421 DIV_FROM_REG(data->fan_div[nr]))); in fan_show()
431 DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show()
448 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store()
460 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in fan_div_show()
486 DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
491 data->fan_div[nr] = 0; in fan_div_store()
494 data->fan_div[nr] = 1; in fan_div_store()
497 data->fan_div[nr] = 2; in fan_div_store()
500 data->fan_div[nr] = 3; in fan_div_store()
512 reg = (reg & 0xcf) | (data->fan_div[nr] << 4); in fan_div_store()
515 reg = (reg & 0x3f) | (data->fan_div[nr] << 6); in fan_div_store()
520 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
528 static SENSOR_DEVICE_ATTR_RW(fan1_div, fan_div, 0);
531 static SENSOR_DEVICE_ATTR_RW(fan2_div, fan_div, 1);