Lines Matching refs:usb_req
383 struct usb_request usb_req; member
615 return container_of(req, struct tegra_xudc_request, usb_req); in to_xudc_req()
1032 if (likely(req->usb_req.status == -EINPROGRESS)) in tegra_xudc_req_done()
1033 req->usb_req.status = status; in tegra_xudc_req_done()
1038 usb_gadget_unmap_request(&xudc->gadget, &req->usb_req, in tegra_xudc_req_done()
1042 usb_gadget_unmap_request(&xudc->gadget, &req->usb_req, in tegra_xudc_req_done()
1047 usb_gadget_giveback_request(&ep->usb_ep, &req->usb_req); in tegra_xudc_req_done()
1082 len = min_t(size_t, XUDC_TRB_MAX_BUFFER_SIZE, req->usb_req.length - in tegra_xudc_queue_one_trb()
1085 buf_addr = req->usb_req.dma + req->buf_queued; in tegra_xudc_queue_one_trb()
1128 trb_write_stream_id(trb, req->usb_req.stream_id); in tegra_xudc_queue_one_trb()
1223 val |= DB_STREAMID(req->usb_req.stream_id); in tegra_xudc_ep_ring_doorbell()
1259 err = usb_gadget_map_request(&xudc->gadget, &req->usb_req, in __tegra_xudc_ep_queue()
1263 err = usb_gadget_map_request(&xudc->gadget, &req->usb_req, in __tegra_xudc_ep_queue()
1277 req->trbs_needed = DIV_ROUND_UP(req->usb_req.length, in __tegra_xudc_ep_queue()
1279 if (req->usb_req.length == 0) in __tegra_xudc_ep_queue()
1283 req->usb_req.zero && req->usb_req.length && in __tegra_xudc_ep_queue()
1284 ((req->usb_req.length % ep->usb_ep.maxpacket) == 0)) { in __tegra_xudc_ep_queue()
1289 req->usb_req.status = -EINPROGRESS; in __tegra_xudc_ep_queue()
1290 req->usb_req.actual = 0; in __tegra_xudc_ep_queue()
1300 tegra_xudc_ep_queue(struct usb_ep *usb_ep, struct usb_request *usb_req, in tegra_xudc_ep_queue() argument
1309 if (!usb_ep || !usb_req) in tegra_xudc_ep_queue()
1313 req = to_xudc_req(usb_req); in tegra_xudc_ep_queue()
1359 req->usb_req.status = -EINPROGRESS; in squeeze_transfer_ring()
1360 req->usb_req.actual = 0; in squeeze_transfer_ring()
1460 req->usb_req.actual = ep_ctx_read_edtla(ep->context); in __tegra_xudc_ep_dequeue()
1465 if (req->usb_req.actual > 0) { in __tegra_xudc_ep_dequeue()
1510 tegra_xudc_ep_dequeue(struct usb_ep *usb_ep, struct usb_request *usb_req) in tegra_xudc_ep_dequeue() argument
1518 if (!usb_ep || !usb_req) in tegra_xudc_ep_dequeue()
1522 req = to_xudc_req(usb_req); in tegra_xudc_ep_dequeue()
1907 return &req->usb_req; in tegra_xudc_ep_alloc_request()
1911 struct usb_request *usb_req) in tegra_xudc_ep_free_request() argument
1913 struct tegra_xudc_request *req = to_xudc_req(usb_req); in tegra_xudc_ep_free_request()
2197 xudc->ep0_req->usb_req.buf = NULL; in tegra_xudc_ep0_queue_status()
2198 xudc->ep0_req->usb_req.dma = 0; in tegra_xudc_ep0_queue_status()
2199 xudc->ep0_req->usb_req.length = 0; in tegra_xudc_ep0_queue_status()
2200 xudc->ep0_req->usb_req.complete = cmpl; in tegra_xudc_ep0_queue_status()
2201 xudc->ep0_req->usb_req.context = xudc; in tegra_xudc_ep0_queue_status()
2210 xudc->ep0_req->usb_req.buf = buf; in tegra_xudc_ep0_queue_data()
2211 xudc->ep0_req->usb_req.length = len; in tegra_xudc_ep0_queue_data()
2212 xudc->ep0_req->usb_req.complete = cmpl; in tegra_xudc_ep0_queue_data()
2213 xudc->ep0_req->usb_req.context = xudc; in tegra_xudc_ep0_queue_data()
2669 req->usb_req.actual = req->usb_req.length - residual; in tegra_xudc_handle_transfer_completion()
2672 req->usb_req.actual, req->usb_req.length); in tegra_xudc_handle_transfer_completion()
3269 &xudc->ep0_req->usb_req); in tegra_xudc_free_eps()