Home
last modified time | relevance | path

Searched full:fan (Results 1 – 25 of 646) sorted by relevance

12345678910>>...26

/Linux-v6.1/drivers/macintosh/
Dwindfarm_fcu_controls.c3 * Windfarm PowerMac thermal control. FCU fan control
80 struct wf_fcu_fan *fan = ct->priv; in wf_fcu_fan_release() local
82 kref_put(&fan->fcu_priv->ref, wf_fcu_release); in wf_fcu_fan_release()
83 kfree(fan); in wf_fcu_fan_release()
146 struct wf_fcu_fan *fan = ct->priv; in wf_fcu_fan_set_rpm() local
147 struct wf_fcu_priv *pv = fan->fcu_priv; in wf_fcu_fan_set_rpm()
151 if (value < fan->min) in wf_fcu_fan_set_rpm()
152 value = fan->min; in wf_fcu_fan_set_rpm()
153 if (value > fan->max) in wf_fcu_fan_set_rpm()
154 value = fan->max; in wf_fcu_fan_set_rpm()
[all …]
Dwindfarm_smu_controls.c64 /* 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()
[all …]
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
Dfan.c27 #include <subdev/bios/fan.h>
32 nvkm_fan_update(struct nvkm_fan *fan, bool immediate, int target) in nvkm_fan_update() argument
34 struct nvkm_therm *therm = fan->parent; in nvkm_fan_update()
41 /* update target fan speed, restricting to allowed range */ in nvkm_fan_update()
42 spin_lock_irqsave(&fan->lock, flags); in nvkm_fan_update()
44 target = fan->percent; in nvkm_fan_update()
45 target = max_t(u8, target, fan->bios.min_duty); in nvkm_fan_update()
46 target = min_t(u8, target, fan->bios.max_duty); in nvkm_fan_update()
47 if (fan->percent != target) { in nvkm_fan_update()
48 nvkm_debug(subdev, "FAN target: %d\n", target); in nvkm_fan_update()
[all …]
Dfantog.c39 nvkm_fantog_update(struct nvkm_fantog *fan, int percent) in nvkm_fantog_update() argument
41 struct nvkm_therm *therm = fan->base.parent; in nvkm_fantog_update()
48 spin_lock_irqsave(&fan->lock, flags); in nvkm_fantog_update()
50 percent = fan->percent; in nvkm_fantog_update()
51 fan->percent = percent; in nvkm_fantog_update()
57 u64 next_change = (percent * fan->period_us) / 100; in nvkm_fantog_update()
59 next_change = fan->period_us - next_change; in nvkm_fantog_update()
60 nvkm_timer_alarm(tmr, next_change * 1000, &fan->alarm); in nvkm_fantog_update()
62 spin_unlock_irqrestore(&fan->lock, flags); in nvkm_fantog_update()
68 struct nvkm_fantog *fan = in nvkm_fantog_alarm() local
[all …]
Dfanpwm.c29 #include <subdev/bios/fan.h>
40 struct nvkm_fanpwm *fan = (void *)therm->fan; in nvkm_fanpwm_get() local
47 ret = therm->func->pwm_get(therm, fan->func.line, &divs, &duty); in nvkm_fanpwm_get()
50 if (card_type <= NV_40 || (fan->func.log[0] & 1)) in nvkm_fanpwm_get()
55 return nvkm_gpio_get(gpio, 0, fan->func.func, fan->func.line) * 100; in nvkm_fanpwm_get()
61 struct nvkm_fanpwm *fan = (void *)therm->fan; in nvkm_fanpwm_set() local
66 divs = fan->base.perf.pwm_divisor; in nvkm_fanpwm_set()
67 if (fan->base.bios.pwm_freq) { in nvkm_fanpwm_set()
70 divs = therm->func->pwm_clock(therm, fan->func.line); in nvkm_fanpwm_set()
71 divs /= fan->base.bios.pwm_freq; in nvkm_fanpwm_set()
[all …]
/Linux-v6.1/drivers/platform/x86/
Dgpd-pocket-fan.c3 * GPD Pocket fan controller driver
33 "Millicelsius values above which the fan speed increases");
38 "Hysteresis in millicelsius before lowering the fan speed");
43 "minimum fan speed to allow when system is powered by AC");
55 static void gpd_pocket_fan_set_speed(struct gpd_pocket_fan_data *fan, int speed) in gpd_pocket_fan_set_speed() argument
57 if (speed == fan->last_speed) in gpd_pocket_fan_set_speed()
60 gpiod_direction_output(fan->gpio0, !!(speed & 1)); in gpd_pocket_fan_set_speed()
61 gpiod_direction_output(fan->gpio1, !!(speed & 2)); in gpd_pocket_fan_set_speed()
63 fan->last_speed = speed; in gpd_pocket_fan_set_speed()
76 struct gpd_pocket_fan_data *fan = in gpd_pocket_fan_worker() local
[all …]
/Linux-v6.1/drivers/acpi/
Dfan_core.c3 * fan_core.c - ACPI Fan core Driver
20 #include "fan.h"
33 struct acpi_fan *fan = acpi_driver_data(device); in fan_get_max_state() local
35 if (fan->acpi4) { in fan_get_max_state()
36 if (fan->fif.fine_grain_ctrl) in fan_get_max_state()
37 *state = 100 / fan->fif.step_size; in fan_get_max_state()
39 *state = fan->fps_count - 1; in fan_get_max_state()
56 dev_err(&device->dev, "Get fan state failed\n"); in acpi_fan_get_fst()
80 struct acpi_fan *fan = acpi_driver_data(device); in fan_get_state_acpi4() local
88 if (fan->fif.fine_grain_ctrl) { in fan_get_state_acpi4()
[all …]
Dfan_attr.c3 * fan_attr.c - Create extra attributes for ACPI Fan driver
15 #include "fan.h"
68 struct acpi_fan *fan = acpi_driver_data(acpi_dev); in show_fine_grain_control() local
70 return sprintf(buf, "%d\n", fan->fif.fine_grain_ctrl); in show_fine_grain_control()
75 struct acpi_fan *fan = acpi_driver_data(device); in acpi_fan_create_attributes() local
78 sysfs_attr_init(&fan->fine_grain_control.attr); in acpi_fan_create_attributes()
79 fan->fine_grain_control.show = show_fine_grain_control; in acpi_fan_create_attributes()
80 fan->fine_grain_control.store = NULL; in acpi_fan_create_attributes()
81 fan->fine_grain_control.attr.name = "fine_grain_control"; in acpi_fan_create_attributes()
82 fan->fine_grain_control.attr.mode = 0444; in acpi_fan_create_attributes()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/hwmon/
Dnpcm750-pwm-fan.txt1 Nuvoton NPCM7xx PWM and Fan Tacho controller device
4 controller outputs and 16 Fan tachometer controller inputs.
6 Required properties for pwm-fan node
9 - compatible : "nuvoton,npcm750-pwm-fan" for Poleg NPCM7XX.
13 * "fan" for the Fan registers.
17 * "fan" for Fan controller operating clock.
18 - interrupts : contain the Fan interrupts with flags for falling edge.
20 - pinctrl-0 : phandle referencing pin configuration of the PWM and Fan
23 fan subnode format:
25 Under fan subnode can be upto 8 child nodes, each child node representing a fan.
[all …]
Daspeed-pwm-tacho.txt1 ASPEED AST2400/AST2500 PWM and Fan Tacho controller device driver
3 The ASPEED PWM controller can support upto 8 PWM outputs. The ASPEED Fan Tacho
4 controller can support upto 16 Fan tachometer inputs.
6 There can be upto 8 fans supported. Each fan can have one PWM output and
7 one/two Fan tach inputs.
29 fan subnode format:
31 Under fan subnode there can upto 8 child nodes, with each child node
32 representing a fan. If there are 8 fans each fan can have one PWM port and
33 one/two Fan tach inputs.
45 - aspeed,fan-tach-ch : should specify the Fan tach input channel.
[all …]
Dpwm-fan.txt1 Bindings for a fan connected to the PWM lines
4 - compatible : "pwm-fan"
5 - pwms : the PWM that is used to control the PWM fan
10 - fan-supply : phandle to the regulator that provides power to the fan
11 - interrupts : This contains an interrupt specifier for each fan
14 interrupts per fan revolution, which require that
17 - pulses-per-revolution : define the number of pulses per fan revolution for
23 fan0: pwm-fan {
24 compatible = "pwm-fan";
51 fan0: pwm-fan {
[all …]
Dmax6650.txt1 Bindings for MAX6651 and MAX6650 I2C fan controllers
11 - maxim,fan-microvolt : The supply voltage of the fan, either 5000000 uV or
13 - maxim,fan-prescale : Pre-scaling value, as per datasheet [1]. Lower values
16 - maxim,fan-target-rpm: Initial requested fan rotation speed. If specified, the
18 This ensures the fan is already running before userspace
22 fan-max6650: max6650@1b {
25 maxim,fan-microvolt = <12000000>;
26 maxim,fan-prescale = <4>;
27 maxim,fan-target-rpm = <1200>;
/Linux-v6.1/drivers/hwmon/
Dmlxreg-fan.c27 * FAN datasheet defines the formula for RPM calculations as RPM = 15/t-high.
77 * @fan: private data;
86 struct mlxreg_fan *fan; member
123 struct mlxreg_fan *fan = dev_get_drvdata(dev); in mlxreg_fan_read() local
131 tacho = &fan->tacho[channel]; in mlxreg_fan_read()
135 * Check FAN presence: FAN related bit in presence register is one, in mlxreg_fan_read()
136 * if FAN is physically connected, zero - otherwise. in mlxreg_fan_read()
138 if (tacho->prsnt && fan->tachos_per_drwr) { in mlxreg_fan_read()
139 err = regmap_read(fan->regmap, tacho->prsnt, &regval); in mlxreg_fan_read()
147 if (BIT(channel / fan->tachos_per_drwr) & regval) { in mlxreg_fan_read()
[all …]
/Linux-v6.1/Documentation/hwmon/
Dg762.rst4 The GMT G762 Fan Speed PWM Controller is connected directly to a fan
5 and performs closed-loop or open-loop control of the fan speed. Two
19 fan revolution, ...); Those can be modified via devicetree bindings
25 set desired fan speed. This only makes sense in closed-loop
26 fan speed control (i.e. when pwm1_enable is set to 2).
29 provide current fan rotation value in RPM as reported by
30 the fan to the device.
33 fan clock divisor. Supported value are 1, 2, 4 and 8.
36 number of pulses per fan revolution. Supported values
40 reports fan failure, i.e. no transition on fan gear pin for
[all …]
Ddell-smm-hwmon.rst18 automatically adjust fan speed (please notice that it currently uses
35 fan[1-3]_input RO Fan speed in RPM.
36 fan[1-3]_label RO Fan label.
37 fan[1-3]_min RO Minimal Fan speed in RPM
38 fan[1-3]_max RO Maximal Fan speed in RPM
39 fan[1-3]_target RO Expected Fan speed in RPM
40 pwm[1-3] RW Control the fan PWM duty-cycle.
41 pwm1_enable WO Enable or disable automatic BIOS fan
50 fan number X.
52 Disabling automatic BIOS fan control
[all …]
Dnct6775.rst100 There are 4 to 5 fan rotation speed sensors, 8 to 15 analog voltage sensors,
102 fan regulation strategies (plus manual fan control mode).
113 Fan rotation speeds are reported in RPM (rotations per minute). An alarm is
115 NCT6775F, fan readings can be divided by a programmable divider (1, 2, 4, 8,
117 do not have a fan speed divider. The driver sets the most suitable fan divisor
118 itself; specifically, it increases the divider value each time a fan speed
119 reading returns an invalid value, and it reduces it if the fan speed reading
127 The driver supports automatic fan control mode known as Thermal Cruise.
129 predefined temperature range. If the temperature goes out of range, fan
138 - this file stores PWM duty cycle or DC value (fan speed) in range:
[all …]
Dw83792d.rst44 The driver implements three temperature sensors, seven fan rotation speed
45 sensors, nine voltage sensors, and two automatic fan regulation
46 strategies called: Smart Fan I (Thermal Cruise mode) and Smart Fan II.
48 The driver also implements up to seven fan control outputs: pwm1-7. Pwm1-7
53 Automatic fan control mode is possible only for fan1-fan3.
55 For all pwmX outputs, a value of 0 means minimum fan speed and a value of
56 255 means maximum fan speed.
63 Fan rotation speeds are reported in RPM (rotations per minute). An alarm is
64 triggered if the rotation speed has dropped below a programmable limit. Fan
105 of full speed rotation of corresponding fan.
[all …]
Df71882fg.rst125 These chips also have fan controlling features, using either DC or PWM, in
135 The Voltage, Fan and Temperature Monitoring uses the standard sysfs
139 Fan Control
142 Both PWM (pulse-width modulation) and DC fan speed control methods are
153 There are 2 modes to specify the speed of the fan, PWM duty cycle (or DC
155 mode where the actual RPM of the fan (as measured) is controlled and the speed
156 gets specified as 0-100% of the fan#_full_speed file.
159 whole lot of a difference when modifying fan control settings. The only
160 important difference is that in RPM mode the 0-100% controls the fan speed
161 between 0-100% of fan#_full_speed. It is assumed that if the BIOS programs
[all …]
Dadm9240.rst54 temperature, two fan speeds and chassis intrusion. Measured values can
76 with independent fan speed measurement cycles counting alternating rising
77 edges of the fan tacho inputs.
79 DS1780 measurement cycle is about once per second including fan speed.
81 LM81 measurement cycle is about once per 400ms including fan speed.
93 Fan Speed
95 Two fan tacho inputs are provided, the ADM9240 gates an internal 22.5kHz
96 clock via a divider to an 8-bit counter. Fan speed (rpm) is calculated by:
100 Automatic fan clock divider
105 - fan clock divider not changed
[all …]
Dmax31785.rst19 The Maxim MAX31785 is a PMBus device providing closed-loop, multi-channel fan
20 management with temperature and remote voltage sensing. Various fan control
22 dual tachometer measurements, and fan health monitoring.
25 readings in attributes fan[5-8]_input. By contrast the MAX31785 only exposes
26 the slowest rotor measurement, and does so in the fan[1-4]_input attributes.
38 fan[1-4]_alarm Fan alarm.
39 fan[1-4]_fault Fan fault.
40 fan[1-8]_input Fan RPM. On the MAX31785A, inputs 5-8 correspond to the
42 fan[1-4]_target Fan input target
55 pwm[1-4] Fan target duty cycle (0..255)
[all …]
Dw83627ehf.rst88 2 to 5 fan rotation speed sensors, 8 to 10 analog voltage sensors, one VID
90 and some automatic fan regulation strategies (plus manual fan control mode).
105 Fan rotation speeds are reported in RPM (rotations per minute). An alarm is
106 triggered if the rotation speed has dropped below a programmable limit. Fan
109 suitable fan divisor itself. Some fans might not be present because they
116 The driver supports automatic fan control mode known as Thermal Cruise.
118 predefined temperature range. If the temperature goes out of range, fan
139 this file stores PWM duty cycle or DC value (fan speed) in range:
144 this file controls mode of fan/temperature control:
148 * 3 "Fan Speed Cruise" mode
[all …]
/Linux-v6.1/arch/arm/boot/dts/
Daspeed-bmc-amd-daytonax.dts231 fan@0 {
233 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
236 fan@1 {
238 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
241 fan@2 {
243 aspeed,fan-tach-ch = /bits/ 8 <0x02>;
246 fan@3 {
248 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
251 fan@4 {
253 aspeed,fan-tach-ch = /bits/ 8 <0x04>;
[all …]
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dfan.c26 #include <subdev/bios/fan.h>
32 u32 fan = 0; in nvbios_fan_table() local
36 fan = nvbios_rd32(bios, bit_P.offset + 0x58); in nvbios_fan_table()
38 if (fan) { in nvbios_fan_table()
39 *ver = nvbios_rd08(bios, fan + 0); in nvbios_fan_table()
42 *hdr = nvbios_rd08(bios, fan + 1); in nvbios_fan_table()
43 *len = nvbios_rd08(bios, fan + 2); in nvbios_fan_table()
44 *cnt = nvbios_rd08(bios, fan + 3); in nvbios_fan_table()
45 return fan; in nvbios_fan_table()
66 nvbios_fan_parse(struct nvkm_bios *bios, struct nvbios_therm_fan *fan) in nvbios_fan_parse() argument
[all …]
Dtherm.c153 nvbios_therm_fan_parse(struct nvkm_bios *bios, struct nvbios_therm_fan *fan) in nvbios_therm_fan_parse() argument
163 fan->nr_fan_trip = 0; in nvbios_therm_fan_parse()
164 fan->fan_mode = NVBIOS_THERM_FAN_OTHER; in nvbios_therm_fan_parse()
170 fan->min_duty = value & 0xff; in nvbios_therm_fan_parse()
171 fan->max_duty = (value & 0xff00) >> 8; in nvbios_therm_fan_parse()
174 fan->nr_fan_trip++; in nvbios_therm_fan_parse()
175 if (fan->fan_mode > NVBIOS_THERM_FAN_TRIP) in nvbios_therm_fan_parse()
176 fan->fan_mode = NVBIOS_THERM_FAN_TRIP; in nvbios_therm_fan_parse()
177 cur_trip = &fan->trip[fan->nr_fan_trip - 1]; in nvbios_therm_fan_parse()
183 cur_trip = &fan->trip[fan->nr_fan_trip - 1]; in nvbios_therm_fan_parse()
[all …]
/Linux-v6.1/Documentation/admin-guide/acpi/
Dfan_performance_states.rst4 ACPI Fan Performance States
8 fan (for example, PNP0C0B or INT3404), the ACPI fan driver creates additional
10 These attributes list properties of fan performance states.
37 where each of the "state*" files represents one performance state of the fan
43 * ``control_percent``: The percent value to be used to set the fan speed to a
49 * ``speed_rpm``: Speed of the fan in rotations per minute.
51 * ``noise_level_mdb``: Audible noise emitted by the fan in this state in
54 * ``power_mw``: Power draw of the fan in this state in milliwatts.
64 ACPI Fan Fine Grain Control
67 When _FIF object specifies support for fine grain control, then fan speed
[all …]

12345678910>>...26