Lines Matching full:fan

3  * g762 - Driver for the Global Mixed-mode Technology Inc. fan speed
67 #define G762_REG_FAN_CMD1_FAN_MODE 0x10 /* fan mode: closed/open-loop */
71 #define G762_REG_FAN_CMD1_PULSE_PER_REV 0x01 /* pulse per fan revolution */
73 #define G762_REG_FAN_CMD2_GEAR_MODE_1 0x08 /* fan gear mode */
75 #define G762_REG_FAN_CMD2_FAN_STARTV_1 0x02 /* fan startup voltage */
78 #define G762_REG_FAN_STA_FAIL 0x02 /* fan fail */
79 #define G762_REG_FAN_STA_OOC 0x01 /* fan out of control */
95 * Extract pulse count per fan revolution value (2 or 4) from given
102 * Extract fan clock divisor (1, 2, 4 or 8) from given FAN_CMD1
110 * Extract fan gear mode multiplier value (0, 2 or 4) from given
131 u8 set_cnt; /* controls fan rotation speed in closed-loop mode */
132 u8 act_cnt; /* provides access to current fan RPM value */
133 u8 fan_sta; /* bit 0: set when actual fan speed is more than
134 * 25% outside requested fan speed
135 * bit 1: set when no transition occurs on fan
138 u8 set_out; /* controls fan rotation speed in open-loop mode */
145 * 00: Divide fan clock by 1
146 * 01: Divide fan clock by 2
147 * 10: Divide fan clock by 4
148 * 11: Divide fan clock by 8
151 * 6: DET_FAN_OOC enable "fan ooc" status
152 * 7: DET_FAN_FAIL enable "fan fail" status
164 * Convert count value from fan controller register (FAN_SET_CNT) into fan
166 * influence of additional parameters (fan clock divisor, fan gear mode)
172 if (cnt == 0xff) /* setting cnt to 255 stops the fan */ in rpm_from_cnt()
179 * Convert fan RPM value from sysfs into count value for fan controller
188 if (!rpm) /* to stop the fan, set cnt to 255 */ in cnt_from_rpm()
300 /* Set fan clock divisor. Accepts either 1, 2, 4 or 8. */
340 /* Set fan gear mode. Accepts either 0, 1 or 2. */
376 /* Set number of fan pulses per revolution. Accepts either 2 or 4. */
406 /* Set fan mode. Accepts either 1 (open-loop) or 2 (closed-loop). */
424 * unknown reason, fan will not rotate as expected, no matter in do_set_pwm_enable()
478 * Set pwm value. Accepts values between 0 (stops the fan) and
499 * Set fan RPM value. Can be called both in closed and open-loop mode
523 /* Set fan startup voltage. Accepted values are either 0, 1, 2 or 3. */
720 * Read function for fan1_input sysfs file. Return current fan RPM value, or
721 * 0 if fan is out of control.
733 /* reverse logic: fan out of control reporting is enabled low */ in fan1_input_show()
746 * Read and write functions for pwm1_mode sysfs file. Get and set fan speed
779 * Read and write functions for fan1_div sysfs file. Get and set fan
811 * of tachometer pulses per fan revolution.
842 * Read and write functions for pwm1_enable. Get and set fan speed control mode
848 * 0 : no fan speed control (i.e. fan at full speed)
849 * 1 : manual fan speed control enabled (use pwm[1-*]) (open-loop)
850 * 2+: automatic fan speed control enabled (use fan[1-*]_target) (closed-loop)
886 * (which affects fan speed) in open-loop mode. 0 stops the fan and 255
917 * Read and write function for fan1_target sysfs file. Get/set the fan speed in
919 * the fan speed using pulses from fan tachometer.
1017 * Enable both fan failure detection and fan out of control protection. The
1055 /* Enable fan failure detection and fan out of control protection */ in g762_probe()