Lines Matching refs:ct
269 struct wf_control *ct; in cpu_fans_tick() local
327 ct = cpu_fans[i]; in cpu_fans_tick()
328 if (ct == NULL) in cpu_fans_tick()
330 err = ct->ops->set_value(ct, target * cpu_fan_scale[i] / 100); in cpu_fans_tick()
333 "error %d\n", ct->name, err); in cpu_fans_tick()
552 static void pm112_new_control(struct wf_control *ct) in pm112_new_control() argument
556 if (cpufreq_clamp == NULL && !strcmp(ct->name, "cpufreq-clamp")) { in pm112_new_control()
557 if (wf_get_control(ct) == 0) in pm112_new_control()
558 cpufreq_clamp = ct; in pm112_new_control()
562 if (!strcmp(ct->name, cpu_fan_names[i])) { in pm112_new_control()
563 if (cpu_fans[i] == NULL && wf_get_control(ct) == 0) in pm112_new_control()
564 cpu_fans[i] = ct; in pm112_new_control()
570 if (!strcmp(ct->name, "backside-fan")) { in pm112_new_control()
571 if (backside_fan == NULL && wf_get_control(ct) == 0) in pm112_new_control()
572 backside_fan = ct; in pm112_new_control()
573 } else if (!strcmp(ct->name, "slots-fan")) { in pm112_new_control()
574 if (slots_fan == NULL && wf_get_control(ct) == 0) in pm112_new_control()
575 slots_fan = ct; in pm112_new_control()
576 } else if (!strcmp(ct->name, "drive-bay-fan")) { in pm112_new_control()
577 if (drive_bay_fan == NULL && wf_get_control(ct) == 0) in pm112_new_control()
578 drive_bay_fan = ct; in pm112_new_control()
590 if ((ct = cpu_fans[i]) != NULL) in pm112_new_control()
592 ct->ops->get_max(ct) * 100 / max_exhaust; in pm112_new_control()