Home
last modified time | relevance | path

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

12

/drivers/usb/usbip/
Dvudc_dev.c296 static void vep_free_request(struct usb_ep *_ep, struct usb_request *_req) in vep_free_request() argument
301 if (!_req) in vep_free_request()
304 req = to_vrequest(_req); in vep_free_request()
308 static int vep_queue(struct usb_ep *_ep, struct usb_request *_req, in vep_queue() argument
316 if (!_ep || !_req) in vep_queue()
320 req = to_vrequest(_req); in vep_queue()
324 _req->actual = 0; in vep_queue()
325 _req->status = -EINPROGRESS; in vep_queue()
333 static int vep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in vep_dequeue() argument
342 if (!_ep || !_req) in vep_dequeue()
[all …]
Dvudc.h128 struct usb_request *_req) in to_vrequest() argument
130 return container_of(_req, struct vrequest, req); in to_vrequest()
/drivers/usb/gadget/udc/
Ds3c2410_udc.c1139 s3c2410_udc_free_request(struct usb_ep *_ep, struct usb_request *_req) in s3c2410_udc_free_request() argument
1142 struct s3c2410_request *req = to_s3c2410_req(_req); in s3c2410_udc_free_request()
1144 dprintk(DEBUG_VERBOSE, "%s(%p,%p)\n", __func__, _ep, _req); in s3c2410_udc_free_request()
1146 if (!ep || !_req || (!ep->ep.desc && _ep->name != ep0name)) in s3c2410_udc_free_request()
1156 static int s3c2410_udc_queue(struct usb_ep *_ep, struct usb_request *_req, in s3c2410_udc_queue() argument
1159 struct s3c2410_request *req = to_s3c2410_req(_req); in s3c2410_udc_queue()
1179 if (unlikely(!_req || !_req->complete in s3c2410_udc_queue()
1180 || !_req->buf || !list_empty(&req->queue))) { in s3c2410_udc_queue()
1181 if (!_req) in s3c2410_udc_queue()
1185 __func__, !_req->complete, !_req->buf, in s3c2410_udc_queue()
[all …]
Ddummy_hcd.c106 (struct usb_request *_req) in usb_request_to_dummy_request() argument
108 return container_of(_req, struct dummy_request, req); in usb_request_to_dummy_request()
672 static void dummy_free_request(struct usb_ep *_ep, struct usb_request *_req) in dummy_free_request() argument
676 if (!_ep || !_req) { in dummy_free_request()
681 req = usb_request_to_dummy_request(_req); in dummy_free_request()
690 static int dummy_queue(struct usb_ep *_ep, struct usb_request *_req, in dummy_queue() argument
699 req = usb_request_to_dummy_request(_req); in dummy_queue()
700 if (!_req || !list_empty(&req->queue) || !_req->complete) in dummy_queue()
714 ep, _req, _ep->name, _req->length, _req->buf); in dummy_queue()
716 _req->status = -EINPROGRESS; in dummy_queue()
[all …]
Ds3c-hsudc.c797 static void s3c_hsudc_free_request(struct usb_ep *ep, struct usb_request *_req) in s3c_hsudc_free_request() argument
801 hsreq = our_req(_req); in s3c_hsudc_free_request()
814 static int s3c_hsudc_queue(struct usb_ep *_ep, struct usb_request *_req, in s3c_hsudc_queue() argument
824 hsreq = our_req(_req); in s3c_hsudc_queue()
825 if ((!_req || !_req->complete || !_req->buf || in s3c_hsudc_queue()
837 _req->status = -EINPROGRESS; in s3c_hsudc_queue()
838 _req->actual = 0; in s3c_hsudc_queue()
840 if (!ep_index(hsep) && _req->length == 0) { in s3c_hsudc_queue()
876 static int s3c_hsudc_dequeue(struct usb_ep *_ep, struct usb_request *_req) in s3c_hsudc_dequeue() argument
890 if (&hsreq->req == _req) in s3c_hsudc_dequeue()
[all …]
Dgoku_udc.c285 goku_free_request(struct usb_ep *_ep, struct usb_request *_req) in goku_free_request() argument
289 if (!_ep || !_req) in goku_free_request()
292 req = container_of(_req, struct goku_request, req); in goku_free_request()
711 goku_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in goku_queue() argument
720 req = container_of(_req, struct goku_request, req); in goku_queue()
721 if (unlikely(!_req || !_req->complete in goku_queue()
722 || !_req->buf || !list_empty(&req->queue))) in goku_queue()
745 _ep->name, _req, _req->length, _req->buf); in goku_queue()
750 _req->status = -EINPROGRESS; in goku_queue()
751 _req->actual = 0; in goku_queue()
[all …]
Dnet2272.c333 net2272_free_request(struct usb_ep *_ep, struct usb_request *_req) in net2272_free_request() argument
337 if (!_ep || !_req) in net2272_free_request()
340 req = container_of(_req, struct net2272_request, req); in net2272_free_request()
808 net2272_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in net2272_queue() argument
817 req = container_of(_req, struct net2272_request, req); in net2272_queue()
818 if (!_req || !_req->complete || !_req->buf in net2272_queue()
830 status = usb_gadget_map_request(&dev->gadget, _req, in net2272_queue()
837 _ep->name, _req, _req->length, _req->buf, in net2272_queue()
838 (unsigned long long) _req->dma, _req->zero ? "zero" : "!zero"); in net2272_queue()
842 _req->status = -EINPROGRESS; in net2272_queue()
[all …]
Dpxa27x_udc.c594 static void pxa_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in pxa_ep_free_request() argument
598 req = container_of(_req, struct pxa27x_request, req); in pxa_ep_free_request()
1043 static int pxa_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in pxa_ep_queue() argument
1056 req = container_of(_req, struct pxa27x_request, req); in pxa_ep_queue()
1059 if (unlikely(!_req || !_req->complete || !_req->buf)) in pxa_ep_queue()
1087 _req, is_first_req ? "yes" : "no", in pxa_ep_queue()
1088 _req->length, _req->buf); in pxa_ep_queue()
1091 _req->status = -ESHUTDOWN; in pxa_ep_queue()
1101 length = _req->length; in pxa_ep_queue()
1102 _req->status = -EINPROGRESS; in pxa_ep_queue()
[all …]
Dgr_udc.c792 struct usb_request *_req) in gr_ep0_testmode_complete() argument
810 static void gr_ep0_dummy_complete(struct usb_ep *_ep, struct usb_request *_req) in gr_ep0_dummy_complete() argument
1636 static void gr_free_request(struct usb_ep *_ep, struct usb_request *_req) in gr_free_request() argument
1640 if (!_ep || !_req) in gr_free_request()
1642 req = container_of(_req, struct gr_request, req); in gr_free_request()
1652 static int gr_queue_ext(struct usb_ep *_ep, struct usb_request *_req, in gr_queue_ext() argument
1660 if (unlikely(!_ep || !_req)) in gr_queue_ext()
1664 req = container_of(_req, struct gr_request, req); in gr_queue_ext()
1691 static int gr_dequeue(struct usb_ep *_ep, struct usb_request *_req) in gr_dequeue() argument
1700 if (!_ep || !_req || (!ep->ep.desc && ep->num != 0)) in gr_dequeue()
[all …]
Dpxa25x_udc.c528 pxa25x_ep_free_request (struct usb_ep *_ep, struct usb_request *_req) in pxa25x_ep_free_request() argument
532 req = container_of (_req, struct pxa25x_request, req); in pxa25x_ep_free_request()
840 pxa25x_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in pxa25x_ep_queue() argument
847 req = container_of(_req, struct pxa25x_request, req); in pxa25x_ep_queue()
848 if (unlikely (!_req || !_req->complete || !_req->buf in pxa25x_ep_queue()
875 _ep->name, _req, _req->length, _req->buf); in pxa25x_ep_queue()
879 _req->status = -EINPROGRESS; in pxa25x_ep_queue()
880 _req->actual = 0; in pxa25x_ep_queue()
885 unsigned length = _req->length; in pxa25x_ep_queue()
966 static int pxa25x_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in pxa25x_ep_dequeue() argument
[all …]
Dlpc32xx_udc.c1723 struct usb_request *_req) in lpc32xx_ep_free_request() argument
1727 req = container_of(_req, struct lpc32xx_request, req); in lpc32xx_ep_free_request()
1734 struct usb_request *_req, gfp_t gfp_flags) in lpc32xx_ep_queue() argument
1742 req = container_of(_req, struct lpc32xx_request, req); in lpc32xx_ep_queue()
1745 if (!_ep || !_req || !_req->complete || !_req->buf || in lpc32xx_ep_queue()
1757 status = usb_gadget_map_request(&udc->gadget, _req, ep->is_in); in lpc32xx_ep_queue()
1790 _req, _req->length, _req->buf, ep->is_in, _req->zero); in lpc32xx_ep_queue()
1794 _req->status = -EINPROGRESS; in lpc32xx_ep_queue()
1795 _req->actual = 0; in lpc32xx_ep_queue()
1796 req->send_zlp = _req->zero; in lpc32xx_ep_queue()
[all …]
Dmv_udc_core.c610 static void mv_free_request(struct usb_ep *_ep, struct usb_request *_req) in mv_free_request() argument
614 req = container_of(_req, struct mv_req, req); in mv_free_request()
616 if (_req) in mv_free_request()
682 mv_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in mv_ep_queue() argument
685 struct mv_req *req = container_of(_req, struct mv_req, req); in mv_ep_queue()
691 if (!_req || !req->req.complete || !req->req.buf in mv_ep_queue()
708 retval = usb_gadget_map_request(&udc->gadget, _req, ep_dir(ep)); in mv_ep_queue()
744 usb_gadget_unmap_request(&udc->gadget, _req, ep_dir(ep)); in mv_ep_queue()
771 static int mv_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in mv_ep_dequeue() argument
780 if (!_ep || !_req) in mv_ep_dequeue()
[all …]
Dnet2280.c580 static void net2280_free_request(struct usb_ep *_ep, struct usb_request *_req) in net2280_free_request() argument
586 if (!_ep || !_req) { in net2280_free_request()
588 __func__, _ep, _req); in net2280_free_request()
592 req = container_of(_req, struct net2280_request, req); in net2280_free_request()
985 net2280_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in net2280_queue() argument
1001 req = container_of(_req, struct net2280_request, req); in net2280_queue()
1002 if (!_req || !_req->complete || !_req->buf || in net2280_queue()
1007 if (_req->length > (~0 & DMA_BYTE_COUNT_MASK)) { in net2280_queue()
1018 if (ep->dma && _req->length == 0) { in net2280_queue()
1025 ret = usb_gadget_map_request(&dev->gadget, _req, in net2280_queue()
[all …]
Dat91_udc.c595 static void at91_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in at91_ep_free_request() argument
599 req = container_of(_req, struct at91_request, req); in at91_ep_free_request()
605 struct usb_request *_req, gfp_t gfp_flags) in at91_ep_queue() argument
613 req = container_of(_req, struct at91_request, req); in at91_ep_queue()
616 if (!_req || !_req->complete in at91_ep_queue()
617 || !_req->buf || !list_empty(&req->queue)) { in at91_ep_queue()
634 _req->status = -EINPROGRESS; in at91_ep_queue()
635 _req->actual = 0; in at91_ep_queue()
704 static int at91_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in at91_ep_dequeue() argument
721 if (&req->req == _req) in at91_ep_dequeue()
[all …]
Dudc-xilinx.c986 static void xudc_free_request(struct usb_ep *_ep, struct usb_request *_req) in xudc_free_request() argument
988 struct xusb_req *req = to_xusb_req(_req); in xudc_free_request()
1051 static int xudc_ep0_queue(struct usb_ep *_ep, struct usb_request *_req, in xudc_ep0_queue() argument
1054 struct xusb_req *req = to_xusb_req(_req); in xudc_ep0_queue()
1075 static int xudc_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in xudc_ep_queue() argument
1078 struct xusb_req *req = to_xusb_req(_req); in xudc_ep_queue()
1097 _req->status = -EINPROGRESS; in xudc_ep_queue()
1098 _req->actual = 0; in xudc_ep_queue()
1137 static int xudc_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in xudc_ep_dequeue() argument
1140 struct xusb_req *req = to_xusb_req(_req); in xudc_ep_dequeue()
[all …]
Dmax3420_udc.c1021 static void max3420_free_request(struct usb_ep *_ep, struct usb_request *_req) in max3420_free_request() argument
1023 kfree(to_max3420_req(_req)); in max3420_free_request()
1026 static int max3420_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in max3420_ep_queue() argument
1029 struct max3420_req *req = to_max3420_req(_req); in max3420_ep_queue()
1034 _req->status = -EINPROGRESS; in max3420_ep_queue()
1035 _req->actual = 0; in max3420_ep_queue()
1045 static int max3420_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in max3420_ep_dequeue() argument
1047 struct max3420_req *t, *req = to_max3420_req(_req); in max3420_ep_dequeue()
Dmv_u3d_core.c679 static void mv_u3d_free_request(struct usb_ep *_ep, struct usb_request *_req) in mv_u3d_free_request() argument
681 struct mv_u3d_req *req = container_of(_req, struct mv_u3d_req, req); in mv_u3d_free_request()
770 mv_u3d_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in mv_u3d_ep_queue() argument
778 if (unlikely(!_ep || !_req)) in mv_u3d_ep_queue()
784 req = container_of(_req, struct mv_u3d_req, req); in mv_u3d_ep_queue()
788 && !_req->length) { in mv_u3d_ep_queue()
804 __func__, _req, in mv_u3d_ep_queue()
844 static int mv_u3d_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in mv_u3d_ep_dequeue() argument
855 if (!_ep || !_req) in mv_u3d_ep_dequeue()
865 if (&req->req == _req) in mv_u3d_ep_dequeue()
[all …]
Dfsl_qe_udc.c1683 static void qe_free_request(struct usb_ep *_ep, struct usb_request *_req) in qe_free_request() argument
1687 req = container_of(_req, struct qe_req, req); in qe_free_request()
1689 if (_req) in qe_free_request()
1693 static int __qe_ep_queue(struct usb_ep *_ep, struct usb_request *_req) in __qe_ep_queue() argument
1696 struct qe_req *req = container_of(_req, struct qe_req, req); in __qe_ep_queue()
1702 if (!_req || !req->req.complete || !req->req.buf in __qe_ep_queue()
1761 static int qe_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in qe_ep_queue() argument
1770 ret = __qe_ep_queue(_ep, _req); in qe_ep_queue()
1776 static int qe_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in qe_ep_dequeue() argument
1782 if (!_ep || !_req) in qe_ep_dequeue()
[all …]
Drenesas_usb3.c375 #define usb_req_to_usb3_req(_req) container_of(_req, \ argument
1529 static int renesas_usb3_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in renesas_usb3_ep_queue() argument
1533 struct renesas_usb3_request *usb3_req = usb_req_to_usb3_req(_req); in renesas_usb3_ep_queue()
1538 _req->length); in renesas_usb3_ep_queue()
1540 _req->status = -EINPROGRESS; in renesas_usb3_ep_queue()
1541 _req->actual = 0; in renesas_usb3_ep_queue()
2208 static void __renesas_usb3_ep_free_request(struct usb_request *_req) in __renesas_usb3_ep_free_request() argument
2210 struct renesas_usb3_request *usb3_req = usb_req_to_usb3_req(_req); in __renesas_usb3_ep_free_request()
2222 struct usb_request *_req) in renesas_usb3_ep_free_request() argument
2224 __renesas_usb3_ep_free_request(_req); in renesas_usb3_ep_free_request()
[all …]
Datmel_usba_udc.c717 usba_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in usba_ep_free_request() argument
719 struct usba_request *req = to_usba_req(_req); in usba_ep_free_request()
721 DBG(DBG_GADGET, "ep_free_request: %p, %p\n", _ep, _req); in usba_ep_free_request()
776 usba_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in usba_ep_queue() argument
778 struct usba_request *req = to_usba_req(_req); in usba_ep_queue()
785 ep->ep.name, req, _req->length); in usba_ep_queue()
795 _req->status = -EINPROGRESS; in usba_ep_queue()
796 _req->actual = 0; in usba_ep_queue()
859 static int usba_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in usba_ep_dequeue() argument
868 ep->ep.name, _req); in usba_ep_dequeue()
[all …]
Dfsl_udc_core.c687 static void fsl_free_request(struct usb_ep *_ep, struct usb_request *_req) in fsl_free_request() argument
691 req = container_of(_req, struct fsl_req, req); in fsl_free_request()
693 if (_req) in fsl_free_request()
864 fsl_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in fsl_ep_queue() argument
867 struct fsl_req *req = container_of(_req, struct fsl_req, req); in fsl_ep_queue()
873 if (!_req || !req->req.complete || !req->req.buf in fsl_ep_queue()
918 static int fsl_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in fsl_ep_dequeue() argument
926 if (!_ep || !_req) in fsl_ep_dequeue()
944 if (&req->req == _req) in fsl_ep_dequeue()
947 if (&req->req != _req) { in fsl_ep_dequeue()
[all …]
/drivers/scsi/
Dhptiop.c299 void __iomem *_req, u32 millisec) in iop_send_sync_request_itl() argument
301 struct hpt_iop_request_header __iomem *req = _req; in iop_send_sync_request_itl()
874 struct hptiop_request *_req) in hptiop_post_req_itl() argument
876 struct hpt_iop_request_header *reqhdr = _req->req_virt; in hptiop_post_req_itl()
879 (u32)_req->index); in hptiop_post_req_itl()
893 writel(_req->req_shifted_phy | size_bits, in hptiop_post_req_itl()
896 writel(_req->req_shifted_phy | IOPMU_QUEUE_ADDR_HOST_BIT, in hptiop_post_req_itl()
901 struct hptiop_request *_req) in hptiop_post_req_mv() argument
903 struct hpt_iop_request_header *reqhdr = _req->req_virt; in hptiop_post_req_mv()
906 reqhdr->context = cpu_to_le32(_req->index<<8 | in hptiop_post_req_mv()
[all …]
/drivers/usb/gadget/udc/bdc/
Dbdc_ep.c1379 static void ep0_set_sel_cmpl(struct usb_ep *_ep, struct usb_request *_req) in ep0_set_sel_cmpl() argument
1711 struct usb_request *_req, gfp_t gfp_flags) in bdc_gadget_ep_queue() argument
1722 if (!_req || !_req->complete || !_req->buf) in bdc_gadget_ep_queue()
1726 req = to_bdc_req(_req); in bdc_gadget_ep_queue()
1730 _req, ep->name, _req->length, _req->zero); in bdc_gadget_ep_queue()
1735 _req, ep->name); in bdc_gadget_ep_queue()
1739 if (_req->length > MAX_XFR_LEN) { in bdc_gadget_ep_queue()
1742 MAX_XFR_LEN, _req->length); in bdc_gadget_ep_queue()
1757 struct usb_request *_req) in bdc_gadget_ep_dequeue() argument
1765 if (!_ep || !_req) in bdc_gadget_ep_dequeue()
[all …]
/drivers/usb/isp1760/
Disp1760-udc.c888 static void isp1760_ep_free_request(struct usb_ep *ep, struct usb_request *_req) in isp1760_ep_free_request() argument
890 struct isp1760_request *req = req_to_udc_req(_req); in isp1760_ep_free_request()
895 static int isp1760_ep_queue(struct usb_ep *ep, struct usb_request *_req, in isp1760_ep_queue() argument
898 struct isp1760_request *req = req_to_udc_req(_req); in isp1760_ep_queue()
905 _req->status = -EINPROGRESS; in isp1760_ep_queue()
906 _req->actual = 0; in isp1760_ep_queue()
911 "%s: req %p (%u bytes%s) ep %p(0x%02x)\n", __func__, _req, in isp1760_ep_queue()
912 _req->length, _req->zero ? " (zlp)" : "", uep, uep->addr); in isp1760_ep_queue()
917 if (_req->length != udc->ep0_length && in isp1760_ep_queue()
921 __func__, _req->length, req); in isp1760_ep_queue()
[all …]
/drivers/staging/emxx_udc/
Demxx_udc.c132 static void _nbu2ss_ep0_complete(struct usb_ep *_ep, struct usb_request *_req) in _nbu2ss_ep0_complete() argument
141 if (!_ep || !_req) in _nbu2ss_ep0_complete()
144 udc = (struct nbu2ss_udc *)_req->context; in _nbu2ss_ep0_complete()
2521 struct usb_request *_req) in nbu2ss_ep_free_request() argument
2525 if (_req) { in nbu2ss_ep_free_request()
2526 req = container_of(_req, struct nbu2ss_req, req); in nbu2ss_ep_free_request()
2534 struct usb_request *_req, gfp_t gfp_flags) in nbu2ss_ep_queue() argument
2544 if (!_ep || !_req) { in nbu2ss_ep_queue()
2548 if (!_req) in nbu2ss_ep_queue()
2554 req = container_of(_req, struct nbu2ss_req, req); in nbu2ss_ep_queue()
[all …]

12