Lines Matching refs:usb_req
199 if (req->usb_req.length == 0) in bd_needed_req()
203 remaining = req->usb_req.length % BD_MAX_BUFF_SIZE; in bd_needed_req()
208 remaining = req->usb_req.length / BD_MAX_BUFF_SIZE; in bd_needed_req()
390 req_len = req->usb_req.length; in setup_first_bd_ep0()
427 dma_addr_t buf_add = req->usb_req.dma; in setup_bd_list_xfr()
442 req_len = req->usb_req.length; in setup_bd_list_xfr()
444 tfs = roundup(req->usb_req.length, maxp); in setup_bd_list_xfr()
548 req->usb_req.status = status; in bdc_req_complete()
549 usb_gadget_unmap_request(&bdc->gadget, &req->usb_req, ep->dir); in bdc_req_complete()
550 if (req->usb_req.complete) { in bdc_req_complete()
552 usb_gadget_giveback_request(&ep->usb_ep, &req->usb_req); in bdc_req_complete()
646 status_req->usb_req.length = 0; in ep0_queue_status_stage()
647 status_req->usb_req.status = -EINPROGRESS; in ep0_queue_status_stage()
648 status_req->usb_req.actual = 0; in ep0_queue_status_stage()
649 status_req->usb_req.complete = NULL; in ep0_queue_status_stage()
663 req->usb_req.actual = 0; in ep0_queue()
664 req->usb_req.status = -EINPROGRESS; in ep0_queue()
682 if (req->usb_req.length == 0) in ep0_queue()
686 ret = usb_gadget_map_request(&bdc->gadget, &req->usb_req, ep->dir); in ep0_queue()
703 bdc->ep0_req.usb_req.complete = NULL; in ep0_queue_data_stage()
719 req->usb_req.actual = 0; in ep_queue()
720 req->usb_req.status = -EINPROGRESS; in ep_queue()
723 ret = usb_gadget_map_request(&bdc->gadget, &req->usb_req, ep->dir); in ep_queue()
1038 req->usb_req.actual = actual_length; in handle_xsr_succ_status()
1040 req->usb_req.actual = req->usb_req.length - in handle_xsr_succ_status()
1044 req->usb_req.length, req->usb_req.actual, in handle_xsr_succ_status()
1050 if (req->usb_req.actual < req->usb_req.length) { in handle_xsr_succ_status()
1052 if (req->usb_req.short_not_ok) in handle_xsr_succ_status()
1372 bdc->ep0_req.usb_req.length = 2; in ep0_handle_status()
1373 bdc->ep0_req.usb_req.buf = &bdc->ep0_response_buff; in ep0_handle_status()
1399 bdc->ep0_req.usb_req.length = 6; in ep0_set_sel()
1400 bdc->ep0_req.usb_req.buf = bdc->ep0_response_buff; in ep0_set_sel()
1401 bdc->ep0_req.usb_req.complete = ep0_set_sel_cmpl; in ep0_set_sel()
1417 bdc->ep0_req.usb_req.length = 0; in ep0_queue_zlp()
1418 bdc->ep0_req.usb_req.complete = NULL; in ep0_queue_zlp()
1779 if (&iter->usb_req != _req) in bdc_gadget_ep_dequeue()
1839 req->usb_req.dma = DMA_ADDR_INVALID; in bdc_gadget_alloc_request()
1842 return &req->usb_req; in bdc_gadget_alloc_request()