Home
last modified time | relevance | path

Searched refs:sensors (Results 1 – 25 of 629) sorted by relevance

12345678910>>...26

/linux-6.6.21/drivers/thermal/intel/
Dintel_soc_dts_iosf.c43 static int update_trip_temp(struct intel_soc_dts_sensors *sensors, in update_trip_temp() argument
56 if (sensors->intr_type == INTEL_SOC_DTS_INTERRUPT_MSI) in update_trip_temp()
59 temp_out = (sensors->tj_max - temp) / 1000; in update_trip_temp()
138 ret = update_trip_temp(dts->sensors, thres_index, temp); in configure_trip()
152 struct intel_soc_dts_sensors *sensors = dts->sensors; in sys_set_trip_temp() local
155 if (temp > sensors->tj_max) in sys_set_trip_temp()
158 mutex_lock(&sensors->dts_update_lock); in sys_set_trip_temp()
159 status = update_trip_temp(sensors, trip, temp); in sys_set_trip_temp()
160 mutex_unlock(&sensors->dts_update_lock); in sys_set_trip_temp()
171 struct intel_soc_dts_sensors *sensors; in sys_get_curr_temp() local
[all …]
Dintel_soc_dts_iosf.h34 struct intel_soc_dts_sensors *sensors; member
49 void intel_soc_dts_iosf_exit(struct intel_soc_dts_sensors *sensors);
51 struct intel_soc_dts_sensors *sensors);
/linux-6.6.21/drivers/hwmon/occ/
Dcommon.c236 struct occ_sensors *sensors = &occ->sensors; in occ_show_temp_1() local
243 temp = ((struct temp_sensor_1 *)sensors->temp.data) + sattr->index; in occ_show_temp_1()
272 struct occ_sensors *sensors = &occ->sensors; in occ_show_temp_2() local
279 temp = ((struct temp_sensor_2 *)sensors->temp.data) + sattr->index; in occ_show_temp_2()
323 struct occ_sensors *sensors = &occ->sensors; in occ_show_temp_10() local
330 temp = ((struct temp_sensor_10 *)sensors->temp.data) + sattr->index; in occ_show_temp_10()
370 struct occ_sensors *sensors = &occ->sensors; in occ_show_freq_1() local
377 freq = ((struct freq_sensor_1 *)sensors->freq.data) + sattr->index; in occ_show_freq_1()
400 struct occ_sensors *sensors = &occ->sensors; in occ_show_freq_2() local
407 freq = ((struct freq_sensor_2 *)sensors->freq.data) + sattr->index; in occ_show_freq_2()
[all …]
/linux-6.6.21/drivers/hwmon/
Dibmpex.c90 struct ibmpex_sensor_data *sensors; member
228 if (!data->sensors[i].in_use) in ibmpex_update_device()
233 data->sensors[i].values[0] = in ibmpex_update_device()
235 data->sensors[i].values[1] = in ibmpex_update_device()
237 data->sensors[i].values[2] = in ibmpex_update_device()
272 int mult = data->sensors[attr->index].multiplier; in ibmpex_show_sensor()
276 data->sensors[attr->index].values[attr->nr] * mult); in ibmpex_show_sensor()
344 sysfs_attr_init(&data->sensors[sensor].attr[func].dev_attr.attr); in create_sensor()
345 data->sensors[sensor].attr[func].dev_attr.attr.name = n; in create_sensor()
346 data->sensors[sensor].attr[func].dev_attr.attr.mode = 0444; in create_sensor()
[all …]
Dasus-ec-sensors.c287 unsigned long sensors; member
300 .sensors = SENSOR_SET_TEMP_CHIPSET_CPU_MB |
309 .sensors = SENSOR_SET_TEMP_CHIPSET_CPU_MB | SENSOR_TEMP_VRM |
316 .sensors = SENSOR_SET_TEMP_CHIPSET_CPU_MB | SENSOR_TEMP_VRM |
324 .sensors = SENSOR_SET_TEMP_CHIPSET_CPU_MB |
332 .sensors = SENSOR_SET_TEMP_CHIPSET_CPU_MB | SENSOR_TEMP_VRM |
340 .sensors = SENSOR_TEMP_CPU | SENSOR_TEMP_CPU_PACKAGE |
348 .sensors = SENSOR_SET_TEMP_CHIPSET_CPU_MB |
358 .sensors = SENSOR_SET_TEMP_CHIPSET_CPU_MB |
369 .sensors = SENSOR_SET_TEMP_CHIPSET_CPU_MB |
[all …]
Dibmaem.c156 struct sensor_device_attribute sensors[AEM_NUM_SENSORS]; member
917 struct sensor_device_attribute *sensors = data->sensors; in aem_register_sensors() local
922 sysfs_attr_init(&sensors->dev_attr.attr); in aem_register_sensors()
923 sensors->dev_attr.attr.name = ro->label; in aem_register_sensors()
924 sensors->dev_attr.attr.mode = 0444; in aem_register_sensors()
925 sensors->dev_attr.show = ro->show; in aem_register_sensors()
926 sensors->index = ro->index; in aem_register_sensors()
928 err = device_create_file(dev, &sensors->dev_attr); in aem_register_sensors()
930 sensors->dev_attr.attr.name = NULL; in aem_register_sensors()
933 sensors++; in aem_register_sensors()
[all …]
Dibmpowernv.c36 enum sensors { enum
77 enum sensors type;
248 static const char *convert_opal_attr_name(enum sensors type, in convert_opal_attr_name()
274 enum sensors type, u32 *index) in parse_opal_node_name()
293 enum sensors type; in get_sensor_type()
340 enum sensors type; in init_sensor_group_data()
389 enum sensors gtype) in get_sensor_group()
402 enum sensors type; in get_sensor_group()
437 enum sensors type; in populate_attr_groups()
507 const char *attr_name, enum sensors type, in populate_sensor()
[all …]
/linux-6.6.21/arch/arm64/boot/dts/ti/
Dk3-j721s2-thermal.dtsi8 thermal-sensors = <&wkup_vtm0 0>;
22 thermal-sensors = <&wkup_vtm0 1>;
36 thermal-sensors = <&wkup_vtm0 2>;
50 thermal-sensors = <&wkup_vtm0 3>;
64 thermal-sensors = <&wkup_vtm0 4>;
78 thermal-sensors = <&wkup_vtm0 5>;
92 thermal-sensors = <&wkup_vtm0 6>;
Dk3-j784s4-thermal.dtsi8 thermal-sensors = <&wkup_vtm0 0>;
22 thermal-sensors = <&wkup_vtm0 1>;
36 thermal-sensors = <&wkup_vtm0 2>;
50 thermal-sensors = <&wkup_vtm0 3>;
64 thermal-sensors = <&wkup_vtm0 4>;
78 thermal-sensors = <&wkup_vtm0 5>;
92 thermal-sensors = <&wkup_vtm0 6>;
Dk3-j721e-thermal.dtsi9 thermal-sensors = <&wkup_vtm0 0>;
23 thermal-sensors = <&wkup_vtm0 1>;
37 thermal-sensors = <&wkup_vtm0 2>;
51 thermal-sensors = <&wkup_vtm0 3>;
65 thermal-sensors = <&wkup_vtm0 4>;
/linux-6.6.21/Documentation/driver-api/iio/
Dintro.rst12 sensors used to monitor and control the system itself, like fan speed control
25 * color and light sensors
27 * pressure sensors
28 * proximity sensors
29 * temperature sensors
31 Usually these sensors are connected via :doc:`SPI <../spi>` or
32 :doc:`I2C <../i2c>`. A common use case of the sensors devices is to have
/linux-6.6.21/Documentation/devicetree/bindings/thermal/
Dbrcm,sr-thermal.txt3 This binding describes thermal sensors that is part of Stingray SoCs.
12 - thermal-sensors: A list of thermal sensor phandles and specifier.
36 thermal-sensors = <&tmon 0>;
48 thermal-sensors = <&tmon 1>;
60 thermal-sensors = <&tmon 2>;
72 thermal-sensors = <&tmon 3>;
84 thermal-sensors = <&tmon 4>;
96 thermal-sensors = <&tmon 5>;
/linux-6.6.21/Documentation/hwmon/
Dibmpowernv.rst13 This driver implements reading the platform sensors data like temperature/fan/
21 All the nodes in the DT appear under "/ibm,opal/sensors" and each valid node in
43 tempX_enable Enable/disable all temperature sensors belonging to the
46 disable/enable all of its temperature sensors.
56 inX_enable Enable/disable all voltage sensors belonging to the
59 disable/enable all of its voltage sensors.
67 powerX_enable Enable/disable all power sensors belonging to the
70 disable/enable all of its power sensors.
78 currX_enable Enable/disable all current sensors belonging to the
81 disable/enable all of its current sensors.
Daquacomputer_d5next.rst25 This driver exposes hardware sensors of listed Aquacomputer devices, which
29 virtual temperature sensors, as well as two flow sensors. The fans expose their
33 For the D5 Next pump, available sensors are pump and fan speed, power, voltage
34 and current, as well as coolant temperature and eight virtual temp sensors. Also
38 sensors will report zeroes.
46 The Octo exposes four physical and sixteen virtual temperature sensors, as well as
50 The Quadro exposes four physical and sixteen virtual temperature sensors, a flow
54 The Farbwerk and Farbwerk 360 expose four temperature sensors. Additionally,
55 sixteen virtual temperature sensors of the Farbwerk 360 are exposed.
61 The Leakshield exposes two temperature sensors and coolant pressure (current, min, max and
[all …]
Duserspace-tools.rst15 Lm-sensors
20 http://www.lm-sensors.org/ or as a package from your Linux distribution.
23 Get lm-sensors from project web site. Please note, you need only userspace
28 0) get lm-sensors userspace utils
31 2) run sensors-detect script, it will tell you what modules you need to load.
32 3) load them and run "sensors" command, you should see some results.
33 4) fix sensors.conf, labels, limits, fan divisors
Dw83l786ng.rst32 The driver implements two temperature sensors, two fan rotation speed
33 sensors, and three voltage sensors.
42 Voltage sensors (also known as IN sensors) report their values in millivolts.
/linux-6.6.21/drivers/platform/x86/dell/
Ddell-wmi-ddv.c237 struct dell_wmi_ddv_sensors *sensors, size_t entry_size) in dell_wmi_ddv_update_sensors() argument
244 if (sensors->obj) { in dell_wmi_ddv_update_sensors()
245 if (time_before(jiffies, sensors->timestamp + HZ)) in dell_wmi_ddv_update_sensors()
248 kfree(sensors->obj); in dell_wmi_ddv_update_sensors()
249 sensors->obj = NULL; in dell_wmi_ddv_update_sensors()
270 sensors->obj = obj; in dell_wmi_ddv_update_sensors()
271 sensors->entries = entries; in dell_wmi_ddv_update_sensors()
272 sensors->timestamp = jiffies; in dell_wmi_ddv_update_sensors()
521 static void dell_wmi_ddv_hwmon_cache_invalidate(struct dell_wmi_ddv_sensors *sensors) in dell_wmi_ddv_hwmon_cache_invalidate() argument
523 if (!sensors->active) in dell_wmi_ddv_hwmon_cache_invalidate()
[all …]
/linux-6.6.21/arch/arm64/boot/dts/qcom/
Dsdm632.dtsi13 thermal-sensors = <&tsens0 13>;
26 thermal-sensors = <&tsens0 5>;
30 thermal-sensors = <&tsens0 6>;
34 thermal-sensors = <&tsens0 7>;
38 thermal-sensors = <&tsens0 8>;
/linux-6.6.21/drivers/thermal/ti-soc-thermal/
Dti-bandgap.c83 t = bgp->conf->sensors[(id)].registers; \
163 tsr = bgp->conf->sensors[id].registers; in ti_bandgap_read_temp()
213 tsr = bgp->conf->sensors[i].registers; in ti_bandgap_talert_irq_handler()
243 __func__, bgp->conf->sensors[i].domain, in ti_bandgap_talert_irq_handler()
343 tsr = bgp->conf->sensors[id].registers; in ti_bandgap_read_counter()
363 tsr = bgp->conf->sensors[id].registers; in ti_bandgap_read_counter_delay()
605 struct temp_sensor_registers *tsr = bgp->conf->sensors[id].registers; in ti_bandgap_force_single_read()
700 tsr = bgp->conf->sensors[id].registers; in ti_bandgap_get_trend()
930 tsr = bgp->conf->sensors[i].registers; in ti_bandgap_probe()
943 bgp->conf->sensors[0].ts_data->max_freq); in ti_bandgap_probe()
[all …]
/linux-6.6.21/arch/arm64/boot/dts/arm/
Djuno-scmi.dtsi80 thermal-sensors = <&scmi_sensors0 0>;
84 thermal-sensors = <&scmi_sensors0 3>;
88 thermal-sensors = <&scmi_sensors0 21>;
92 thermal-sensors = <&scmi_sensors0 22>;
96 thermal-sensors = <&scmi_sensors0 23>;
100 thermal-sensors = <&scmi_sensors0 24>;
/linux-6.6.21/Documentation/devicetree/bindings/firmware/
Darm,scpi.yaml83 sensors:
86 This sub-node represents SCPI sensors controller.
91 - const: arm,scpi-sensors
94 - amlogic,meson-gxbb-scpi-sensors
95 - const: arm,scpi-sensors
204 scpi_sensors: sensors {
205 compatible = "arm,scpi-sensors";
243 scpi_sensors1: sensors {
244 compatible = "amlogic,meson-gxbb-scpi-sensors", "arm,scpi-sensors";
/linux-6.6.21/drivers/iio/position/
DKconfig3 # Linear and angular position sensors
7 menu "Linear and angular position sensors"
10 tristate "Azoteq IQS624/625 angular position sensors"
14 and IQS625 angular position sensors.
/linux-6.6.21/drivers/thermal/
Dimx8mm_thermal.c94 struct tmu_sensor sensors[]; member
303 tmu = devm_kzalloc(&pdev->dev, struct_size(tmu, sensors, in imx8mm_tmu_probe()
329 tmu->sensors[i].priv = tmu; in imx8mm_tmu_probe()
330 tmu->sensors[i].tzd = in imx8mm_tmu_probe()
332 &tmu->sensors[i], in imx8mm_tmu_probe()
334 if (IS_ERR(tmu->sensors[i].tzd)) { in imx8mm_tmu_probe()
335 ret = PTR_ERR(tmu->sensors[i].tzd); in imx8mm_tmu_probe()
341 tmu->sensors[i].hw_id = i; in imx8mm_tmu_probe()
343 devm_thermal_add_hwmon_sysfs(&pdev->dev, tmu->sensors[i].tzd); in imx8mm_tmu_probe()
/linux-6.6.21/drivers/iio/humidity/
Dhts221_core.c190 hw->sensors[type].cur_avg_idx = i; in hts221_update_avg()
291 slope = &hw->sensors[HTS221_SENSOR_T].slope; in hts221_parse_temp_caldata()
292 b_gen = &hw->sensors[HTS221_SENSOR_T].b_gen; in hts221_parse_temp_caldata()
330 slope = &hw->sensors[HTS221_SENSOR_H].slope; in hts221_parse_rh_caldata()
331 b_gen = &hw->sensors[HTS221_SENSOR_H].b_gen; in hts221_parse_rh_caldata()
350 data = hw->sensors[HTS221_SENSOR_H].slope; in hts221_get_sensor_scale()
354 data = hw->sensors[HTS221_SENSOR_T].slope; in hts221_get_sensor_scale()
379 data = hw->sensors[HTS221_SENSOR_H].b_gen; in hts221_get_sensor_offset()
380 div = hw->sensors[HTS221_SENSOR_H].slope; in hts221_get_sensor_offset()
383 data = hw->sensors[HTS221_SENSOR_T].b_gen; in hts221_get_sensor_offset()
[all …]
/linux-6.6.21/drivers/macintosh/
Dwindfarm_ad7417_sensor.c32 struct wf_sensor sensors[5]; member
102 int chan = sr - pv->sensors; in wf_ad7417_adc_get()
183 pv->sensors[index].name = kasprintf(GFP_KERNEL, "%s-%d", name, pv->cpu); in wf_ad7417_add_sensor()
184 pv->sensors[index].priv = pv; in wf_ad7417_add_sensor()
185 pv->sensors[index].ops = ops; in wf_ad7417_add_sensor()
186 if (!wf_register_sensor(&pv->sensors[index])) in wf_ad7417_add_sensor()
301 wf_unregister_sensor(&pv->sensors[i]); in wf_ad7417_remove()

12345678910>>...26