new_setpoint 463 drivers/macintosh/windfarm_pm121.c static s32 pm121_correct(s32 new_setpoint, new_setpoint 475 drivers/macintosh/windfarm_pm121.c return max3(new_setpoint, new_min, 0); new_setpoint 480 drivers/macintosh/windfarm_pm121.c s32 new_min, value, new_setpoint; new_setpoint 488 drivers/macintosh/windfarm_pm121.c new_setpoint = max(setpoint, (new_min >> 16)); new_setpoint 489 drivers/macintosh/windfarm_pm121.c if (new_setpoint != setpoint) { new_setpoint 494 drivers/macintosh/windfarm_pm121.c (int) setpoint, (int) new_setpoint); new_setpoint 497 drivers/macintosh/windfarm_pm121.c new_setpoint = setpoint; new_setpoint 501 drivers/macintosh/windfarm_pm121.c new_setpoint = setpoint; new_setpoint 503 drivers/macintosh/windfarm_pm121.c return new_setpoint; new_setpoint 586 drivers/macintosh/windfarm_pm121.c s32 temp, new_setpoint; new_setpoint 613 drivers/macintosh/windfarm_pm121.c new_setpoint = wf_pid_run(&st->pid, temp); new_setpoint 616 drivers/macintosh/windfarm_pm121.c new_setpoint = pm121_correct(new_setpoint, new_setpoint 620 drivers/macintosh/windfarm_pm121.c new_setpoint = pm121_connect(param->control_id, new_setpoint); new_setpoint 622 drivers/macintosh/windfarm_pm121.c if (new_setpoint == st->setpoint) new_setpoint 624 drivers/macintosh/windfarm_pm121.c st->setpoint = new_setpoint; new_setpoint 626 drivers/macintosh/windfarm_pm121.c control->name, (int)new_setpoint); new_setpoint 720 drivers/macintosh/windfarm_pm121.c s32 new_setpoint, temp, power; new_setpoint 755 drivers/macintosh/windfarm_pm121.c new_setpoint = wf_cpu_pid_run(&st->pid, power, temp); new_setpoint 758 drivers/macintosh/windfarm_pm121.c new_setpoint = pm121_correct(new_setpoint, new_setpoint 763 drivers/macintosh/windfarm_pm121.c new_setpoint = pm121_connect(FAN_CPU, new_setpoint); new_setpoint 765 drivers/macintosh/windfarm_pm121.c if (st->setpoint == new_setpoint) new_setpoint 767 drivers/macintosh/windfarm_pm121.c st->setpoint = new_setpoint; new_setpoint 768 drivers/macintosh/windfarm_pm121.c pr_debug("pm121: CPU corrected setpoint: %d RPM\n", (int)new_setpoint); new_setpoint 330 drivers/macintosh/windfarm_pm81.c s32 new_setpoint, temp, scaled, cputarget; new_setpoint 354 drivers/macintosh/windfarm_pm81.c new_setpoint = wf_pid_run(&st->pid, temp); new_setpoint 356 drivers/macintosh/windfarm_pm81.c DBG("wf_smu: new_setpoint: %d RPM\n", (int)new_setpoint); new_setpoint 358 drivers/macintosh/windfarm_pm81.c scaled = ((((s64)new_setpoint) * (s64)st->scale0) >> 12) + st->offset0; new_setpoint 370 drivers/macintosh/windfarm_pm81.c if (st->sys_setpoint == scaled && new_setpoint == st->hd_setpoint) new_setpoint 373 drivers/macintosh/windfarm_pm81.c st->hd_setpoint = new_setpoint; new_setpoint 474 drivers/macintosh/windfarm_pm81.c s32 new_setpoint, temp, power, systarget; new_setpoint 510 drivers/macintosh/windfarm_pm81.c new_setpoint = wf_cpu_pid_run(&st->pid, power, temp); new_setpoint 512 drivers/macintosh/windfarm_pm81.c DBG("wf_smu: new_setpoint: %d RPM\n", (int)new_setpoint); new_setpoint 517 drivers/macintosh/windfarm_pm81.c new_setpoint = max(new_setpoint, systarget); new_setpoint 518 drivers/macintosh/windfarm_pm81.c new_setpoint = max(new_setpoint, st->pid.param.min); new_setpoint 519 drivers/macintosh/windfarm_pm81.c new_setpoint = min(new_setpoint, st->pid.param.max); new_setpoint 521 drivers/macintosh/windfarm_pm81.c DBG("wf_smu: adjusted setpoint: %d RPM\n", (int)new_setpoint); new_setpoint 523 drivers/macintosh/windfarm_pm81.c if (st->cpu_setpoint == new_setpoint) new_setpoint 525 drivers/macintosh/windfarm_pm81.c st->cpu_setpoint = new_setpoint; new_setpoint 220 drivers/macintosh/windfarm_pm91.c s32 new_setpoint, temp, power; new_setpoint 256 drivers/macintosh/windfarm_pm91.c new_setpoint = wf_cpu_pid_run(&st->pid, power, temp); new_setpoint 258 drivers/macintosh/windfarm_pm91.c DBG("wf_smu: new_setpoint: %d RPM\n", (int)new_setpoint); new_setpoint 260 drivers/macintosh/windfarm_pm91.c if (st->cpu_setpoint == new_setpoint) new_setpoint 262 drivers/macintosh/windfarm_pm91.c st->cpu_setpoint = new_setpoint; new_setpoint 329 drivers/macintosh/windfarm_pm91.c s32 new_setpoint, temp; new_setpoint 353 drivers/macintosh/windfarm_pm91.c new_setpoint = wf_pid_run(&st->pid, temp); new_setpoint 355 drivers/macintosh/windfarm_pm91.c DBG("wf_smu: new_setpoint: %d\n", (int)new_setpoint); new_setpoint 357 drivers/macintosh/windfarm_pm91.c if (st->setpoint == new_setpoint) new_setpoint 359 drivers/macintosh/windfarm_pm91.c st->setpoint = new_setpoint; new_setpoint 410 drivers/macintosh/windfarm_pm91.c s32 new_setpoint, power; new_setpoint 436 drivers/macintosh/windfarm_pm91.c new_setpoint = wf_pid_run(&st->pid, power); new_setpoint 438 drivers/macintosh/windfarm_pm91.c DBG("wf_smu: new_setpoint: %d\n", (int)new_setpoint); new_setpoint 440 drivers/macintosh/windfarm_pm91.c if (st->setpoint == new_setpoint) new_setpoint 442 drivers/macintosh/windfarm_pm91.c st->setpoint = new_setpoint;