Lines Matching refs:new_setpoint
331 s32 new_setpoint, temp, scaled, cputarget; in wf_smu_sys_fans_tick() local
355 new_setpoint = wf_pid_run(&st->pid, temp); in wf_smu_sys_fans_tick()
357 DBG("wf_smu: new_setpoint: %d RPM\n", (int)new_setpoint); in wf_smu_sys_fans_tick()
359 scaled = ((((s64)new_setpoint) * (s64)st->scale0) >> 12) + st->offset0; in wf_smu_sys_fans_tick()
371 if (st->sys_setpoint == scaled && new_setpoint == st->hd_setpoint) in wf_smu_sys_fans_tick()
374 st->hd_setpoint = new_setpoint; in wf_smu_sys_fans_tick()
475 s32 new_setpoint, temp, power, systarget; in wf_smu_cpu_fans_tick() local
511 new_setpoint = wf_cpu_pid_run(&st->pid, power, temp); in wf_smu_cpu_fans_tick()
513 DBG("wf_smu: new_setpoint: %d RPM\n", (int)new_setpoint); in wf_smu_cpu_fans_tick()
518 new_setpoint = max(new_setpoint, systarget); in wf_smu_cpu_fans_tick()
519 new_setpoint = max(new_setpoint, st->pid.param.min); in wf_smu_cpu_fans_tick()
520 new_setpoint = min(new_setpoint, st->pid.param.max); in wf_smu_cpu_fans_tick()
522 DBG("wf_smu: adjusted setpoint: %d RPM\n", (int)new_setpoint); in wf_smu_cpu_fans_tick()
524 if (st->cpu_setpoint == new_setpoint) in wf_smu_cpu_fans_tick()
526 st->cpu_setpoint = new_setpoint; in wf_smu_cpu_fans_tick()