Lines Matching refs:sensor_status

104     const auto &sensor_status = sensor_status_map_.at(sensor_name.data());  in dumpTraces()  local
106 static_cast<int>(sensor_status.thermal_cached.temp)); in dumpTraces()
391 auto &sensor_status = sensor_status_map_.at(sensor_name.data()); in checkUpdateSensorForEmul() local
392 sensor_status.override_status.max_throttling = max_throttling; in checkUpdateSensorForEmul()
393 sensor_status.override_status.pending_update = true; in checkUpdateSensorForEmul()
412 auto &sensor_status = sensor_status_map_.at(target_sensor.data()); in emulTemp() local
414 sensor_status.override_status.emul_temp.reset(new EmulTemp{temp, -1}); in emulTemp()
415 sensor_status.override_status.max_throttling = max_throttling; in emulTemp()
416 sensor_status.override_status.pending_update = true; in emulTemp()
446 auto &sensor_status = sensor_status_map_.at(target_sensor.data()); in emulSeverity() local
448 sensor_status.override_status.emul_temp.reset(new EmulTemp{temp, severity}); in emulSeverity()
449 sensor_status.override_status.max_throttling = max_throttling; in emulSeverity()
450 sensor_status.override_status.pending_update = true; in emulSeverity()
463 for (auto &[sensor_name, sensor_status] : sensor_status_map_) { in emulClear()
464 sensor_status.override_status = { in emulClear()
469 auto &sensor_status = sensor_status_map_.at(target_sensor.data()); in emulClear() local
470 sensor_status.override_status = { in emulClear()
509 auto &sensor_status = sensor_status_map_.at(sensor_name.data()); in readTemperature() local
536 prev_hot_severity = sensor_status.prev_hot_severity; in readTemperature()
537 prev_cold_severity = sensor_status.prev_cold_severity; in readTemperature()
548 if (sensor_status.override_status.emul_temp != nullptr && in readTemperature()
549 sensor_status.override_status.emul_temp->severity >= 0) { in readTemperature()
552 static_cast<ThrottlingSeverity>(sensor_status.override_status.emul_temp->severity); in readTemperature()
1198 auto &sensor_status = sensor_status_map_.at(sensor_name.data()); in readThermalSensor() local
1202 if (sensor_status.override_status.emul_temp != nullptr) { in readThermalSensor()
1203 *temp = sensor_status.override_status.emul_temp->temp; in readThermalSensor()
1210 now - sensor_status.thermal_cached.timestamp); in readThermalSensor()
1214 (sensor_status.thermal_cached.timestamp != boot_clock::time_point::min()) && in readThermalSensor()
1216 !isnan(sensor_status.thermal_cached.temp)) { in readThermalSensor()
1217 *temp = sensor_status.thermal_cached.temp; in readThermalSensor()
1305 if (!isnan(sensor_info.step_ratio) && !isnan(sensor_status.thermal_cached.temp) && in readThermalSensor()
1308 (1 - sensor_info.step_ratio) * sensor_status.thermal_cached.temp); in readThermalSensor()
1316 sensor_status.thermal_cached.temp = *temp; in readThermalSensor()
1317 sensor_status.thermal_cached.timestamp = now; in readThermalSensor()
1340 SensorStatus &sensor_status = name_status_pair.second; in thermalWatcherCallbackFunc() local
1354 auto sleep_ms = (sensor_status.severity != ThrottlingSeverity::NONE) in thermalWatcherCallbackFunc()
1370 if (sensor_status.last_update_time == boot_clock::time_point::min()) { in thermalWatcherCallbackFunc()
1374 now - sensor_status.last_update_time); in thermalWatcherCallbackFunc()
1396 max_throttling = sensor_status.override_status.max_throttling; in thermalWatcherCallbackFunc()
1397 if (sensor_status.override_status.pending_update) { in thermalWatcherCallbackFunc()
1398 force_update = sensor_status.override_status.pending_update; in thermalWatcherCallbackFunc()
1399 sensor_status.override_status.pending_update = false; in thermalWatcherCallbackFunc()
1432 if (throttling_status.first != sensor_status.prev_hot_severity) { in thermalWatcherCallbackFunc()
1433 sensor_status.prev_hot_severity = throttling_status.first; in thermalWatcherCallbackFunc()
1435 if (throttling_status.second != sensor_status.prev_cold_severity) { in thermalWatcherCallbackFunc()
1436 sensor_status.prev_cold_severity = throttling_status.second; in thermalWatcherCallbackFunc()
1438 if (temp.throttlingStatus != sensor_status.severity) { in thermalWatcherCallbackFunc()
1440 sensor_status.severity = temp.throttlingStatus; in thermalWatcherCallbackFunc()
1441 sleep_ms = (sensor_status.severity != ThrottlingSeverity::NONE) in thermalWatcherCallbackFunc()
1452 if (sensor_status.severity == ThrottlingSeverity::NONE) { in thermalWatcherCallbackFunc()
1467 temp, sensor_info, sensor_status.severity, time_elapsed_ms, in thermalWatcherCallbackFunc()
1473 name_status_pair.first, sensor_info, sensor_status.severity, in thermalWatcherCallbackFunc()
1481 sensor_status.last_update_time = now; in thermalWatcherCallbackFunc()