/openbmc/qemu/hw/block/dataplane/ |
H A D | xen-block.c | 70 static int xen_block_send_response(XenBlockRequest *request); 72 static void reset_request(XenBlockRequest *request) in reset_request() argument 74 memset(&request->req, 0, sizeof(request->req)); in reset_request() 75 request->status = 0; in reset_request() 76 request->start = 0; in reset_request() 77 request->size = 0; in reset_request() 78 request->presync = 0; in reset_request() 80 request->aio_inflight = 0; in reset_request() 81 request->aio_errors = 0; in reset_request() 83 request->dataplane = NULL; in reset_request() [all …]
|
/openbmc/pldm/libpldmresponder/ |
H A D | base.hpp | 27 [this](pldm_tid_t, const pldm_msg* request, size_t payloadLength) { in Handler() argument 28 return this->getPLDMTypes(request, payloadLength); in Handler() 32 [this](pldm_tid_t, const pldm_msg* request, size_t payloadLength) { in Handler() argument 33 return this->getPLDMCommands(request, payloadLength); in Handler() 37 [this](pldm_tid_t, const pldm_msg* request, size_t payloadLength) { in Handler() argument 38 return this->getPLDMVersion(request, payloadLength); in Handler() 42 [this](pldm_tid_t, const pldm_msg* request, size_t payloadLength) { in Handler() argument 43 return this->getTID(request, payloadLength); in Handler() 49 * @param[in] request - Request message payload 50 * @param[in] payload_length - Request message payload length [all …]
|
H A D | bios.hpp | 36 * @param[in] handler - PLDM request handler 42 pldm::requester::Handler<pldm::requester::Request>* handler, 48 * @param[in] request - Request message payload 51 Response getDateTime(const pldm_msg* request, size_t payloadLength); 55 * @param[in] request - Request message 56 * @param[in] payload_length - Request message payload length 59 Response getBIOSTable(const pldm_msg* request, size_t payloadLength); 63 * @param[in] request - Request message 64 * @param[in] payload_length - Request message payload length 67 Response setBIOSTable(const pldm_msg* request, size_t payloadLength); [all …]
|
H A D | bios.cpp | 71 pldm::requester::Handler<pldm::requester::Request>* handler, in Handler() 80 [this](pldm_tid_t, const pldm_msg* request, size_t payloadLength) { in Handler() argument 81 return this->setDateTime(request, payloadLength); in Handler() 85 [this](pldm_tid_t, const pldm_msg* request, size_t payloadLength) { in Handler() argument 86 return this->getDateTime(request, payloadLength); in Handler() 90 [this](pldm_tid_t, const pldm_msg* request, size_t payloadLength) { in Handler() argument 91 return this->getBIOSTable(request, payloadLength); in Handler() 95 [this](pldm_tid_t, const pldm_msg* request, size_t payloadLength) { in Handler() argument 96 return this->setBIOSTable(request, payloadLength); in Handler() 100 [this](pldm_tid_t, const pldm_msg* request, size_t payloadLength) { in Handler() argument [all …]
|
/openbmc/pldm/requester/ |
H A D | request.hpp | 27 * The abstract base class for implementing the PLDM request retry logic. This 28 * class handles number of times the PLDM request needs to be retried if the 30 * provides APIs to start and stop the request flow. 45 * @param[in] numRetries - number of request retries 55 /** @brief Starts the request flow and arms the timer for request retries 77 error("Failed to start the request timer, error - {ERROR}", "ERROR", in start() 85 /** @brief Stops the timer and no further request retries happen */ 91 error("Failed to stop the request timer, response code '{RC}'", in stop() 98 uint8_t numRetries; //!< number of request retries 103 /** @brief Sends the PLDM request message [all …]
|
H A D | handler.hpp | 6 #include "request.hpp" 35 * RequestKey uniquely identifies the PLDM request message to match it with the 72 * The response when registers PLDM request message using the SendRecvMsg 83 * This struct is used to store the registered request to one endpoint. 88 std::vector<uint8_t> reqMsg; //!< Request messages queue 94 * This struct is used to save the list of request messages of one endpoint and 95 * the existing of the request message to the endpoint with its' EID. 111 * This class handles the lifecycle of the PLDM request message based on the 112 * instance ID expiration interval, number of request retries and the timeout 118 * @tparam RequestInterface - Request class type [all …]
|
/openbmc/phosphor-ipmi-blobs/test/ |
H A D | ipmi_delete_unittest.cpp | 20 std::vector<uint8_t> request; in TEST() local 25 request.resize(sizeof(struct BmcBlobDeleteTx)); in TEST() 26 std::memcpy(request.data(), &req, sizeof(struct BmcBlobDeleteTx)); in TEST() 27 request.insert(request.end(), blobId.begin(), blobId.end()); in TEST() 29 EXPECT_EQ(ipmi::responseReqDataLenInvalid(), deleteBlob(&mgr, request)); in TEST() 36 std::vector<uint8_t> request; in TEST() local 41 request.resize(sizeof(struct BmcBlobDeleteTx)); in TEST() 42 std::memcpy(request.data(), &req, sizeof(struct BmcBlobDeleteTx)); in TEST() 43 request.insert(request.end(), blobId.begin(), blobId.end()); in TEST() 44 request.emplace_back('\0'); in TEST() [all …]
|
H A D | ipmi_stat_unittest.cpp | 29 std::vector<uint8_t> request; in TEST() local 34 request.resize(sizeof(struct BmcBlobStatTx)); in TEST() 35 std::memcpy(request.data(), &req, sizeof(struct BmcBlobStatTx)); in TEST() 37 request.insert(request.end(), blobId.begin(), blobId.end()); in TEST() 39 EXPECT_EQ(ipmi::responseReqDataLenInvalid(), statBlob(&mgr, request)); in TEST() 47 std::vector<uint8_t> request; in TEST() local 52 request.resize(sizeof(struct BmcBlobStatTx)); in TEST() 53 std::memcpy(request.data(), &req, sizeof(struct BmcBlobStatTx)); in TEST() 54 request.insert(request.end(), blobId.begin(), blobId.end()); in TEST() 55 request.emplace_back('\0'); in TEST() [all …]
|
H A D | ipmi_open_unittest.cpp | 24 std::vector<uint8_t> request; in TEST() local 32 request.resize(sizeof(struct BmcBlobOpenTx)); in TEST() 33 std::memcpy(request.data(), &req, sizeof(struct BmcBlobOpenTx)); in TEST() 34 request.insert(request.end(), blobId.begin(), blobId.end()); in TEST() 36 EXPECT_EQ(ipmi::responseReqDataLenInvalid(), openBlob(&mgr, request)); in TEST() 43 std::vector<uint8_t> request; in TEST() local 49 request.resize(sizeof(struct BmcBlobOpenTx)); in TEST() 50 std::memcpy(request.data(), &req, sizeof(struct BmcBlobOpenTx)); in TEST() 51 request.insert(request.end(), blobId.begin(), blobId.end()); in TEST() 52 request.emplace_back('\0'); in TEST() [all …]
|
H A D | ipmi_commit_unittest.cpp | 21 std::vector<uint8_t> request; in TEST() local 28 request.resize(sizeof(struct BmcBlobCommitTx)); in TEST() 29 std::memcpy(request.data(), &req, sizeof(struct BmcBlobCommitTx)); in TEST() 30 EXPECT_EQ(ipmi::responseReqDataLenInvalid(), commitBlob(&mgr, request)); in TEST() 38 std::vector<uint8_t> request; in TEST() local 44 request.resize(sizeof(struct BmcBlobCommitTx)); in TEST() 45 std::memcpy(request.data(), &req, sizeof(struct BmcBlobCommitTx)); in TEST() 48 EXPECT_EQ(ipmi::responseUnspecifiedError(), commitBlob(&mgr, request)); in TEST() 56 std::vector<uint8_t> request; in TEST() local 62 request.resize(sizeof(struct BmcBlobCommitTx)); in TEST() [all …]
|
H A D | ipmi_unittest.cpp | 23 const std::string request = "asdf"; in TEST() local 25 std::vector<uint8_t>(request.begin(), request.end())) in TEST() 33 std::array<char, MAX_IPMI_BUFFER> request; in TEST() local 34 std::memset(request.data(), 'a', sizeof(request)); in TEST() 36 std::vector<uint8_t>(request.begin(), request.end())) in TEST() 44 std::string request = "asdf"; in TEST() local 45 request.push_back('\0'); in TEST() 48 stringFromBuffer(std::vector<uint8_t>(request.begin(), request.end())) in TEST()
|
H A D | process_unittest.cpp | 70 std::vector<uint8_t> request(MAX_IPMI_BUFFER - 1); in TEST_F() local 72 IpmiBlobHandler handler = validateBlobCommand(0xff, request); in TEST_F() 79 std::vector<uint8_t> request(MAX_IPMI_BUFFER - 1); in TEST_F() local 81 static_cast<std::uint8_t>(BlobOEMCommands::bmcBlobGetCount), request); in TEST_F() 91 std::vector<uint8_t> request(sizeof(uint16_t)); in TEST_F() local 95 static_cast<std::uint8_t>(BlobOEMCommands::bmcBlobGetCount), request); in TEST_F() 102 std::vector<uint8_t> request; in TEST_F() local 109 request.resize(sizeof(struct BmcBlobWriteTx)); in TEST_F() 110 std::memcpy(request.data(), &req, sizeof(struct BmcBlobWriteTx)); in TEST_F() 111 request.insert(request.end(), expectedBytes.begin(), expectedBytes.end()); in TEST_F() [all …]
|
/openbmc/pldm/oem/ibm/libpldmresponder/ |
H A D | file_io.hpp | 171 pldm::requester::Handler<pldm::requester::Request>* handler) : in Handler() 176 [this](pldm_tid_t, const pldm_msg* request, size_t payloadLength) { in Handler() argument 177 return this->readFileIntoMemory(request, payloadLength); in Handler() 181 [this](pldm_tid_t, const pldm_msg* request, size_t payloadLength) { in Handler() argument 182 return this->writeFileFromMemory(request, payloadLength); in Handler() 186 [this](pldm_tid_t, const pldm_msg* request, size_t payloadLength) { in Handler() argument 187 return this->writeFileByTypeFromMemory(request, payloadLength); in Handler() 191 [this](pldm_tid_t, const pldm_msg* request, size_t payloadLength) { in Handler() argument 192 return this->readFileByTypeIntoMemory(request, payloadLength); in Handler() 196 [this](pldm_tid_t, const pldm_msg* request, size_t payloadLength) { in Handler() argument [all …]
|
H A D | file_io.cpp | 344 Response Handler::readFileIntoMemory(const pldm_msg* request, in readFileIntoMemory() argument 359 encodeRWResponseHandler(request->hdr.instance_id, in readFileIntoMemory() 366 request, payloadLength, &fileHandle, &offset, &length, &address); in readFileIntoMemory() 370 "Failed to decode read file into memory request, response code '{RC}'", in readFileIntoMemory() 387 encodeRWResponseHandler(request->hdr.instance_id, in readFileIntoMemory() 397 encodeRWResponseHandler(request->hdr.instance_id, in readFileIntoMemory() 409 encodeRWResponseHandler(request->hdr.instance_id, in readFileIntoMemory() 419 encodeRWResponseHandler(request->hdr.instance_id, in readFileIntoMemory() 434 encodeRWResponseHandler(request->hdr.instance_id, in readFileIntoMemory() 444 request->hdr.instance_id); in readFileIntoMemory() [all …]
|
/openbmc/phosphor-host-ipmid/include/ipmid/ |
H A D | handler.hpp | 47 message::Request::ptr request, ipmi::Cc cc, Args&&... args) in errorResponse() argument 49 message::Response::ptr response = request->makeResponse(); in errorResponse() 55 message::Request::ptr request, ipmi::Cc cc) in errorResponse() argument 57 message::Response::ptr response = request->makeResponse(); in errorResponse() 98 * @brief Handler base class for dealing with IPMI request/response 110 /** @brief wrap the call to the registered handler with the request 113 * created a request object that contains all the information required to 122 * @param request a shared_ptr to a Request object 126 message::Response::ptr call(message::Request::ptr request) in call() argument 128 return executeCallback(request); in call() [all …]
|
/openbmc/google-ipmi-sys/test/ |
H A D | bios_setting_unittest.cpp | 53 std::vector<uint8_t> request = {}; in TEST_F() local 57 readBiosSetting(request, &hMock)); in TEST_F() 62 readBiosSetting(request, &hMock, filename)); in TEST_F() 68 std::vector<uint8_t> request = {}; in TEST_F() local 77 auto reply = readBiosSetting(request, &hMock, filename); in TEST_F() 89 // Empty request in TEST_F() 90 std::vector<uint8_t> request = {}; in TEST_F() local 94 writeBiosSetting(request, &hMock)); in TEST_F() 96 // Request with payload size 1 but no payload in TEST_F() 97 request = {0x01}; in TEST_F() [all …]
|
/openbmc/phosphor-net-ipmid/command/ |
H A D | open_session.cpp | 16 auto request = in openSession() local 18 if (inPayload.size() != sizeof(*request)) in openSession() 29 response->messageTag = request->messageTag; in openSession() 30 response->remoteConsoleSessionID = request->remoteConsoleSessionID; in openSession() 34 static_cast<cipher::rakp_auth::Algorithms>(request->authAlgo))) in openSession() 43 static_cast<cipher::integrity::Algorithms>(request->intAlgo))) in openSession() 57 if (!request->maxPrivLevel) in openSession() 63 priv = static_cast<session::Privilege>(request->maxPrivLevel); in openSession() 68 static_cast<cipher::crypt::Algorithms>(request->confAlgo))) in openSession() 80 endian::from_ipmi<>(request->remoteConsoleSessionID), priv, in openSession() [all …]
|
/openbmc/bmcweb/redfish-core/include/registries/ |
H A D | base_message_registry.hpp | 78 "The account modification request failed.", 82 … "The modification may have failed due to permission issues or issues with the request body.", 121 … "Indicates that the action was supplied with a duplicated action parameter in the request body.", 129 …"Resubmit the action with only one instance of the action parameter in the request body if the ope… 135 "The action %1 requires the parameter %2 to be present in the request body.", 142 …"Supply the action with the required parameter in the request body when the request is resubmitted… 155 "Remove the parameter supplied and resubmit the request if the operation failed.", 168 … "Correct the invalid action parameter and resubmit the request if the operation failed.", 194 …"Correct the value for the parameter in the request body and resubmit the request if the operation… 208 …"Correct the value for the parameter in the request body and resubmit the request if the operation… [all …]
|
/openbmc/pldm/pldmd/ |
H A D | handler.hpp | 21 pldm_tid_t tid, const pldm_msg* request, size_t reqMsgLen)>; 30 * @param[in] tid - PLDM request TID 32 * @param[in] request - PLDM request message 33 * @param[in] reqMsgLen - PLDM request message size 37 const pldm_msg* request, size_t reqMsgLen) in handle() argument 39 return handlers.at(pldmCommand)(tid, request, reqMsgLen); in handle() 44 * @param[in] request - PLDM request message 48 static Response ccOnlyResponse(const pldm_msg* request, uint8_t cc) in ccOnlyResponse() argument 53 encode_cc_only_resp(request->hdr.instance_id, request->hdr.type, in ccOnlyResponse() 54 request->hdr.command, cc, ptr); in ccOnlyResponse()
|
/openbmc/phosphor-ipmi-blobs/ |
H A D | ipmi.cpp | 58 /* If the request is shorter than the minimum, it's invalid. */ in validateRequestLength() 93 /* Verify datalen is >= sizeof(request) */ in enumerateBlob() 94 struct BmcBlobEnumerateTx request; in enumerateBlob() local 96 std::memcpy(&request, data.data(), sizeof(request)); in enumerateBlob() 98 std::string blobId = mgr->getBlobId(request.blobIdx); in enumerateBlob() 112 auto request = reinterpret_cast<const struct BmcBlobOpenTx*>(data.data()); in openBlob() 122 if (!mgr->open(request->flags, path, &session)) in openBlob() 138 struct BmcBlobCloseTx request; in closeBlob() local 139 if (data.size() < sizeof(request)) in closeBlob() 143 std::memcpy(&request, data.data(), sizeof(request)); in closeBlob() [all …]
|
/openbmc/u-boot/drivers/usb/musb-new/ |
H A D | musb_gadget.c | 58 * + request lossage observed with gadgetfs 80 static inline void map_dma_buffer(struct musb_request *request, in map_dma_buffer() argument 86 request->map_state = UN_MAPPED; in map_dma_buffer() 91 /* Check if DMA engine can handle this request. in map_dma_buffer() 92 * DMA code must reject the USB request explicitly. in map_dma_buffer() 93 * Default behaviour is to map the request. in map_dma_buffer() 97 musb_ep->packet_sz, request->request.buf, in map_dma_buffer() 98 request->request.length); in map_dma_buffer() 102 if (request->request.dma == DMA_ADDR_INVALID) { in map_dma_buffer() 103 request->request.dma = dma_map_single( in map_dma_buffer() [all …]
|
/openbmc/pldm/fw-update/ |
H A D | device_updater.hpp | 5 #include "requester/request.hpp" 78 * is success, send PassComponentTable request to FD. 92 * a. Send PassComponentTable request for the next component if 94 * b. UpdateComponent command to request updating a specific 110 * FD to request the firmware data. 119 /** @brief Handler for RequestFirmwareData request 121 * @param[in] request - Request message 122 * @param[in] payload_length - Request message payload length 125 Response requestFwData(const pldm_msg* request, size_t payloadLength); 127 /** @brief Handler for TransferComplete request [all …]
|
/openbmc/openbmc/poky/bitbake/lib/toaster/toastermain/ |
H A D | logs.py | 12 def log_api_request(request, response, view, logger_name='api'): argument 17 'path': request.path, 18 'method': request.method, 30 # get request from args else kwargs 31 request = None 35 request = req 37 elif request is None: 38 request = kwargs.get('request') 42 if hasattr(request, 'resolver_match'): 43 if hasattr(request.resolver_match, 'view_name'): [all …]
|
/openbmc/libpldm/tests/oem/ibm/ |
H A D | fileio.cpp | 44 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data()); in TEST() local 46 // Invoke decode the read file memory request in TEST() 47 auto rc = decode_rw_file_memory_req(request, requestMsg.size() - hdrSize, in TEST() 65 // Request payload message is missing in TEST() 73 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data()); in TEST() local 76 rc = decode_rw_file_memory_req(request, requestMsg.size() - hdrSize, in TEST() 81 rc = decode_rw_file_memory_req(request, 0, &fileHandle, &offset, &length, in TEST() 100 ASSERT_EQ(response->hdr.request, PLDM_RESPONSE); in TEST() 113 ASSERT_EQ(response->hdr.request, PLDM_RESPONSE); in TEST() 135 ASSERT_EQ(response->hdr.request, PLDM_RESPONSE); in TEST() [all …]
|
/openbmc/qemu/tests/qtest/libqos/ |
H A D | virtio-9p-client.h | 86 /* options for 'Twalk' 9p request */ 106 /* only send Twalk request but not wait for a reply? (optional) */ 112 /* result of 'Twalk' 9p request */ 116 /* if requestOnly was set: request object for further processing */ 120 /* options for 'Tversion' 9p request */ 130 /* only send Tversion request but not wait for a reply? (optional) */ 136 /* result of 'Tversion' 9p request */ 138 /* if requestOnly was set: request object for further processing */ 142 /* options for 'Tattach' 9p request */ 157 /* only send Tattach request but not wait for a reply? (optional) */ [all …]
|