Lines Matching defs:fan
65 /* The SMU has an "old" and a "new" way of setting the fan speed
101 printk(KERN_WARNING "windfarm: SMU failed new fan command "
191 !strcmp(l, "Rear fan 0") || !strcmp(l, "Rear fan") ||
193 fct->ctrl.name = "cpu-rear-fan-0";
194 else if (!strcmp(l, "Rear Fan 1") || !strcmp(l, "Rear fan 1") ||
196 fct->ctrl.name = "cpu-rear-fan-1";
198 !strcmp(l, "Front fan 0") || !strcmp(l, "Front fan") ||
200 fct->ctrl.name = "cpu-front-fan-0";
201 else if (!strcmp(l, "Front Fan 1") || !strcmp(l, "Front fan 1") ||
203 fct->ctrl.name = "cpu-front-fan-1";
208 else if (!strcmp(l, "Slots Fan") || !strcmp(l, "Slots fan") ||
210 fct->ctrl.name = "slots-fan";
213 fct->ctrl.name = "drive-bay-fan";
215 fct->ctrl.name = "backside-fan";
218 if (!strcmp(l, "System Fan") || !strcmp(l, "System fan"))
219 fct->ctrl.name = "system-fan";
220 else if (!strcmp(l, "CPU Fan") || !strcmp(l, "CPU fan"))
221 fct->ctrl.name = "cpu-fan";
223 fct->ctrl.name = "drive-bay-fan";
225 fct->ctrl.name = "hard-drive-fan";
227 fct->ctrl.name = "optical-drive-fan";
229 /* Unrecognized fan, bail out */
261 struct device_node *smu, *fans, *fan;
275 for (fan = NULL;
276 fans && (fan = of_get_next_child(fans, fan)) != NULL;) {
279 fct = smu_fan_create(fan, 0);
282 "RPM fan %s\n", fan->name);
294 for (fan = NULL;
295 fans && (fan = of_get_next_child(fans, fan)) != NULL;) {
298 fct = smu_fan_create(fan, 1);
301 "PWM fan %s\n", fan->name);