Lines Matching refs:cpu_fan_speed
112 int cpu_fan_speed; member
133 if (fp->cpu_fan_speed < FAN_SPEED_MIN) in set_fan_speeds()
134 fp->cpu_fan_speed = FAN_SPEED_MIN; in set_fan_speeds()
135 if (fp->cpu_fan_speed > FAN_SPEED_MAX) in set_fan_speeds()
136 fp->cpu_fan_speed = FAN_SPEED_MAX; in set_fan_speeds()
144 fp->cpu_fan_speed, fp->system_fan_speed); in set_fan_speeds()
147 bbc_i2c_writeb(fp->client, fp->cpu_fan_speed, CPU_FAN_REG); in set_fan_speeds()
382 orig_speed <= (fp->cpu_fan_speed - 3)) in maybe_new_ambient_fan_speed()
402 if (fp->cpu_fan_speed >= FAN_SPEED_MAX) in maybe_new_cpu_fan_speed()
405 fp->cpu_fan_speed = FAN_SPEED_MAX; in maybe_new_cpu_fan_speed()
408 if (fp->cpu_fan_speed >= FAN_SPEED_MAX) in maybe_new_cpu_fan_speed()
411 fp->cpu_fan_speed += 2; in maybe_new_cpu_fan_speed()
413 (fp->cpu_fan_speed - 3)) in maybe_new_cpu_fan_speed()
415 fp->cpu_fan_speed - 3; in maybe_new_cpu_fan_speed()
418 if (fp->cpu_fan_speed <= FAN_SPEED_MIN) in maybe_new_cpu_fan_speed()
421 fp->cpu_fan_speed -= 1; in maybe_new_cpu_fan_speed()
447 fp->cpu_fan_speed = FAN_SPEED_MAX; in fans_full_blast()
566 fp->cpu_fan_speed = (FAN_SPEED_MAX - FAN_SPEED_MIN) / 2; in attach_one_fan()
567 fp->cpu_fan_speed += FAN_SPEED_MIN; in attach_one_fan()