/freebsd/sys/powerpc/powermac/ |
H A D | powermac_thermal.c | 72 struct pmac_therm *sensor; member 98 struct pmac_sens_le *sensor; in pmac_therm_manage_fans() local 109 SLIST_FOREACH(sensor, &sensors, entries) { in pmac_therm_manage_fans() 110 temp = sensor->sensor->read(sensor->sensor); in pmac_therm_manage_fans() 112 sensor->last_val = temp; in pmac_therm_manage_fans() 114 if (sensor->last_val > sensor->sensor->max_temp) { in pmac_therm_manage_fans() 115 sensor->critical_count++; in pmac_therm_manage_fans() 119 sensor->sensor->name, in pmac_therm_manage_fans() 120 (sensor->last_val - ZERO_C_TO_K) / 10, in pmac_therm_manage_fans() 121 (sensor->last_val - ZERO_C_TO_K) % 10, in pmac_therm_manage_fans() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/iio/temperature/ |
H A D | adi,ltc2983.yaml | 7 title: Analog Devices LTC2983, LTC2986, LTM2985 Multi-sensor Temperature system 13 Analog Devices LTC2983, LTC2984, LTC2986, LTM2985 Multi-Sensor Digital 22 sensor-node: 24 description: Sensor node common constraints 29 Channel number. Connects the sensor to the channel with this number 34 adi,sensor-type: 35 description: Type of sensor connected to the device. 40 - adi,sensor-type 92 $ref: '#/$defs/sensor-node' 95 description: Thermocouple sensor. [all …]
|
/freebsd/usr.sbin/bsnmpd/modules/snmp_lm75/ |
H A D | snmp_lm75.c | 58 * Structure that describes single sensor. 126 struct lm75_snmp_sensor *sensor; in free_sensors() local 128 while ((sensor = TAILQ_FIRST(&sensors)) != NULL) { in free_sensors() 129 TAILQ_REMOVE(&sensors, sensor, link); in free_sensors() 130 free(sensor); in free_sensors() 194 update_sensor(struct lm75_snmp_sensor *sensor, int idx) in update_sensor() argument 198 len = sizeof(sensor->desc); in update_sensor() 199 update_sensor_sysctl(sensor->desc, &len, idx, "%desc"); in update_sensor() 201 len = sizeof(sensor->location); in update_sensor() 202 update_sensor_sysctl(sensor->location, &len, idx, "%location"); in update_sensor() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/ |
H A D | trivial-devices.yaml | 35 … # SMBus/I2C Digital Temperature Sensor in 6-Pin SOT with SMBus Alert and Over Temperature Pin 46 # AMS iAQ-Core VOC Sensor 58 # Bosch Sensortec pressure, temperature, humididty and VOC sensor 60 # CM32181: Ambient Light Sensor 62 # CM3232: Ambient Light Sensor 64 # CM3323: Ambient Light Sensor 104 # MMA7660FC: 3-Axis Orientation/Motion Detection Sensor 108 # MPL3115: Absolute Digital Pressure Sensor 110 # MPR121: Proximity Capacitive Touch Sensor Controller 112 # Honeywell Humidicon HIH-6130 humidity/temperature sensor [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/hwmon/ |
H A D | nuvoton,nct7802.yaml | 46 - 0 # Local Temperature Sensor ("LTD") 47 - 1 # Remote Temperature Sensor or Voltage Sensor 1 ("RTD1") 48 - 2 # Remote Temperature Sensor or Voltage Sensor 2 ("RTD2") 49 - 3 # Remote Temperature Sensor or Voltage Sensor 3 ("RTD3") 51 sensor-type: 67 # For channels RTD1, RTD2 and RTD3, require sensor-type to be set. 80 - sensor-type 84 - sensor-type 86 # For channels RTD1 and RTD2 and if sensor-type is "temperature", require 88 # sensor-type settings), do not allow temperature-mode to be set [all …]
|
H A D | ibm,opal-sensor.yaml | 4 $id: http://devicetree.org/schemas/hwmon/ibm,opal-sensor.yaml# 15 - ibm,opal-sensor-cooling-fan 16 - ibm,opal-sensor-amb-temp 17 - ibm,opal-sensor-power-supply 18 - ibm,opal-sensor-power 20 sensor-id: 23 given sensor and its attribute data. 28 - sensor-id 34 sensor { 35 compatible = "ibm,opal-sensor-cooling-fan"; [all …]
|
H A D | ibmpowernv.txt | 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 16 sensor-id = <0x7052107>; 17 compatible = "ibm,opal-sensor-cooling-fan"; 21 sensor-id = <0x5096000>; 22 compatible = "ibm,opal-sensor-amb-temp";
|
H A D | baikal,bt1-pvt.yaml | 8 title: Baikal-T1 PVT Sensor 15 sensor to monitor an internal SoC environment (chip temperature, supply 18 is based on the Analog Bits PVT sensor, but is equipped with a dedicated 20 sensor core functionality (APB3-bus based) and exposes an additional 27 | Temperature sensor |-+ +------| Sensors control | 29 | Voltage sensor |-|<--Mode--| +--->| Sampled data | 31 | Low-Vt sensor |-| | +--| Thresholds comparator | 33 | High-Vt sensor |-| | +->| Interrupts status | 35 | Standard-Vt sensor |-+ +---+--| Interrupts mask | 68 "#thermal-sensor-cells": [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/thermal/ |
H A D | thermal-sensor.yaml | 5 $id: http://devicetree.org/schemas/thermal/thermal-sensor.yaml# 8 title: Thermal sensor 14 Thermal management is achieved in devicetree by describing the sensor hardware 20 - thermal-sensor: device that measures temperature, has SoC-specific bindings 25 This binding describes the thermal-sensor. 27 Thermal sensor devices provide temperature sensing capabilities on thermal 28 zones. Typical devices are I2C ADC converters and bandgaps. Thermal sensor 32 "#thermal-sensor-cells": 34 Used to uniquely identify a thermal sensor instance within an IC. Will be 35 0 on sensor nodes with only a single sensor and at least 1 on nodes [all …]
|
H A D | thermal.txt | 25 * Thermal sensor devices 27 Thermal sensor devices are nodes providing temperature sensing capabilities on 29 nodes providing temperature data to thermal zones. Thermal sensor devices may 33 - #thermal-sensor-cells: Used to provide sensor device specific information 34 Type: unsigned while referring to it. Typically 0 on thermal sensor 35 Size: one cell nodes with only one sensor, and at least 1 on nodes 37 to identify uniquely the sensor instances within 39 on how consumers refer to sensor devices. 137 - thermal-sensors: A list of thermal sensor phandles and sensor specifier 139 phandles + sensor [all …]
|
H A D | generic-adc-thermal.yaml | 7 title: General Purpose Analog To Digital Converter (ADC) based thermal sensor 13 On some of platforms, thermal sensor like thermistors are connected to 14 one of ADC channel and sensor resistance is read via voltage across the 15 sensor resistor. The voltage read across the sensor is mapped to 18 $ref: thermal-sensor.yaml# 24 '#thermal-sensor-cells': 31 const: sensor-channel 58 thermal-sensor { 60 #thermal-sensor-cells = <0>; 62 io-channel-names = "sensor-channel";
|
H A D | thermal-generic-adc.txt | 1 General Purpose Analog To Digital Converter (ADC) based thermal sensor. 3 On some of platforms, thermal sensor like thermistors are connected to 4 one of ADC channel and sensor resistance is read via voltage across the 5 sensor resistor. The voltage read across the sensor is mapped to 11 - #thermal-sensor-cells: Should be 1. See Documentation/devicetree/bindings/thermal/thermal-sen… 40 tboard_thermistor: thermal-sensor { 42 #thermal-sensor-cells = <0>; 44 io-channel-names = "sensor-channel";
|
H A D | sprd-thermal.yaml | 7 title: Spreadtrum thermal sensor controller 14 $ref: thermal-sensor.yaml# 40 "#thermal-sensor-cells": 50 "^([a-z]*-)?sensor(-section)?@[0-9]+$": 53 Represent one thermal sensor. 57 description: Specify the sensor id. 94 #thermal-sensor-cells = <1>; 100 prometheus-sensor@0 { 106 ank-sensor@1 {
|
/freebsd/sys/contrib/device-tree/Bindings/powerpc/opal/ |
H A D | sensor-groups.txt | 1 IBM OPAL Sensor Groups Binding 4 Node: /ibm,opal/sensor-groups 6 Description: Contains sensor groups available in the Powernv P9 7 servers. Each child node indicates a sensor group. 9 - compatible : Should be "ibm,opal-sensor-group" 13 - type : String to indicate the type of sensor-group 15 - sensor-group-id: Abstract unique identifier provided by firmware of 16 type <u32> which is used for sensor-group 22 - sensors : Phandle array of child nodes of /ibm,opal/sensor/ 26 sensor groups like clearing min/max, enabling/disabling sensor
|
/freebsd/sys/dev/acpi_support/ |
H A D | atk0110.c | 166 struct aibs_sensor* sensor, const char ** descr) in aibs_add_sensor() argument 182 "sensor object is not a package: %i type\n", in aibs_add_sensor() 196 sensor->i = o->Package.Elements[0].Integer.Value; in aibs_add_sensor() 198 sensor->l = o->Package.Elements[off].Integer.Value; in aibs_add_sensor() 199 sensor->h = o->Package.Elements[off + 1].Integer.Value; in aibs_add_sensor() 202 sensor->h += sensor->l; in aibs_add_sensor() 203 sensor->t = AIBS_SENS_TYPE(sensor->i); in aibs_add_sensor() 205 switch (sensor->t) { in aibs_add_sensor() 211 device_printf(sc->sc_dev, "unknown sensor type 0x%x", in aibs_add_sensor() 212 sensor->t); in aibs_add_sensor() [all …]
|
/freebsd/sys/arm/allwinner/ |
H A D | aw_thermal.c | 27 * Allwinner thermal sensor controller 173 a83t_to_temp(uint32_t val, int sensor) in a83t_to_temp() argument 205 a64_to_temp(uint32_t val, int sensor) in a64_to_temp() argument 237 h3_to_temp(uint32_t val, int sensor) in h3_to_temp() argument 243 h3_to_reg(int val, int sensor) in h3_to_reg() argument 269 h5_to_temp(uint32_t val, int sensor) in h5_to_temp() argument 280 if (sensor == 0) in h5_to_temp() 282 else if (sensor == 1) in h5_to_temp() 285 printf("Unknown sensor %d\n", sensor); in h5_to_temp() 294 h5_to_reg(int val, int sensor) in h5_to_reg() argument [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/media/i2c/ |
H A D | mt9v032.txt | 1 * Aptina 1/3-Inch WVGA CMOS Digital Image Sensor 3 The Aptina MT9V032 is a 1/3-inch CMOS active pixel digital image sensor with 10 (a) "aptina,mt9v022" for MT9V022 color sensor 11 (b) "aptina,mt9v022m" for MT9V022 monochrome sensor 12 (c) "aptina,mt9v024" for MT9V024 color sensor 13 (d) "aptina,mt9v024m" for MT9V024 monochrome sensor 14 (e) "aptina,mt9v032" for MT9V032 color sensor 15 (f) "aptina,mt9v032m" for MT9V032 monochrome sensor 16 (g) "aptina,mt9v034" for MT9V034 color sensor 17 (h) "aptina,mt9v034m" for MT9V034 monochrome sensor
|
/freebsd/sys/arm/nvidia/ |
H A D | tegra_soctherm.c | 459 tsensor_calibration(struct soctherm_softc *sc, struct tsensor *sensor) in tsensor_calibration() argument 472 val = tegra_fuse_read_4(sensor->calib_fuse); in tsensor_calibration() 495 temp_a = div64_s64_precise((int64_t)temp_a * sensor->fuse_corr_alpha, in tsensor_calibration() 497 temp_b = div64_s64_precise((int64_t)temp_b * sensor->fuse_corr_alpha + in tsensor_calibration() 498 sensor->fuse_corr_beta, 1000000); in tsensor_calibration() 499 sensor->therm_a = (int16_t)temp_a; in tsensor_calibration() 500 sensor->therm_b = (int16_t)temp_b; in tsensor_calibration() 502 printf("%s: sensor %s fuse: 0x%08X (0x%04X, 0x%04X)" in tsensor_calibration() 504 __func__, sensor->name, val, val & 0x1FFF, (val >> 13) & 0x1FFF, in tsensor_calibration() 507 (uint16_t)sensor->therm_a, sensor->therm_a, in tsensor_calibration() [all …]
|
/freebsd/contrib/netbsd-tests/dev/sysmon/ |
H A D | t_swsensor.sh | 26 grep "swsensor-sensor" | \ 39 sensor=${event#* } 40 sensor=${sensor% *} 46 elif [ "${sensor}" != "sensor" ] ; then 47 echo "Event uses wrong sensor: ${sensor}" 100 # $1 sensor mode 101 # $2 initial sensor value 105 # $6 sensor flags, for FHAS_ENTROPY and FMONNOTSUPP 119 # start powerd so we can detect sensor events 129 # Step 0 - verify that sensor is registered [all …]
|
/freebsd/sys/contrib/device-tree/src/arm/aspeed/ |
H A D | aspeed-bmc-facebook-minerva.dts | 190 temperature-sensor@4b { 195 temperature-sensor@4f { 233 power-sensor@40 { 239 power-sensor@41 { 245 power-sensor@44 { 251 power-sensor@45 { 257 temperature-sensor@4b { 280 power-sensor@40 { 286 power-sensor@41 { 292 power-sensor@44 { [all …]
|
H A D | aspeed-bmc-facebook-yosemite4.dts | 132 power-sensor@40 { 149 power-sensor@40 { 166 power-sensor@40 { 183 power-sensor@40 { 200 power-sensor@40 { 217 power-sensor@40 { 234 power-sensor@40 { 251 power-sensor@40 { 286 power-sensor@10 { 291 power-sensor@12 { [all …]
|
/freebsd/sys/dev/sfxge/common/ |
H A D | mcdi_mon.c | 58 uint16_t sensor; in mcdi_mon_decode_stats() local 79 * The MCDI sensor readings in the DMA buffer are a packed array of in mcdi_mon_decode_stats() 82 * sensor readings do not include entries for the per-page NEXT_PAGE in mcdi_mon_decode_stats() 88 for (sensor = 0; sensor < sensor_max; ++sensor) { in mcdi_mon_decode_stats() 94 if ((sensor % (MC_CMD_SENSOR_PAGE0_NEXT + 1)) == in mcdi_mon_decode_stats() 98 /* This sensor is one of the page boundary bits. */ in mcdi_mon_decode_stats() 101 if (~(sensor_mask[page]) & (1U << sensor)) in mcdi_mon_decode_stats() 103 /* This sensor not in DMA buffer */ in mcdi_mon_decode_stats() 111 decode_ok = efx_mon_mcdi_to_efx_stat(sensor, &id); in mcdi_mon_decode_stats() 125 * If there is an entry in the MCDI sensor to monitor statistic in mcdi_mon_decode_stats() [all …]
|
/freebsd/share/man/man4/ |
H A D | aibs.4 | 23 .Nd "ASUSTeK AI Booster ACPI ATK0110 voltage, temperature and fan sensor" 51 as well as the description of each sensor, 55 provides descriptions regarding what each sensor is used for, 57 the supposed range specifications of each sensor's input 74 Sensor readings and the range specifications are made available through the 128 Sensor values from 142 In essence, sensor values from 147 Sensor descriptions from 151 Sensor range specifications are supported by 154 for each individual sensor as suggested by the motherboard manufacturer. [all …]
|
H A D | isl.4 | 30 .Nd Intersil(TM) I2C ISL29018 sensor driver 62 driver provides access to sensor data provided by the Intersil(TM) I2C 63 ISL29018 Digital Ambient Light Sensor and Proximity Sensor with Interrupt 88 Current ALS (Ambient Light Sensor) readout. 90 Current IR (InfraRed) sensor readout. 92 Current proximity sensor readout. 94 Current sensor resolution. 96 Current sensor range. 99 .Ss Ambient light sensor read out
|
/freebsd/sys/powerpc/powernv/ |
H A D | opal_sensor.c | 60 "opal-sensor", MTX_DEF) 64 * of "ibm,opal-sensor". One hangs off /ibm,opal/, named "sensors", the other 128 uint32_t sensor; in opal_sensor_sysctl() local 132 sensor = arg2; in opal_sensor_sysctl() 134 error = opal_sensor_get_val(sc, sensor, &sensval); in opal_sensor_sysctl() 158 if (!ofw_bus_is_compatible(dev, "ibm,opal-sensor")) in opal_sensor_probe() 161 device_set_desc(dev, "OPAL sensor"); in opal_sensor_probe() 181 if (OF_getencprop(node, "sensor-data", &sensor_id, sizeof(sensor_id)) < 0) { in opal_sensor_attach() 182 device_printf(dev, "Missing sensor ID\n"); in opal_sensor_attach() 185 if (OF_getprop(node, "sensor-type", type, sizeof(type)) < 0) { in opal_sensor_attach() [all …]
|