Lines Matching +full:energy +full:- +full:empty

8 //      http://www.apache.org/licenses/LICENSE-2.0
17 #include "dbus-sdr/sdrutils.hpp"
21 #include <phosphor-logging/lg2.hpp>
69 {"energy", std::make_pair(SensorTypeCodes::other,
82 "/usr/share/ipmi-providers/sensor_filter.json"; in filterSensors()
101 for (auto service = svcFilterit->begin(); in filterSensors()
102 service != svcFilterit->end(); in filterSensors()
107 return serviceToIfaces.empty(); in filterSensors()
141 auto mapperCall = dbus->new_method_call( in getSensorSubtree()
151 auto mapperReply = dbus->call(mapperCall); in getSensorSubtree()
165 sensorTreePtr->merge(std::move(sensorTreePartial)); in getSensorSubtree()
183 if (!ipmi::sensor::sensors.empty()) in getSensorSubtree()
195 // an empty string. For those function using non-threshold sensors, in getSensorSubtree()
199 {"", {sensor.second.propertyInterfaces.begin()->first}}}; in getSensorSubtree()
200 sensorTreePtr->emplace(sensor.second.sensorPath, connectionMap); in getSensorSubtree()
249 sensorNumMapPtr->insert( in getSensorNumMap()
288 // Static sensors are listed in sensor-gen.cpp.
309 size_t typeStart = path.rfind("/", typeEnd - 1); in getSensorTypeStringFromPath()
316 return path.substr(typeStart, typeEnd - typeStart); in getSensorTypeStringFromPath()
327 static_cast<uint8_t>(std::get<sensorTypeCodes>(findSensor->second)); in getSensorTypeFromPath()
344 return sensorNumMapPtr->right.at(path); in getSensorNumberFromPath()
360 std::get<sensorEventTypeCodes>(findSensor->second)); in getSensorEventTypeFromPath()
377 return sensorNumMapPtr->left.at(sensorNum); in getPathFromSensorNumber()
396 dbus->new_method_call("xyz.openbmc_project.ObjectMapper", in getObjectInterfaces()
403 sdbusplus::message_t response = dbus->call(getObjectMessage); in getObjectInterfaces()
421 dbus->new_method_call("xyz.openbmc_project.EntityManager", path, in getEntityManagerProperties()
427 sdbusplus::message_t response = dbus->call(getProperties); in getEntityManagerProperties()
484 for (const auto& entry : entityManagerService->second) in getSensorConfigurationInterface()
494 for (const auto& entry : entityManagerService->second) in getSensorConfigurationInterface()
529 sensorAssociationObject->second.find("Associations"); in updateIpmiFromAssociation()
530 if (associationObject == sensorAssociationObject->second.end()) in updateIpmiFromAssociation()
542 std::get<std::vector<Association>>(associationObject->second); in updateIpmiFromAssociation()
559 // Entity-Manager. so let's grab its properties if it has in updateIpmiFromAssociation()
577 std::get<uint64_t>(entityIdProp->second)); in updateIpmiFromAssociation()
582 std::get<uint64_t>(entityInstanceProp->second)); in updateIpmiFromAssociation()
586 // Now check the entity-manager entry for this sensor to see in updateIpmiFromAssociation()
590 // both, except in most use-cases identified, there won't be in updateIpmiFromAssociation()
597 // Entity-Manager to find the name of the configuration in updateIpmiFromAssociation()
625 configurationInterface->c_str()); in updateIpmiFromAssociation()
632 static_cast<uint8_t>(std::get<uint64_t>(entityIdProp->second)); in updateIpmiFromAssociation()
637 std::get<uint64_t>(entityInstanceProp->second)); in updateIpmiFromAssociation()