Lines Matching full:path
7 void CustomDBus::setLocationCode(const std::string& path, std::string value) in setLocationCode() argument
9 if (!location.contains(path)) in setLocationCode()
11 location.emplace(path, in setLocationCode()
13 pldm::utils::DBusHandler::getBus(), path.c_str())); in setLocationCode()
16 location.at(path)->locationCode(value); in setLocationCode()
20 CustomDBus::getLocationCode(const std::string& path) const in getLocationCode()
22 if (location.contains(path)) in getLocationCode()
24 return location.at(path)->locationCode(); in getLocationCode()
30 void CustomDBus::implementCpuCoreInterface(const std::string& path) in implementCpuCoreInterface() argument
32 if (!cpuCore.contains(path)) in implementCpuCoreInterface()
34 cpuCore.emplace(path, std::make_unique<CPUCore>( in implementCpuCoreInterface()
35 pldm::utils::DBusHandler::getBus(), path)); in implementCpuCoreInterface()
39 void CustomDBus::setMicroCode(const std::string& path, uint32_t value) in setMicroCode() argument
41 if (!cpuCore.contains(path)) in setMicroCode()
43 cpuCore.emplace(path, std::make_unique<CPUCore>( in setMicroCode()
44 pldm::utils::DBusHandler::getBus(), path)); in setMicroCode()
46 cpuCore.at(path)->microcode(value); in setMicroCode()
49 std::optional<uint32_t> CustomDBus::getMicroCode(const std::string& path) const in getMicroCode()
51 if (cpuCore.contains(path)) in getMicroCode()
53 return cpuCore.at(path)->microcode(); in getMicroCode()
59 void CustomDBus::implementPCIeSlotInterface(const std::string& path) in implementPCIeSlotInterface() argument
61 if (!pcieSlot.contains(path)) in implementPCIeSlotInterface()
63 pcieSlot.emplace(path, std::make_unique<PCIeSlot>( in implementPCIeSlotInterface()
64 pldm::utils::DBusHandler::getBus(), path)); in implementPCIeSlotInterface()
68 void CustomDBus::setSlotType(const std::string& path, in setSlotType() argument
73 if (pcieSlot.contains(path)) in setSlotType()
75 pcieSlot.at(path)->slotType(typeOfSlot); in setSlotType()
79 void CustomDBus::implementPCIeDeviceInterface(const std::string& path) in implementPCIeDeviceInterface() argument
81 if (!pcieDevice.contains(path)) in implementPCIeDeviceInterface()
83 pcieDevice.emplace(path, std::make_unique<PCIeDevice>( in implementPCIeDeviceInterface()
84 pldm::utils::DBusHandler::getBus(), path)); in implementPCIeDeviceInterface()
88 void CustomDBus::setPCIeDeviceProps(const std::string& path, size_t lanesInUse, in setPCIeDeviceProps() argument
94 if (pcieDevice.contains(path)) in setPCIeDeviceProps()
96 pcieDevice.at(path)->lanesInUse(lanesInUse); in setPCIeDeviceProps()
97 pcieDevice.at(path)->generationInUse(generationsInUse); in setPCIeDeviceProps()
101 void CustomDBus::implementCableInterface(const std::string& path) in implementCableInterface() argument
103 if (!cable.contains(path)) in implementCableInterface()
105 cable.emplace(path, std::make_unique<Cable>( in implementCableInterface()
106 pldm::utils::DBusHandler::getBus(), path)); in implementCableInterface()
110 void CustomDBus::setCableAttributes(const std::string& path, double length, in setCableAttributes() argument
113 if (cable.contains(path)) in setCableAttributes()
115 cable.at(path)->length(length); in setCableAttributes()
116 cable.at(path)->cableTypeDescription(cableDescription); in setCableAttributes()
120 void CustomDBus::implementMotherboardInterface(const std::string& path) in implementMotherboardInterface() argument
122 if (!motherboard.contains(path)) in implementMotherboardInterface()
124 motherboard.emplace(path, in implementMotherboardInterface()
126 pldm::utils::DBusHandler::getBus(), path)); in implementMotherboardInterface()