Lines Matching full:fan
64 /* The SMU has an "old" and a "new" way of setting the fan speed in smu_set_fan()
100 printk(KERN_WARNING "windfarm: SMU failed new fan command " in smu_set_fan()
188 if (!strcmp(l, "Rear Fan 0") || !strcmp(l, "Rear Fan") || in smu_fan_create()
189 !strcmp(l, "Rear fan 0") || !strcmp(l, "Rear fan") || in smu_fan_create()
191 fct->ctrl.name = "cpu-rear-fan-0"; in smu_fan_create()
192 else if (!strcmp(l, "Rear Fan 1") || !strcmp(l, "Rear fan 1") || in smu_fan_create()
194 fct->ctrl.name = "cpu-rear-fan-1"; in smu_fan_create()
195 else if (!strcmp(l, "Front Fan 0") || !strcmp(l, "Front Fan") || in smu_fan_create()
196 !strcmp(l, "Front fan 0") || !strcmp(l, "Front fan") || in smu_fan_create()
198 fct->ctrl.name = "cpu-front-fan-0"; in smu_fan_create()
199 else if (!strcmp(l, "Front Fan 1") || !strcmp(l, "Front fan 1") || in smu_fan_create()
201 fct->ctrl.name = "cpu-front-fan-1"; in smu_fan_create()
206 else if (!strcmp(l, "Slots Fan") || !strcmp(l, "Slots fan") || in smu_fan_create()
208 fct->ctrl.name = "slots-fan"; in smu_fan_create()
211 fct->ctrl.name = "drive-bay-fan"; in smu_fan_create()
213 fct->ctrl.name = "backside-fan"; in smu_fan_create()
216 if (!strcmp(l, "System Fan") || !strcmp(l, "System fan")) in smu_fan_create()
217 fct->ctrl.name = "system-fan"; in smu_fan_create()
218 else if (!strcmp(l, "CPU Fan") || !strcmp(l, "CPU fan")) in smu_fan_create()
219 fct->ctrl.name = "cpu-fan"; in smu_fan_create()
221 fct->ctrl.name = "drive-bay-fan"; in smu_fan_create()
222 else if (!strcmp(l, "HDD Fan")) /* seen on iMac G5 iSight */ in smu_fan_create()
223 fct->ctrl.name = "hard-drive-fan"; in smu_fan_create()
224 else if (!strcmp(l, "ODD Fan")) /* same */ in smu_fan_create()
225 fct->ctrl.name = "optical-drive-fan"; in smu_fan_create()
227 /* Unrecognized fan, bail out */ in smu_fan_create()
259 struct device_node *smu, *fans, *fan; in smu_controls_init() local
273 for_each_child_of_node(fans, fan) { in smu_controls_init()
276 fct = smu_fan_create(fan, 0); in smu_controls_init()
279 "RPM fan %pOFn\n", fan); in smu_controls_init()
291 for_each_child_of_node(fans, fan) { in smu_controls_init()
294 fct = smu_fan_create(fan, 1); in smu_controls_init()
297 "PWM fan %pOFn\n", fan); in smu_controls_init()