Lines Matching full:if

152 	if (hdr == 0) {  in wf_smu_create_cpu_fans()
163 if (hdr) { in wf_smu_create_cpu_fans()
172 if (wf_smu_cpu_fans == NULL) in wf_smu_create_cpu_fans()
179 if (pid_param.history_len > WF_CPU_PID_MAX_HISTORY) { in wf_smu_create_cpu_fans()
212 if (cpufreq_clamp) in wf_smu_create_cpu_fans()
214 if (fan_cpu_main) in wf_smu_create_cpu_fans()
223 if (--st->ticks != 0) { in wf_smu_cpu_fans_tick()
224 if (wf_smu_readjust) in wf_smu_cpu_fans_tick()
231 if (rc) { in wf_smu_cpu_fans_tick()
239 if (rc) { in wf_smu_cpu_fans_tick()
250 if (temp > 0x4a0000) in wf_smu_cpu_fans_tick()
253 if (temp > st->pid.param.tmax) in wf_smu_cpu_fans_tick()
260 if (st->cpu_setpoint == new_setpoint) in wf_smu_cpu_fans_tick()
264 if (fan_cpu_main && wf_smu_failure_state == 0) { in wf_smu_cpu_fans_tick()
267 if (rc) { in wf_smu_cpu_fans_tick()
273 if (fan_cpu_second && wf_smu_failure_state == 0) { in wf_smu_cpu_fans_tick()
276 if (rc) { in wf_smu_cpu_fans_tick()
282 if (fan_cpu_third && wf_smu_failure_state == 0) { in wf_smu_cpu_fans_tick()
285 if (rc) { in wf_smu_cpu_fans_tick()
307 if (wf_smu_drive_fans == NULL) { in wf_smu_create_drive_fans()
326 if (fan_hd) in wf_smu_create_drive_fans()
335 if (--st->ticks != 0) { in wf_smu_drive_fans_tick()
336 if (wf_smu_readjust) in wf_smu_drive_fans_tick()
343 if (rc) { in wf_smu_drive_fans_tick()
353 if (temp > (st->pid.param.itarget + 0x50000)) in wf_smu_drive_fans_tick()
360 if (st->setpoint == new_setpoint) in wf_smu_drive_fans_tick()
364 if (fan_hd && wf_smu_failure_state == 0) { in wf_smu_drive_fans_tick()
366 if (rc) { in wf_smu_drive_fans_tick()
388 if (wf_smu_slots_fans == NULL) { in wf_smu_create_slots_fans()
407 if (fan_slots) in wf_smu_create_slots_fans()
416 if (--st->ticks != 0) { in wf_smu_slots_fans_tick()
417 if (wf_smu_readjust) in wf_smu_slots_fans_tick()
424 if (rc) { in wf_smu_slots_fans_tick()
434 #if 0 /* Check what makes a good overtemp condition */ in wf_smu_slots_fans_tick()
435 if (power > (st->pid.param.itarget + 0x50000)) in wf_smu_slots_fans_tick()
443 if (st->setpoint == new_setpoint) in wf_smu_slots_fans_tick()
447 if (fan_slots && wf_smu_failure_state == 0) { in wf_smu_slots_fans_tick()
449 if (rc) { in wf_smu_slots_fans_tick()
468 if (!wf_smu_started) { in wf_smu_tick()
477 if (wf_smu_skipping && --wf_smu_skipping) in wf_smu_tick()
481 if (wf_smu_drive_fans) in wf_smu_tick()
483 if (wf_smu_slots_fans) in wf_smu_tick()
485 if (wf_smu_cpu_fans) in wf_smu_tick()
491 /* If entering failure mode, clamp cpufreq and ramp all in wf_smu_tick()
494 if (wf_smu_failure_state && !last_failure) { in wf_smu_tick()
495 if (cpufreq_clamp) in wf_smu_tick()
497 if (fan_cpu_main) in wf_smu_tick()
499 if (fan_cpu_second) in wf_smu_tick()
501 if (fan_cpu_third) in wf_smu_tick()
503 if (fan_hd) in wf_smu_tick()
505 if (fan_slots) in wf_smu_tick()
509 /* If leaving failure mode, unclamp cpufreq and readjust in wf_smu_tick()
512 if (!wf_smu_failure_state && last_failure) { in wf_smu_tick()
513 if (cpufreq_clamp) in wf_smu_tick()
521 if (new_failure & FAILURE_OVERTEMP) { in wf_smu_tick()
526 /* We only clear the overtemp condition if overtemp is cleared in wf_smu_tick()
532 if (new_failure == 0 && last_failure & FAILURE_OVERTEMP) in wf_smu_tick()
539 if (wf_smu_all_controls_ok) in wf_smu_new_control()
542 if (fan_cpu_main == NULL && !strcmp(ct->name, "cpu-rear-fan-0")) { in wf_smu_new_control()
543 if (wf_get_control(ct) == 0) in wf_smu_new_control()
547 if (fan_cpu_second == NULL && !strcmp(ct->name, "cpu-rear-fan-1")) { in wf_smu_new_control()
548 if (wf_get_control(ct) == 0) in wf_smu_new_control()
552 if (fan_cpu_third == NULL && !strcmp(ct->name, "cpu-front-fan-0")) { in wf_smu_new_control()
553 if (wf_get_control(ct) == 0) in wf_smu_new_control()
557 if (cpufreq_clamp == NULL && !strcmp(ct->name, "cpufreq-clamp")) { in wf_smu_new_control()
558 if (wf_get_control(ct) == 0) in wf_smu_new_control()
562 if (fan_hd == NULL && !strcmp(ct->name, "drive-bay-fan")) { in wf_smu_new_control()
563 if (wf_get_control(ct) == 0) in wf_smu_new_control()
567 if (fan_slots == NULL && !strcmp(ct->name, "slots-fan")) { in wf_smu_new_control()
568 if (wf_get_control(ct) == 0) in wf_smu_new_control()
572 if (fan_cpu_main && (fan_cpu_second || fan_cpu_third) && fan_hd && in wf_smu_new_control()
579 if (wf_smu_all_sensors_ok) in wf_smu_new_sensor()
582 if (sensor_cpu_power == NULL && !strcmp(sr->name, "cpu-power")) { in wf_smu_new_sensor()
583 if (wf_get_sensor(sr) == 0) in wf_smu_new_sensor()
587 if (sensor_cpu_temp == NULL && !strcmp(sr->name, "cpu-temp")) { in wf_smu_new_sensor()
588 if (wf_get_sensor(sr) == 0) in wf_smu_new_sensor()
592 if (sensor_hd_temp == NULL && !strcmp(sr->name, "hd-temp")) { in wf_smu_new_sensor()
593 if (wf_get_sensor(sr) == 0) in wf_smu_new_sensor()
597 if (sensor_slots_power == NULL && !strcmp(sr->name, "slots-power")) { in wf_smu_new_sensor()
598 if (wf_get_sensor(sr) == 0) in wf_smu_new_sensor()
602 if (sensor_cpu_power && sensor_cpu_temp && in wf_smu_new_sensor()
624 if (wf_smu_all_controls_ok && wf_smu_all_sensors_ok) in wf_smu_notify()
666 if (sensor_cpu_power) in wf_smu_remove()
668 if (sensor_cpu_temp) in wf_smu_remove()
670 if (sensor_hd_temp) in wf_smu_remove()
672 if (sensor_slots_power) in wf_smu_remove()
676 if (fan_cpu_main) in wf_smu_remove()
678 if (fan_cpu_second) in wf_smu_remove()
680 if (fan_cpu_third) in wf_smu_remove()
682 if (fan_hd) in wf_smu_remove()
684 if (fan_slots) in wf_smu_remove()
686 if (cpufreq_clamp) in wf_smu_remove()
711 if (of_machine_is_compatible("PowerMac9,1")) in wf_smu_init()
714 if (rc == 0) { in wf_smu_init()