/openbmc/libpldm/tests/dsp/ |
H A D | bios.cpp | 13 constexpr auto hdrSize = sizeof(pldm_msg_hdr); variable 69 std::array<uint8_t, hdrSize + PLDM_GET_DATE_TIME_RESP_BYTES> responseMsg{}; in TEST() 88 memcpy(responseMsg.data() + sizeof(completionCode) + hdrSize, &seconds, in TEST() 91 hdrSize, in TEST() 94 sizeof(minutes) + hdrSize, in TEST() 97 sizeof(minutes) + sizeof(hours) + hdrSize, in TEST() 100 sizeof(minutes) + sizeof(hours) + sizeof(day) + hdrSize, in TEST() 104 hdrSize, in TEST() 111 response, responseMsg.size() - hdrSize, &completionCode, &retSeconds, in TEST() 128 std::array<uint8_t, hdrSize + sizeof(struct pldm_only_cc_resp)> in TEST() [all …]
|
H A D | base.cpp | 14 constexpr auto hdrSize = sizeof(pldm_msg_hdr); variable 219 std::array<uint8_t, hdrSize + PLDM_GET_COMMANDS_REQ_BYTES> requestMsg{}; in TEST() 221 memcpy(requestMsg.data() + hdrSize, &pldmType, sizeof(pldmType)); in TEST() 222 memcpy(requestMsg.data() + sizeof(pldmType) + hdrSize, &version, in TEST() 227 auto rc = decode_get_commands_req(request, requestMsg.size() - hdrSize, in TEST() 283 std::array<uint8_t, hdrSize + PLDM_GET_TYPES_RESP_BYTES> responseMsg{}; in TEST() 284 responseMsg[1 + hdrSize] = 1; in TEST() 285 responseMsg[2 + hdrSize] = 2; in TEST() 286 responseMsg[3 + hdrSize] = 3; in TEST() 290 responseMsg[hdrSize] = PLDM_SUCCESS; in TEST() [all …]
|
H A D | firmware_update.cpp | 25 constexpr auto hdrSize = sizeof(pldm_msg_hdr); variable 855 std::array<uint8_t, hdrSize + in TEST() 861 responseMsg.data() + hdrSize); in TEST() 868 std::fill_n(responseMsg.data() + hdrSize + in TEST() 880 response, responseMsg.size() - hdrSize, &completionCode, in TEST() 890 responseMsg.begin() + hdrSize + in TEST() 916 EXPECT_THAT(std::span<uint8_t>(enc_buf + hdrSize, enc_payload_len), in TEST() 1005 constexpr std::array<uint8_t, hdrSize + getFwParamsPayloadLen> in TEST() 1072 constexpr std::array<uint8_t, hdrSize + getFwParamsPayloadLen> in TEST() 1130 constexpr std::array<uint8_t, hdrSize + getFwParamsPayloadLen> in TEST() [all …]
|
H A D | platform.cpp | 17 constexpr auto hdrSize = sizeof(pldm_msg_hdr); variable 124 std::array<uint8_t, hdrSize + PLDM_SET_STATE_EFFECTER_STATES_RESP_BYTES> in TEST() 129 responseMsg[hdrSize] = PLDM_SUCCESS; in TEST() 135 response, responseMsg.size() - hdrSize, &retcompletion_code); in TEST() 143 std::array<uint8_t, hdrSize + PLDM_SET_STATE_EFFECTER_STATES_REQ_BYTES> in TEST() 159 memcpy(requestMsg.data() + hdrSize, &effecterIdLE, sizeof(effecterIdLE)); in TEST() 160 memcpy(requestMsg.data() + sizeof(effecterIdLE) + hdrSize, &compEffecterCnt, in TEST() 163 hdrSize, in TEST() 170 request, requestMsg.size() - hdrSize, &retEffecterId, in TEST() 217 std::vector<uint8_t> responseMsg(hdrSize + PLDM_GET_PDR_MIN_RESP_BYTES + in TEST() [all …]
|
/openbmc/libpldm/tests/oem/ibm/ |
H A D | fileio.cpp | 12 constexpr auto hdrSize = sizeof(pldm_msg_hdr); variable 16 std::array<uint8_t, PLDM_RW_FILE_MEM_REQ_BYTES + hdrSize> requestMsg{}; in TEST() 28 memcpy(requestMsg.data() + hdrSize, &fileHandleLe, sizeof(fileHandleLe)); in TEST() 29 memcpy(requestMsg.data() + sizeof(fileHandleLe) + hdrSize, &offsetLe, in TEST() 32 hdrSize, in TEST() 35 sizeof(lengthLe) + hdrSize, in TEST() 47 auto rc = decode_rw_file_memory_req(request, requestMsg.size() - hdrSize, in TEST() 76 rc = decode_rw_file_memory_req(request, requestMsg.size() - hdrSize, in TEST() 155 std::array<uint8_t, PLDM_RW_FILE_MEM_RESP_BYTES + hdrSize> responseMsg{}; in TEST() 161 memcpy(responseMsg.data() + hdrSize, &completionCode, in TEST() [all …]
|
/openbmc/pldm/libpldmresponder/ |
H A D | fru.cpp | 361 auto hdrSize = response.size(); in getFRUTable() local 369 response.resize(hdrSize + tempTable.size() + sizeof(checksum), 0); in getFRUTable() 370 std::copy(tempTable.begin(), tempTable.end(), response.begin() + hdrSize); in getFRUTable() 373 auto iter = response.begin() + hdrSize + tempTable.size(); in getFRUTable()
|
/openbmc/linux/arch/arc/kernel/ |
H A D | unwind.c | 257 unsigned long tableSize = table->size, hdrSize; in init_unwind_hdr() local 310 hdrSize = 4 + sizeof(unsigned long) + sizeof(unsigned int) in init_unwind_hdr() 313 header = alloc(hdrSize); in init_unwind_hdr() 350 table->hdrsz = hdrSize; in init_unwind_hdr()
|