Searched refs:new_min (Results 1 – 4 of 4) sorted by relevance
/Linux-v6.6/drivers/macintosh/ |
D | windfarm_pm121.c | 468 s32 new_min; in pm121_correct() local 472 new_min = (average_power * correction->slope) >> 16; in pm121_correct() 473 new_min += correction->offset; in pm121_correct() 474 new_min = (new_min >> 16) + min; in pm121_correct() 476 return max3(new_setpoint, new_min, 0); in pm121_correct() 481 s32 new_min, value, new_setpoint; in pm121_connect() local 486 new_min = value * pm121_connection->correction.slope; in pm121_connect() 487 new_min += pm121_connection->correction.offset; in pm121_connect() 488 if (new_min > 0) { in pm121_connect() 489 new_setpoint = max(setpoint, (new_min >> 16)); in pm121_connect()
|
/Linux-v6.6/drivers/hwmon/ |
D | adm9240.c | 187 unsigned int new_min = 1350000 / val; in adm9240_fan_min_write() local 190 while (new_min > 192 && new_div < 3) { in adm9240_fan_min_write() 192 new_min /= 2; in adm9240_fan_min_write() 194 if (!new_min) /* keep > 0 */ in adm9240_fan_min_write() 195 new_min++; in adm9240_fan_min_write() 197 fan_min = new_min; in adm9240_fan_min_write() 200 channel + 1, FAN_FROM_REG(new_min, BIT(new_div))); in adm9240_fan_min_write()
|
D | adm1031.c | 618 int new_min; in fan_div_store() local 643 new_min = data->fan_min[nr] * old_div / val; in fan_div_store() 644 data->fan_min[nr] = new_min > 0xff ? 0xff : new_min; in fan_div_store()
|
D | adm1026.c | 716 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()
|