Home
last modified time | relevance | path

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

/hardware/google/pixel/thermal/utils/
Dthermal_files.cpp76 bool ThermalFiles::writeCdevFile(std::string_view cdev_name, std::string_view data) { in writeCdevFile() argument
78 getThermalFilePath(::android::base::StringPrintf("%s_%s", cdev_name.data(), "w")); in writeCdevFile()
80 ATRACE_NAME(StringPrintf("ThermalFiles::writeCdevFile - %s", cdev_name.data()).c_str()); in writeCdevFile()
82 PLOG(WARNING) << "Failed to write cdev: " << cdev_name << " to " << data.data(); in writeCdevFile()
Dthermal_throttling.cpp828 const auto &cdev_name = cdev_request_pair.first; in computeCoolingDevicesRequest() local
829 const auto &binded_cdev_info = binded_cdev_info_map.at(cdev_name); in computeCoolingDevicesRequest()
835 if (thermal_throttling_status.pid_cdev_request_map.count(cdev_name)) { in computeCoolingDevicesRequest()
836 pid_cdev_request = thermal_throttling_status.pid_cdev_request_map.at(cdev_name); in computeCoolingDevicesRequest()
839 if (thermal_throttling_status.hardlimit_cdev_request_map.count(cdev_name)) { in computeCoolingDevicesRequest()
841 thermal_throttling_status.hardlimit_cdev_request_map.at(cdev_name); in computeCoolingDevicesRequest()
844 if (cdev_release_map.count(cdev_name)) { in computeCoolingDevicesRequest()
845 release_step = cdev_release_map.at(cdev_name); in computeCoolingDevicesRequest()
848 LOG(VERBOSE) << sensor_name.data() << " binded cooling device " << cdev_name in computeCoolingDevicesRequest()
855 ::android::base::StringPrintf("%s-%s", sensor_name.data(), cdev_name.data()); in computeCoolingDevicesRequest()
[all …]
Dthermal_info.cpp715 const std::string &cdev_name = values[j]["CdevRequest"].asString(); in ParseBindedCdevInfo() local
717 if (cooling_device_info_map_.find(cdev_name) == cooling_device_info_map_.end()) { in ParseBindedCdevInfo()
718 LOG(ERROR) << "Binded cdev " << cdev_name << " is not defined in cooling devices"; in ParseBindedCdevInfo()
730 LOG(INFO) << "Star to parse " << cdev_name << "'s CdevWeightForPID"; in ParseBindedCdevInfo()
741 << cdev_name << ", please remove one of them"; in ParseBindedCdevInfo()
747 LOG(INFO) << "Start to parse CdevCeiling: " << cdev_name; in ParseBindedCdevInfo()
749 LOG(ERROR) << "Failed to parse CdevCeiling for " << cdev_name; in ParseBindedCdevInfo()
756 LOG(INFO) << "Start to parse CdevCeilingFrequency: " << cdev_name; in ParseBindedCdevInfo()
758 if (scaling_frequency_map.find(cdev_name) == scaling_frequency_map.end()) { in ParseBindedCdevInfo()
759 LOG(ERROR) << "Scaling frequency path is not found in config for " << cdev_name; in ParseBindedCdevInfo()
[all …]
Dthermal_throttling.h93 bool getCdevMaxRequest(std::string_view cdev_name, int *max_state);
136 bool updateCdevMaxRequestAndNotifyIfChange(std::string_view cdev_name, int cur_request,
Dthermal_stats_helper.cpp503 std::string cdev_name = stats_by_threshold.logging_name.value_or( in reportAllSensorCdevRequestStats() local
506 if (!reportSensorCdevRequestStats(stats_client, sensor, cdev_name, in reportAllSensorCdevRequestStats()
/hardware/google/pixel/thermal/
Dinit.thermal.symlinks.sh10 cdev_name=`cat $f/type`
11 ln -s $f /dev/thermal/cdev-by-name/$cdev_name
Dthermal-helper.cpp263 for (auto &[cdev_name, cdev_throttling_info] : in ThermalHelperImpl()
764 for (const auto &[cdev_name, cdev_info] : cooling_device_info_map_) { in clearAllThrottling()
766 cdev_name, cdev_info.apply_powercap in clearAllThrottling()
890 auto cdev_name = ::android::base::StringPrintf("%s_%s", name.data(), "w"); in initializeCoolingDeviceEntry() local
898 if (!cooling_devices_.addThermalFile(cdev_name, write_path)) { in initializeCoolingDeviceEntry()
968 for (auto &[cdev_name, cdev_info] : cooling_device_info_map_) { in initializeThrottlingMap()
970 if (!initializePowercapEntry(powercap_map, cdev_name, cdev_info)) { in initializeThrottlingMap()
973 } else if (!initializeCoolingDeviceEntry(cdev_map, cdev_name, cdev_info)) { in initializeThrottlingMap()