| /kernel/linux/linux-6.6/drivers/net/ethernet/sfc/ |
| D | mcdi_mon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright 2011-2013 Solarflare Communications Inc. 40 #define SENSOR(name, label, hwmon_type, port) \ macro 42 SENSOR(CONTROLLER_TEMP, "Controller board temp.", TEMP, -1), 43 SENSOR(PHY_COMMON_TEMP, "PHY temp.", TEMP, -1), 44 SENSOR(CONTROLLER_COOLING, "Controller heat sink", COOL, -1), 45 SENSOR(PHY0_TEMP, "PHY temp.", TEMP, 0), 46 SENSOR(PHY0_COOLING, "PHY heat sink", COOL, 0), 47 SENSOR(PHY1_TEMP, "PHY temp.", TEMP, 1), 48 SENSOR(PHY1_COOLING, "PHY heat sink", COOL, 1), [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/sfc/ |
| D | mcdi_mon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright 2011-2013 Solarflare Communications Inc. 40 #define SENSOR(name, label, hwmon_type, port) \ macro 42 SENSOR(CONTROLLER_TEMP, "Controller board temp.", TEMP, -1), 43 SENSOR(PHY_COMMON_TEMP, "PHY temp.", TEMP, -1), 44 SENSOR(CONTROLLER_COOLING, "Controller heat sink", COOL, -1), 45 SENSOR(PHY0_TEMP, "PHY temp.", TEMP, 0), 46 SENSOR(PHY0_COOLING, "PHY heat sink", COOL, 0), 47 SENSOR(PHY1_TEMP, "PHY temp.", TEMP, 1), 48 SENSOR(PHY1_COOLING, "PHY heat sink", COOL, 1), [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/sfc/siena/ |
| D | mcdi_mon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright 2011-2013 Solarflare Communications Inc. 40 #define SENSOR(name, label, hwmon_type, port) \ macro 42 SENSOR(CONTROLLER_TEMP, "Controller board temp.", TEMP, -1), 43 SENSOR(PHY_COMMON_TEMP, "PHY temp.", TEMP, -1), 44 SENSOR(CONTROLLER_COOLING, "Controller heat sink", COOL, -1), 45 SENSOR(PHY0_TEMP, "PHY temp.", TEMP, 0), 46 SENSOR(PHY0_COOLING, "PHY heat sink", COOL, 0), 47 SENSOR(PHY1_TEMP, "PHY temp.", TEMP, 1), 48 SENSOR(PHY1_COOLING, "PHY heat sink", COOL, 1), [all …]
|
| /kernel/linux/linux-5.10/drivers/thermal/st/ |
| D | st_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * ST Thermal Sensor Driver core routines 6 * Copyright (C) 2003-2014 STMicroelectronics (R&D) Limited 17 #define mcelsius(temp) ((temp) * 1000) argument 23 static int st_thermal_alloc_regfields(struct st_thermal_sensor *sensor) in st_thermal_alloc_regfields() argument 25 struct device *dev = sensor->dev; in st_thermal_alloc_regfields() 26 struct regmap *regmap = sensor->regmap; in st_thermal_alloc_regfields() 27 const struct reg_field *reg_fields = sensor->cdata->reg_fields; in st_thermal_alloc_regfields() 29 sensor->dcorrect = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields() 32 sensor->overflow = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
| D | g84.c | 32 struct nvkm_device *device = therm->subdev.device; in g84_temp_get() 34 if (nvkm_fuse_read(device->fuse, 0x1a8) == 1) in g84_temp_get() 37 return -ENODEV; in g84_temp_get() 43 struct nvkm_device *device = therm->subdev.device; in g84_sensor_setup() 46 if (nvkm_fuse_read(device->fuse, 0x1a8) == 1) { in g84_sensor_setup() 56 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; in g84_therm_program_alarms() local 57 struct nvkm_subdev *subdev = &therm->subdev; in g84_therm_program_alarms() 58 struct nvkm_device *device = subdev->device; in g84_therm_program_alarms() 61 spin_lock_irqsave(&therm->sensor.alarm_program_lock, flags); in g84_therm_program_alarms() 67 nvkm_wr32(device, 0x20484, sensor->thrs_shutdown.hysteresis); in g84_therm_program_alarms() [all …]
|
| D | temp.c | 29 therm->bios_sensor.offset_constant = 0; in nvkm_therm_temp_set_defaults() 31 therm->bios_sensor.thrs_fan_boost.temp = 90; in nvkm_therm_temp_set_defaults() 32 therm->bios_sensor.thrs_fan_boost.hysteresis = 3; in nvkm_therm_temp_set_defaults() 34 therm->bios_sensor.thrs_down_clock.temp = 95; in nvkm_therm_temp_set_defaults() 35 therm->bios_sensor.thrs_down_clock.hysteresis = 3; in nvkm_therm_temp_set_defaults() 37 therm->bios_sensor.thrs_critical.temp = 105; in nvkm_therm_temp_set_defaults() 38 therm->bios_sensor.thrs_critical.hysteresis = 5; in nvkm_therm_temp_set_defaults() 40 therm->bios_sensor.thrs_shutdown.temp = 135; in nvkm_therm_temp_set_defaults() 41 therm->bios_sensor.thrs_shutdown.hysteresis = 5; /*not that it matters */ in nvkm_therm_temp_set_defaults() 47 struct nvbios_therm_sensor *s = &therm->bios_sensor; in nvkm_therm_temp_safety_checks() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
| D | g84.c | 32 struct nvkm_device *device = therm->subdev.device; in g84_temp_get() 34 if (nvkm_fuse_read(device->fuse, 0x1a8) == 1) in g84_temp_get() 37 return -ENODEV; in g84_temp_get() 43 struct nvkm_device *device = therm->subdev.device; in g84_sensor_setup() 46 if (nvkm_fuse_read(device->fuse, 0x1a8) == 1) { in g84_sensor_setup() 56 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; in g84_therm_program_alarms() local 57 struct nvkm_subdev *subdev = &therm->subdev; in g84_therm_program_alarms() 58 struct nvkm_device *device = subdev->device; in g84_therm_program_alarms() 61 spin_lock_irqsave(&therm->sensor.alarm_program_lock, flags); in g84_therm_program_alarms() 67 nvkm_wr32(device, 0x20484, sensor->thrs_shutdown.hysteresis); in g84_therm_program_alarms() [all …]
|
| D | temp.c | 29 therm->bios_sensor.offset_constant = 0; in nvkm_therm_temp_set_defaults() 31 therm->bios_sensor.thrs_fan_boost.temp = 90; in nvkm_therm_temp_set_defaults() 32 therm->bios_sensor.thrs_fan_boost.hysteresis = 3; in nvkm_therm_temp_set_defaults() 34 therm->bios_sensor.thrs_down_clock.temp = 95; in nvkm_therm_temp_set_defaults() 35 therm->bios_sensor.thrs_down_clock.hysteresis = 3; in nvkm_therm_temp_set_defaults() 37 therm->bios_sensor.thrs_critical.temp = 105; in nvkm_therm_temp_set_defaults() 38 therm->bios_sensor.thrs_critical.hysteresis = 5; in nvkm_therm_temp_set_defaults() 40 therm->bios_sensor.thrs_shutdown.temp = 135; in nvkm_therm_temp_set_defaults() 41 therm->bios_sensor.thrs_shutdown.hysteresis = 5; /*not that it matters */ in nvkm_therm_temp_set_defaults() 47 struct nvbios_therm_sensor *s = &therm->bios_sensor; in nvkm_therm_temp_safety_checks() [all …]
|
| /kernel/linux/linux-5.10/drivers/thermal/ |
| D | hisi_thermal.c | 2 * Hisilicon thermal sensor driver 4 * Copyright (c) 2014-2015 Hisilicon Limited. 5 * Copyright (c) 2014-2015 Linaro Limited. 49 #define HI6220_TEMP_BASE (-60000) 54 #define HI3660_TEMP_BASE (-63780) 77 int (*get_temp)(struct hisi_thermal_sensor *sensor); 78 int (*enable_sensor)(struct hisi_thermal_sensor *sensor); 79 int (*disable_sensor)(struct hisi_thermal_sensor *sensor); 80 int (*irq_handler)(struct hisi_thermal_sensor *sensor); 86 struct hisi_thermal_sensor *sensor; member [all …]
|
| D | imx8mm_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0 22 #define TRITSR 0x20 /* TMU immediate temp */ 36 #define VER2_TEMP_LOW_LIMIT -40000 61 static int imx8mm_tmu_get_temp(void *data, int *temp) in imx8mm_tmu_get_temp() argument 63 struct tmu_sensor *sensor = data; in imx8mm_tmu_get_temp() local 64 struct imx8mm_tmu *tmu = sensor->priv; in imx8mm_tmu_get_temp() 67 val = readl_relaxed(tmu->base + TRITSR) & TRITSR_TEMP0_VAL_MASK; in imx8mm_tmu_get_temp() 74 *temp = val * 1000; in imx8mm_tmu_get_temp() 75 if (*temp < VER1_TEMP_LOW_LIMIT || *temp > VER2_TEMP_HIGH_LIMIT) in imx8mm_tmu_get_temp() 76 return -EAGAIN; in imx8mm_tmu_get_temp() [all …]
|
| /kernel/linux/linux-6.6/drivers/thermal/ |
| D | hisi_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * HiSilicon thermal sensor driver 5 * Copyright (c) 2014-2015 HiSilicon Limited. 6 * Copyright (c) 2014-2015 Linaro Limited. 40 #define HI6220_TEMP_BASE (-60000) 45 #define HI3660_TEMP_BASE (-63780) 68 int (*get_temp)(struct hisi_thermal_sensor *sensor); 69 int (*enable_sensor)(struct hisi_thermal_sensor *sensor); 70 int (*disable_sensor)(struct hisi_thermal_sensor *sensor); 71 int (*irq_handler)(struct hisi_thermal_sensor *sensor); [all …]
|
| /kernel/linux/linux-6.6/drivers/thermal/st/ |
| D | st_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * ST Thermal Sensor Driver core routines 6 * Copyright (C) 2003-2014 STMicroelectronics (R&D) Limited 17 #define mcelsius(temp) ((temp) * 1000) argument 23 static int st_thermal_alloc_regfields(struct st_thermal_sensor *sensor) in st_thermal_alloc_regfields() argument 25 struct device *dev = sensor->dev; in st_thermal_alloc_regfields() 26 struct regmap *regmap = sensor->regmap; in st_thermal_alloc_regfields() 27 const struct reg_field *reg_fields = sensor->cdata->reg_fields; in st_thermal_alloc_regfields() 29 sensor->dcorrect = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields() 32 sensor->overflow = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields() [all …]
|
| /kernel/linux/linux-6.6/Documentation/hwmon/ |
| D | abituguru-datasheet.rst | 14 Olle Sandberg <ollebull@gmail.com>, 2005-05-25 27 Hans de Goede <j.w.r.degoede@hhs.nl>, 28-01-2006 33 As far as known the uGuru is always placed at and using the (ISA) I/O-ports 34 0xE0 and 0xE4, so we don't have to scan any port-range, just check what the two 35 ports are holding for detection. We will refer to 0xE0 as CMD (command-port) 39 present. We have to check for two different values at data-port, because 41 later on attached again data-port will hold 0x08, more about this later. 57 ---------- 61 in a bank for a sensor is one or more bytes large. 68 number of bytes data per sensor and contents/meaning of those bytes. [all …]
|
| D | occ.rst | 1 Kernel driver occ-hwmon 12 ----------- 14 This driver supports hardware monitoring for the On-Chip Controller (OCC) 16 sensor data from the processor and the system. The OCC can provide the raw 17 sensor data as well as perform thermal and power management on the system. 20 manually if an "ibm,p8-occ-hwmon" compatible device is found under the 21 appropriate I2C bus node in the device-tree. 23 The P9 version of this driver is a client driver of the FSI-based OCC driver. 24 It will be probed automatically by the FSI-based OCC driver. 27 ------------- [all …]
|
| /kernel/linux/linux-5.10/Documentation/hwmon/ |
| D | abituguru-datasheet.rst | 14 Olle Sandberg <ollebull@gmail.com>, 2005-05-25 27 Hans de Goede <j.w.r.degoede@hhs.nl>, 28-01-2006 33 As far as known the uGuru is always placed at and using the (ISA) I/O-ports 34 0xE0 and 0xE4, so we don't have to scan any port-range, just check what the two 35 ports are holding for detection. We will refer to 0xE0 as CMD (command-port) 39 present. We have to check for two different values at data-port, because 41 later on attached again data-port will hold 0x08, more about this later. 57 ---------- 61 in a bank for a sensor is one or more bytes large. 68 number of bytes data per sensor and contents/meaning of those bytes. [all …]
|
| D | occ.rst | 1 Kernel driver occ-hwmon 12 ----------- 14 This driver supports hardware monitoring for the On-Chip Controller (OCC) 16 sensor data from the processor and the system. The OCC can provide the raw 17 sensor data as well as perform thermal and power management on the system. 20 manually if an "ibm,p8-occ-hwmon" compatible device is found under the 21 appropriate I2C bus node in the device-tree. 23 The P9 version of this driver is a client driver of the FSI-based OCC driver. 24 It will be probed automatically by the FSI-based OCC driver. 27 ------------- [all …]
|
| /kernel/linux/linux-6.6/drivers/hwmon/occ/ |
| D | common.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 #include <linux/hwmon-sysfs.h> 32 /* OCC sensor type and version definitions */ 144 cmd[4] = occ->poll_cmd_data; /* data */ in occ_poll() 149 rc = occ->send_cmd(occ, cmd, sizeof(cmd), &occ->resp, sizeof(occ->resp)); in occ_poll() 151 occ->last_error = rc; in occ_poll() 152 if (occ->error_count++ > OCC_ERROR_COUNT_THRESHOLD) in occ_poll() 153 occ->error = rc; in occ_poll() 159 occ->error_count = 0; in occ_poll() 160 occ->last_error = 0; in occ_poll() [all …]
|
| /kernel/linux/linux-6.6/drivers/iio/temperature/ |
| D | ltc2983.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Analog Devices LTC2983 Multi-Sensor Digital Temperature Measurement System 57 (((chan - 1) * 4) + LTC2983_CHAN_ASSIGN_START_REG) 59 (((chan - 1) * 4) + LTC2983_TEMP_RES_START_REG) 189 container_of(_sensor, struct ltc2983_thermocouple, sensor) 192 container_of(_sensor, struct ltc2983_rtd, sensor) 195 container_of(_sensor, struct ltc2983_thermistor, sensor) 198 container_of(_sensor, struct ltc2983_diode, sensor) 201 container_of(_sensor, struct ltc2983_rsense, sensor) 204 container_of(_sensor, struct ltc2983_adc, sensor) [all …]
|
| /kernel/linux/linux-6.6/drivers/nvme/host/ |
| D | hwmon.c | 1 // SPDX-License-Identifier: GPL-2.0 19 static int nvme_get_temp_thresh(struct nvme_ctrl *ctrl, int sensor, bool under, in nvme_get_temp_thresh() argument 20 long *temp) in nvme_get_temp_thresh() argument 22 unsigned int threshold = sensor << NVME_TEMP_THRESH_SELECT_SHIFT; in nvme_get_temp_thresh() 32 return -EIO; in nvme_get_temp_thresh() 35 *temp = kelvin_to_millicelsius(status & NVME_TEMP_THRESH_MASK); in nvme_get_temp_thresh() 40 static int nvme_set_temp_thresh(struct nvme_ctrl *ctrl, int sensor, bool under, in nvme_set_temp_thresh() argument 41 long temp) in nvme_set_temp_thresh() argument 43 unsigned int threshold = sensor << NVME_TEMP_THRESH_SELECT_SHIFT; in nvme_set_temp_thresh() 46 temp = millicelsius_to_kelvin(temp); in nvme_set_temp_thresh() [all …]
|
| /kernel/linux/linux-5.10/drivers/nvme/host/ |
| D | hwmon.c | 1 // SPDX-License-Identifier: GPL-2.0 19 static int nvme_get_temp_thresh(struct nvme_ctrl *ctrl, int sensor, bool under, in nvme_get_temp_thresh() argument 20 long *temp) in nvme_get_temp_thresh() argument 22 unsigned int threshold = sensor << NVME_TEMP_THRESH_SELECT_SHIFT; in nvme_get_temp_thresh() 32 return -EIO; in nvme_get_temp_thresh() 35 *temp = kelvin_to_millicelsius(status & NVME_TEMP_THRESH_MASK); in nvme_get_temp_thresh() 40 static int nvme_set_temp_thresh(struct nvme_ctrl *ctrl, int sensor, bool under, in nvme_set_temp_thresh() argument 41 long temp) in nvme_set_temp_thresh() argument 43 unsigned int threshold = sensor << NVME_TEMP_THRESH_SELECT_SHIFT; in nvme_set_temp_thresh() 46 temp = millicelsius_to_kelvin(temp); in nvme_set_temp_thresh() [all …]
|
| /kernel/linux/linux-5.10/drivers/hwmon/occ/ |
| D | common.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 #include <linux/hwmon-sysfs.h> 31 /* OCC sensor type and version definitions */ 127 u16 checksum = occ->poll_cmd_data + occ->seq_no + 1; in occ_poll() 132 cmd[0] = occ->seq_no++; /* sequence number */ in occ_poll() 136 cmd[4] = occ->poll_cmd_data; /* data */ in occ_poll() 142 rc = occ->send_cmd(occ, cmd); in occ_poll() 144 occ->last_error = rc; in occ_poll() 145 if (occ->error_count++ > OCC_ERROR_COUNT_THRESHOLD) in occ_poll() 146 occ->error = rc; in occ_poll() [all …]
|
| /kernel/linux/linux-6.6/drivers/macintosh/ |
| D | windfarm_pm121.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 * that none of the code has been re-used, it's a complete 17 * re-implementation 21 * controls with a tiny difference. The control-ids of hard-drive-fan 22 * and cpu-fan is swapped. 34 * offset : -19563152 38 * offset : -15650652 44 * offset : -15650652 48 * offset : -19563152 54 * offset : -25431900 [all …]
|
| /kernel/linux/linux-5.10/drivers/macintosh/ |
| D | windfarm_pm121.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 * that none of the code has been re-used, it's a complete 17 * re-implementation 21 * controls with a tiny difference. The control-ids of hard-drive-fan 22 * and cpu-fan is swapped. 34 * offset : -19563152 38 * offset : -15650652 44 * offset : -15650652 48 * offset : -19563152 54 * offset : -25431900 [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/hwmon/ |
| D | ibmpowernv.txt | 2 ---------------------------- 5 - compatible: must be one of 6 "ibm,opal-sensor-cooling-fan" 7 "ibm,opal-sensor-amb-temp" 8 "ibm,opal-sensor-power-supply" 9 "ibm,opal-sensor-power" 10 - sensor-id: an opaque id provided by the firmware to the kernel, identifies a 11 given sensor and its attribute data 15 cooling-fan#8-data { 16 sensor-id = <0x7052107>; [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/hwmon/ |
| D | ibmpowernv.txt | 2 ---------------------------- 5 - compatible: must be one of 6 "ibm,opal-sensor-cooling-fan" 7 "ibm,opal-sensor-amb-temp" 8 "ibm,opal-sensor-power-supply" 9 "ibm,opal-sensor-power" 10 - sensor-id: an opaque id provided by the firmware to the kernel, identifies a 11 given sensor and its attribute data 15 cooling-fan#8-data { 16 sensor-id = <0x7052107>; [all …]
|