Lines Matching refs:_req
107 (struct usb_request *_req) in usb_request_to_dummy_request() argument
109 return container_of(_req, struct dummy_request, req); in usb_request_to_dummy_request()
599 static void dummy_free_request(struct usb_ep *_ep, struct usb_request *_req) in dummy_free_request() argument
603 if (!_ep || !_req) { in dummy_free_request()
608 req = usb_request_to_dummy_request(_req); in dummy_free_request()
617 static int dummy_queue(struct usb_ep *_ep, struct usb_request *_req, in dummy_queue() argument
626 req = usb_request_to_dummy_request(_req); in dummy_queue()
627 if (!_req || !list_empty(&req->queue) || !_req->complete) in dummy_queue()
641 ep, _req, _ep->name, _req->length, _req->buf); in dummy_queue()
643 _req->status = -EINPROGRESS; in dummy_queue()
644 _req->actual = 0; in dummy_queue()
651 _req->length <= FIFO_SIZE) { in dummy_queue()
653 req->req = *_req; in dummy_queue()
655 memcpy(dum->fifo_buf, _req->buf, _req->length); in dummy_queue()
661 _req->actual = _req->length; in dummy_queue()
662 _req->status = 0; in dummy_queue()
663 _req->complete(_ep, _req); in dummy_queue()
675 static int dummy_dequeue(struct usb_ep *_ep, struct usb_request *_req) in dummy_dequeue() argument
683 if (!_ep || !_req) in dummy_dequeue()
694 if (&req->req == _req) { in dummy_dequeue()
696 _req->status = -ECONNRESET; in dummy_dequeue()
706 req, _ep->name, _req->length, _req->buf); in dummy_dequeue()
707 _req->complete(_ep, _req); in dummy_dequeue()