Home
last modified time | relevance | path

Searched refs:sensor_data (Results 1 – 7 of 7) sorted by relevance

/SCP-firmware-master/module/thermal_mgmt/test/
A Dmod_thermal_mgmt_unit_test.c335 dev_ctx->sensor_data.value = 30; in test_thermal_mgmt_process_event_read_temp_success()
343 TEST_ASSERT_EQUAL(dev_ctx->cur_temp, dev_ctx->sensor_data.value); in test_thermal_mgmt_process_event_read_temp_success()
356 dev_ctx->sensor_data.status = FWK_E_DEVICE; in test_thermal_mgmt_process_event_read_request_fail()
376 dev_ctx->sensor_data.status = FWK_SUCCESS; in test_thermal_mgmt_process_event_read_request_success()
378 dev_ctx->sensor_data.value = 30; in test_thermal_mgmt_process_event_read_request_success()
386 TEST_ASSERT_EQUAL(dev_ctx->cur_temp, dev_ctx->sensor_data.value); in test_thermal_mgmt_process_event_read_request_success()
433 dev_ctx->sensor_data.status = FWK_SUCCESS; in test_thermal_mgmt_read_temperature_not_async_error()
441 TEST_ASSERT_EQUAL(dev_ctx->cur_temp, dev_ctx->sensor_data.value); in test_thermal_mgmt_read_temperature_not_async_error()
451 dev_ctx->sensor_data.status = FWK_SUCCESS; in test_thermal_mgmt_read_temperature_not_async_success()
459 dev_ctx->sensor_data.value = 30; in test_thermal_mgmt_read_temperature_not_async_success()
[all …]
/SCP-firmware-master/module/scmi_sensor/src/
A Dmod_scmi_sensor.c157 const struct mod_sensor_data *sensor_data) in scmi_sensor_reading_respond() argument
178 if (sensor_data->status != FWK_SUCCESS) { in scmi_sensor_reading_respond()
198 for (axis_idx = 0; axis_idx < sensor_data->axis_count; in scmi_sensor_reading_respond()
200 if (sensor_data->axis_count == 1) { in scmi_sensor_reading_respond()
202 .sensor_value_low = (int32_t)sensor_data->value, in scmi_sensor_reading_respond()
241 .sensor_value_low = (uint32_t)sensor_data->value, in scmi_sensor_reading_respond()
1172 struct mod_sensor_data *sensor_data; in scmi_sensor_process_event() local
1177 sensor_data = get_sensor_data(scmi_params->sensor_id); in scmi_sensor_process_event()
1179 scmi_params->sensor_id, sensor_data); in scmi_sensor_process_event()
1183 scmi_params->sensor_id, sensor_data); in scmi_sensor_process_event()
[all …]
/SCP-firmware-master/product/juno/module/juno_thermal/src/
A Dmod_juno_thermal.c54 struct mod_sensor_data sensor_data; member
231 ctx->config->sensor_id, &ctx->sensor_data); in juno_thermal_process_event()
234 ctx->sensor_data.value, ctx->config->thermal_threshold_mdc); in juno_thermal_process_event()
241 if (ctx->sensor_data.status != FWK_SUCCESS) { in juno_thermal_process_event()
242 return ctx->sensor_data.status; in juno_thermal_process_event()
245 ctx->sensor_data.value, ctx->config->thermal_threshold_mdc); in juno_thermal_process_event()
/SCP-firmware-master/module/thermal_mgmt/src/
A Dmod_thermal_mgmt.c134 dev_ctx->config->sensor_id, &dev_ctx->sensor_data); in read_temperature()
136 dev_ctx->cur_temp = (uint32_t)dev_ctx->sensor_data.value; in read_temperature()
389 dev_ctx->config->sensor_id, &dev_ctx->sensor_data); in thermal_mgmt_process_event()
391 dev_ctx->cur_temp = (uint32_t)dev_ctx->sensor_data.value; in thermal_mgmt_process_event()
395 if (dev_ctx->sensor_data.status == FWK_SUCCESS) { in thermal_mgmt_process_event()
396 dev_ctx->cur_temp = (uint32_t)dev_ctx->sensor_data.value; in thermal_mgmt_process_event()
A Dthermal_mgmt.h104 struct mod_sensor_data sensor_data; member
/SCP-firmware-master/module/sensor/src/
A Dmod_sensor.c189 event_params->sensor_data = data; in get_data()
536 sensor_data_copy(response_params->sensor_data, &ctx->last_read); in process_pending_requests()
594 (struct mod_sensor_data *)event_params->sensor_data, in sensor_process_event()
/SCP-firmware-master/module/sensor/include/
A Dmod_sensor.h666 struct mod_sensor_data *sensor_data; member

Completed in 13 milliseconds