Lines Matching refs:response

117  * response arrives.
255 "%s: failed to send response %d for type 0x%02x: %d\n",
332 * when the message is sent. For a response, it
337 * a response.
347 * Allocate a message to be used for an operation request or response.
349 * for an outgoing operation is outbound, as is the response message
435 * that should represent it in a response message status sent
473 struct gb_message *response;
477 response = gb_operation_message_alloc(hd, type, response_size, gfp);
478 if (!response)
480 response->operation = operation;
489 response->header->operation_id = request_header->operation_id;
490 operation->response = response;
503 * Outgoing operations must also specify the response buffer size,
504 * which must be sufficient to hold all expected response data. The
505 * response message header will eventually be overwritten, so there's
512 * allocating a response buffer lies with the incoming request
537 /* Allocate the response buffer for outgoing operations */
568 * request and response sizes provided are the number of bytes
569 * required to hold the request/response payload only. Both of
677 if (operation->response)
678 gb_operation_message_free(operation->response);
711 * The callback function supplied will be called when the response message has
790 * block, returning only when the response has arrived, (or when an
815 * Send a response for an incoming operation request. A non-zero
818 * If there is any response payload, the incoming request handler is
819 * responsible for allocating the response message. Otherwise the
821 * allocate the response message if necessary.
829 if (!operation->response &&
841 /* Sender of request does not care about response. */
851 /* Fill in the response header and send it */
852 operation->response->header->result = gb_operation_errno_map(errno);
854 ret = gb_message_send(operation->response, GFP_KERNEL);
878 * If the message was a response, we just need to drop our
883 * unidirectional, there's nothing more to do until the response
888 if (message == operation->response) {
891 "%s: error sending response 0x%02x: %d\n",
908 * response, so we assume it's a request.
950 * We've received data that appears to be an operation response
952 * its response.
955 * data into the response buffer and handle the rest via workqueue.
971 "%s: invalid response id 0 received\n",
979 "%s: unexpected response id 0x%04x received\n",
985 message = operation->response;
989 "%s: malformed response 0x%02x received (%zu > %zu)\n",
998 "%s: short response 0x%02x received (%zu < %zu)\n",
1100 * Make sure the request handler has submitted the response
1105 gb_message_cancel(operation->response);
1107 trace_gb_message_cancel_incoming(operation->response);
1121 * @response: pointer to a memory buffer to copy the response to
1122 * @response_size: the size of @response.
1127 * operation response message has been successfully received, or an error
1128 * occurs. @request and @response are buffers to hold the request and response
1132 * If a response payload is to come back, and @response is not NULL,
1133 * @response_size number of bytes will be copied into @response if the operation
1136 * If there is an error, the response buffer is left alone.
1140 void *response, int response_size,
1146 if ((response_size && !response) ||
1166 memcpy(response, operation->response->payload,