Home
last modified time | relevance | path

Searched refs:decodedPdr (Results 1 – 2 of 2) sorted by relevance

/openbmc/libpldm/tests/dsp/
H A Dplatform.cpp3872 struct pldm_numeric_sensor_value_pdr decodedPdr; in TEST() local
3874 decode_numeric_sensor_pdr_data(pdr1.data(), pdr1.size(), &decodedPdr); in TEST()
3876 EXPECT_EQ(1, decodedPdr.hdr.record_handle); in TEST()
3877 EXPECT_EQ(1, decodedPdr.hdr.version); in TEST()
3878 EXPECT_EQ(PLDM_NUMERIC_SENSOR_PDR, decodedPdr.hdr.type); in TEST()
3879 EXPECT_EQ(0, decodedPdr.hdr.record_change_num); in TEST()
3880 EXPECT_EQ(PLDM_PDR_NUMERIC_SENSOR_PDR_MIN_LENGTH, decodedPdr.hdr.length); in TEST()
3881 EXPECT_EQ(1, decodedPdr.sensor_id); in TEST()
3882 EXPECT_EQ(PLDM_ENTITY_POWER_SUPPLY, decodedPdr.entity_type); in TEST()
3883 EXPECT_EQ(1, decodedPdr.entity_instance_num); in TEST()
[all …]
/openbmc/pldm/platform-mc/
H A Dterminus.cpp317 auto decodedPdr = in parseEntityAuxiliaryNamesPDR() local
321 decodedPdr, decodedPdrSize); in parseEntityAuxiliaryNamesPDR()
332 std::vector<pldm_entity_auxiliary_name>(decodedPdr->name_string_count); in parseEntityAuxiliaryNamesPDR()
333 decodedPdr->names = vNames.data(); in parseEntityAuxiliaryNamesPDR()
335 rc = decode_pldm_entity_auxiliary_names_pdr_index(decodedPdr); in parseEntityAuxiliaryNamesPDR()
345 std::views::iota(0, static_cast<int>(decodedPdr->name_string_count))) in parseEntityAuxiliaryNamesPDR()
348 static_cast<std::string_view>(decodedPdr->names[count].tag); in parseEntityAuxiliaryNamesPDR()
350 std::char_traits<char16_t>::length(decodedPdr->names[count].name); in parseEntityAuxiliaryNamesPDR()
351 std::u16string u16NameString(decodedPdr->names[count].name, in parseEntityAuxiliaryNamesPDR()
363 EntityKey key{decodedPdr->container.entity_type, in parseEntityAuxiliaryNamesPDR()
[all …]