Home
last modified time | relevance | path

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

/drivers/macintosh/
Dwindfarm_pm121.c467 s32 new_min; in pm121_correct() local
471 new_min = (average_power * correction->slope) >> 16; in pm121_correct()
472 new_min += correction->offset; in pm121_correct()
473 new_min = (new_min >> 16) + min; in pm121_correct()
475 return max3(new_setpoint, new_min, 0); in pm121_correct()
480 s32 new_min, value, new_setpoint; in pm121_connect() local
485 new_min = value * pm121_connection->correction.slope; in pm121_connect()
486 new_min += pm121_connection->correction.offset; in pm121_connect()
487 if (new_min > 0) { in pm121_connect()
488 new_setpoint = max(setpoint, (new_min >> 16)); in pm121_connect()
/drivers/hwmon/
Dadm9240.c537 unsigned int new_min = 1350000 / val; in fan_min_store() local
540 while (new_min > 192 && new_div < 3) { in fan_min_store()
542 new_min /= 2; in fan_min_store()
544 if (!new_min) /* keep > 0 */ in fan_min_store()
545 new_min++; in fan_min_store()
547 data->fan_min[nr] = new_min; in fan_min_store()
550 nr + 1, FAN_FROM_REG(new_min, 1 << new_div)); in fan_min_store()
Dadm1031.c619 int new_min; in fan_div_store() local
644 new_min = data->fan_min[nr] * old_div / val; in fan_div_store()
645 data->fan_min[nr] = new_min > 0xff ? 0xff : new_min; in fan_div_store()
Dadm1026.c716 int new_min; in fixup_fan_min() local
723 new_min = data->fan_min[fan] * old_div / new_div; in fixup_fan_min()
724 new_min = clamp_val(new_min, 1, 254); in fixup_fan_min()
725 data->fan_min[fan] = new_min; in fixup_fan_min()
726 adm1026_write_value(client, ADM1026_REG_FAN_MIN(fan), new_min); in fixup_fan_min()