Home
last modified time | relevance | path

Searched refs:new_min (Results 1 – 4 of 4) sorted by relevance

/drivers/macintosh/
Dwindfarm_pm121.c476 s32 new_min; in pm121_correct() local
480 new_min = (average_power * correction->slope) >> 16; in pm121_correct()
481 new_min += correction->offset; in pm121_correct()
482 new_min = (new_min >> 16) + min; in pm121_correct()
484 return max3(new_setpoint, new_min, 0); in pm121_correct()
489 s32 new_min, value, new_setpoint; in pm121_connect() local
494 new_min = value * pm121_connection->correction.slope; in pm121_connect()
495 new_min += pm121_connection->correction.offset; in pm121_connect()
496 if (new_min > 0) { in pm121_connect()
497 new_setpoint = max(setpoint, (new_min >> 16)); in pm121_connect()
/drivers/hwmon/
Dadm9240.c403 unsigned int new_min = 1350000 / val; in set_fan_min() local
406 while (new_min > 192 && new_div < 3) { in set_fan_min()
408 new_min /= 2; in set_fan_min()
410 if (!new_min) /* keep > 0 */ in set_fan_min()
411 new_min++; in set_fan_min()
413 data->fan_min[nr] = new_min; in set_fan_min()
416 nr + 1, FAN_FROM_REG(new_min, 1 << new_div)); in set_fan_min()
Dadm1031.c572 int new_min; in set_fan_div() local
597 new_min = data->fan_min[nr] * old_div / val; in set_fan_div()
598 data->fan_min[nr] = new_min > 0xff ? 0xff : new_min; in set_fan_div()
Dadm1026.c928 int new_min; in fixup_fan_min() local
935 new_min = data->fan_min[fan] * old_div / new_div; in fixup_fan_min()
936 new_min = clamp_val(new_min, 1, 254); in fixup_fan_min()
937 data->fan_min[fan] = new_min; in fixup_fan_min()
938 adm1026_write_value(client, ADM1026_REG_FAN_MIN(fan), new_min); in fixup_fan_min()