Lines Matching defs:request

113  * If no error occurs before sending the request message the only
115 * indicating the request has been (or rather is about to be) sent.
119 * The first time the result gets set after the request has been
126 * error; if it's ever observed, the code performing the request has
141 * -EINPROGRESS is used to indicate the request is
160 * The first result value set after a request has been sent
246 "%s: unexpected incoming request of type 0x%02x\n",
264 * For incoming requests, call the protocol request handler. The operation
269 * allows the original requester to know the request has completed
284 /* Cancel request message if scheduled by timeout. */
286 gb_message_cancel(operation->request);
302 * A stuck request message will be cancelled from the
331 * For a request, the operation id gets filled in
333 * will be copied from the request by the caller.
335 * The result field in a request message must be
347 * Allocate a message to be used for an operation request or response.
348 * Both types of message contain a common header. The request message
486 * request message header (as-is, in little-endian order).
488 request_header = operation->request->header;
498 * The request buffer will be big enough for a payload of the given
501 * For outgoing requests, the request message's header will be
502 * initialized with the type of the request and the message size.
510 * the request buffer will be immediately overwritten, so there is
512 * allocating a response buffer lies with the incoming request
531 operation->request = gb_operation_message_alloc(hd, type, request_size,
533 if (!operation->request)
535 operation->request->operation = operation;
559 gb_operation_message_free(operation->request);
568 * request and response sizes provided are the number of bytes
569 * required to hold the request/response payload only. Both of
651 memcpy(operation->request->header, data, size);
679 gb_operation_message_free(operation->request);
704 * gb_operation_request_send() - send an operation request message
710 * The caller has filled in any payload so the request message is ready to go.
712 * arrived, a unidirectional request has been sent, or the operation is
717 * Return: 0 if the request was successfully queued in the host-driver queues,
744 * Assign the operation's id, and store it in the request header.
754 header = operation->request->header;
768 ret = gb_message_send(operation->request, gfp);
815 * Send a response for an incoming operation request. A non-zero
818 * If there is any response payload, the incoming request handler is
837 dev_err(&connection->hd->dev, "request result already set\n");
841 /* Sender of request does not care about response. */
869 * This function is called when a message send request has completed.
908 * response, so we assume it's a request.
911 * data into the request buffer and handle the rest via workqueue.
939 trace_gb_message_recv_request(operation->request);
943 * request handler returns.
1077 gb_message_cancel(operation->request);
1080 trace_gb_message_cancel_outgoing(operation->request);
1100 * Make sure the request handler has submitted the response
1119 * @request: pointer to a memory buffer to copy the request from
1120 * @request_size: size of @request
1126 * the provided operation request and waits (sleeps) until the corresponding
1128 * occurs. @request and @response are buffers to hold the request and response
1139 void *request, int request_size,
1147 (request_size && !request))
1157 memcpy(operation->request->payload, request, request_size);
1181 * @request: memory buffer to copy the request from
1182 * @request_size: size of @request
1185 * Initiate a unidirectional operation by sending a request message and
1189 * the request as actually reached the remote end of the connection.
1192 int type, void *request,
1199 if (request_size && !request)
1210 memcpy(operation->request->payload, request, request_size);