Home
last modified time | relevance | path

Searched refs:sensor (Results 1 – 25 of 711) sorted by relevance

12345678910>>...29

/freebsd/sys/powerpc/powermac/
H A Dpowermac_thermal.c72 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/usr.sbin/bsnmpd/modules/snmp_lm75/
H A Dsnmp_lm75.c126 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()
204 len = sizeof(sensor->pnpinfo); in update_sensor()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/hwmon/
H A Dibmpowernv.txt6 "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 Dlm90.txt37 - #thermal-sensor-cells: should be set to 1. See thermal/thermal-sensor.yaml
39 definition of the local, remote and 2nd remote sensor index
44 temp-sensor {
50 #thermal-sensor-cells = <1>;
/freebsd/sys/dev/acpi_support/
H A Datk0110.c166 struct aibs_sensor* sensor, const char ** descr) in aibs_add_sensor() argument
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()
212 sensor->t); in aibs_add_sensor()
219 const char *type_name, int idx, struct aibs_sensor *sensor, in aibs_sensor_added() argument
228 (uintmax_t)sensor->i, descr, (intmax_t)sensor->l, in aibs_sensor_added()
[all …]
/freebsd/sys/arm/allwinner/
H A Daw_thermal.c173 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
302 if (sensor == 0) { in h5_to_reg()
[all …]
/freebsd/sys/arm/nvidia/
H A Dtegra_soctherm.c459 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()
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()
508 (uint16_t)sensor->therm_b, sensor->therm_b); in tsensor_calibration()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/powerpc/opal/
H A Dsensor-groups.txt4 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/contrib/device-tree/src/arm/aspeed/
H A Daspeed-bmc-facebook-minerva.dts190 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 Daspeed-bmc-facebook-yosemite4.dts132 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/contrib/device-tree/Bindings/media/i2c/
H A Dmt9v032.txt3 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
H A Dnokia,smia.txt1 SMIA/SMIA++ sensor
3 SMIA (Standard Mobile Imaging Architecture) is an image sensor standard
19 - vana-supply: Analogue voltage supply (VANA), typically 2,8 volts (sensor
21 - clocks: External clock to the sensor
22 - clock-frequency: Frequency of the external clock to the sensor
33 - rotation: Integer property; valid values are 0 (sensor mounted upright)
34 and 180 (sensor mounted upside down). See
50 camera-sensor@10 {
H A Dtoshiba,et8ek8.txt1 Toshiba et8ek8 5MP sensor
3 Toshiba et8ek8 5MP sensor is an image sensor found in Nokia N900 device
15 - clocks: External clock to the sensor
16 - clock-frequency: Frequency of the external clock to the sensor. Camera
19 - reset-gpios: XSHUTDOWN GPIO. The XSHUTDOWN signal is active low. The sensor
/freebsd/sys/contrib/device-tree/Bindings/thermal/
H A Dthermal-generic-adc.txt1 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 Dnvidia,tegra186-bpmp-thermal.txt1 NVIDIA Tegra186 BPMP thermal sensor
5 and GPU temperatures. This binding describes the thermal sensor that is
11 This node represents a thermal sensor. See Documentation/devicetree/bindings/thermal/thermal-sensor
20 - #thermal-sensor-cells: Cell for sensor index.
31 #thermal-sensor-cells = <1>;
H A Dthermal.txt25 * 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 Dhisilicon-thermal.txt6 - reg: physical base address of thermal sensor and length of memory mapped
12 - #thermal-sensor-cells: Should be 1. See Documentation/devicetree/bindings/thermal/thermal-sensor.…
23 #thermal-sensor-cells = <1>;
31 #thermal-sensor-cells = <1>;
H A Dtango-thermal.txt3 The SMP8758 SoC includes 3 instances of this temperature sensor
7 - #thermal-sensor-cells: Should be 0 (see Documentation/devicetree/bindings/thermal/thermal-sensor.…
14 #thermal-sensor-cells = <0>;
H A Damazon,al-thermal.txt8 - reg: The physical base address and length of the sensor's registers.
9 - #thermal-sensor-cells: Must be 1. See Documentation/devicetree/bindings/thermal/thermal-sensor.ya…
15 #thermal-sensor-cells = <0x1>;
H A Dbrcm,bcm2835-thermal.txt9 clocks: Phandle of the clock used by the thermal sensor.
10 #thermal-sensor-cells: should be 0 (see Documentation/devicetree/bindings/thermal/thermal-sensor.ya…
40 #thermal-sensor-cells = <0>;
/freebsd/sys/dev/amdtemp/
H A Damdtemp.c227 static int32_t amdtemp_gettemp0f(device_t dev, amdsensor_t sensor);
228 static int32_t amdtemp_gettemp(device_t dev, amdsensor_t sensor);
229 static int32_t amdtemp_gettemp15hm60h(device_t dev, amdsensor_t sensor);
230 static int32_t amdtemp_gettemp17h(device_t dev, amdsensor_t sensor);
600 amdsensor_t sensor; in amdtemp_intrhook() local
619 sensor = sc->sc_ntemps > 1 ? in amdtemp_intrhook()
625 dev, sensor, amdtemp_sysctl, "IK", in amdtemp_intrhook()
654 amdsensor_t sensor = (amdsensor_t)arg2; in amdtemp_sysctl() local
658 switch (sensor) { in amdtemp_sysctl()
670 temp = sc->sc_gettemp(dev, sensor); in amdtemp_sysctl()
[all …]
/freebsd/sys/arm/mv/
H A Dmv_thermal.c155 mv_thermal_select_sensor(struct mv_thermal_softc *sc, int sensor) in mv_thermal_select_sensor() argument
159 if (sc->cur_sensor == sensor) in mv_thermal_select_sensor()
175 if (sensor) { in mv_thermal_select_sensor()
179 reg |= (sensor - 1) << CONTROL0_CHANNEL_SHIFT; in mv_thermal_select_sensor()
182 sc->cur_sensor = sensor; in mv_thermal_select_sensor()
193 mv_thermal_read_sensor(struct mv_thermal_softc *sc, int sensor, int *temp) in mv_thermal_read_sensor() argument
198 rv = mv_thermal_select_sensor(sc, sensor); in mv_thermal_read_sensor()
259 int sensor = arg2; in mv_thermal_sysctl() local
265 if (mv_thermal_read_sensor(sc, sensor, &val) == 0) { in mv_thermal_sysctl()
/freebsd/sys/dev/sfxge/common/
H A Dmcdi_mon.c58 uint16_t sensor; in mcdi_mon_decode_stats() local
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()
101 if (~(sensor_mask[page]) & (1U << sensor)) in mcdi_mon_decode_stats()
111 decode_ok = efx_mon_mcdi_to_efx_stat(sensor, &id); in mcdi_mon_decode_stats()
165 uint16_t sensor; in mcdi_mon_ev() local
174 sensor = (uint16_t)MCDI_EV_FIELD(eqp, SENSOREVT_MONITOR); in mcdi_mon_ev()
179 EFSYS_ASSERT3U(sensor, <, in mcdi_mon_ev()
181 EFSYS_ASSERT((sensor % (MC_CMD_SENSOR_PAGE0_NEXT + 1)) != in mcdi_mon_ev()
185 sensor / (MC_CMD_SENSOR_PAGE0_NEXT + 1)] & in mcdi_mon_ev()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/media/
H A Dsamsung-s5k6a3.txt1 Samsung S5K6A3(YX) raw image sensor
4 S5K6A3(YX) is a raw image sensor with MIPI CSI-2 and CCP2 image data interfaces
10 - reg : I2C slave address of the sensor;
18 - clock-names : should contain "extclk" entry for the sensor's EXTCLK clock;
33 video-interfaces.txt. The sensor supports only one data lane.
/freebsd/sys/contrib/device-tree/Bindings/iio/
H A Dmount-matrix.txt16 The purpose of the mounting matrix is to translate the sensor frame of
36 A sensor can be mounted in any angle along the axes relative to the frame of
37 reference. This means that the sensor may be flipped upside-down, left-right,
40 Another frame of reference is how the device with its sensor relates to the
42 from the sensor is used to figure out how the device is oriented with respect
43 to this world. When using the mounting matrix, the sensor and device orientation
47 Device-to-world examples for some three-dimensional sensor types:
51 from the sensor will give a projection of the gravity vector through the
150 So unless the sensor is ideally mounted, we need a means to indicate the
151 relative orientation of any given sensor of this type with respect to the
[all …]

12345678910>>...29