Home
last modified time | relevance | path

Searched +full:sensor +full:- +full:type (Results 1 – 25 of 857) sorted by relevance

12345678910>>...35

/linux/drivers/hwmon/
H A Dscmi-hwmon.c1 // SPDX-License-Identifier: GPL-2.0
3 * System Control and Management Interface(SCMI) based hwmon sensor driver
5 * Copyright (C) 2018-2021 ARM Ltd.
32 while (x--) in __pow10()
38 static int scmi_hwmon_scale(const struct scmi_sensor_info *sensor, u64 *value) in scmi_hwmon_scale() argument
40 int scale = sensor->scale; in scmi_hwmon_scale()
43 switch (sensor->type) { in scmi_hwmon_scale()
61 return -E2BIG; in scmi_hwmon_scale()
73 const struct scmi_sensor_info *sensor, in scmi_hwmon_read_scaled_value() argument
79 ret = sensor_ops->reading_get(ph, sensor->id, &value); in scmi_hwmon_read_scaled_value()
[all …]
H A Dasus_wmi_sensors.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * HWMON driver for ASUS motherboards that provides sensor readouts via WMI
6 * Copyright (C) 2018-2019 Ed Brindley <kernel@maidavale.org>
9 * - CPU Core Voltage,
10 * - CPU SOC Voltage,
11 * - DRAM Voltage,
12 * - VDDP Voltage,
13 * - 1.8V PLL Voltage,
14 * - +12V Voltage,
15 * - +5V Voltage,
[all …]
H A Dibmpowernv.c1 // SPDX-License-Identifier: GPL-2.0-or-later
14 #include <linux/hwmon-sysfs.h>
27 /* Sensor suffix name from DT */
46 #define INVALID_INDEX (-1U)
49 * 'compatible' string properties for sensor types as defined in old
53 "ibm,opal-sensor-cooling-fan",
54 "ibm,opal-sensor-amb-temp",
55 "ibm,opal-sensor-power-supply",
56 "ibm,opal-sensor-power"
60 const char *name; /* matches property 'sensor-type' */
[all …]
H A Dbt1-pvt.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Baikal-T1 Process, Voltage, Temperature sensor driver
17 /* Baikal-T1 PVT registers and their bitfields */
61 * PVT sensors-related limits and default values
70 * @PVT_TRIM_MIN: Minimal temperature sensor trim value.
71 * @PVT_TRIM_MAX: Maximal temperature sensor trim value.
72 * @PVT_TRIM_DEF: Default temperature sensor trim value (set a proper value
73 * when one is determined for Baikal-T1 SoC).
84 #define PVT_TEMP_MIN -48380L
105 * enum pvt_sensor_type - Baikal-T1 PVT sensor types (correspond to each PVT
[all …]
H A Dbt1-pvt.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * Baikal-T1 Process, Voltage, Temperature sensor driver
18 #include <linux/hwmon-sysfs.h>
34 #include "bt1-pvt.h"
38 * with the sensor names, activation modes, threshold registers base address
44 PVT_SENSOR_INFO(1, "CPU Core Low-Vt", hwmon_in, LVT, LTHRES),
45 PVT_SENSOR_INFO(2, "CPU Core High-Vt", hwmon_in, HVT, HTHRES),
46 PVT_SENSOR_INFO(3, "CPU Core Standard-Vt", hwmon_in, SVT, STHRES),
51 * to PVT data and vice-versa are following:
52 * N = 1.8322e-8*(T^4) + 2.343e-5*(T^3) + 8.7018e-3*(T^2) + 3.9269*(T^1) +
[all …]
/linux/drivers/net/ethernet/sfc/siena/
H A Dmcdi_mon.c1 // 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 …]
/linux/drivers/net/ethernet/sfc/
H A Dmcdi_mon.c1 // 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 …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/
H A Dbase.c34 enum nvbios_extdev_type type) in nvkm_iccsense_validate_device() argument
36 switch (type) { in nvkm_iccsense_validate_device()
57 return -EINVAL; in nvkm_iccsense_poll_lane()
70 return nvkm_iccsense_poll_lane(rail->sensor->i2c, rail->sensor->addr, in nvkm_iccsense_ina2x9_read()
71 shunt_reg, 0, bus_reg, 3, rail->mohm, in nvkm_iccsense_ina2x9_read()
93 return nvkm_iccsense_poll_lane(rail->sensor->i2c, rail->sensor->addr, in nvkm_iccsense_ina3221_read()
94 1 + (rail->idx * 2), 3, in nvkm_iccsense_ina3221_read()
95 2 + (rail->idx * 2), 3, rail->mohm, in nvkm_iccsense_ina3221_read()
101 struct nvkm_iccsense_sensor *sensor) in nvkm_iccsense_sensor_config() argument
103 struct nvkm_subdev *subdev = &iccsense->subdev; in nvkm_iccsense_sensor_config()
[all …]
/linux/Documentation/hwmon/
H A Docc.rst1 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 …]
/linux/drivers/iio/temperature/
H A Dltc2983.c1 // SPDX-License-Identifier: GPL-2.0
3 * Analog Devices LTC2983 Multi-Sensor Digital Temperature Measurement System
60 (((chan - 1) * 4) + LTC2983_CHAN_ASSIGN_START_REG)
62 (((chan - 1) * 4) + LTC2983_TEMP_RES_START_REG)
192 container_of(_sensor, struct ltc2983_thermocouple, sensor)
195 container_of(_sensor, struct ltc2983_rtd, sensor)
198 container_of(_sensor, struct ltc2983_thermistor, sensor)
201 container_of(_sensor, struct ltc2983_diode, sensor)
204 container_of(_sensor, struct ltc2983_rsense, sensor)
207 container_of(_sensor, struct ltc2983_adc, sensor)
[all …]
/linux/drivers/hid/amd-sfh-hid/hid_descriptor/
H A Damd_sfh_hid_report_desc.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 * Copyright 2020-2021 Advanced Micro Devices, Inc.
5 * Authors: Nehal Bakulchandra Shah <Nehal-bakulchandra.shah@amd.com>
13 // Accelerometer 3D Sensor
16 0x09, 0x73, /* Motion type Accel 3D */
21 0x05, 0x20, /* HID usage page sensor */
22 0x0A, 0x09, 0x03, /* Sensor property and sensor connection type */
28 0x0A, 0x30, 0x08, /* Sensor property connection type intergated sel*/
29 0x0A, 0x31, 0x08, /* Sensor property connection type attached sel */
30 0x0A, 0x32, 0x08, /* Sensor property connection type external sel */
[all …]
/linux/drivers/thermal/
H A Dthermal_of.c1 // SPDX-License-Identifier: GPL-2.0
3 * of-thermal.c - Generic Thermal Management device tree support.
25 * into the device tree binding of 'trip', property type.
35 * thermal_of_get_trip_type - Get phy mode for given device_node
37 * @type: Pointer to resulting trip type
39 * The function gets trip type string from property 'type',
40 * and store its index in trip_types table in @type,
45 enum thermal_trip_type *type) in thermal_of_get_trip_type() argument
50 err = of_property_read_string(np, "type", &t); in thermal_of_get_trip_type()
56 *type = i; in thermal_of_get_trip_type()
[all …]
H A Dimx_sc_thermal.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2018-2020 NXP.
6 #include <dt-bindings/firmware/imx/rsrc.h>
28 u8 type; member
48 struct imx_sc_sensor *sensor = thermal_zone_device_priv(tz); in imx_sc_thermal_get_temp() local
51 msg.data.req.resource_id = sensor->resource_id; in imx_sc_thermal_get_temp()
52 msg.data.req.type = IMX_SC_C_TEMP; in imx_sc_thermal_get_temp()
54 hdr->ver = IMX_SC_RPC_VERSION; in imx_sc_thermal_get_temp()
55 hdr->svc = IMX_SC_RPC_SVC_MISC; in imx_sc_thermal_get_temp()
56 hdr->func = IMX_SC_MISC_FUNC_GET_TEMP; in imx_sc_thermal_get_temp()
[all …]
/linux/Documentation/devicetree/bindings/powerpc/opal/
H A Dsensor-groups.txt1 IBM OPAL Sensor Groups Binding
2 -------------------------------
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
20 - ibm,chip-id : Chip ID
[all …]
/linux/Documentation/hid/
H A Dhid-sensor.rst4 HID sensor framework provides necessary interfaces to implement sensor drivers,
5 which are connected to a sensor hub. The sensor hub is a HID device and it provides
6 a report descriptor conforming to HID 1.12 sensor usage tables.
8 Description from the HID 1.12 "HID Sensor Usages" specification:
9 "Standardization of HID usages for sensors would allow (but not require) sensor
15 This specification describes many usage IDs, which describe the type of sensor
16 and also the individual data fields. Each sensor can have variable number of
26 Logical Minimum(-32767)
35 The report is indicating "sensor page (0x20)" contains an accelerometer-3D (0x73).
36 This accelerometer-3D has some fields. Here for example field 2 is motion intensity
[all …]
/linux/drivers/input/rmi4/
H A Drmi_f12.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2016 Synaptics Incorporated
30 struct rmi_2d_sensor sensor; member
67 struct rmi_2d_sensor *sensor = &f12->sensor; in rmi_f12_read_sensor_tuning() local
68 struct rmi_function *fn = sensor->fn; in rmi_f12_read_sensor_tuning()
69 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f12_read_sensor_tuning()
80 item = rmi_get_register_desc_item(&f12->control_reg_desc, 8); in rmi_f12_read_sensor_tuning()
82 dev_err(&fn->dev, in rmi_f12_read_sensor_tuning()
83 "F12 does not have the sensor tuning control register\n"); in rmi_f12_read_sensor_tuning()
84 return -ENODEV; in rmi_f12_read_sensor_tuning()
[all …]
/linux/drivers/iio/common/ssp_sensors/
H A Dssp_dev.c1 // SPDX-License-Identifier: GPL-2.0-or-later
25 * some values and depends on command type.
55 .name = "ssp-accelerometer",
58 .name = "ssp-gyroscope",
64 gpiod_set_value(data->mcu_reset_gpiod, 0); in ssp_toggle_mcu_reset_gpio()
66 gpiod_set_value(data->mcu_reset_gpiod, 1); in ssp_toggle_mcu_reset_gpio()
75 if (data->available_sensors & BIT(i)) { in ssp_sync_available_sensors()
76 ret = ssp_enable_sensor(data, i, data->delay_buf[i]); in ssp_sync_available_sensors()
78 dev_err(&data->spi->dev, in ssp_sync_available_sensors()
79 "Sync sensor nr: %d fail\n", i); in ssp_sync_available_sensors()
[all …]
/linux/Documentation/devicetree/bindings/iio/adc/
H A Dadi,ad4170-4.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/iio/adc/adi,ad4170-4.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analog Devices AD4170-4 and similar Analog to Digital Converters
10 - Marcelo Schmitt <marcelo.schmitt@analog.com>
13 Analog Devices AD4170-4 series of Sigma-delta Analog to Digital Converters.
15 https://www.analog.com/media/en/technical-documentation/data-sheets/ad4170-4.pdf
16 https://www.analog.com/media/en/technical-documentation/data-sheets/ad4190-4.pdf
17 https://www.analog.com/media/en/technical-documentation/data-sheets/ad4195-4.pdf
[all …]
/linux/include/linux/iio/common/
H A Dssp_sensors.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
18 * enum ssp_sensor_type - SSP sensor type
48 * struct ssp_sensor_data - Sensor object
49 * @process_data: Callback to feed sensor data.
50 * @type: Used sensor type.
56 enum ssp_sensor_type type; member
61 enum ssp_sensor_type type);
63 int ssp_enable_sensor(struct ssp_data *data, enum ssp_sensor_type type,
66 int ssp_disable_sensor(struct ssp_data *data, enum ssp_sensor_type type);
70 int ssp_change_delay(struct ssp_data *data, enum ssp_sensor_type type,
H A Dcros_ec_sensors_core.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * ChromeOS EC sensor hub
24 /* EC returns sensor values using signed 16 bit registers */
36 * struct cros_ec_sensors_core_state - state data for EC sensors IIO driver
41 * @param: motion sensor parameters structure
42 * @resp: motion sensor response structure
43 * @type: type of motion sensor
44 * @range_updated: True if the range of the sensor has been
54 * is always 8-byte aligned.
56 * @fifo_max_event_count: Size of the EC sensor FIFO
[all …]
/linux/drivers/nvme/host/
H A Dhwmon.c1 // 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
22 unsigned int threshold = sensor << NVME_TEMP_THRESH_SELECT_SHIFT; in nvme_get_temp_thresh()
32 return -EIO; 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
43 unsigned int threshold = sensor << NVME_TEMP_THRESH_SELECT_SHIFT; in nvme_set_temp_thresh()
55 return -EIO; in nvme_set_temp_thresh()
62 return nvme_get_log(data->ctrl, NVME_NSID_ALL, NVME_LOG_SMART, 0, in nvme_hwmon_get_smart_log()
63 NVME_CSI_NVM, data->log, sizeof(*data->log), 0); in nvme_hwmon_get_smart_log()
66 static int nvme_hwmon_read(struct device *dev, enum hwmon_sensor_types type, in nvme_hwmon_read() argument
[all …]
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_sysfs.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 1999 - 2018 Intel Corporation. */
24 ixgbe_attr->sensor->location); in ixgbe_hwmon_show_location()
36 ixgbe_attr->hw->mac.ops.get_thermal_sensor_data(ixgbe_attr->hw); in ixgbe_hwmon_show_temp()
38 value = ixgbe_attr->sensor->temp; in ixgbe_hwmon_show_temp()
52 unsigned int value = ixgbe_attr->sensor->caution_thresh; in ixgbe_hwmon_show_cautionthresh()
66 unsigned int value = ixgbe_attr->sensor->max_op_thresh; in ixgbe_hwmon_show_maxopthresh()
75 * ixgbe_add_hwmon_attr - Create hwmon attr table for a hwmon sysfs file.
77 * @offset: offset in the eeprom sensor data table
78 * @type: type of sensor data to display
[all …]
/linux/drivers/accel/habanalabs/common/
H A Dhwmon.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright 2016-2019 HabanaLabs, Ltd.
17 static u32 fixup_flags_legacy_fw(struct hl_device *hdev, enum hwmon_sensor_types type, in fixup_flags_legacy_fw() argument
22 switch (type) { in fixup_flags_legacy_fw()
49 dev_err_ratelimited(hdev->dev, "unsupported h/w sensor type %d\n", type); in fixup_flags_legacy_fw()
59 return (attr - 1); in fixup_attr_legacy_fw()
64 static u32 fixup_flags_legacy_fw(struct hl_device *hdev, enum hwmon_sensor_types type, in fixup_flags_legacy_fw() argument
77 static u32 adjust_hwmon_flags(struct hl_device *hdev, enum hwmon_sensor_types type, u32 cpucp_flags) in adjust_hwmon_flags() argument
82 use_cpucp_enum = (hdev->asic_prop.fw_app_cpu_boot_dev_sts0 & in adjust_hwmon_flags()
90 switch (type) { in adjust_hwmon_flags()
[all …]
/linux/Documentation/admin-guide/media/
H A Dimx7.rst1 .. SPDX-License-Identifier: GPL-2.0
7 ------------
14 - CMOS Sensor Interface (CSI)
15 - Video Multiplexer
16 - MIPI CSI-2 Receiver
18 .. code-block:: none
20 MIPI Camera Input ---> MIPI CSI-2 --- > |\
24 | U | ------> CSI ---> Capture
27 Parallel Camera Input ----------------> | /
34 --------
[all …]
/linux/include/uapi/drm/
H A Damdxdna_accel.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 * Copyright (C) 2022-2024, Advanced Micro Devices, Inc.
23 AMDXDNA_DEV_TYPE_UNKNOWN = -1,
41 * struct qos_info - QoS information for driver.
61 * struct amdxdna_drm_create_hwctx - Create hardware context.
89 * struct amdxdna_drm_destroy_hwctx - Destro
168 __u32 type; global() member
231 __u32 type; global() member
347 __u8 type; global() member
[all...]

12345678910>>...35