/linux-6.12.1/drivers/macintosh/ |
D | windfarm_fcu_controls.c | 3 * 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 …]
|
D | windfarm_smu_controls.c | 64 /* 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-6.12.1/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
D | fan.c | 27 #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 …]
|
D | fantog.c | 39 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 …]
|
D | fanpwm.c | 29 #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-6.12.1/drivers/platform/x86/ |
D | gpd-pocket-fan.c | 3 * 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-6.12.1/drivers/hwmon/ |
D | mlxreg-fan.c | 27 * 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, ®val); in mlxreg_fan_read() 147 if (BIT(channel / fan->tachos_per_drwr) & regval) { in mlxreg_fan_read() [all …]
|
/linux-6.12.1/drivers/acpi/ |
D | fan_core.c | 3 * 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 …]
|
D | fan_attr.c | 3 * 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 …]
|
D | fan_hwmon.c | 3 * hwmon interface for the ACPI Fan driver. 16 #include "fan.h" 18 /* Returned when the ACPI fan does not support speed reporting */ 22 static struct acpi_fan_fps *acpi_fan_get_current_fps(struct acpi_fan *fan, u64 control) in acpi_fan_get_current_fps() argument 26 for (i = 0; i < fan->fps_count; i++) { in acpi_fan_get_current_fps() 27 if (fan->fps[i].control == control) in acpi_fan_get_current_fps() 28 return &fan->fps[i]; in acpi_fan_get_current_fps() 37 const struct acpi_fan *fan = drvdata; in acpi_fan_hwmon_is_visible() local 47 * When in fine grain control mode, not every fan control value in acpi_fan_hwmon_is_visible() 48 * has an associated fan performance state. in acpi_fan_hwmon_is_visible() [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/hwmon/ |
D | npcm750-pwm-fan.txt | 1 Nuvoton NPCM PWM and Fan Tacho controller device 4 controller outputs and 16 Fan tachometer controller inputs. 7 controller outputs and 16 Fan tachometer controller inputs. 9 Required properties for pwm-fan node 12 - compatible : "nuvoton,npcm750-pwm-fan" for Poleg NPCM7XX. 13 : "nuvoton,npcm845-pwm-fan" for Arbel NPCM8XX. 17 * "fan" for the Fan registers. 21 * "fan" for Fan controller operating clock. 22 - interrupts : contain the Fan interrupts with flags for falling edge. 24 - pinctrl-0 : phandle referencing pin configuration of the PWM and Fan [all …]
|
D | aspeed-pwm-tacho.txt | 1 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 …]
|
D | pwm-fan.yaml | 4 $id: http://devicetree.org/schemas/hwmon/pwm-fan.yaml# 7 title: Fan connected to PWM lines 15 const: pwm-fan 23 fan-supply: 24 description: Phandle to the regulator that provides power to the fan. 28 This contains an interrupt specifier for each fan tachometer output 30 defined number of interrupts per fan revolution, which require that 36 Define the number of pulses per fan revolution for each tachometer 44 description: The PWM that is used to control the fan. 57 pwm-fan { [all …]
|
/linux-6.12.1/Documentation/hwmon/ |
D | g762.rst | 4 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 …]
|
D | dell-smm-hwmon.rst | 18 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 …]
|
D | nct6775.rst | 106 There are 4 to 5 fan rotation speed sensors, 8 to 15 analog voltage sensors, 108 fan regulation strategies (plus manual fan control mode). 119 Fan rotation speeds are reported in RPM (rotations per minute). An alarm is 121 NCT6775F, fan readings can be divided by a programmable divider (1, 2, 4, 8, 123 do not have a fan speed divider. The driver sets the most suitable fan divisor 124 itself; specifically, it increases the divider value each time a fan speed 125 reading returns an invalid value, and it reduces it if the fan speed reading 133 The driver supports automatic fan control mode known as Thermal Cruise. 135 predefined temperature range. If the temperature goes out of range, fan 144 - this file stores PWM duty cycle or DC value (fan speed) in range: [all …]
|
D | w83792d.rst | 44 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 …]
|
D | f71882fg.rst | 125 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 …]
|
D | adm9240.rst | 54 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 …]
|
D | max31785.rst | 19 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 …]
|
D | aquacomputer_d5next.rst | 8 * Aquacomputer Aquaero 5/6 fan controllers 12 * Aquacomputer Octo fan controller 13 * Aquacomputer Quadro fan controller 18 * Aquacomputer Poweradjust 3 fan controller 32 speed (in RPM), power, voltage and current. Temperature offsets and fan speeds 35 For the D5 Next pump, available sensors are pump and fan speed, power, voltage 38 count. Attaching a fan to it is optional and allows it to be controlled using 39 temperature curves directly from the pump. If it's not connected, the fan-related 69 and fan IC. It also exposes pump and fan speeds (in RPM), voltages, as well as pump 73 with speed, power, voltage and current of both the pump and optionally connected fan. [all …]
|
/linux-6.12.1/arch/arm/boot/dts/aspeed/ |
D | aspeed-bmc-amd-daytonax.dts | 231 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-6.12.1/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | fan.c | 26 #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 …]
|
D | therm.c | 153 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-6.12.1/Documentation/admin-guide/acpi/ |
D | fan_performance_states.rst | 4 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 …]
|