Lines Matching defs:request

142 	dev_vdbg(dwc->dev, "link state change request timed out\n");
252 } while(++i < req->request.num_mapped_sgs);
258 if (req->request.status == -EINPROGRESS)
259 req->request.status = status;
264 usb_gadget_unmap_request(&dwc->gadget, &req->request,
267 dev_dbg(dwc->dev, "request %p from %s completed %d/%d ===> %d\n",
268 req, dep->name, req->request.actual,
269 req->request.length, status);
273 usb_gadget_giveback_request(&dep->endpoint, &req->request);
711 return &req->request;
715 struct usb_request *request)
717 struct dwc3_request *req = to_dwc3_request(request);
724 * dwc3_prepare_one_trb - setup one TRB from one request
725 * @dep: endpoint for which this request is prepared
784 if (!req->request.no_interrupt && !chain)
798 trb->ctrl |= DWC3_TRB_CTRL_SID_SOFN(req->request.stream_id);
823 /* the first request must not be queued */
847 * after the first request so we start at slot 1 and have
871 if (req->request.num_mapped_sgs > 0) {
872 struct usb_request *request = &req->request;
873 struct scatterlist *sg = request->sg;
877 for_each_sg(sg, s, request->num_mapped_sgs, i) {
883 if (i == (request->num_mapped_sgs - 1) ||
905 dma = req->request.dma;
906 length = req->request.length;
912 /* Is this the last request? */
942 * new requests as we try to set the IOC bit only on the last request.
948 /* req points to the first request which will be sent */
954 * req points to the first request where HWO changed from 0 to 1
983 usb_gadget_unmap_request(&dwc->gadget, &req->request,
1034 req->request.actual = 0;
1035 req->request.status = -EINPROGRESS;
1051 ret = usb_gadget_map_request(&dwc->gadget, &req->request,
1064 * chance to queue a request, we will ACK the IRQ but won't be
1065 * able to receive the data until the next request is queued.
1093 * kick the transfer here after queuing a request, otherwise the
1128 static int dwc3_gadget_ep_queue(struct usb_ep *ep, struct usb_request *request,
1131 struct dwc3_request *req = to_dwc3_request(request);
1141 dev_dbg(dwc->dev, "trying to queue request %p to disabled %s\n",
1142 request, ep->name);
1147 dev_vdbg(dwc->dev, "queing request %p to %s length %d\n",
1148 request, ep->name, request->length);
1158 struct usb_request *request)
1160 struct dwc3_request *req = to_dwc3_request(request);
1188 dev_err(dwc->dev, "request %p was not queued to %s\n",
1189 request, ep->name);
1195 /* giveback the request */
1221 dev_dbg(dwc->dev, "%s: pending request, cannot halt\n",
1339 * According to the Databook Remote wakeup request should
1525 dev_err(dwc->dev, "failed to request irq #%d --> %d\n",
1792 * no request queued then issue END
1796 * If there are still queued request
1799 * request in request_list during
1800 * giveback.If any future queued request
1803 * request in the request_list.
1823 * should receive and we simply bounce the request back to the
1826 req->request.actual += req->request.length - count;
1867 }while (++i < req->request.num_mapped_sgs);
1879 * If there is no entry in request list then do
1882 * entry is added into request list.
2650 dev_err(dwc->dev, "failed to allocate ctrl request\n");