| /openbmc/pldm/host-bmc/test/ |
| H A D | utils_test.cpp | 25 entities[0].entity_type = 45; in TEST() 28 entities[1].entity_type = 64; in TEST() 31 entities[2].entity_type = 67; in TEST() 33 entities[3].entity_type = 67; in TEST() 36 entities[4].entity_type = 135; in TEST() 38 entities[5].entity_type = 135; in TEST() 40 entities[6].entity_type = 135; in TEST() 42 entities[7].entity_type = 135; in TEST() 106 EXPECT_EQ(entity.entity_type, retEntity.entity_type); in TEST()
|
| /openbmc/libpldm/tests/dsp/ |
| H A D | pdr.cpp | 38 uint16_t entity_type; member 44 return (entity_type == entity.entity_type) && in operator ==() 52 pldm_msgbuf_extract_uint16(buf, entity.entity_type); in getEntity() 596 EXPECT_EQ(fru->entity_type, htole16(1)); in TEST() 622 EXPECT_EQ(fru->entity_type, htole16(2)); in TEST() 642 EXPECT_EQ(fru->entity_type, htole16(1)); in TEST() 1001 entities[0].entity_type = 1; in TEST() 1002 entities[1].entity_type = 2; in TEST() 1003 entities[2].entity_type = 2; in TEST() 1004 entities[3].entity_type = 3; in TEST() [all …]
|
| /openbmc/pldm/host-bmc/ |
| H A D | utils.cpp | 41 if (node_entity.entity_type == parent_entity.entity_type && in getParentEntites() 71 if (!entityMaps.contains(node_entity.entity_type)) in addObjectPathEntityAssociations() 79 std::string entityName = entityMaps.at(node_entity.entity_type); in addObjectPathEntityAssociations() 84 ev_entity.entity_type == node_entity.entity_type) in addObjectPathEntityAssociations() 189 paths.push_back(entityMaps.at(parent.entity_type) + in updateEntityAssociation() 196 "ENTITY_TYPE", (int)parent.entity_type, "NUM", in updateEntityAssociation()
|
| H A D | host_pdr_handler.cpp | 78 pldm_entity entity{t->entity_type, t->entity_instance, t->container_id}; in updateContainerId() 1110 if (fruPdr->entity_type == entity.entity_type && in getRSI() 1181 switch (node.entity_type) in createDbusObjects()
|
| /openbmc/libpldm/src/dsp/ |
| H A D | pdr.c | 297 uint16_t fru_rsi, uint16_t entity_type, in pldm_pdr_add_fru_record_set() argument 320 fru->entity_type = htole16(entity_type); in pldm_pdr_add_fru_record_set() 331 uint16_t *entity_type, uint16_t *entity_instance_num, in pldm_pdr_fru_record_set_find_by_rsi() argument 334 if (!repo || !terminus_handle || !entity_type || !entity_instance_num || in pldm_pdr_fru_record_set_find_by_rsi() 349 *entity_type = le16toh(fru->entity_type); in pldm_pdr_fru_record_set_find_by_rsi() 362 *entity_type = 0; in pldm_pdr_fru_record_set_find_by_rsi() 426 pldm_msgbuf_extract(buf, pdr->entity_type); in decode_pldm_state_sensor_pdr() 483 const pldm_pdr *repo, uint16_t entity_type, uint16_t entity_instance, in pldm_pdr_find_child_container_id_index_range_exclude() argument 521 is_container_entity_type = pdr->container.entity_type == in pldm_pdr_find_child_container_id_index_range_exclude() 522 entity_type; in pldm_pdr_find_child_container_id_index_range_exclude() [all …]
|
| /openbmc/pldm/libpldmresponder/test/ |
| H A D | libpldmresponder_fru_test.cpp | 144 EXPECT_TRUE((test_node->parent).entity_type == systemEntity.entity_type); in TEST() 150 EXPECT_TRUE((test_node->parent).entity_type == chassisEntity.entity_type); in TEST() 178 EXPECT_TRUE(entity.entity_type == 45); in TEST()
|
| H A D | libpldmresponder_pdr_effecter_test.cpp | 56 ASSERT_EQ(pdr->entity_type, 33); in TEST() 88 ASSERT_EQ(pdr->entity_type, 100); in TEST()
|
| /openbmc/pldm/libpldmresponder/ |
| H A D | pdr_state_sensor.hpp | 82 pdr->entity_type = in generateStateSensorPDR() 83 associatedEntityMap.at(entity_path).entity_type; in generateStateSensorPDR() 91 pdr->entity_type = e.value("type", 0); in generateStateSensorPDR() 97 if (!pdr->entity_type) in generateStateSensorPDR() 105 pdr->entity_type = e.value("type", 0); in generateStateSensorPDR() 119 HTOLE16(pdr->entity_type); in generateStateSensorPDR()
|
| H A D | pdr_state_effecter.hpp | 79 pdr->entity_type = in generateStateEffecterPDR() 80 associatedEntityMap.at(entity_path).entity_type; in generateStateEffecterPDR() 88 pdr->entity_type = e.value("type", 0); in generateStateEffecterPDR() 94 if (!pdr->entity_type) in generateStateEffecterPDR() 102 pdr->entity_type = e.value("type", 0); in generateStateEffecterPDR()
|
| H A D | pdr_numeric_effecter.hpp | 62 pdr->entity_type = in generateNumericEffecterPDR() 63 associatedEntityMap.at(entity_path).entity_type; in generateNumericEffecterPDR() 71 pdr->entity_type = e.value("type", 0); in generateNumericEffecterPDR() 77 if (!pdr->entity_type) in generateNumericEffecterPDR() 85 pdr->entity_type = e.value("type", 0); in generateNumericEffecterPDR()
|
| H A D | fru.cpp | 40 entity.entity_type = parser.getEntityType(intfMap.first); in getEntityByObjectPath() 113 if (node.entity_type == entity.entity_type) in updateAssociationTree() 335 entity.entity_type, entity.entity_instance_num, in populateRecords() 458 "TYPE", static_cast<unsigned>(removeEntity.entity_type), "INS", in removeIndividualFRU() 489 "TYPE", static_cast<unsigned>(removeEntity.entity_type), "INS", in removeIndividualFRU() 556 static_cast<unsigned>(removeEntity.entity_type), "ENTITY_NUM", in removeIndividualFRU() 570 pdrRepo, removeEntity.entity_type, removeEntity.entity_instance_num, in removeIndividualFRU() 592 pdrRepo, removeEntity.entity_type, removeEntity.entity_instance_num, in removeIndividualFRU()
|
| /openbmc/pldm/oem/ibm/libpldmresponder/ |
| H A D | collect_slot_vpd.cpp | 19 static_cast<unsigned>(currentOnGoingSlotEntity.entity_type), in timeOutHandler() 52 entity.entity_type == value.entity_type && in enableSlot() 55 this->currentOnGoingSlotEntity.entity_type = value.entity_type; in enableSlot() 248 parentFruEntity.entity_type = pdr->entity_type; in getEntityIDfromEffecterID()
|
| H A D | utils.cpp | 217 if (parent.entity_type == PLDM_ENTITY_PROC) in setCoreCount() 223 if (child.entity_type == (PLDM_ENTITY_PROC | 0x8000)) in setCoreCount() 233 "{}{}/{}{}", entityMaps.at(grand_parent.entity_type), in setCoreCount() 235 entityMaps.at(parent.entity_type), in setCoreCount()
|
| H A D | oem_ibm_handler.cpp | 52 if (value.entity_type == entityType && in getOemStateSensorReadingsHandler() 227 pdr->entity_type = entityType; in buildAllCodeUpdateEffecterPDR() 287 pdr->entity_type = associatedEntityMap.at(entity_path).entity_type; in buildAllSlotEnableEffecterPDR() 344 pdr->entity_type = entityType; in buildAllCodeUpdateSensorPDR() 399 pdr->entity_type = associatedEntityMap.at(entity_path).entity_type; in buildAllSlotEnableSensorPDR() 457 pdr->entity_type = entityType; in buildAllRealSAIEffecterPDR() 506 pdr->entity_type = entityType; in buildAllRealSAISensorPDR()
|
| H A D | collect_slot_vpd.hpp | 54 currentOnGoingSlotEntity.entity_type = 0; in SlotHandler()
|
| H A D | fru_oem_ibm.cpp | 129 entityType == value.entity_type && in updateDBusProperty()
|
| /openbmc/u-boot/drivers/dfu/ |
| H A D | dfu_mmc.c | 295 const char *entity_type; in dfu_fill_entity_mmc() local 314 entity_type = argv[0]; in dfu_fill_entity_mmc() 335 if (!strcmp(entity_type, "raw")) { in dfu_fill_entity_mmc() 350 } else if (!strcmp(entity_type, "part")) { in dfu_fill_entity_mmc() 366 } else if (!strcmp(entity_type, "fat")) { in dfu_fill_entity_mmc() 368 } else if (!strcmp(entity_type, "ext4")) { in dfu_fill_entity_mmc() 371 pr_err("Memory layout (%s) not supported!\n", entity_type); in dfu_fill_entity_mmc() 376 if (strcmp(entity_type, "raw")) { in dfu_fill_entity_mmc()
|
| /openbmc/pldm/oem/ibm/test/ |
| H A D | libpldmresponder_oem_platform_test.cpp | 263 ASSERT_EQ(pdr->entity_type, PLDM_OEM_IBM_ENTITY_FIRMWARE_UPDATE); in TEST() 290 ASSERT_EQ(pdr->entity_type, PLDM_OEM_IBM_ENTITY_FIRMWARE_UPDATE); in TEST() 317 ASSERT_EQ(pdr->entity_type, PLDM_OEM_IBM_ENTITY_FIRMWARE_UPDATE); in TEST() 344 ASSERT_EQ(pdr->entity_type, PLDM_OEM_IBM_ENTITY_REAL_SAI); in TEST() 398 ASSERT_EQ(pdr->entity_type, PLDM_OEM_IBM_ENTITY_FIRMWARE_UPDATE); in TEST() 424 ASSERT_EQ(pdr->entity_type, PLDM_OEM_IBM_ENTITY_FIRMWARE_UPDATE); in TEST() 450 ASSERT_EQ(pdr->entity_type, PLDM_OEM_IBM_ENTITY_FIRMWARE_UPDATE); in TEST() 476 ASSERT_EQ(pdr->entity_type, PLDM_OEM_IBM_ENTITY_REAL_SAI); in TEST() 520 entities[0].entity_type = 45; in TEST() 523 entities[1].entity_type = 64; in TEST() [all …]
|
| /openbmc/pldm/common/test/ |
| H A D | pldm_utils_test.cpp | 192 rec->entity_type = 33; in TEST() 225 rec->entity_type = 33; in TEST() 274 rec->entity_type = 31; in TEST() 294 rec_second->entity_type = 31; in TEST() 333 rec->entity_type = 34; in TEST() 353 rec_second->entity_type = 39; in TEST() 388 rec->entity_type = 32; in TEST() 408 rec_second->entity_type = 67; in TEST() 444 rec->entity_type = 32; in TEST() 464 rec_second->entity_type = 67; in TEST() [all …]
|
| /openbmc/libpldm/include/libpldm/ |
| H A D | pdr.h | 233 const pldm_pdr *repo, uint16_t entity_type, uint16_t entity_instance, 283 uint16_t fru_rsi, uint16_t entity_type, 305 uint16_t *entity_type, uint16_t *entity_instance_num, 328 uint16_t entity_type; member
|
| H A D | platform.h | 639 uint16_t entity_type; member 655 uint16_t entity_type; member 682 uint16_t entity_type; member 700 uint16_t entity_type; member 779 uint16_t entity_type; member 850 uint16_t entity_type; member
|
| /openbmc/bmcweb/scripts/ |
| H A D | generate_schema_collections.py | 82 for entity_type in schema.findall(EDM + "EntityType"): 83 name = entity_type.get("Name") 86 for nav_prop in entity_type.findall(EDM + "NavigationProperty"):
|
| /openbmc/pldm/common/ |
| H A D | utils.cpp | 70 if (pdr->entity_type == entityID && setId == stateSetId) in findStateEffecterPDR() 121 if (pdr->entity_type == entityID && setId == stateSetId) in findStateSensorPDR() 539 if (entityType == pdr->entity_type && in findStateEffecterId() 615 if (entityType == sensorPdr->entity_type && in findStateSensorId() 844 if (pdr && pdr->entity_type == entityType) in getStateSensorPDRsByType() 866 if (sensorPdr && sensorPdr->entity_type == entityType && in findSensorIds() 890 if (pdr && pdr->entity_type == entityType) in getStateEffecterPDRsByType() 909 if (effecterPdr && effecterPdr->entity_type == entityType && in findEffecterIds()
|
| /openbmc/pldm/pldmtool/ |
| H A D | pldm_platform_cmd.cpp | 725 bool isLogicalBitSet(const uint16_t entity_type) in isLogicalBitSet() argument 727 return entity_type & 0x8000; in isLogicalBitSet() 873 output["entityType"] = getEntityName(pdr->entity_type); in printStateSensorPDR() 925 output["entityType"] = getEntityName(pdr->entity_type); in printPDRFruRecordSet() 963 getEntityName(pdr->container.entity_type); in printPDREntityAssociation() 975 getEntityName(child->entity_type)); in printPDREntityAssociation() 1062 output["entityType"] = int(pdr->entity_type); in printNumericEffecterPDR() 1183 output["entityType"] = getEntityName(pdr->entity_type); in printStateEffecterPDR() 1344 output["entityType"] = getEntityName(pdr.entity_type); in printNumericSensorPDR() 1512 output["entityType"] = getEntityName(pdr->entity_type); in printCompactNumericSensorPDR()
|
| /openbmc/pldm/platform-mc/ |
| H A D | terminus.cpp | 402 EntityKey key{decodedPdr->container.entity_type, in parseEntityAuxiliaryNamesPDR() 511 parsedPdr->entity_type = pdr->entity_type; in parseCompactNumericSensorPDR()
|