Searched refs:fan (Results 1 - 6 of 6) sorted by relevance

/freebsd-13-stable/sys/powerpc/powermac/
H A Dpowermac_thermal.c65 &enable_pmac_thermal, 1, "Enable automatic fan management");
69 struct pmac_fan *fan; member in struct:pmac_fan_le
102 struct pmac_fan_le *fan; local
143 SLIST_FOREACH(fan, &fans, entries) {
154 if (sensor->sensor->zone == fan->fan->zone) {
169 fan->fan->set(fan->fan, fa
196 pmac_thermal_fan_register(struct pmac_fan *fan) argument
[all...]
H A Dfcu.c57 * /u3@0,f8000000/i2c@f8001000/fan@15e
72 struct pmac_fan fan; member in struct:fcu_fan
92 /* We can read the PWM and the RPM from a PWM controlled fan.
109 static int fcu_fan_set_rpm(struct fcu_fan *fan, int rpm);
110 static int fcu_fan_get_rpm(struct fcu_fan *fan);
111 static int fcu_fan_set_pwm(struct fcu_fan *fan, int pwm);
112 static int fcu_fan_get_pwm(device_t dev, struct fcu_fan *fan, int *pwm,
206 if (strcmp(name, "fan") != 0 || strcmp(compatible, "fcu") != 0)
270 fcu_fan_set_rpm(struct fcu_fan *fan, int rpm) argument
276 sc = device_get_softc(fan
300 fcu_fan_get_rpm(struct fcu_fan *fan) argument
355 fcu_fan_set_pwm(struct fcu_fan *fan, int pwm) argument
387 fcu_fan_get_pwm(device_t dev, struct fcu_fan *fan, int *pwm, int *rpm) argument
532 struct fcu_fan *fan; local
[all...]
H A Dsmu.c78 struct pmac_fan fan; member in struct:smu_fan
91 /* We can read the PWM and the RPM from a PWM controlled fan.
660 * Sensor and fan management
664 smu_fan_check_old_style(struct smu_fan *fan) argument
666 device_t smu = fan->dev;
675 * Apple has two fan control mechanisms. We can't distinguish
683 cmd.data[1] = fan->reg;
695 smu_fan_set_rpm(struct smu_fan *fan, int rpm) argument
697 device_t smu = fan->dev;
705 rpm = max(fan
736 smu_fan_read_rpm(struct smu_fan *fan) argument
772 smu_fan_set_pwm(struct smu_fan *fan, int pwm) argument
819 smu_fan_read_pwm(struct smu_fan *fan, int *pwm, int *rpm) argument
869 struct smu_fan *fan; local
917 struct smu_fan *fan; local
997 struct smu_fan *fan; local
[all...]
/freebsd-13-stable/sys/dev/iicbus/
H A Dadm1030.c58 struct pmac_fan fan; member in struct:adm1030_softc
72 static int adm1030_set(struct adm1030_softc *fan, int pwm);
134 if (strcmp(name, "fan") != 0 || strcmp(compatible, "adm1030") != 0)
194 sc->fan.min_rpm = 0;
195 sc->fan.max_rpm = 0x0F;
196 sc->fan.default_rpm = 2;
198 strcpy(sc->fan.name, "MDD Case fan");
199 sc->fan.zone = 0;
200 sc->fan
207 adm1030_set(struct adm1030_softc *fan, int pwm) argument
[all...]
H A Dadt746x.c76 struct pmac_fan fan; member in struct:adt746x_fan
122 static int adt746x_fan_set_pwm(struct adt746x_fan *fan, int pwm);
123 static int adt746x_fan_get_pwm(struct adt746x_fan *fan);
221 if (strcmp(name, "fan") != 0 ||
296 * Sensor and fan management
299 adt746x_fan_set_pwm(struct adt746x_fan *fan, int pwm) argument
305 sc = device_get_softc(fan->dev);
308 pwm = max(fan->fan.min_rpm, pwm);
309 pwm = min(fan
333 adt746x_fan_get_pwm(struct adt746x_fan *fan) argument
454 struct adt746x_fan *fan; local
[all...]
/freebsd-13-stable/sys/dev/asmc/
H A Dasmc.c80 static int asmc_fan_getvalue(device_t dev, const char *key, int fan);
81 static int asmc_fan_setvalue(device_t dev, const char *key, int fan, int speed);
493 * dev.asmc.n.fan.* tree.
496 SYSCTL_CHILDREN(sysctlnode), OID_AUTO, "fan",
1079 asmc_fan_getvalue(device_t dev, const char *key, int fan) argument
1085 snprintf(fankey, sizeof(fankey), key, fan);
1094 asmc_fan_getstring(device_t dev, const char *key, int fan, uint8_t *buf, uint8_t buflen) argument
1099 snprintf(fankey, sizeof(fankey), key, fan);
1108 asmc_fan_setvalue(device_t dev, const char *key, int fan, int speed) argument
1118 snprintf(fankey, sizeof(fankey), key, fan);
1129 int fan = arg2; local
1144 int fan = arg2; local
1160 int fan = arg2; local
1174 int fan = arg2; local
1193 int fan = arg2; local
1212 int fan = arg2; local
[all...]

Completed in 167 milliseconds