Searched refs:blockData (Results 1 – 4 of 4) sorted by relevance
/openbmc/entity-manager/src/ |
H A D | fru_utils.cpp | 650 if (blockData[0] != fruVersion) in validateHeader() 660 if (blockData[6] != 0x0) in validateHeader() 663 lg2::hex, blockData[6]); in validateHeader() 671 if (blockData[ii] == 0) in validateHeader() 686 sum += blockData[jj]; in validateHeader() 690 if (sum != blockData[7]) in validateHeader() 713 if (validateHeader(blockData)) in findFRUHeader() 728 if (blockData.size() >= tyanHeader.size() && in findFRUHeader() 754 device.insert(device.end(), blockData.begin(), blockData.begin() + 8); in readFRUContents() 831 size_t recordLength = blockData[2]; in readFRUContents() [all …]
|
H A D | fru_utils.hpp | 152 std::array<uint8_t, I2C_SMBUS_BLOCK_MAX>& blockData, 166 bool validateHeader(const std::array<uint8_t, I2C_SMBUS_BLOCK_MAX>& blockData);
|
/openbmc/entity-manager/test/ |
H A D | test_fru-utils.cpp | 209 std::array<uint8_t, blockSize> blockData{}; in TEST() local 215 EXPECT_EQ(reader.read(0, blockSize, blockData.data()), in TEST() 309 std::array<uint8_t, I2C_SMBUS_BLOCK_MAX> blockData{}; in TEST() local 315 EXPECT_FALSE(findFRUHeader(reader, "error", blockData, offset)); in TEST() 322 std::array<uint8_t, I2C_SMBUS_BLOCK_MAX> blockData{}; in TEST() local 336 std::array<uint8_t, I2C_SMBUS_BLOCK_MAX> blockData{}; in TEST() local 342 EXPECT_TRUE(findFRUHeader(reader, "error", blockData, offset)); in TEST() 351 std::array<uint8_t, I2C_SMBUS_BLOCK_MAX> blockData{}; in TEST() local 364 std::array<uint8_t, I2C_SMBUS_BLOCK_MAX> blockData{}; in TEST() local 382 std::array<uint8_t, I2C_SMBUS_BLOCK_MAX> blockData{}; in TEST() local [all …]
|
/openbmc/openbmc/meta-yadro/recipes-phosphor/ipmi/phosphor-ipmi-host/ |
H A D | 0002-Add-support-for-boot-initiator-mailbox.patch | 330 + std::vector<uint8_t> blockData(normalBlockSize); 360 + blockData.resize(normalBlockSize - IANAEnterpriseLength); 372 + if ((*dataVec).size() < dataVecStartOffset + blockData.size()) 382 + if (data.unpack(blockData) != 0 || !data.fullyUnpacked()) 388 + for (size_t i = 0; i < blockData.size(); ++i) 390 + (*dataVec)[dataVecStartOffset + i] = blockData[i];
|