Lines Matching refs:usb_req
382 struct usb_request usb_req; member
614 return container_of(req, struct tegra_xudc_request, usb_req); in to_xudc_req()
1038 if (likely(req->usb_req.status == -EINPROGRESS)) in tegra_xudc_req_done()
1039 req->usb_req.status = status; in tegra_xudc_req_done()
1044 usb_gadget_unmap_request(&xudc->gadget, &req->usb_req, in tegra_xudc_req_done()
1048 usb_gadget_unmap_request(&xudc->gadget, &req->usb_req, in tegra_xudc_req_done()
1053 usb_gadget_giveback_request(&ep->usb_ep, &req->usb_req); in tegra_xudc_req_done()
1088 len = min_t(size_t, XUDC_TRB_MAX_BUFFER_SIZE, req->usb_req.length - in tegra_xudc_queue_one_trb()
1091 buf_addr = req->usb_req.dma + req->buf_queued; in tegra_xudc_queue_one_trb()
1134 trb_write_stream_id(trb, req->usb_req.stream_id); in tegra_xudc_queue_one_trb()
1229 val |= DB_STREAMID(req->usb_req.stream_id); in tegra_xudc_ep_ring_doorbell()
1265 err = usb_gadget_map_request(&xudc->gadget, &req->usb_req, in __tegra_xudc_ep_queue()
1269 err = usb_gadget_map_request(&xudc->gadget, &req->usb_req, in __tegra_xudc_ep_queue()
1283 req->trbs_needed = DIV_ROUND_UP(req->usb_req.length, in __tegra_xudc_ep_queue()
1285 if (req->usb_req.length == 0) in __tegra_xudc_ep_queue()
1289 req->usb_req.zero && req->usb_req.length && in __tegra_xudc_ep_queue()
1290 ((req->usb_req.length % ep->usb_ep.maxpacket) == 0)) { in __tegra_xudc_ep_queue()
1295 req->usb_req.status = -EINPROGRESS; in __tegra_xudc_ep_queue()
1296 req->usb_req.actual = 0; in __tegra_xudc_ep_queue()
1306 tegra_xudc_ep_queue(struct usb_ep *usb_ep, struct usb_request *usb_req, in tegra_xudc_ep_queue() argument
1315 if (!usb_ep || !usb_req) in tegra_xudc_ep_queue()
1319 req = to_xudc_req(usb_req); in tegra_xudc_ep_queue()
1365 req->usb_req.status = -EINPROGRESS; in squeeze_transfer_ring()
1366 req->usb_req.actual = 0; in squeeze_transfer_ring()
1466 req->usb_req.actual = ep_ctx_read_edtla(ep->context); in __tegra_xudc_ep_dequeue()
1471 if (req->usb_req.actual > 0) { in __tegra_xudc_ep_dequeue()
1516 tegra_xudc_ep_dequeue(struct usb_ep *usb_ep, struct usb_request *usb_req) in tegra_xudc_ep_dequeue() argument
1524 if (!usb_ep || !usb_req) in tegra_xudc_ep_dequeue()
1528 req = to_xudc_req(usb_req); in tegra_xudc_ep_dequeue()
1913 return &req->usb_req; in tegra_xudc_ep_alloc_request()
1917 struct usb_request *usb_req) in tegra_xudc_ep_free_request() argument
1919 struct tegra_xudc_request *req = to_xudc_req(usb_req); in tegra_xudc_ep_free_request()
2202 xudc->ep0_req->usb_req.buf = NULL; in tegra_xudc_ep0_queue_status()
2203 xudc->ep0_req->usb_req.dma = 0; in tegra_xudc_ep0_queue_status()
2204 xudc->ep0_req->usb_req.length = 0; in tegra_xudc_ep0_queue_status()
2205 xudc->ep0_req->usb_req.complete = cmpl; in tegra_xudc_ep0_queue_status()
2206 xudc->ep0_req->usb_req.context = xudc; in tegra_xudc_ep0_queue_status()
2215 xudc->ep0_req->usb_req.buf = buf; in tegra_xudc_ep0_queue_data()
2216 xudc->ep0_req->usb_req.length = len; in tegra_xudc_ep0_queue_data()
2217 xudc->ep0_req->usb_req.complete = cmpl; in tegra_xudc_ep0_queue_data()
2218 xudc->ep0_req->usb_req.context = xudc; in tegra_xudc_ep0_queue_data()
2674 req->usb_req.actual = req->usb_req.length - residual; in tegra_xudc_handle_transfer_completion()
2677 req->usb_req.actual, req->usb_req.length); in tegra_xudc_handle_transfer_completion()
3274 &xudc->ep0_req->usb_req); in tegra_xudc_free_eps()