Searched refs:new_div (Results 1 – 6 of 6) sorted by relevance
378 u8 new_div; in set_fan_min() local390 new_div = data->fan_div[nr]; in set_fan_min()396 new_div = 3; in set_fan_min()400 nr + 1, FAN_FROM_REG(254, 1 << new_div)); in set_fan_min()405 new_div = 0; in set_fan_min()406 while (new_min > 192 && new_div < 3) { in set_fan_min()407 new_div++; in set_fan_min()416 nr + 1, FAN_FROM_REG(new_min, 1 << new_div)); in set_fan_min()419 if (new_div != data->fan_div[nr]) { in set_fan_min()420 data->fan_div[nr] = new_div; in set_fan_min()[all …]
319 long new_div; in set_fan_div() local321 int status = kstrtol(buf, 10, &new_div); in set_fan_div()325 if (new_div == old_div) /* No change */ in set_fan_div()328 switch (new_div) { in set_fan_div()358 data->fan_multiplier = 8 / new_div; in set_fan_div()362 u16 new_target = (data->fan_target * old_div) / new_div; in set_fan_div()
280 long new_div; in set_fan_div() local285 err = kstrtol(buf, 10, &new_div); in set_fan_div()289 if (new_div == old_div) /* No change */ in set_fan_div()293 switch (new_div) { in set_fan_div()328 + new_div / 2) / new_div; in set_fan_div()
1078 u8 new_div; in store_fan_min() local1104 new_div = data->fan_div[nr]; /* No change */ in store_fan_min()1112 new_div = 7; /* 128 == (1 << 7) */ in store_fan_min()1122 new_div = 0; /* 1 == (1 << 0) */ in store_fan_min()1132 new_div = 0; in store_fan_min()1133 while (reg > 192 && new_div < 7) { in store_fan_min()1135 new_div++; in store_fan_min()1144 if (new_div != data->fan_div[nr]) { in store_fan_min()1147 div_from_reg(new_div)); in store_fan_min()1148 data->fan_div[nr] = new_div; in store_fan_min()
929 int new_div = data->fan_div[fan]; in fixup_fan_min() local935 new_min = data->fan_min[fan] * old_div / new_div; in fixup_fan_min()958 int orig_div, new_div; in set_fan_div() local965 new_div = DIV_TO_REG(val); in set_fan_div()969 data->fan_div[nr] = DIV_FROM_REG(new_div); in set_fan_div()
1455 u8 new_div; in store_fan_min() local1478 new_div = data->fan_div[nr]; /* No change */ in store_fan_min()1489 new_div = 7; /* 128 == (1 << 7) */ in store_fan_min()1499 new_div = 0; /* 1 == (1 << 0) */ in store_fan_min()1509 new_div = 0; in store_fan_min()1510 while (reg > 192 && new_div < 7) { in store_fan_min()1512 new_div++; in store_fan_min()1522 if (new_div != data->fan_div[nr]) { in store_fan_min()1525 div_from_reg(new_div)); in store_fan_min()1526 data->fan_div[nr] = new_div; in store_fan_min()