/openbmc/pldm/libpldmresponder/test/ |
H A D | libpldmresponder_base_test.cpp | 27 std::array<uint8_t, sizeof(pldm_msg_hdr)> requestPayload{}; in TEST_F() 44 std::array<uint8_t, sizeof(pldm_msg_hdr) + PLDM_GET_COMMANDS_REQ_BYTES> in TEST_F() 47 size_t requestPayloadLength = requestPayload.size() - sizeof(pldm_msg_hdr); in TEST_F() 59 std::array<uint8_t, sizeof(pldm_msg_hdr) + PLDM_GET_COMMANDS_REQ_BYTES> in TEST_F() 64 size_t requestPayloadLength = requestPayload.size() - sizeof(pldm_msg_hdr); in TEST_F() 74 std::array<uint8_t, sizeof(pldm_msg_hdr) + PLDM_GET_VERSION_REQ_BYTES> in TEST_F() 77 size_t requestPayloadLength = requestPayload.size() - sizeof(pldm_msg_hdr); in TEST_F() 107 std::array<uint8_t, sizeof(pldm_msg_hdr) + PLDM_GET_VERSION_REQ_BYTES> in TEST_F() 110 size_t requestPayloadLength = requestPayload.size() - sizeof(pldm_msg_hdr); in TEST_F() 128 requestPayloadLength = requestPayload.size() - sizeof(pldm_msg_hdr); in TEST_F() [all …]
|
H A D | libpldmresponder_pdr_sensor_test.cpp | 23 std::array<uint8_t, sizeof(pldm_msg_hdr) + PLDM_GET_PDR_REQ_BYTES> in TEST() 26 size_t requestPayloadLength = requestPayload.size() - sizeof(pldm_msg_hdr); in TEST() 75 std::array<uint8_t, sizeof(pldm_msg_hdr) + PLDM_GET_PDR_REQ_BYTES> in TEST() 78 size_t requestPayloadLength = requestPayload.size() - sizeof(pldm_msg_hdr); in TEST()
|
H A D | libpldmresponder_platform_test.cpp | 28 std::array<uint8_t, sizeof(pldm_msg_hdr) + PLDM_GET_PDR_REQ_BYTES> in TEST() 31 size_t requestPayloadLength = requestPayload.size() - sizeof(pldm_msg_hdr); in TEST() 67 std::array<uint8_t, sizeof(pldm_msg_hdr) + PLDM_GET_PDR_REQ_BYTES> in TEST() 70 size_t requestPayloadLength = requestPayload.size() - sizeof(pldm_msg_hdr); in TEST() 99 std::array<uint8_t, sizeof(pldm_msg_hdr) + PLDM_GET_PDR_REQ_BYTES> in TEST() 102 size_t requestPayloadLength = requestPayload.size() - sizeof(pldm_msg_hdr); in TEST() 131 std::array<uint8_t, sizeof(pldm_msg_hdr) + PLDM_GET_PDR_REQ_BYTES> in TEST() 164 std::array<uint8_t, sizeof(pldm_msg_hdr) + PLDM_GET_PDR_REQ_BYTES> in TEST() 227 std::array<uint8_t, sizeof(pldm_msg_hdr) + PLDM_GET_PDR_REQ_BYTES> in TEST() 275 std::array<uint8_t, sizeof(pldm_msg_hdr) + PLDM_GET_PDR_REQ_BYTES> in TEST() [all …]
|
/openbmc/libpldm/src/requester/ |
H A D | pldm.c | 132 struct pldm_msg_hdr *hdr = (struct pldm_msg_hdr *)(*pldm_resp_msg); in pldm_recv_any() 142 if (*resp_msg_len < (sizeof(struct pldm_msg_hdr) + sizeof(pldm_cc))) { in pldm_recv_any() 163 struct pldm_msg_hdr *hdr = (struct pldm_msg_hdr *)(*pldm_resp_msg); in pldm_recv() 180 struct pldm_msg_hdr *hdr = (struct pldm_msg_hdr *)pldm_req_msg; in pldm_send_recv() 190 hdr = (struct pldm_msg_hdr *)(*pldm_resp_msg); in pldm_send_recv() 204 struct pldm_msg_hdr *hdr = (struct pldm_msg_hdr *)pldm_req_msg; in pldm_send()
|
/openbmc/libpldm/tests/dsp/ |
H A D | fru.cpp | 15 std::array<uint8_t, sizeof(pldm_msg_hdr)> requestMsg{}; in TEST() 30 std::array<uint8_t, sizeof(pldm_msg_hdr)> requestMsg{}; in TEST() 196 std::array<uint8_t, sizeof(pldm_msg_hdr) + in TEST() 268 std::array<uint8_t, sizeof(pldm_msg_hdr) + in TEST() 356 std::vector<uint8_t> responseMsg(sizeof(pldm_msg_hdr) + in TEST() 384 std::vector<uint8_t> responseMsg(sizeof(pldm_msg_hdr) + in TEST() 422 requestMsg.size() - sizeof(pldm_msg_hdr)); in TEST() 444 requestMsg.size() - sizeof(pldm_msg_hdr)); in TEST() 815 responseMsg.size() - sizeof(pldm_msg_hdr), NULL); in TEST() 830 std::array<uint8_t, sizeof(pldm_msg_hdr) + in TEST() [all …]
|
H A D | base.cpp | 20 pldm_msg_hdr msg{}; in TEST() 56 pldm_msg_hdr msg{}; in TEST() 100 pldm_msg_hdr msg{}; in TEST() 142 pldm_msg_hdr msg{}; in TEST() 175 pldm_msg_hdr msg{}; in TEST() 543 pldm_msg_hdr hdr{}; in TEST() 591 pldm_msg_hdr hdr{}; in TEST() 622 pldm_msg_hdr hdr{}; in TEST() 653 pldm_msg_hdr hdr{}; in TEST() 686 pldm_msg_hdr hdr{}; in TEST() [all …]
|
/openbmc/libpldm/tests/oem/ibm/ |
H A D | fileio.cpp | 12 constexpr auto hdrSize = sizeof(pldm_msg_hdr); 508 sizeof(pldm_msg_hdr) + length); in TEST() 543 sizeof(pldm_msg_hdr) + length); in TEST() 742 sizeof(pldm_msg_hdr) + length); in TEST() 1880 std::array<uint8_t, sizeof(pldm_msg_hdr) + in TEST() 1901 std::array<uint8_t, sizeof(pldm_msg_hdr) + in TEST() 1925 sizeof(pldm_msg_hdr)> in TEST() 1957 sizeof(pldm_msg_hdr)> in TEST() 1969 std::array<uint8_t, sizeof(pldm_msg_hdr) + in TEST() 2049 sizeof(pldm_msg_hdr)> in TEST() [all …]
|
/openbmc/pldm/platform-mc/test/ |
H A D | terminus_manager_test.cpp | 139 std::array<uint8_t, sizeof(pldm_msg_hdr) + getTidRespLen> getTidResp0{ in TEST_F() 144 std::array<uint8_t, sizeof(pldm_msg_hdr) + setTidRespLen> setTidResp0{ in TEST_F() 149 std::array<uint8_t, sizeof(pldm_msg_hdr) + getPldmTypesRespLen> in TEST_F() 165 std::array<uint8_t, sizeof(pldm_msg_hdr) + getTidRespLen> getTidResp1{ in TEST_F() 227 std::array<uint8_t, sizeof(pldm_msg_hdr) + getPldmTypesRespLen> in TEST_F() 269 std::array<uint8_t, sizeof(pldm_msg_hdr) + getPldmTypesRespLen> in TEST_F() 319 std::array<uint8_t, sizeof(pldm_msg_hdr) + getPldmTypesRespLen> in TEST_F() 331 std::array<uint8_t, sizeof(pldm_msg_hdr) + getPldmCommandRespLen> in TEST_F() 369 std::array<uint8_t, sizeof(pldm_msg_hdr) + getPldmCommandRespLen> in TEST_F() 388 std::array<uint8_t, sizeof(pldm_msg_hdr) + getPldmCommandRespLen> in TEST_F() [all …]
|
H A D | mock_terminus_manager.hpp | 35 *responseLen = responseLens.front() - sizeof(pldm_msg_hdr); in sendRecvPldmMsgOverMctp() 49 if (responseLen <= sizeof(pldm_msg_hdr)) in enqueueResponse()
|
/openbmc/pldm/oem/ibm/test/ |
H A D | libpldmresponder_fileio_test.cpp | 545 requestMsg.data() + sizeof(pldm_msg_hdr)); in TEST_F() 598 requestMsg.data() + sizeof(pldm_msg_hdr)); in TEST_F() 622 auto payload_length = requestMsg.size() - sizeof(pldm_msg_hdr); in TEST_F() 670 auto payload_length = requestMsg.size() - sizeof(pldm_msg_hdr); in TEST_F() 694 responseMsg.data() + sizeof(pldm_msg_hdr)); in TEST_F() 727 std::vector<uint8_t> requestMsg(sizeof(pldm_msg_hdr) + in TEST_F() 776 std::vector<uint8_t> requestMsg(sizeof(pldm_msg_hdr) + in TEST_F() 799 responseMsg.data() + sizeof(pldm_msg_hdr)); in TEST_F() 818 const auto hdr_size = sizeof(pldm_msg_hdr); in TEST() 907 const auto hdr_size = sizeof(pldm_msg_hdr); in TEST() [all …]
|
/openbmc/pldm/fw-update/test/ |
H A D | inventory_manager_test.cpp | 37 constexpr std::array<uint8_t, sizeof(pldm_msg_hdr) + respPayloadLength1> in TEST_F() 64 constexpr std::array<uint8_t, sizeof(pldm_msg_hdr) + respPayloadLength2> in TEST_F() 95 constexpr std::array<uint8_t, sizeof(pldm_msg_hdr) + respPayloadLength> in TEST_F() 117 constexpr std::array<uint8_t, sizeof(pldm_msg_hdr) + respPayloadLength1> in TEST_F() 152 constexpr std::array<uint8_t, sizeof(pldm_msg_hdr) + respPayloadLength2> in TEST_F() 181 constexpr std::array<uint8_t, sizeof(pldm_msg_hdr) + respPayloadLength> in TEST_F()
|
H A D | device_updater_test.cpp | 87 constexpr std::array<uint8_t, sizeof(pldm_msg_hdr) + in TEST_F() 99 sizeof(pldm_msg_hdr) + sizeof(completionCode) + length); in TEST_F() 105 EXPECT_EQ(response[sizeof(pldm_msg_hdr)], completionCode); in TEST_F()
|
/openbmc/pldm/requester/test/ |
H A D | handler_test.cpp | 89 pldm::Response response(sizeof(pldm_msg_hdr) + sizeof(uint8_t)); in TEST_F() 137 pldm::Response response(sizeof(pldm_msg_hdr) + sizeof(uint8_t)); in TEST_F() 167 pldm::Request request(sizeof(pldm_msg_hdr) + sizeof(uint8_t), 0); in TEST_F() 192 pldm::Response mockResponse(sizeof(pldm_msg_hdr) + sizeof(uint8_t), 0); in TEST_F() 196 mockResponse.size() - sizeof(pldm_msg_hdr)); in TEST_F() 213 pldm::Request request(sizeof(pldm_msg_hdr) + sizeof(uint8_t), 0); in TEST_F() 240 pldm::Request request(sizeof(pldm_msg_hdr), 0); in TEST_F() 278 pldm::Response mockResponse(sizeof(pldm_msg_hdr) + PLDM_GET_TID_RESP_BYTES, in TEST_F() 289 mockResponse.size() - sizeof(pldm_msg_hdr)); in TEST_F()
|
/openbmc/libpldm/include/libpldm/ |
H A D | base.h | 138 struct pldm_msg_hdr { struct 172 struct pldm_msg_hdr hdr; //!< PLDM message header argument 189 bool pldm_msg_hdr_correlate_response(const struct pldm_msg_hdr *req, 190 const struct pldm_msg_hdr *resp); 307 struct pldm_msg_hdr *msg); 319 uint8_t unpack_pldm_header(const struct pldm_msg_hdr *msg,
|
/openbmc/libpldm/src/dsp/ |
H A D | base.h | 10 struct pldm_msg_hdr *msg); 12 int unpack_pldm_header_errno(const struct pldm_msg_hdr *msg,
|
/openbmc/pldm/libpldmresponder/ |
H A D | base.cpp | 81 Response response(sizeof(pldm_msg_hdr) + PLDM_GET_TYPES_RESP_BYTES, 0); in getPLDMTypes() 98 Response response(sizeof(pldm_msg_hdr) + PLDM_GET_COMMANDS_RESP_BYTES, 0); in getPLDMCommands() 140 Response response(sizeof(pldm_msg_hdr) + PLDM_GET_VERSION_RESP_BYTES, 0); in getPLDMVersion() 181 Response response(sizeof(pldm_msg_hdr) + PLDM_GET_TID_RESP_BYTES, 0); in getTID()
|
H A D | bios.cpp | 124 Response response(sizeof(pldm_msg_hdr) + PLDM_GET_DATE_TIME_RESP_BYTES, 0); in getDateTime() 249 Response response(sizeof(pldm_msg_hdr) + in getBIOSTable() 285 Response response(sizeof(pldm_msg_hdr) + PLDM_SET_BIOS_TABLE_RESP_BYTES); in setBIOSTable() 327 Response response(sizeof(pldm_msg_hdr) + in getBIOSAttributeCurrentValueByHandle() 362 sizeof(pldm_msg_hdr) + PLDM_SET_BIOS_ATTR_CURR_VAL_RESP_BYTES, 0); in setBIOSAttributeCurrentValue()
|
/openbmc/pldm/fw-update/ |
H A D | device_updater.cpp | 38 Request request(sizeof(pldm_msg_hdr) + in startFwUpdateFlow() 168 Request request(sizeof(pldm_msg_hdr) + in sendPassCompTableRequest() 296 Request request(sizeof(pldm_msg_hdr) + in sendUpdateComponentRequest() 374 Response response(sizeof(pldm_msg_hdr) + sizeof(completionCode), 0); in requestFwData() 436 response.resize(sizeof(pldm_msg_hdr) + sizeof(completionCode) + length); in requestFwData() 440 sizeof(pldm_msg_hdr) + in requestFwData() 461 Response response(sizeof(pldm_msg_hdr) + sizeof(completionCode), 0); in transferComplete() 520 Response response(sizeof(pldm_msg_hdr) + sizeof(completionCode), 0); in verifyComplete() 578 Response response(sizeof(pldm_msg_hdr) + sizeof(completionCode), 0); in applyComplete() 655 Request request(sizeof(pldm_msg_hdr) + in sendActivateFirmwareRequest()
|
/openbmc/phosphor-debug-collector/host-transport-extensions/pldm/oem/ibm/ |
H A D | pldm_oem_cmds.cpp | 102 std::array<uint8_t, sizeof(pldm_msg_hdr) + sizeof(effecterId) + sizeof(id) + in requestOffload() 118 requestMsg.size() - sizeof(pldm_msg_hdr)); in requestOffload() 159 const size_t pldmMsgHdrSize = sizeof(pldm_msg_hdr); in requestDelete()
|
/openbmc/libpldm/src/transport/ |
H A D | transport.c | 72 if (msg_len < sizeof(struct pldm_msg_hdr)) { in pldm_transport_send_msg() 94 if (*msg_len < sizeof(struct pldm_msg_hdr)) { in pldm_transport_recv_msg() 160 const struct pldm_msg_hdr *req_hdr; in pldm_transport_send_recv_msg()
|
H A D | af-mctp.c | 114 struct pldm_msg_hdr *hdr; in pldm_transport_af_mctp_recv() 133 if (length < (ssize_t)sizeof(struct pldm_msg_hdr)) { in pldm_transport_af_mctp_recv() 187 const struct pldm_msg_hdr *hdr; in pldm_transport_af_mctp_send() 190 if (msg_len < (ssize_t)sizeof(struct pldm_msg_hdr)) { in pldm_transport_af_mctp_send()
|
/openbmc/pldm/oem/ibm/libpldmresponder/ |
H A D | file_io.cpp | 353 Response response((sizeof(pldm_msg_hdr) + PLDM_RW_FILE_MEM_RESP_BYTES), 0); in readFileIntoMemory() 456 Response response(sizeof(pldm_msg_hdr) + PLDM_RW_FILE_MEM_RESP_BYTES, 0); in writeFileFromMemory() 550 Response response(sizeof(pldm_msg_hdr) + in getFileTable() 615 Response response(sizeof(pldm_msg_hdr) + PLDM_READ_FILE_RESP_BYTES); in readFile() 700 fileDataPos += sizeof(pldm_msg_hdr) + sizeof(uint8_t) + sizeof(length); in readFile() 719 Response response(sizeof(pldm_msg_hdr) + PLDM_WRITE_FILE_RESP_BYTES); in writeFile() 809 sizeof(pldm_msg_hdr) + PLDM_RW_FILE_BY_TYPE_MEM_RESP_BYTES, 0); in rwFileByTypeIntoMemory() 893 Response response(sizeof(pldm_msg_hdr) + PLDM_RW_FILE_BY_TYPE_RESP_BYTES); in writeFileByType() 950 Response response(sizeof(pldm_msg_hdr) + PLDM_RW_FILE_BY_TYPE_RESP_BYTES); in readFileByType() 1006 Response response(sizeof(pldm_msg_hdr) + PLDM_FILE_ACK_RESP_BYTES); in fileAck() [all …]
|
/openbmc/pldm/pldmd/ |
H A D | pldmd.cpp | 99 auto hdr = reinterpret_cast<const pldm_msg_hdr*>(requestMsg.data()); in processRxMsg() 110 size_t requestLen = requestMsg.size() - sizeof(struct pldm_msg_hdr); in processRxMsg() 128 response.resize(sizeof(pldm_msg_hdr)); in processRxMsg() 129 auto responseHdr = reinterpret_cast<pldm_msg_hdr*>(response.data()); in processRxMsg() 149 size_t responseLen = requestMsg.size() - sizeof(struct pldm_msg_hdr); in processRxMsg()
|
/openbmc/pldm/host-bmc/ |
H A D | host_pdr_handler.cpp | 164 std::vector<uint8_t> requestMsg(sizeof(pldm_msg_hdr) + in getHostPDR() 382 std::vector<uint8_t> requestMsg(sizeof(pldm_msg_hdr) + in sendPDRRepositoryChgEvent() 485 responsePDRMsg.resize(respMsgLen + sizeof(pldm_msg_hdr)); in processHostPDRs() 486 memcpy(responsePDRMsg.data(), response, respMsgLen + sizeof(pldm_msg_hdr)); in processHostPDRs() 704 std::vector<uint8_t> requestMsg(sizeof(pldm_msg_hdr) + in setHostFirmwareCondition() 778 sizeof(pldm_msg_hdr) + in setHostSensorState() 918 sizeof(pldm_msg_hdr) + PLDM_GET_FRU_RECORD_TABLE_METADATA_REQ_BYTES); in getFRURecordTableMetadataByRemote() 923 instanceId, request, requestMsg.size() - sizeof(pldm_msg_hdr)); in getFRURecordTableMetadataByRemote() 993 std::vector<uint8_t> requestMsg(sizeof(pldm_msg_hdr) + in getFRURecordTableByRemote() 1000 requestMsg.size() - sizeof(pldm_msg_hdr)); in getFRURecordTableByRemote() [all …]
|
/openbmc/pldm/pldmtool/oem/ibm/ |
H A D | pldm_oem_ibm.cpp | 53 std::vector<uint8_t> requestMsg(sizeof(pldm_msg_hdr) + in createRequestMsg() 114 std::vector<uint8_t> requestMsg(sizeof(pldm_msg_hdr) + in exec() 142 auto payloadLength = responseMsg.size() - sizeof(pldm_msg_hdr); in exec()
|