Searched refs:new_min (Results 1 - 5 of 5) sorted by relevance

/linux-4.1.27/drivers/macintosh/
H A Dwindfarm_pm121.c33 * new_min = ((((average_power * slope) >> 16) + offset) >> 16) + min_value
34 * new_value = max(new_value, max(new_min, 0))
72 * new_min = ref_value * slope + offset
74 * ref_value is the value of the reference control. If new_min is
77 * new_target = max (new_target, new_min >> 16)
477 s32 new_min; pm121_correct() local
481 new_min = (average_power * correction->slope) >> 16; pm121_correct()
482 new_min += correction->offset; pm121_correct()
483 new_min = (new_min >> 16) + min; pm121_correct()
485 return max3(new_setpoint, new_min, 0); pm121_correct()
490 s32 new_min, value, new_setpoint; pm121_connect() local
495 new_min = value * pm121_connection->correction.slope; pm121_connect()
496 new_min += pm121_connection->correction.offset; pm121_connect()
497 if (new_min > 0) { pm121_connect()
498 new_setpoint = max(setpoint, (new_min >> 16)); pm121_connect()
/linux-4.1.27/drivers/hwmon/
H A Dadm9240.c462 unsigned int new_min = 1350000 / val; set_fan_min() local
465 while (new_min > 192 && new_div < 3) { set_fan_min()
467 new_min /= 2; set_fan_min()
469 if (!new_min) /* keep > 0 */ set_fan_min()
470 new_min++; set_fan_min()
472 data->fan_min[nr] = new_min; set_fan_min()
475 nr + 1, FAN_FROM_REG(new_min, 1 << new_div)); set_fan_min()
H A Dadm1031.c637 int new_min; set_fan_div() local
662 new_min = data->fan_min[nr] * old_div / val; set_fan_div()
663 data->fan_min[nr] = new_min > 0xff ? 0xff : new_min; set_fan_div()
H A Dadm1026.c696 int new_min; fixup_fan_min() local
703 new_min = data->fan_min[fan] * old_div / new_div; fixup_fan_min()
704 new_min = clamp_val(new_min, 1, 254); fixup_fan_min()
705 data->fan_min[fan] = new_min; fixup_fan_min()
706 adm1026_write_value(client, ADM1026_REG_FAN_MIN(fan), new_min); fixup_fan_min()
/linux-4.1.27/fs/
H A Dchar_dev.c119 int new_min = baseminor; __register_chrdev_region() local
129 if (new_min <= old_max && new_min >= old_min) { __register_chrdev_region()

Completed in 204 milliseconds