Lines Matching refs:new_setpoint

464 static s32 pm121_correct(s32 new_setpoint,  in pm121_correct()  argument
476 return max3(new_setpoint, new_min, 0); in pm121_correct()
481 s32 new_min, value, new_setpoint; in pm121_connect() local
489 new_setpoint = max(setpoint, (new_min >> 16)); in pm121_connect()
490 if (new_setpoint != setpoint) { in pm121_connect()
495 (int) setpoint, (int) new_setpoint); in pm121_connect()
498 new_setpoint = setpoint; in pm121_connect()
502 new_setpoint = setpoint; in pm121_connect()
504 return new_setpoint; in pm121_connect()
587 s32 temp, new_setpoint; in pm121_sys_fans_tick() local
614 new_setpoint = wf_pid_run(&st->pid, temp); in pm121_sys_fans_tick()
617 new_setpoint = pm121_correct(new_setpoint, in pm121_sys_fans_tick()
621 new_setpoint = pm121_connect(param->control_id, new_setpoint); in pm121_sys_fans_tick()
623 if (new_setpoint == st->setpoint) in pm121_sys_fans_tick()
625 st->setpoint = new_setpoint; in pm121_sys_fans_tick()
627 control->name, (int)new_setpoint); in pm121_sys_fans_tick()
721 s32 new_setpoint, temp, power; in pm121_cpu_fans_tick() local
756 new_setpoint = wf_cpu_pid_run(&st->pid, power, temp); in pm121_cpu_fans_tick()
759 new_setpoint = pm121_correct(new_setpoint, in pm121_cpu_fans_tick()
764 new_setpoint = pm121_connect(FAN_CPU, new_setpoint); in pm121_cpu_fans_tick()
766 if (st->setpoint == new_setpoint) in pm121_cpu_fans_tick()
768 st->setpoint = new_setpoint; in pm121_cpu_fans_tick()
769 pr_debug("pm121: CPU corrected setpoint: %d RPM\n", (int)new_setpoint); in pm121_cpu_fans_tick()