Lines Matching refs:fan_div
1153 reg |= data->fan_div[nr] & (0x7 << oddshift); in nct6775_write_fan_div()
1172 data->fan_div[0] = i & 0x7; in nct6775_update_fan_div()
1173 data->fan_div[1] = (i & 0x70) >> 4; in nct6775_update_fan_div()
1177 data->fan_div[2] = i & 0x7; in nct6775_update_fan_div()
1179 data->fan_div[3] = (i & 0x70) >> 4; in nct6775_update_fan_div()
1205 for (i = 0; i < ARRAY_SIZE(data->fan_div); i++) { in nct6775_init_fan_div()
1208 if (data->fan_div[i] == 0) { in nct6775_init_fan_div()
1209 data->fan_div[i] = 7; in nct6775_init_fan_div()
1256 u8 fan_div = data->fan_div[nr]; in nct6775_select_fan_div() local
1267 if (reg == 0x00 && fan_div < 0x07) in nct6775_select_fan_div()
1268 fan_div++; in nct6775_select_fan_div()
1269 else if (reg != 0x00 && reg < 0x30 && fan_div > 0) in nct6775_select_fan_div()
1270 fan_div--; in nct6775_select_fan_div()
1272 if (fan_div != data->fan_div[nr]) { in nct6775_select_fan_div()
1274 nr + 1, div_from_reg(data->fan_div[nr]), in nct6775_select_fan_div()
1275 div_from_reg(fan_div)); in nct6775_select_fan_div()
1280 if (fan_div > data->fan_div[nr]) { in nct6775_select_fan_div()
1297 data->fan_div[nr] = fan_div; in nct6775_select_fan_div()
1528 data->fan_div[i]); in nct6775_update_device()
1883 data->fan_div[nr])); in show_fan_min()
1896 return sprintf(buf, "%u\n", div_from_reg(data->fan_div[nr])); in show_fan_div()
1932 new_div = data->fan_div[nr]; /* No change */ in store_fan_min()
1976 if (new_div != data->fan_div[nr]) { in store_fan_min()
1978 nr + 1, div_from_reg(data->fan_div[nr]), in store_fan_min()
1980 data->fan_div[nr] = new_div; in store_fan_min()
2072 SENSOR_TEMPLATE(fan_div, "fan%d_div", 0444, show_fan_div, NULL, 0);
2801 data->fan_div[nr])); in show_target_speed()
2820 speed = fan_to_reg(val, data->fan_div[nr]); in store_target_speed()
2904 tolerance = (fan_from_reg16(low, data->fan_div[nr]) in show_speed_tolerance()
2905 - fan_from_reg16(high, data->fan_div[nr])) / 2; in show_speed_tolerance()
2926 high = fan_from_reg16(data->target_speed[nr], data->fan_div[nr]) + val; in store_speed_tolerance()
2927 low = fan_from_reg16(data->target_speed[nr], data->fan_div[nr]) - val; in store_speed_tolerance()
2933 val = (fan_to_reg(low, data->fan_div[nr]) - in store_speed_tolerance()
2934 fan_to_reg(high, data->fan_div[nr])) / 2; in store_speed_tolerance()