/drivers/usb/gadget/udc/ |
D | s3c2410_udc.c | 1188 s3c2410_udc_free_request(struct usb_ep *_ep, struct usb_request *_req) in s3c2410_udc_free_request() argument 1191 struct s3c2410_request *req = to_s3c2410_req(_req); in s3c2410_udc_free_request() 1193 dprintk(DEBUG_VERBOSE, "%s(%p,%p)\n", __func__, _ep, _req); in s3c2410_udc_free_request() 1195 if (!ep || !_req || (!ep->ep.desc && _ep->name != ep0name)) in s3c2410_udc_free_request() 1205 static int s3c2410_udc_queue(struct usb_ep *_ep, struct usb_request *_req, in s3c2410_udc_queue() argument 1208 struct s3c2410_request *req = to_s3c2410_req(_req); in s3c2410_udc_queue() 1228 if (unlikely(!_req || !_req->complete in s3c2410_udc_queue() 1229 || !_req->buf || !list_empty(&req->queue))) { in s3c2410_udc_queue() 1230 if (!_req) in s3c2410_udc_queue() 1234 __func__, !_req->complete, !_req->buf, in s3c2410_udc_queue() [all …]
|
D | dummy_hcd.c | 107 (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 …]
|
D | goku_udc.c | 281 goku_free_request(struct usb_ep *_ep, struct usb_request *_req) in goku_free_request() argument 285 if (!_ep || !_req) in goku_free_request() 288 req = container_of(_req, struct goku_request, req); in goku_free_request() 707 goku_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in goku_queue() argument 716 req = container_of(_req, struct goku_request, req); in goku_queue() 717 if (unlikely(!_req || !_req->complete in goku_queue() 718 || !_req->buf || !list_empty(&req->queue))) in goku_queue() 741 _ep->name, _req, _req->length, _req->buf); in goku_queue() 746 _req->status = -EINPROGRESS; in goku_queue() 747 _req->actual = 0; in goku_queue() [all …]
|
D | s3c-hsudc.c | 849 static void s3c_hsudc_free_request(struct usb_ep *ep, struct usb_request *_req) in s3c_hsudc_free_request() argument 853 hsreq = our_req(_req); in s3c_hsudc_free_request() 866 static int s3c_hsudc_queue(struct usb_ep *_ep, struct usb_request *_req, in s3c_hsudc_queue() argument 876 hsreq = our_req(_req); in s3c_hsudc_queue() 877 if ((!_req || !_req->complete || !_req->buf || in s3c_hsudc_queue() 889 _req->status = -EINPROGRESS; in s3c_hsudc_queue() 890 _req->actual = 0; in s3c_hsudc_queue() 892 if (!ep_index(hsep) && _req->length == 0) { in s3c_hsudc_queue() 928 static int s3c_hsudc_dequeue(struct usb_ep *_ep, struct usb_request *_req) in s3c_hsudc_dequeue() argument 942 if (&hsreq->req == _req) in s3c_hsudc_dequeue() [all …]
|
D | pxa25x_udc.c | 318 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 …]
|
D | net2272.c | 349 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 …]
|
D | gr_udc.c | 812 struct usb_request *_req) in gr_ep0_testmode_complete() argument 830 static void gr_ep0_dummy_complete(struct usb_ep *_ep, struct usb_request *_req) in gr_ep0_dummy_complete() argument 1656 static void gr_free_request(struct usb_ep *_ep, struct usb_request *_req) in gr_free_request() argument 1660 if (!_ep || !_req) in gr_free_request() 1662 req = container_of(_req, struct gr_request, req); in gr_free_request() 1672 static int gr_queue_ext(struct usb_ep *_ep, struct usb_request *_req, in gr_queue_ext() argument 1680 if (unlikely(!_ep || !_req)) in gr_queue_ext() 1684 req = container_of(_req, struct gr_request, req); in gr_queue_ext() 1711 static int gr_dequeue(struct usb_ep *_ep, struct usb_request *_req) in gr_dequeue() argument 1720 if (!_ep || !_req || (!ep->ep.desc && ep->num != 0)) in gr_dequeue() [all …]
|
D | pxa27x_udc.c | 676 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 …]
|
D | lpc32xx_udc.c | 1786 struct usb_request *_req) in lpc32xx_ep_free_request() argument 1790 req = container_of(_req, struct lpc32xx_request, req); in lpc32xx_ep_free_request() 1797 struct usb_request *_req, gfp_t gfp_flags) in lpc32xx_ep_queue() argument 1805 req = container_of(_req, struct lpc32xx_request, req); in lpc32xx_ep_queue() 1808 if (!_req || !_req->complete || !_req->buf || in lpc32xx_ep_queue() 1829 status = usb_gadget_map_request(&udc->gadget, _req, ep->is_in); in lpc32xx_ep_queue() 1862 _req, _req->length, _req->buf, ep->is_in, _req->zero); in lpc32xx_ep_queue() 1866 _req->status = -EINPROGRESS; in lpc32xx_ep_queue() 1867 _req->actual = 0; in lpc32xx_ep_queue() 1868 req->send_zlp = _req->zero; in lpc32xx_ep_queue() [all …]
|
D | mv_udc_core.c | 623 static void mv_free_request(struct usb_ep *_ep, struct usb_request *_req) in mv_free_request() argument 627 req = container_of(_req, struct mv_req, req); in mv_free_request() 629 if (_req) in mv_free_request() 695 mv_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in mv_ep_queue() argument 698 struct mv_req *req = container_of(_req, struct mv_req, req); in mv_ep_queue() 704 if (!_req || !req->req.complete || !req->req.buf in mv_ep_queue() 721 retval = usb_gadget_map_request(&udc->gadget, _req, ep_dir(ep)); in mv_ep_queue() 757 usb_gadget_unmap_request(&udc->gadget, _req, ep_dir(ep)); in mv_ep_queue() 784 static int mv_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in mv_ep_dequeue() argument 793 if (!_ep || !_req) in mv_ep_dequeue() [all …]
|
D | net2280.c | 523 static void net2280_free_request(struct usb_ep *_ep, struct usb_request *_req) in net2280_free_request() argument 529 if (!_ep || !_req) in net2280_free_request() 532 req = container_of(_req, struct net2280_request, req); in net2280_free_request() 939 net2280_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in net2280_queue() argument 949 req = container_of(_req, struct net2280_request, req); in net2280_queue() 950 if (!_req || !_req->complete || !_req->buf || in net2280_queue() 953 if (_req->length > (~0 & DMA_BYTE_COUNT_MASK)) in net2280_queue() 963 if (ep->dma && _req->length == 0) in net2280_queue() 970 ret = usb_gadget_map_request(&dev->gadget, _req, in net2280_queue() 978 _ep->name, _req, _req->length, _req->buf); in net2280_queue() [all …]
|
D | at91_udc.c | 591 static void at91_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in at91_ep_free_request() argument 595 req = container_of(_req, struct at91_request, req); in at91_ep_free_request() 601 struct usb_request *_req, gfp_t gfp_flags) in at91_ep_queue() argument 609 req = container_of(_req, struct at91_request, req); in at91_ep_queue() 612 if (!_req || !_req->complete in at91_ep_queue() 613 || !_req->buf || !list_empty(&req->queue)) { in at91_ep_queue() 630 _req->status = -EINPROGRESS; in at91_ep_queue() 631 _req->actual = 0; in at91_ep_queue() 700 static int at91_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in at91_ep_dequeue() argument 717 if (&req->req == _req) in at91_ep_dequeue() [all …]
|
D | udc-xilinx.c | 991 static void xudc_free_request(struct usb_ep *_ep, struct usb_request *_req) in xudc_free_request() argument 993 struct xusb_req *req = to_xusb_req(_req); in xudc_free_request() 1056 static int xudc_ep0_queue(struct usb_ep *_ep, struct usb_request *_req, in xudc_ep0_queue() argument 1059 struct xusb_req *req = to_xusb_req(_req); in xudc_ep0_queue() 1080 static int xudc_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in xudc_ep_queue() argument 1083 struct xusb_req *req = to_xusb_req(_req); in xudc_ep_queue() 1102 _req->status = -EINPROGRESS; in xudc_ep_queue() 1103 _req->actual = 0; in xudc_ep_queue() 1142 static int xudc_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in xudc_ep_dequeue() argument 1145 struct xusb_req *req = to_xusb_req(_req); in xudc_ep_dequeue() [all …]
|
D | mv_u3d_core.c | 692 static void mv_u3d_free_request(struct usb_ep *_ep, struct usb_request *_req) in mv_u3d_free_request() argument 694 struct mv_u3d_req *req = container_of(_req, struct mv_u3d_req, req); in mv_u3d_free_request() 783 mv_u3d_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in mv_u3d_ep_queue() argument 791 if (unlikely(!_ep || !_req)) in mv_u3d_ep_queue() 797 req = container_of(_req, struct mv_u3d_req, req); in mv_u3d_ep_queue() 801 && !_req->length) { in mv_u3d_ep_queue() 817 __func__, _req, in mv_u3d_ep_queue() 857 static int mv_u3d_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in mv_u3d_ep_dequeue() argument 868 if (!_ep || !_req) in mv_u3d_ep_dequeue() 878 if (&req->req == _req) in mv_u3d_ep_dequeue() [all …]
|
D | fsl_qe_udc.c | 1687 static void qe_free_request(struct usb_ep *_ep, struct usb_request *_req) in qe_free_request() argument 1691 req = container_of(_req, struct qe_req, req); in qe_free_request() 1693 if (_req) in qe_free_request() 1697 static int __qe_ep_queue(struct usb_ep *_ep, struct usb_request *_req) in __qe_ep_queue() argument 1700 struct qe_req *req = container_of(_req, struct qe_req, req); in __qe_ep_queue() 1706 if (!_req || !req->req.complete || !req->req.buf in __qe_ep_queue() 1765 static int qe_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in qe_ep_queue() argument 1774 ret = __qe_ep_queue(_ep, _req); in qe_ep_queue() 1780 static int qe_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in qe_ep_dequeue() argument 1786 if (!_ep || !_req) in qe_ep_dequeue() [all …]
|
D | atmel_usba_udc.c | 685 usba_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in usba_ep_free_request() argument 687 struct usba_request *req = to_usba_req(_req); in usba_ep_free_request() 689 DBG(DBG_GADGET, "ep_free_request: %p, %p\n", _ep, _req); in usba_ep_free_request() 744 usba_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in usba_ep_queue() argument 746 struct usba_request *req = to_usba_req(_req); in usba_ep_queue() 753 ep->ep.name, req, _req->length); in usba_ep_queue() 763 _req->status = -EINPROGRESS; in usba_ep_queue() 764 _req->actual = 0; in usba_ep_queue() 827 static int usba_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in usba_ep_dequeue() argument 841 if (&req->req == _req) in usba_ep_dequeue() [all …]
|
D | fsl_udc_core.c | 695 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 …]
|
D | fotg210-udc.c | 248 struct usb_request *_req) in fotg210_ep_free_request() argument 252 req = container_of(_req, struct fotg210_request, req); in fotg210_ep_free_request() 409 static int fotg210_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in fotg210_ep_queue() argument 418 req = container_of(_req, struct fotg210_request, req); in fotg210_ep_queue() 443 static int fotg210_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in fotg210_ep_dequeue() argument 450 req = container_of(_req, struct fotg210_request, req); in fotg210_ep_dequeue()
|
D | omap_udc.c | 282 omap_free_request(struct usb_ep *ep, struct usb_request *_req) in omap_free_request() argument 284 struct omap_req *req = container_of(_req, struct omap_req, req); in omap_free_request() 867 omap_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in omap_ep_queue() argument 870 struct omap_req *req = container_of(_req, struct omap_req, req); in omap_ep_queue() 876 if (!_req || !req->req.complete || !req->req.buf in omap_ep_queue() 912 ep->ep.name, _req, _req->length, _req->buf); in omap_ep_queue() 1007 static int omap_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in omap_ep_dequeue() argument 1013 if (!_ep || !_req) in omap_ep_dequeue() 1020 if (&req->req == _req) in omap_ep_dequeue() 1023 if (&req->req != _req) { in omap_ep_dequeue()
|
D | fusb300_udc.c | 284 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()
|
D | m66592-udc.c | 40 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()
|
D | r8a66597-udc.c | 41 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()
|
/drivers/scsi/ |
D | hptiop.c | 307 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 …]
|
D | hptiop.h | 367 void (*post_req)(struct hptiop_hba *hba, struct hptiop_request *_req);
|
/drivers/staging/emxx_udc/ |
D | emxx_udc.c | 150 static void _nbu2ss_ep0_complete(struct usb_ep *_ep, struct usb_request *_req) in _nbu2ss_ep0_complete() argument 158 if ((_ep == NULL) || (_req == NULL)) in _nbu2ss_ep0_complete() 161 udc = (struct nbu2ss_udc *)_req->context; in _nbu2ss_ep0_complete() 2718 struct usb_request *_req) in nbu2ss_ep_free_request() argument 2722 if (_req != NULL) { in nbu2ss_ep_free_request() 2723 req = container_of(_req, struct nbu2ss_req, req); in nbu2ss_ep_free_request() 2733 struct usb_request *_req, in nbu2ss_ep_queue() argument 2744 if ((_ep == NULL) || (_req == NULL)) { in nbu2ss_ep_queue() 2748 if (_req == NULL) in nbu2ss_ep_queue() 2754 req = container_of(_req, struct nbu2ss_req, req); in nbu2ss_ep_queue() [all …]
|