Lines Matching refs:fan_div
164 u8 fan_div[2]; /* Register encoding, shifted right */ member
453 DIV_FROM_REG(data->fan_div[nr]))); in show_fan()
463 DIV_FROM_REG(data->fan_div[nr]))); in show_fan_min()
472 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in show_fan_div()
484 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
499 DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
503 case 1: data->fan_div[nr] = 0; break; in set_fan_div()
504 case 2: data->fan_div[nr] = 1; break; in set_fan_div()
505 case 4: data->fan_div[nr] = 2; break; in set_fan_div()
506 case 8: data->fan_div[nr] = 3; break; in set_fan_div()
515 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
518 old = (old & 0x0f) | (data->fan_div[1] << 6) | (data->fan_div[0] << 4); in set_fan_div()
861 data->fan_div[0] = (i >> 4) & 0x03; in vt8231_update_device()
862 data->fan_div[1] = i >> 6; in vt8231_update_device()