Lines Matching refs:_req
549 struct usb_request *_req) in langwell_free_request() argument
559 if (!_ep || !_req) in langwell_free_request()
562 req = container_of(_req, struct langwell_request, req); in langwell_free_request()
565 if (_req) in langwell_free_request()
763 static int langwell_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in langwell_ep_queue() argument
773 req = container_of(_req, struct langwell_request, req); in langwell_ep_queue()
776 if (!_req || !_req->complete || !_req->buf in langwell_ep_queue()
798 if (_req->dma == DMA_ADDR_INVALID) { in langwell_ep_queue()
800 if (_req->length == 0) { in langwell_ep_queue()
803 _req->length++; in langwell_ep_queue()
806 _req->dma = dma_map_single(&dev->pdev->dev, in langwell_ep_queue()
807 _req->buf, _req->length, in langwell_ep_queue()
809 if (zlflag && (_req->length == 1)) { in langwell_ep_queue()
812 _req->length = 0; in langwell_ep_queue()
819 _req->dma, _req->length, in langwell_ep_queue()
828 _req, _req->length, _req->buf, (int)_req->dma); in langwell_ep_queue()
830 _req->status = -EINPROGRESS; in langwell_ep_queue()
831 _req->actual = 0; in langwell_ep_queue()
861 static int langwell_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in langwell_ep_dequeue() argument
874 if (!_ep || !ep->desc || !_req) in langwell_ep_dequeue()
897 if (&req->req == _req) in langwell_ep_dequeue()
901 if (&req->req != _req) { in langwell_ep_dequeue()
909 _req->status = -ECONNRESET; in langwell_ep_dequeue()