Lines Matching refs:fan_div
287 u8 fan_div[8]; /* Decoded value */ member
455 data->fan_div[i] = DIV_FROM_REG(value & 0x03); in adm1026_init_client()
638 data->fan_div[i] = DIV_FROM_REG(value & 0x03); in adm1026_update_device()
875 data->fan_div[nr])); in show_fan()
884 data->fan_div[nr])); in show_fan_min()
901 data->fan_min[nr] = FAN_TO_REG(val, data->fan_div[nr]); in set_fan_min()
929 int new_div = data->fan_div[fan]; in fixup_fan_min()
948 return sprintf(buf, "%d\n", data->fan_div[nr]); in show_fan_div()
968 orig_div = data->fan_div[nr]; in set_fan_div()
969 data->fan_div[nr] = DIV_FROM_REG(new_div); in set_fan_div()
973 (DIV_TO_REG(data->fan_div[0]) << 0) | in set_fan_div()
974 (DIV_TO_REG(data->fan_div[1]) << 2) | in set_fan_div()
975 (DIV_TO_REG(data->fan_div[2]) << 4) | in set_fan_div()
976 (DIV_TO_REG(data->fan_div[3]) << 6)); in set_fan_div()
979 (DIV_TO_REG(data->fan_div[4]) << 0) | in set_fan_div()
980 (DIV_TO_REG(data->fan_div[5]) << 2) | in set_fan_div()
981 (DIV_TO_REG(data->fan_div[6]) << 4) | in set_fan_div()
982 (DIV_TO_REG(data->fan_div[7]) << 6)); in set_fan_div()
985 if (data->fan_div[nr] != orig_div) in set_fan_div()