Home
last modified time | relevance | path

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

12345678910>>...22

/linux/drivers/thermal/intel/
H A 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()
137 struct intel_soc_dts_sensors *sensors = dts->sensors; in sys_set_trip_temp() local
141 if (temp > sensors->tj_max) in sys_set_trip_temp()
144 mutex_lock(&sensors->dts_update_lock); in sys_set_trip_temp()
145 status = update_trip_temp(sensors, trip_index, temp); in sys_set_trip_temp()
146 mutex_unlock(&sensors->dts_update_lock); in sys_set_trip_temp()
157 struct intel_soc_dts_sensors *sensors; in sys_get_curr_temp() local
256 intel_soc_dts_iosf_interrupt_handler(struct intel_soc_dts_sensors * sensors) intel_soc_dts_iosf_interrupt_handler() argument
291 dts_trips_reset(struct intel_soc_dts_sensors * sensors,int dts_index) dts_trips_reset() argument
311 struct intel_soc_dts_sensors *sensors; intel_soc_dts_iosf_init() local
379 intel_soc_dts_iosf_exit(struct intel_soc_dts_sensors * sensors) intel_soc_dts_iosf_exit() argument
[all...]
H A Dintel_soc_dts_iosf.h32 struct intel_soc_dts_sensors *sensors; member
47 void intel_soc_dts_iosf_exit(struct intel_soc_dts_sensors *sensors);
49 struct intel_soc_dts_sensors *sensors);
/linux/drivers/hwmon/occ/
H A 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 in occ_show_freq_1() local
400 struct occ_sensors *sensors = &occ->sensors; occ_show_freq_2() local
430 struct occ_sensors *sensors = &occ->sensors; occ_show_power_1() local
475 struct occ_sensors *sensors = &occ->sensors; occ_show_power_2() local
514 struct occ_sensors *sensors = &occ->sensors; occ_show_power_a0() local
594 struct occ_sensors *sensors = &occ->sensors; occ_show_caps_1_2() local
644 struct occ_sensors *sensors = &occ->sensors; occ_show_caps_3() local
715 struct occ_sensors *sensors = &occ->sensors; occ_show_extended() local
780 struct occ_sensors *sensors = &occ->sensors; occ_setup_sensor_attrs() local
1053 struct occ_sensors *sensors = &occ->sensors; occ_parse_poll_response() local
[all...]
/linux/arch/arm64/boot/dts/qcom/
H A Dx1p42100.dtsi92 thermal-sensors = <&tsens0 0>;
110 thermal-sensors = <&tsens0 1>;
122 thermal-sensors = <&tsens0 2>;
134 thermal-sensors = <&tsens0 3>;
146 thermal-sensors = <&tsens0 4>;
158 thermal-sensors = <&tsens0 5>;
170 thermal-sensors = <&tsens0 6>;
182 thermal-sensors = <&tsens0 7>;
194 thermal-sensors = <&tsens0 8>;
206 thermal-sensors
[all...]
/linux/drivers/hwmon/
H A Dibmpex.c3 * A hwmon driver for the IBM PowerExecutive temperature/power sensors
90 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()
267 int mult = data->sensors[attr->index].multiplier; in ibmpex_show_sensor()
271 data->sensors[attr->index].values[attr->nr] * mult); in ibmpex_show_sensor()
339 sysfs_attr_init(&data->sensors[sensor].attr[func].dev_attr.attr); in create_sensor()
340 data->sensors[senso in create_sensor()
[all...]
H A Dasus-ec-sensors.c175 * All the known sensors for ASUS EC controllers. These arrays have to be sorted
334 unsigned long sensors; member
347 .sensors = SENSOR_SET_TEMP_CHIPSET_CPU_MB |
356 .sensors = SENSOR_SET_TEMP_CHIPSET_CPU_MB |
365 .sensors = SENSOR_SET_TEMP_CHIPSET_CPU_MB | SENSOR_TEMP_VRM |
372 .sensors = SENSOR_TEMP_CPU | SENSOR_TEMP_CPU_PACKAGE |
380 .sensors = SENSOR_SET_TEMP_CHIPSET_CPU_MB | SENSOR_TEMP_VRM |
388 .sensors = SENSOR_TEMP_CPU | SENSOR_TEMP_CPU_PACKAGE |
396 .sensors = SENSOR_TEMP_CPU | SENSOR_TEMP_CPU_PACKAGE |
404 .sensors
702 struct ec_sensor *sensors; global() member
[all...]
H A Dsurface_temp.c20 * Available sensors are indicated by a 16-bit bitfield, where a 1 marks the
21 * presence of a sensor. So we have at most 16 possible sensors/channels.
55 static int ssam_tmp_get_available_sensors(struct ssam_device *sdev, s16 *sensors) in ssam_tmp_get_available_sensors() argument
64 *sensors = le16_to_cpu(sensors_le); in ssam_tmp_get_available_sensors()
113 s16 sensors; member
123 if (!(ssam_temp->sensors & BIT(channel))) in ssam_temp_hwmon_is_visible()
186 s16 sensors; in ssam_temp_probe() local
190 status = ssam_tmp_get_available_sensors(sdev, &sensors); in ssam_temp_probe()
199 ssam_temp->sensors = sensors; in ssam_temp_probe()
[all...]
H A Dibmaem.c4 * temperature/power/energy sensors and capping functionality.
138 /* Function and buffer to update sensors */
143 * AEM 1.x sensors:
144 * Available sensors:
148 * AEM 2.x sensors:
151 * Two temperature sensors
156 struct sensor_device_attribute sensors[AEM_NUM_SENSORS]; member
210 /* These are used to query sensors */
434 /* Update all AEM1 sensors */
447 /* Update all AEM2 sensors */
906 struct sensor_device_attribute *sensors = data->sensors; aem_register_sensors() local
[all...]
H A Dcgbc-hwmon.c33 struct cgbc_hwmon_sensor *sensors; member
99 struct cgbc_hwmon_sensor *sensor = hwmon->sensors; in cgbc_hwmon_probe_sensors()
109 hwmon->sensors = devm_kzalloc(dev, sizeof(*hwmon->sensors) * nb_sensors, GFP_KERNEL); in cgbc_hwmon_probe_sensors()
110 sensor = hwmon->sensors; in cgbc_hwmon_probe_sensors()
118 * We got data for the first sensor when we ask the number of sensors to the Board in cgbc_hwmon_probe_sensors()
136 * The Board Controller doesn't differentiate current and voltage sensors. in cgbc_hwmon_probe_sensors()
168 * The Board Controller doesn't differentiate current and voltage sensors. in cgbc_hwmon_find_sensor()
170 * sensors. in cgbc_hwmon_find_sensor()
176 if (hwmon->sensors[ in cgbc_hwmon_find_sensor()
[all...]
H A Dibmpowernv.c3 * IBM PowerNV platform sensors for temperature/fan/voltage/power
33 * Enumerates all the types of sensors in the POWERNV platform and does index
36 enum sensors { enum
50 * PowerNV firmware (skiboot). These are ordered as 'enum sensors'.
77 enum sensors type;
93 u32 sensors_count; /* Total count of sensors from each group */
199 * The digital thermal sensors are associated in make_sensor_label()
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 typ in get_sensor_type()
[all...]
/linux/drivers/hid/
H A Dhid-steam.c300 struct input_dev __rcu *sensors; member
837 struct input_dev *sensors; in steam_sensors_register() local
844 sensors = rcu_dereference(steam->sensors); in steam_sensors_register()
846 if (sensors) { in steam_sensors_register()
851 sensors = input_allocate_device(); in steam_sensors_register()
852 if (!sensors) in steam_sensors_register()
855 input_set_drvdata(sensors, steam); in steam_sensors_register()
856 sensors->dev.parent = &hdev->dev; in steam_sensors_register()
858 sensors in steam_sensors_register()
917 struct input_dev *sensors; steam_sensors_unregister() local
1677 steam_do_deck_sensors_event(struct steam_device * steam,struct input_dev * sensors,u8 * data) steam_do_deck_sensors_event() argument
1739 struct input_dev *sensors; steam_raw_event() local
[all...]
/linux/Documentation/driver-api/iio/
H A 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/arch/arm64/boot/dts/ti/
H A Dk3-j784s4-j742s2-thermal-common.dtsi11 thermal-sensors = <&wkup_vtm0 0>;
25 thermal-sensors = <&wkup_vtm0 1>;
39 thermal-sensors = <&wkup_vtm0 2>;
53 thermal-sensors = <&wkup_vtm0 3>;
67 thermal-sensors = <&wkup_vtm0 4>;
81 thermal-sensors = <&wkup_vtm0 5>;
95 thermal-sensors = <&wkup_vtm0 6>;
H A Dk3-j721s2-thermal.dtsi11 thermal-sensors = <&wkup_vtm0 0>;
25 thermal-sensors = <&wkup_vtm0 1>;
39 thermal-sensors = <&wkup_vtm0 2>;
53 thermal-sensors = <&wkup_vtm0 3>;
67 thermal-sensors = <&wkup_vtm0 4>;
81 thermal-sensors = <&wkup_vtm0 5>;
95 thermal-sensors = <&wkup_vtm0 6>;
/linux/Documentation/devicetree/bindings/thermal/
H A 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/Documentation/hwmon/
H A 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
[all...]
H A 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
H A 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.
H A Dhp-wmi-sensors.rst17 userspace utilities like ``sensors`` to gather numeric sensor readings.
22 When the driver is loaded, it discovers the sensors available on the
73 The standard hwmon interface in sysfs exposes sensors of several common types
75 other sensors in WMI that do not meet these criteria. In addition, a number of
78 all available HP WMI sensors and platform events objects.
80 ``/sys/kernel/debug/hp-wmi-sensors-[X]/sensor``
100 ``/sys/kernel/debug/hp-wmi-sensors-[X]/platform_events``
130 the wild so far. Support for voltage and current sensors is therefore
132 - Although HP WMI sensors may claim to be of any type, any oddball sensor
/linux/drivers/platform/x86/dell/
H A Ddell-wmi-ddv.c266 struct dell_wmi_ddv_sensors *sensors, size_t entry_size) in dell_wmi_ddv_update_sensors() argument
273 if (sensors->obj) { in dell_wmi_ddv_update_sensors()
274 if (time_before(jiffies, sensors->timestamp + HZ)) in dell_wmi_ddv_update_sensors()
277 kfree(sensors->obj); in dell_wmi_ddv_update_sensors()
278 sensors->obj = NULL; in dell_wmi_ddv_update_sensors()
299 sensors->obj = obj; in dell_wmi_ddv_update_sensors()
300 sensors->entries = entries; in dell_wmi_ddv_update_sensors()
301 sensors->timestamp = jiffies; in dell_wmi_ddv_update_sensors()
550 static void dell_wmi_ddv_hwmon_cache_invalidate(struct dell_wmi_ddv_sensors *sensors) in dell_wmi_ddv_hwmon_cache_invalidate() argument
552 if (!sensors in dell_wmi_ddv_hwmon_cache_invalidate()
563 struct dell_wmi_ddv_sensors *sensors = data; dell_wmi_ddv_hwmon_cache_destroy() local
572 dell_wmi_ddv_channel_init(struct wmi_device * wdev,enum dell_ddv_method method,struct dell_wmi_ddv_sensors * sensors,size_t entry_size,enum hwmon_sensor_types type,u32 config) dell_wmi_ddv_channel_init() argument
[all...]
/linux/drivers/thermal/ti-soc-thermal/
H A Dti-bandgap.c83 t = bgp->conf->sensors[(id)].registers; \
163 tsr = bgp->conf->sensors[id].registers; in ti_bandgap_read_temp()
197 * HAS(TALERT). This handler goes over all sensors and checks their
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()
313 * @id cannot index @bgp sensors.
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()
649 * sensors ar
[all...]
/linux/arch/arm64/boot/dts/arm/
H A 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/drivers/iio/position/
H A 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/drivers/iio/imu/st_lsm6dsx/
H A DKconfig4 tristate "ST_LSM6DSx driver for STM 6-axis IMU MEMS sensors"
42 tristate "ST_LSM6DSx driver for STM 6-axis IMU MEMS sensors I2C Interface"
48 tristate "ST_LSM6DSx driver for STM 6-axis IMU MEMS sensors SPI Interface"
54 tristate "ST_LSM6DSx driver for STM 6-axis IMU MEMS sensors I3C Interface"
/linux/drivers/iio/humidity/
H A 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_ in hts221_get_sensor_offset()
[all...]

12345678910>>...22