Lines Matching refs:new_setpoint
330 s32 new_setpoint, temp, scaled, cputarget; in wf_smu_sys_fans_tick() local
354 new_setpoint = wf_pid_run(&st->pid, temp); in wf_smu_sys_fans_tick()
356 DBG("wf_smu: new_setpoint: %d RPM\n", (int)new_setpoint); in wf_smu_sys_fans_tick()
358 scaled = ((((s64)new_setpoint) * (s64)st->scale0) >> 12) + st->offset0; in wf_smu_sys_fans_tick()
370 if (st->sys_setpoint == scaled && new_setpoint == st->hd_setpoint) in wf_smu_sys_fans_tick()
373 st->hd_setpoint = new_setpoint; in wf_smu_sys_fans_tick()
474 s32 new_setpoint, temp, power, systarget; in wf_smu_cpu_fans_tick() local
510 new_setpoint = wf_cpu_pid_run(&st->pid, power, temp); in wf_smu_cpu_fans_tick()
512 DBG("wf_smu: new_setpoint: %d RPM\n", (int)new_setpoint); in wf_smu_cpu_fans_tick()
517 new_setpoint = max(new_setpoint, systarget); in wf_smu_cpu_fans_tick()
518 new_setpoint = max(new_setpoint, st->pid.param.min); in wf_smu_cpu_fans_tick()
519 new_setpoint = min(new_setpoint, st->pid.param.max); in wf_smu_cpu_fans_tick()
521 DBG("wf_smu: adjusted setpoint: %d RPM\n", (int)new_setpoint); in wf_smu_cpu_fans_tick()
523 if (st->cpu_setpoint == new_setpoint) in wf_smu_cpu_fans_tick()
525 st->cpu_setpoint = new_setpoint; in wf_smu_cpu_fans_tick()