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()
1028 if (likely(req->usb_req.status == -EINPROGRESS)) in tegra_xudc_req_done()
1029 req->usb_req.status = status; in tegra_xudc_req_done()
1034 usb_gadget_unmap_request(&xudc->gadget, &req->usb_req, in tegra_xudc_req_done()
1038 usb_gadget_unmap_request(&xudc->gadget, &req->usb_req, in tegra_xudc_req_done()
1043 usb_gadget_giveback_request(&ep->usb_ep, &req->usb_req); in tegra_xudc_req_done()
1078 len = min_t(size_t, XUDC_TRB_MAX_BUFFER_SIZE, req->usb_req.length - in tegra_xudc_queue_one_trb()
1081 buf_addr = req->usb_req.dma + req->buf_queued; in tegra_xudc_queue_one_trb()
1124 trb_write_stream_id(trb, req->usb_req.stream_id); in tegra_xudc_queue_one_trb()
1219 val |= DB_STREAMID(req->usb_req.stream_id); in tegra_xudc_ep_ring_doorbell()
1255 err = usb_gadget_map_request(&xudc->gadget, &req->usb_req, in __tegra_xudc_ep_queue()
1259 err = usb_gadget_map_request(&xudc->gadget, &req->usb_req, in __tegra_xudc_ep_queue()
1273 req->trbs_needed = DIV_ROUND_UP(req->usb_req.length, in __tegra_xudc_ep_queue()
1275 if (req->usb_req.length == 0) in __tegra_xudc_ep_queue()
1279 req->usb_req.zero && req->usb_req.length && in __tegra_xudc_ep_queue()
1280 ((req->usb_req.length % ep->usb_ep.maxpacket) == 0)) { in __tegra_xudc_ep_queue()
1285 req->usb_req.status = -EINPROGRESS; in __tegra_xudc_ep_queue()
1286 req->usb_req.actual = 0; in __tegra_xudc_ep_queue()
1296 tegra_xudc_ep_queue(struct usb_ep *usb_ep, struct usb_request *usb_req, in tegra_xudc_ep_queue() argument
1305 if (!usb_ep || !usb_req) in tegra_xudc_ep_queue()
1309 req = to_xudc_req(usb_req); in tegra_xudc_ep_queue()
1355 req->usb_req.status = -EINPROGRESS; in squeeze_transfer_ring()
1356 req->usb_req.actual = 0; in squeeze_transfer_ring()
1454 req->usb_req.actual = ep_ctx_read_edtla(ep->context); in __tegra_xudc_ep_dequeue()
1459 if (req->usb_req.actual > 0) { in __tegra_xudc_ep_dequeue()
1504 tegra_xudc_ep_dequeue(struct usb_ep *usb_ep, struct usb_request *usb_req) in tegra_xudc_ep_dequeue() argument
1512 if (!usb_ep || !usb_req) in tegra_xudc_ep_dequeue()
1516 req = to_xudc_req(usb_req); in tegra_xudc_ep_dequeue()
1901 return &req->usb_req; in tegra_xudc_ep_alloc_request()
1905 struct usb_request *usb_req) in tegra_xudc_ep_free_request() argument
1907 struct tegra_xudc_request *req = to_xudc_req(usb_req); in tegra_xudc_ep_free_request()
2191 xudc->ep0_req->usb_req.buf = NULL; in tegra_xudc_ep0_queue_status()
2192 xudc->ep0_req->usb_req.dma = 0; in tegra_xudc_ep0_queue_status()
2193 xudc->ep0_req->usb_req.length = 0; in tegra_xudc_ep0_queue_status()
2194 xudc->ep0_req->usb_req.complete = cmpl; in tegra_xudc_ep0_queue_status()
2195 xudc->ep0_req->usb_req.context = xudc; in tegra_xudc_ep0_queue_status()
2204 xudc->ep0_req->usb_req.buf = buf; in tegra_xudc_ep0_queue_data()
2205 xudc->ep0_req->usb_req.length = len; in tegra_xudc_ep0_queue_data()
2206 xudc->ep0_req->usb_req.complete = cmpl; in tegra_xudc_ep0_queue_data()
2207 xudc->ep0_req->usb_req.context = xudc; in tegra_xudc_ep0_queue_data()
2663 req->usb_req.actual = req->usb_req.length - residual; in tegra_xudc_handle_transfer_completion()
2666 req->usb_req.actual, req->usb_req.length); in tegra_xudc_handle_transfer_completion()
3263 &xudc->ep0_req->usb_req); in tegra_xudc_free_eps()