Searched refs:new_setpoint (Results 1 - 3 of 3) sorted by relevance

/linux-4.1.27/drivers/macintosh/
H A Dwindfarm_pm121.c473 static s32 pm121_correct(s32 new_setpoint, pm121_correct() argument
485 return max3(new_setpoint, new_min, 0); pm121_correct()
490 s32 new_min, value, new_setpoint; pm121_connect() local
498 new_setpoint = max(setpoint, (new_min >> 16)); pm121_connect()
499 if (new_setpoint != setpoint) { pm121_connect()
504 (int) setpoint, (int) new_setpoint); pm121_connect()
507 new_setpoint = setpoint; pm121_connect()
511 new_setpoint = setpoint; pm121_connect()
513 return new_setpoint; pm121_connect()
596 s32 temp, new_setpoint; pm121_sys_fans_tick() local
623 new_setpoint = wf_pid_run(&st->pid, temp); pm121_sys_fans_tick()
626 new_setpoint = pm121_correct(new_setpoint, pm121_sys_fans_tick()
630 new_setpoint = pm121_connect(param->control_id, new_setpoint); pm121_sys_fans_tick()
632 if (new_setpoint == st->setpoint) pm121_sys_fans_tick()
634 st->setpoint = new_setpoint; pm121_sys_fans_tick()
636 control->name, (int)new_setpoint); pm121_sys_fans_tick()
730 s32 new_setpoint, temp, power; pm121_cpu_fans_tick() local
765 new_setpoint = wf_cpu_pid_run(&st->pid, power, temp); pm121_cpu_fans_tick()
768 new_setpoint = pm121_correct(new_setpoint, pm121_cpu_fans_tick()
773 new_setpoint = pm121_connect(FAN_CPU, new_setpoint); pm121_cpu_fans_tick()
775 if (st->setpoint == new_setpoint) pm121_cpu_fans_tick()
777 st->setpoint = new_setpoint; pm121_cpu_fans_tick()
778 pr_debug("pm121: CPU corrected setpoint: %d RPM\n", (int)new_setpoint); pm121_cpu_fans_tick()
H A Dwindfarm_pm81.c331 s32 new_setpoint, temp, scaled, cputarget; wf_smu_sys_fans_tick() local
355 new_setpoint = wf_pid_run(&st->pid, temp); wf_smu_sys_fans_tick()
357 DBG("wf_smu: new_setpoint: %d RPM\n", (int)new_setpoint); wf_smu_sys_fans_tick()
359 scaled = ((((s64)new_setpoint) * (s64)st->scale0) >> 12) + st->offset0; wf_smu_sys_fans_tick()
371 if (st->sys_setpoint == scaled && new_setpoint == st->hd_setpoint) wf_smu_sys_fans_tick()
374 st->hd_setpoint = new_setpoint; wf_smu_sys_fans_tick()
475 s32 new_setpoint, temp, power, systarget; wf_smu_cpu_fans_tick() local
511 new_setpoint = wf_cpu_pid_run(&st->pid, power, temp); wf_smu_cpu_fans_tick()
513 DBG("wf_smu: new_setpoint: %d RPM\n", (int)new_setpoint); wf_smu_cpu_fans_tick()
518 new_setpoint = max(new_setpoint, systarget); wf_smu_cpu_fans_tick()
519 new_setpoint = max(new_setpoint, st->pid.param.min); wf_smu_cpu_fans_tick()
520 new_setpoint = min(new_setpoint, st->pid.param.max); wf_smu_cpu_fans_tick()
522 DBG("wf_smu: adjusted setpoint: %d RPM\n", (int)new_setpoint); wf_smu_cpu_fans_tick()
524 if (st->cpu_setpoint == new_setpoint) wf_smu_cpu_fans_tick()
526 st->cpu_setpoint = new_setpoint; wf_smu_cpu_fans_tick()
H A Dwindfarm_pm91.c220 s32 new_setpoint, temp, power; wf_smu_cpu_fans_tick() local
256 new_setpoint = wf_cpu_pid_run(&st->pid, power, temp); wf_smu_cpu_fans_tick()
258 DBG("wf_smu: new_setpoint: %d RPM\n", (int)new_setpoint); wf_smu_cpu_fans_tick()
260 if (st->cpu_setpoint == new_setpoint) wf_smu_cpu_fans_tick()
262 st->cpu_setpoint = new_setpoint; wf_smu_cpu_fans_tick()
329 s32 new_setpoint, temp; wf_smu_drive_fans_tick() local
353 new_setpoint = wf_pid_run(&st->pid, temp); wf_smu_drive_fans_tick()
355 DBG("wf_smu: new_setpoint: %d\n", (int)new_setpoint); wf_smu_drive_fans_tick()
357 if (st->setpoint == new_setpoint) wf_smu_drive_fans_tick()
359 st->setpoint = new_setpoint; wf_smu_drive_fans_tick()
410 s32 new_setpoint, power; wf_smu_slots_fans_tick() local
436 new_setpoint = wf_pid_run(&st->pid, power); wf_smu_slots_fans_tick()
438 DBG("wf_smu: new_setpoint: %d\n", (int)new_setpoint); wf_smu_slots_fans_tick()
440 if (st->setpoint == new_setpoint) wf_smu_slots_fans_tick()
442 st->setpoint = new_setpoint; wf_smu_slots_fans_tick()

Completed in 232 milliseconds