Home
last modified time | relevance | path

Searched refs:_req (Results 1 – 23 of 23) sorted by relevance

/drivers/usb/gadget/
Ddummy_hcd.c107 (struct usb_request *_req) in usb_request_to_dummy_request() argument
109 return container_of(_req, struct dummy_request, req); in usb_request_to_dummy_request()
599 static void dummy_free_request(struct usb_ep *_ep, struct usb_request *_req) in dummy_free_request() argument
603 if (!_ep || !_req) { in dummy_free_request()
608 req = usb_request_to_dummy_request(_req); in dummy_free_request()
617 static int dummy_queue(struct usb_ep *_ep, struct usb_request *_req, in dummy_queue() argument
626 req = usb_request_to_dummy_request(_req); in dummy_queue()
627 if (!_req || !list_empty(&req->queue) || !_req->complete) in dummy_queue()
641 ep, _req, _ep->name, _req->length, _req->buf); in dummy_queue()
643 _req->status = -EINPROGRESS; in dummy_queue()
[all …]
Ds3c2410_udc.c1187 s3c2410_udc_free_request(struct usb_ep *_ep, struct usb_request *_req) in s3c2410_udc_free_request() argument
1190 struct s3c2410_request *req = to_s3c2410_req(_req); in s3c2410_udc_free_request()
1192 dprintk(DEBUG_VERBOSE, "%s(%p,%p)\n", __func__, _ep, _req); in s3c2410_udc_free_request()
1194 if (!ep || !_req || (!ep->ep.desc && _ep->name != ep0name)) in s3c2410_udc_free_request()
1204 static int s3c2410_udc_queue(struct usb_ep *_ep, struct usb_request *_req, in s3c2410_udc_queue() argument
1207 struct s3c2410_request *req = to_s3c2410_req(_req); in s3c2410_udc_queue()
1227 if (unlikely(!_req || !_req->complete in s3c2410_udc_queue()
1228 || !_req->buf || !list_empty(&req->queue))) { in s3c2410_udc_queue()
1229 if (!_req) in s3c2410_udc_queue()
1233 __func__, !_req->complete, !_req->buf, in s3c2410_udc_queue()
[all …]
Dgoku_udc.c282 goku_free_request(struct usb_ep *_ep, struct usb_request *_req) in goku_free_request() argument
286 if (!_ep || !_req) in goku_free_request()
289 req = container_of(_req, struct goku_request, req); in goku_free_request()
708 goku_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in goku_queue() argument
717 req = container_of(_req, struct goku_request, req); in goku_queue()
718 if (unlikely(!_req || !_req->complete in goku_queue()
719 || !_req->buf || !list_empty(&req->queue))) in goku_queue()
742 _ep->name, _req, _req->length, _req->buf); in goku_queue()
747 _req->status = -EINPROGRESS; in goku_queue()
748 _req->actual = 0; in goku_queue()
[all …]
Ds3c-hsudc.c850 static void s3c_hsudc_free_request(struct usb_ep *ep, struct usb_request *_req) in s3c_hsudc_free_request() argument
854 hsreq = our_req(_req); in s3c_hsudc_free_request()
867 static int s3c_hsudc_queue(struct usb_ep *_ep, struct usb_request *_req, in s3c_hsudc_queue() argument
877 hsreq = our_req(_req); in s3c_hsudc_queue()
878 if ((!_req || !_req->complete || !_req->buf || in s3c_hsudc_queue()
890 _req->status = -EINPROGRESS; in s3c_hsudc_queue()
891 _req->actual = 0; in s3c_hsudc_queue()
893 if (!ep_index(hsep) && _req->length == 0) { in s3c_hsudc_queue()
929 static int s3c_hsudc_dequeue(struct usb_ep *_ep, struct usb_request *_req) in s3c_hsudc_dequeue() argument
943 if (&hsreq->req == _req) in s3c_hsudc_dequeue()
[all …]
Dpxa25x_udc.c318 pxa25x_ep_free_request (struct usb_ep *_ep, struct usb_request *_req) in pxa25x_ep_free_request() argument
322 req = container_of (_req, struct pxa25x_request, req); in pxa25x_ep_free_request()
629 pxa25x_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in pxa25x_ep_queue() argument
636 req = container_of(_req, struct pxa25x_request, req); in pxa25x_ep_queue()
637 if (unlikely (!_req || !_req->complete || !_req->buf in pxa25x_ep_queue()
664 _ep->name, _req, _req->length, _req->buf); in pxa25x_ep_queue()
668 _req->status = -EINPROGRESS; in pxa25x_ep_queue()
669 _req->actual = 0; in pxa25x_ep_queue()
674 unsigned length = _req->length; in pxa25x_ep_queue()
755 static int pxa25x_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in pxa25x_ep_dequeue() argument
[all …]
Dnet2272.c349 net2272_free_request(struct usb_ep *_ep, struct usb_request *_req) in net2272_free_request() argument
355 if (!_ep || !_req) in net2272_free_request()
358 req = container_of(_req, struct net2272_request, req); in net2272_free_request()
826 net2272_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in net2272_queue() argument
835 req = container_of(_req, struct net2272_request, req); in net2272_queue()
836 if (!_req || !_req->complete || !_req->buf in net2272_queue()
848 status = usb_gadget_map_request(&dev->gadget, _req, in net2272_queue()
855 _ep->name, _req, _req->length, _req->buf, in net2272_queue()
856 (unsigned long long) _req->dma, _req->zero ? "zero" : "!zero"); in net2272_queue()
860 _req->status = -EINPROGRESS; in net2272_queue()
[all …]
Dnet2280.c428 net2280_free_request (struct usb_ep *_ep, struct usb_request *_req) in net2280_free_request() argument
434 if (!_ep || !_req) in net2280_free_request()
437 req = container_of (_req, struct net2280_request, req); in net2280_free_request()
828 net2280_queue (struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in net2280_queue() argument
838 req = container_of (_req, struct net2280_request, req); in net2280_queue()
839 if (!_req || !_req->complete || !_req->buf in net2280_queue()
842 if (_req->length > (~0 & DMA_BYTE_COUNT_MASK)) in net2280_queue()
852 if (ep->dma && _req->length == 0) in net2280_queue()
859 ret = usb_gadget_map_request(&dev->gadget, _req, in net2280_queue()
867 _ep->name, _req, _req->length, _req->buf); in net2280_queue()
[all …]
Dpxa27x_udc.c676 static void pxa_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in pxa_ep_free_request() argument
680 req = container_of(_req, struct pxa27x_request, req); in pxa_ep_free_request()
1127 static int pxa_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in pxa_ep_queue() argument
1140 req = container_of(_req, struct pxa27x_request, req); in pxa_ep_queue()
1143 if (unlikely(!_req || !_req->complete || !_req->buf)) in pxa_ep_queue()
1172 _req, is_first_req ? "yes" : "no", in pxa_ep_queue()
1173 _req->length, _req->buf); in pxa_ep_queue()
1176 _req->status = -ESHUTDOWN; in pxa_ep_queue()
1186 length = _req->length; in pxa_ep_queue()
1187 _req->status = -EINPROGRESS; in pxa_ep_queue()
[all …]
Dlpc32xx_udc.c1787 struct usb_request *_req) in lpc32xx_ep_free_request() argument
1791 req = container_of(_req, struct lpc32xx_request, req); in lpc32xx_ep_free_request()
1798 struct usb_request *_req, gfp_t gfp_flags) in lpc32xx_ep_queue() argument
1806 req = container_of(_req, struct lpc32xx_request, req); in lpc32xx_ep_queue()
1809 if (!_req || !_req->complete || !_req->buf || in lpc32xx_ep_queue()
1830 status = usb_gadget_map_request(&udc->gadget, _req, ep->is_in); in lpc32xx_ep_queue()
1863 _req, _req->length, _req->buf, ep->is_in, _req->zero); in lpc32xx_ep_queue()
1867 _req->status = -EINPROGRESS; in lpc32xx_ep_queue()
1868 _req->actual = 0; in lpc32xx_ep_queue()
1869 req->send_zlp = _req->zero; in lpc32xx_ep_queue()
[all …]
Dmv_udc_core.c628 static void mv_free_request(struct usb_ep *_ep, struct usb_request *_req) in mv_free_request() argument
632 req = container_of(_req, struct mv_req, req); in mv_free_request()
634 if (_req) in mv_free_request()
700 mv_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in mv_ep_queue() argument
703 struct mv_req *req = container_of(_req, struct mv_req, req); in mv_ep_queue()
709 if (!_req || !req->req.complete || !req->req.buf in mv_ep_queue()
726 retval = usb_gadget_map_request(&udc->gadget, _req, ep_dir(ep)); in mv_ep_queue()
762 usb_gadget_unmap_request(&udc->gadget, _req, ep_dir(ep)); in mv_ep_queue()
789 static int mv_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in mv_ep_dequeue() argument
798 if (!_ep || !_req) in mv_ep_dequeue()
[all …]
Dat91_udc.c592 static void at91_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in at91_ep_free_request() argument
596 req = container_of(_req, struct at91_request, req); in at91_ep_free_request()
602 struct usb_request *_req, gfp_t gfp_flags) in at91_ep_queue() argument
610 req = container_of(_req, struct at91_request, req); in at91_ep_queue()
613 if (!_req || !_req->complete in at91_ep_queue()
614 || !_req->buf || !list_empty(&req->queue)) { in at91_ep_queue()
631 _req->status = -EINPROGRESS; in at91_ep_queue()
632 _req->actual = 0; in at91_ep_queue()
701 static int at91_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in at91_ep_dequeue() argument
718 if (&req->req == _req) in at91_ep_dequeue()
[all …]
Dmv_u3d_core.c699 static void mv_u3d_free_request(struct usb_ep *_ep, struct usb_request *_req) in mv_u3d_free_request() argument
701 struct mv_u3d_req *req = container_of(_req, struct mv_u3d_req, req); in mv_u3d_free_request()
790 mv_u3d_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in mv_u3d_ep_queue() argument
798 if (unlikely(!_ep || !_req)) in mv_u3d_ep_queue()
804 req = container_of(_req, struct mv_u3d_req, req); in mv_u3d_ep_queue()
808 && !_req->length) { in mv_u3d_ep_queue()
824 __func__, _req, in mv_u3d_ep_queue()
864 static int mv_u3d_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in mv_u3d_ep_dequeue() argument
875 if (!_ep || !_req) in mv_u3d_ep_dequeue()
885 if (&req->req == _req) in mv_u3d_ep_dequeue()
[all …]
Dfsl_qe_udc.c1690 static void qe_free_request(struct usb_ep *_ep, struct usb_request *_req) in qe_free_request() argument
1694 req = container_of(_req, struct qe_req, req); in qe_free_request()
1696 if (_req) in qe_free_request()
1700 static int __qe_ep_queue(struct usb_ep *_ep, struct usb_request *_req) in __qe_ep_queue() argument
1703 struct qe_req *req = container_of(_req, struct qe_req, req); in __qe_ep_queue()
1709 if (!_req || !req->req.complete || !req->req.buf in __qe_ep_queue()
1768 static int qe_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in qe_ep_queue() argument
1777 ret = __qe_ep_queue(_ep, _req); in qe_ep_queue()
1783 static int qe_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in qe_ep_dequeue() argument
1789 if (!_ep || !_req) in qe_ep_dequeue()
[all …]
Dfsl_udc_core.c695 static void fsl_free_request(struct usb_ep *_ep, struct usb_request *_req) in fsl_free_request() argument
699 req = container_of(_req, struct fsl_req, req); in fsl_free_request()
701 if (_req) in fsl_free_request()
872 fsl_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in fsl_ep_queue() argument
875 struct fsl_req *req = container_of(_req, struct fsl_req, req); in fsl_ep_queue()
881 if (!_req || !req->req.complete || !req->req.buf in fsl_ep_queue()
926 static int fsl_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in fsl_ep_dequeue() argument
934 if (!_ep || !_req) in fsl_ep_dequeue()
952 if (&req->req == _req) in fsl_ep_dequeue()
955 if (&req->req != _req) { in fsl_ep_dequeue()
[all …]
Datmel_usba_udc.c687 usba_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in usba_ep_free_request() argument
689 struct usba_request *req = to_usba_req(_req); in usba_ep_free_request()
691 DBG(DBG_GADGET, "ep_free_request: %p, %p\n", _ep, _req); in usba_ep_free_request()
746 usba_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in usba_ep_queue() argument
748 struct usba_request *req = to_usba_req(_req); in usba_ep_queue()
755 ep->ep.name, req, _req->length); in usba_ep_queue()
765 _req->status = -EINPROGRESS; in usba_ep_queue()
766 _req->actual = 0; in usba_ep_queue()
829 static int usba_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in usba_ep_dequeue() argument
833 struct usba_request *req = to_usba_req(_req); in usba_ep_dequeue()
Domap_udc.c283 omap_free_request(struct usb_ep *ep, struct usb_request *_req) in omap_free_request() argument
285 struct omap_req *req = container_of(_req, struct omap_req, req); in omap_free_request()
868 omap_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in omap_ep_queue() argument
871 struct omap_req *req = container_of(_req, struct omap_req, req); in omap_ep_queue()
877 if (!_req || !req->req.complete || !req->req.buf in omap_ep_queue()
913 ep->ep.name, _req, _req->length, _req->buf); in omap_ep_queue()
1008 static int omap_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in omap_ep_dequeue() argument
1014 if (!_ep || !_req) in omap_ep_dequeue()
1021 if (&req->req == _req) in omap_ep_dequeue()
1024 if (&req->req != _req) { in omap_ep_dequeue()
Dfusb300_udc.c284 static void fusb300_free_request(struct usb_ep *_ep, struct usb_request *_req) in fusb300_free_request() argument
288 req = container_of(_req, struct fusb300_request, req); in fusb300_free_request()
422 static int fusb300_queue(struct usb_ep *_ep, struct usb_request *_req, in fusb300_queue() argument
431 req = container_of(_req, struct fusb300_request, req); in fusb300_queue()
456 static int fusb300_dequeue(struct usb_ep *_ep, struct usb_request *_req) in fusb300_dequeue() argument
463 req = container_of(_req, struct fusb300_request, req); in fusb300_dequeue()
Dm66592-udc.c40 static int m66592_queue(struct usb_ep *_ep, struct usb_request *_req,
1349 static void m66592_free_request(struct usb_ep *_ep, struct usb_request *_req) in m66592_free_request() argument
1353 req = container_of(_req, struct m66592_request, req); in m66592_free_request()
1357 static int m66592_queue(struct usb_ep *_ep, struct usb_request *_req, in m66592_queue() argument
1366 req = container_of(_req, struct m66592_request, req); in m66592_queue()
1392 static int m66592_dequeue(struct usb_ep *_ep, struct usb_request *_req) in m66592_dequeue() argument
1399 req = container_of(_req, struct m66592_request, req); in m66592_dequeue()
Dr8a66597-udc.c41 static int r8a66597_queue(struct usb_ep *_ep, struct usb_request *_req,
1599 static void r8a66597_free_request(struct usb_ep *_ep, struct usb_request *_req) in r8a66597_free_request() argument
1603 req = container_of(_req, struct r8a66597_request, req); in r8a66597_free_request()
1607 static int r8a66597_queue(struct usb_ep *_ep, struct usb_request *_req, in r8a66597_queue() argument
1616 req = container_of(_req, struct r8a66597_request, req); in r8a66597_queue()
1642 static int r8a66597_dequeue(struct usb_ep *_ep, struct usb_request *_req) in r8a66597_dequeue() argument
1649 req = container_of(_req, struct r8a66597_request, req); in r8a66597_dequeue()
Damd5536udc.c603 struct usb_request *_req = NULL; in udc_alloc_bna_dummy() local
606 _req = udc_alloc_request(&ep->ep, GFP_ATOMIC); in udc_alloc_bna_dummy()
607 if (_req) { in udc_alloc_bna_dummy()
608 req = container_of(_req, struct udc_request, req); in udc_alloc_bna_dummy()
/drivers/scsi/
Dhptiop.c307 void __iomem *_req, u32 millisec) in iop_send_sync_request_itl() argument
309 struct hpt_iop_request_header __iomem *req = _req; in iop_send_sync_request_itl()
885 struct hptiop_request *_req) in hptiop_post_req_itl() argument
887 struct hpt_iop_request_header *reqhdr = _req->req_virt; in hptiop_post_req_itl()
890 (u32)_req->index); in hptiop_post_req_itl()
904 writel(_req->req_shifted_phy | size_bits, in hptiop_post_req_itl()
907 writel(_req->req_shifted_phy | IOPMU_QUEUE_ADDR_HOST_BIT, in hptiop_post_req_itl()
912 struct hptiop_request *_req) in hptiop_post_req_mv() argument
914 struct hpt_iop_request_header *reqhdr = _req->req_virt; in hptiop_post_req_mv()
917 reqhdr->context = cpu_to_le32(_req->index<<8 | in hptiop_post_req_mv()
[all …]
Dhptiop.h367 void (*post_req)(struct hptiop_hba *hba, struct hptiop_request *_req);
/drivers/block/xen-blkback/
Dblkback.c154 #define pending_handle(_req, _seg) \ argument
155 (blkbk->pending_grant_handles[vaddr_pagenr(_req, _seg)])