Home
last modified time | relevance | path

Searched refs:sensor_id (Results 1 – 25 of 53) sorted by relevance

123

/openbmc/linux/drivers/firmware/arm_scmi/
H A Dsensors.c203 __le32 sensor_id; member
209 __le32 sensor_id; member
695 scmi_sensor_request_notify(const struct scmi_protocol_handle *ph, u32 sensor_id, in scmi_sensor_request_notify() argument
708 cfg->id = cpu_to_le32(sensor_id); in scmi_sensor_request_notify()
718 u32 sensor_id, bool enable) in scmi_sensor_trip_point_notify() argument
720 return scmi_sensor_request_notify(ph, sensor_id, in scmi_sensor_trip_point_notify()
727 u32 sensor_id, bool enable) in scmi_sensor_continuous_update_notify() argument
729 return scmi_sensor_request_notify(ph, sensor_id, in scmi_sensor_continuous_update_notify()
736 u32 sensor_id, u8 trip_id, u64 trip_value) in scmi_sensor_trip_point_config() argument
749 trip->id = cpu_to_le32(sensor_id); in scmi_sensor_trip_point_config()
[all …]
/openbmc/linux/drivers/hid/amd-sfh-hid/
H A Damd_sfh_pcie.c48 cmd_resp.response_v2.sensor_id == sid)), 500, 1600000)) in amd_sfh_wait_response_v2()
62 cmd_base.cmd_v2.sensor_id = info.sensor_idx; in amd_start_sensor_v2()
80 cmd_base.cmd_v2.sensor_id = sensor_idx; in amd_stop_sensor_v2()
94 cmd_base.cmd_v2.sensor_id = 0; in amd_stop_all_sensor_v2()
152 cmd_base.s.sensor_id = info.sensor_idx; in amd_start_sensor()
172 cmd_base.s.sensor_id = sensor_idx; in amd_stop_sensor()
186 cmd_base.s.sensor_id = 0; in amd_stop_all_sensors()
207 int amd_mp2_get_sensor_num(struct amd_mp2_dev *privdata, u8 *sensor_id) in amd_mp2_get_sensor_num() argument
225 sensor_id[num_of_sensors++] = accel_idx; in amd_mp2_get_sensor_num()
228 sensor_id[num_of_sensors++] = gyro_idx; in amd_mp2_get_sensor_num()
[all …]
H A Damd_sfh_pcie.h36 u32 sensor_id : 8; member
45 u32 sensor_id : 8; member
58 u32 sensor_id : 6; member
102 int amd_mp2_get_sensor_num(struct amd_mp2_dev *privdata, u8 *sensor_id);
/openbmc/linux/drivers/hid/amd-sfh-hid/sfh1_1/
H A Damd_sfh_interface.c23 cmd_resp.response.sensor_id == sid)), 500, 10000000)) in amd_sfh_wait_response()
37 cmd_base.cmd.sensor_id = info.sensor_idx; in amd_start_sensor()
50 cmd_base.cmd.sensor_id = sensor_idx; in amd_stop_sensor()
64 cmd_base.cmd.sensor_id = 0xf; in amd_stop_all_sensor()
H A Damd_sfh_interface.h34 u32 sensor_id : 4; member
49 u32 sensor_id : 4; member
/openbmc/linux/drivers/platform/chrome/
H A Dcros_ec_sensorhub_ring.c43 int id = sample->sensor_id; in cros_sensorhub_send_sample()
361 const u8 sensor_id = sample->sensor_id; in cros_ec_sensor_ring_check_for_past_timestamp() local
364 if (sensorhub->batch_state[sensor_id].newest_sensor_event > in cros_ec_sensor_ring_check_for_past_timestamp()
368 sensorhub->batch_state[sensor_id].last_ts; in cros_ec_sensor_ring_check_for_past_timestamp()
370 sensorhub->batch_state[sensor_id].newest_sensor_event = in cros_ec_sensor_ring_check_for_past_timestamp()
454 out->sensor_id = in->sensor_num; in cros_ec_sensor_ring_process_event()
458 sensorhub->batch_state[out->sensor_id].last_len = 0; in cros_ec_sensor_ring_process_event()
471 out->sensor_id = in->sensor_num; in cros_ec_sensor_ring_process_event()
566 if (batch_start->sensor_id != id) { in cros_ec_sensor_ring_spread_add()
610 if (s->sensor_id != id) in cros_ec_sensor_ring_spread_add()
[all …]
/openbmc/linux/drivers/thermal/ti-soc-thermal/
H A Dti-thermal-common.c37 int sensor_id; member
83 s = &bgp->conf->sensors[data->sensor_id]; in __ti_thermal_get_temp()
85 ret = ti_bandgap_read_temperature(bgp, data->sensor_id, &tmp); in __ti_thermal_get_temp()
121 id = data->sensor_id; in __ti_thermal_get_trend()
152 data->sensor_id = id; in ti_thermal_build_data()
184 ti_bandgap_write_update_interval(bgp, data->sensor_id, in ti_thermal_expose_sensor()
/openbmc/openbmc/meta-phosphor/recipes-phosphor/sensors/
H A Dphosphor-hwmon_git.bb65 sensor_id="$(printf "%s" "${path}" | sha256sum | cut -d\ -f1)"
66 acl_file="${dbus_dir}/xyz.openbmc_project.Hwmon-${sensor_id}.conf"
68 … printf "\n# Sensor id for %s\nHW_SENSOR_ID = \"%s\"\n" "${path}" "${sensor_id}" >> "${f}"
70 sensor_id="$(sed -n 's,^HW_SENSOR_ID\s*=\s*"\?\(.[^" ]\+\)\s*"\?,\1,p' "${f}")"
79 <allow own="xyz.openbmc_project.Hwmon-${sensor_id}.Hwmon1"/>
80 <allow send_destination="xyz.openbmc_project.Hwmon-${sensor_id}.Hwmon1"/>
/openbmc/openbmc-test-automation/ipmi/
H A Dtest_ipmi_sensor.robot28 # command_type sensor_id member_id
38 # command_type sensor_id member_id
178 # sensor_id component
187 # sensor_id component
207 [Arguments] ${command_type} ${sensor_id} ${member_id}
211 # sensor_id Sensor id used to get reading in IPMI or DCMI.
214 … ${ipmi_value}= Run Keyword If '${command_type}' == 'IPMI' Get IPMI Sensor Reading ${sensor_id}
215 ... ELSE Get DCMI Sensor Reading ${sensor_id}
229 [Arguments] ${sensor_id}
232 # sensor_id Sensor id used to get reading in IPMI.
[all …]
/openbmc/linux/drivers/hwmon/occ/
H A Dcommon.c35 u16 sensor_id; member
40 u32 sensor_id; member
46 u32 sensor_id; member
54 u16 sensor_id; member
59 u32 sensor_id; member
64 u16 sensor_id; member
71 u32 sensor_id; member
94 u32 sensor_id; member
126 u32 sensor_id; member
247 val = get_unaligned_be16(&temp->sensor_id); in occ_show_temp_1()
[all …]
/openbmc/phosphor-hwmon/
H A Dreadd.cpp38 std::string sensor_id = ""; in main() local
43 app.add_option("-i,--sensor-id", sensor_id, "dbus sensor instance id"); in main()
86 BUSNAME_PREFIX, SENSOR_ROOT, sensor_id, &io); in main()
/openbmc/linux/drivers/hwmon/
H A Dscpi-hwmon.c28 int sensor_id; member
70 struct sensor_data *sensor = &scpi_sensors->data[zone->sensor_id]; in scpi_read_temp()
74 ret = scpi_ops->sensor_get_value(sensor->info.sensor_id, &value); in scpi_read_temp()
96 ret = scpi_ops->sensor_get_value(sensor->info.sensor_id, &value); in scpi_show_sensor()
276 zone->sensor_id = i; in scpi_hwmon_probe()
279 sensor->info.sensor_id, in scpi_hwmon_probe()
H A Dibmpowernv.c572 u32 sensor_id; in create_device_attrs() local
584 if (of_property_read_u32(np, "sensor-id", &sensor_id) && in create_device_attrs()
585 of_property_read_u32(np, "sensor-data", &sensor_id)) { in create_device_attrs()
592 sdata[count].id = sensor_id; in create_device_attrs()
609 populate_sensor(&sdata[count], opal_index, hw_id, sensor_id, in create_device_attrs()
624 sensor_id, "label", type, pgroups[type], in create_device_attrs()
629 if (!of_property_read_u32(np, "sensor-data-max", &sensor_id)) { in create_device_attrs()
632 sensor_id, attr_name, type, in create_device_attrs()
638 if (!of_property_read_u32(np, "sensor-data-min", &sensor_id)) { in create_device_attrs()
641 sensor_id, attr_name, type, in create_device_attrs()
H A Dibmpex.c292 static int is_power_sensor(const char *sensor_id, int len) in is_power_sensor() argument
297 if (!memcmp(sensor_id, power_sensor_sig, PEX_SENSOR_TYPE_LEN)) in is_power_sensor()
302 static int is_temp_sensor(const char *sensor_id, int len) in is_temp_sensor() argument
307 if (!memcmp(sensor_id, temp_sensor_sig, PEX_SENSOR_TYPE_LEN)) in is_temp_sensor()
313 const char *sensor_id, int len) in power_sensor_multiplier() argument
321 if (!memcmp(&sensor_id[i], watt_sensor_sig, PEX_MULT_LEN)) in power_sensor_multiplier()
/openbmc/linux/include/linux/
H A Dscmi_protocol.h480 (const struct scmi_protocol_handle *ph, u32 sensor_id);
482 u32 sensor_id, u8 trip_id, u64 trip_value);
483 int (*reading_get)(const struct scmi_protocol_handle *ph, u32 sensor_id,
486 u32 sensor_id, u8 count,
489 u32 sensor_id, u32 *sensor_config);
491 u32 sensor_id, u32 sensor_config);
955 unsigned int sensor_id; member
962 unsigned int sensor_id; member
H A Dscpi_protocol.h33 u16 sensor_id; member
75 int (*sensor_get_info)(u16 sensor_id, struct scpi_sensor_info *);
/openbmc/libpldm/include/libpldm/
H A Dplatform.h581 uint16_t sensor_id; member
629 uint16_t sensor_id; member
674 uint16_t sensor_id; member
824 uint16_t sensor_id; member
1104 uint16_t sensor_id; member
1142 uint16_t sensor_id; member
1292 uint16_t sensor_id; member
1454 uint16_t *sensor_id,
1531 size_t payload_length, uint16_t *sensor_id,
1801 uint16_t sensor_id,
[all …]
/openbmc/linux/drivers/media/usb/gspca/
H A Dov534_9.c1400 u16 sensor_id; in sd_init() local
1416 sensor_id = sccb_read(gspca_dev, 0x0a) << 8; in sd_init()
1418 sensor_id |= sccb_read(gspca_dev, 0x0b); in sd_init()
1419 gspca_dbg(gspca_dev, D_PROBE, "Sensor ID: %04x\n", sensor_id); in sd_init()
1422 if ((sensor_id & 0xfff0) == 0x9650) { in sd_init()
1440 } else if ((sensor_id & 0xfff0) == 0x9710) { in sd_init()
1472 } else if ((sensor_id & 0xfff0) == 0x5620) { in sd_init()
1482 } else if ((sensor_id & 0xfff0) == 0x3610) { in sd_init()
1490 pr_err("Unknown sensor %04x", sensor_id); in sd_init()
H A Dstk1135.c384 u16 sensor_id; in sd_init() local
413 sensor_id = sensor_read(gspca_dev, 0x000); in sd_init()
415 switch (sensor_id) { in sd_init()
422 pr_info("Detected sensor type %s (0x%x)\n", sensor_name, sensor_id); in sd_init()
/openbmc/linux/drivers/thermal/
H A Darmada_thermal.c802 int sensor_id) in armada_configure_overheat_int() argument
812 ret = armada_select_channel(priv, sensor_id); in armada_configure_overheat_int()
821 priv->interrupt_source = sensor_id; in armada_configure_overheat_int()
834 int sensor_id, irq; in armada_thermal_probe() local
932 for (sensor_id = 0; sensor_id <= priv->data->cpu_nr; sensor_id++) { in armada_thermal_probe()
941 sensor->id = sensor_id; in armada_thermal_probe()
947 sensor_id); in armada_thermal_probe()
H A Dk3_bandgap.c88 int sensor_id; member
202 data[id].sensor_id = id; in k3_bandgap_probe()
/openbmc/pldm/libpldmresponder/
H A Dpdr_state_sensor.hpp181 pdr->sensor_id = handler.getNextSensorId(); in generateStateSensorPDR()
182 HTOLE16(pdr->sensor_id); in generateStateSensorPDR()
184 pdr->sensor_id, in generateStateSensorPDR()
/openbmc/pldm/platform-mc/
H A Dterminus.cpp342 pdr->sensor_id, pdr->sensor_count, std::move(sensorAuxNames)); in parseSensorAuxiliaryNamesPDR()
431 auto sensorId = pdr->sensor_id; in addNumericSensor()
490 return std::make_shared<SensorAuxiliaryNames>(pdr->sensor_id, 1, in parseCompactNumericSensorNames()
508 parsedPdr->sensor_id = pdr->sensor_id; in parseCompactNumericSensorPDR()
537 auto sensorId = pdr->sensor_id; in addCompactNumericSensor()
/openbmc/pldm/libpldmresponder/test/
H A Dlibpldmresponder_pdr_sensor_test.cpp60 EXPECT_EQ(pdr->sensor_id, 1); in TEST()
63 handler.getDbusObjMaps(pdr->sensor_id, TypeId::PLDM_SENSOR_ID); in TEST()
/openbmc/libpldm/src/dsp/
H A Dplatform.c163 HTOLE16(sensor->sensor_id); in encode_state_sensor_pdr()
915 uint16_t sensor_id, in encode_get_state_sensor_readings_req() argument
937 request->sensor_id = htole16(sensor_id); in encode_get_state_sensor_readings_req()
1004 uint16_t *sensor_id, in decode_get_state_sensor_readings_req() argument
1012 if (msg == NULL || sensor_id == NULL || sensor_rearm == NULL) { in decode_get_state_sensor_readings_req()
1023 pldm_msgbuf_extract_p(buf, sensor_id); in decode_get_state_sensor_readings_req()
1038 const size_t event_data_size, const uint16_t sensor_id, in encode_sensor_event_data() argument
1057 event_data->sensor_id = htole16(sensor_id); in encode_sensor_event_data()
1577 size_t event_data_length, uint16_t *sensor_id, in decode_sensor_event_data() argument
1585 if (event_data == NULL || sensor_id == NULL || in decode_sensor_event_data()
[all …]

123