Lines Matching full:response

117  * response arrives.
255 "%s: failed to send response %d for type 0x%02x: %d\n", in gb_operation_request_handle()
332 * when the message is sent. For a response, it in gb_operation_message_init()
337 * a response. in gb_operation_message_init()
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; in gb_operation_response_alloc() local
477 response = gb_operation_message_alloc(hd, type, response_size, gfp); in gb_operation_response_alloc()
478 if (!response) in gb_operation_response_alloc()
480 response->operation = operation; in gb_operation_response_alloc()
489 response->header->operation_id = request_header->operation_id; in gb_operation_response_alloc()
490 operation->response = response; in gb_operation_response_alloc()
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 */ in gb_operation_create_common()
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) in _gb_operation_destroy()
678 gb_operation_message_free(operation->response); in _gb_operation_destroy()
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 && in gb_operation_response_send()
841 /* Sender of request does not care about response. */ in gb_operation_response_send()
851 /* Fill in the response header and send it */ in gb_operation_response_send()
852 operation->response->header->result = gb_operation_errno_map(errno); in gb_operation_response_send()
854 ret = gb_message_send(operation->response, GFP_KERNEL); in gb_operation_response_send()
878 * If the message was a response, we just need to drop our in greybus_message_sent()
883 * unidirectional, there's nothing more to do until the response in greybus_message_sent()
888 if (message == operation->response) { in greybus_message_sent()
891 "%s: error sending response 0x%02x: %d\n", in greybus_message_sent()
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", in gb_connection_recv_response()
979 "%s: unexpected response id 0x%04x received\n", in gb_connection_recv_response()
985 message = operation->response; in gb_connection_recv_response()
989 "%s: malformed response 0x%02x received (%zu > %zu)\n", in gb_connection_recv_response()
998 "%s: short response 0x%02x received (%zu < %zu)\n", in gb_connection_recv_response()
1100 * Make sure the request handler has submitted the response in gb_operation_cancel_incoming()
1105 gb_message_cancel(operation->response); in gb_operation_cancel_incoming()
1107 trace_gb_message_cancel_incoming(operation->response); in gb_operation_cancel_incoming()
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, in gb_operation_sync_timeout() argument
1146 if ((response_size && !response) || in gb_operation_sync_timeout()
1166 memcpy(response, operation->response->payload, in gb_operation_sync_timeout()