Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/usb/usbip/
Dvudc_dev.c296 static void vep_free_request(struct usb_ep *_ep, struct usb_request *_req) in vep_free_request() argument
300 if (WARN_ON(!_ep || !_req)) in vep_free_request()
303 req = to_vrequest(_req); in vep_free_request()
307 static int vep_queue(struct usb_ep *_ep, struct usb_request *_req, in vep_queue() argument
315 if (!_ep || !_req) in vep_queue()
319 req = to_vrequest(_req); in vep_queue()
323 _req->actual = 0; in vep_queue()
324 _req->status = -EINPROGRESS; in vep_queue()
332 static int vep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in vep_dequeue() argument
341 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()
/Linux-v4.19/drivers/usb/gadget/udc/
Ds3c2410_udc.c1161 s3c2410_udc_free_request(struct usb_ep *_ep, struct usb_request *_req) in s3c2410_udc_free_request() argument
1164 struct s3c2410_request *req = to_s3c2410_req(_req); in s3c2410_udc_free_request()
1166 dprintk(DEBUG_VERBOSE, "%s(%p,%p)\n", __func__, _ep, _req); in s3c2410_udc_free_request()
1168 if (!ep || !_req || (!ep->ep.desc && _ep->name != ep0name)) in s3c2410_udc_free_request()
1178 static int s3c2410_udc_queue(struct usb_ep *_ep, struct usb_request *_req, in s3c2410_udc_queue() argument
1181 struct s3c2410_request *req = to_s3c2410_req(_req); in s3c2410_udc_queue()
1201 if (unlikely(!_req || !_req->complete in s3c2410_udc_queue()
1202 || !_req->buf || !list_empty(&req->queue))) { in s3c2410_udc_queue()
1203 if (!_req) in s3c2410_udc_queue()
1207 __func__, !_req->complete, !_req->buf, in s3c2410_udc_queue()
[all …]
Ddummy_hcd.c105 (struct usb_request *_req) in usb_request_to_dummy_request() argument
107 return container_of(_req, struct dummy_request, req); in usb_request_to_dummy_request()
682 static void dummy_free_request(struct usb_ep *_ep, struct usb_request *_req) in dummy_free_request() argument
686 if (!_ep || !_req) { in dummy_free_request()
691 req = usb_request_to_dummy_request(_req); in dummy_free_request()
700 static int dummy_queue(struct usb_ep *_ep, struct usb_request *_req, in dummy_queue() argument
709 req = usb_request_to_dummy_request(_req); in dummy_queue()
710 if (!_req || !list_empty(&req->queue) || !_req->complete) in dummy_queue()
724 ep, _req, _ep->name, _req->length, _req->buf); in dummy_queue()
726 _req->status = -EINPROGRESS; in dummy_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.c846 static void s3c_hsudc_free_request(struct usb_ep *ep, struct usb_request *_req) in s3c_hsudc_free_request() argument
850 hsreq = our_req(_req); in s3c_hsudc_free_request()
863 static int s3c_hsudc_queue(struct usb_ep *_ep, struct usb_request *_req, in s3c_hsudc_queue() argument
873 hsreq = our_req(_req); in s3c_hsudc_queue()
874 if ((!_req || !_req->complete || !_req->buf || in s3c_hsudc_queue()
886 _req->status = -EINPROGRESS; in s3c_hsudc_queue()
887 _req->actual = 0; in s3c_hsudc_queue()
889 if (!ep_index(hsep) && _req->length == 0) { in s3c_hsudc_queue()
925 static int s3c_hsudc_dequeue(struct usb_ep *_ep, struct usb_request *_req) in s3c_hsudc_dequeue() argument
939 if (&hsreq->req == _req) in s3c_hsudc_dequeue()
[all …]
Dnet2272.c334 net2272_free_request(struct usb_ep *_ep, struct usb_request *_req) in net2272_free_request() argument
338 if (!_ep || !_req) in net2272_free_request()
341 req = container_of(_req, struct net2272_request, req); in net2272_free_request()
809 net2272_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in net2272_queue() argument
818 req = container_of(_req, struct net2272_request, req); in net2272_queue()
819 if (!_req || !_req->complete || !_req->buf in net2272_queue()
831 status = usb_gadget_map_request(&dev->gadget, _req, in net2272_queue()
838 _ep->name, _req, _req->length, _req->buf, in net2272_queue()
839 (unsigned long long) _req->dma, _req->zero ? "zero" : "!zero"); in net2272_queue()
843 _req->status = -EINPROGRESS; in net2272_queue()
[all …]
Dpxa27x_udc.c597 static void pxa_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in pxa_ep_free_request() argument
601 req = container_of(_req, struct pxa27x_request, req); in pxa_ep_free_request()
1046 static int pxa_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in pxa_ep_queue() argument
1059 req = container_of(_req, struct pxa27x_request, req); in pxa_ep_queue()
1062 if (unlikely(!_req || !_req->complete || !_req->buf)) in pxa_ep_queue()
1090 _req, is_first_req ? "yes" : "no", in pxa_ep_queue()
1091 _req->length, _req->buf); in pxa_ep_queue()
1094 _req->status = -ESHUTDOWN; in pxa_ep_queue()
1104 length = _req->length; in pxa_ep_queue()
1105 _req->status = -EINPROGRESS; in pxa_ep_queue()
[all …]
Dgr_udc.c791 struct usb_request *_req) in gr_ep0_testmode_complete() argument
809 static void gr_ep0_dummy_complete(struct usb_ep *_ep, struct usb_request *_req) in gr_ep0_dummy_complete() argument
1635 static void gr_free_request(struct usb_ep *_ep, struct usb_request *_req) in gr_free_request() argument
1639 if (!_ep || !_req) in gr_free_request()
1641 req = container_of(_req, struct gr_request, req); in gr_free_request()
1651 static int gr_queue_ext(struct usb_ep *_ep, struct usb_request *_req, in gr_queue_ext() argument
1659 if (unlikely(!_ep || !_req)) in gr_queue_ext()
1663 req = container_of(_req, struct gr_request, req); in gr_queue_ext()
1690 static int gr_dequeue(struct usb_ep *_ep, struct usb_request *_req) in gr_dequeue() argument
1699 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.c1724 struct usb_request *_req) in lpc32xx_ep_free_request() argument
1728 req = container_of(_req, struct lpc32xx_request, req); in lpc32xx_ep_free_request()
1735 struct usb_request *_req, gfp_t gfp_flags) in lpc32xx_ep_queue() argument
1743 req = container_of(_req, struct lpc32xx_request, req); in lpc32xx_ep_queue()
1746 if (!_ep || !_req || !_req->complete || !_req->buf || in lpc32xx_ep_queue()
1758 status = usb_gadget_map_request(&udc->gadget, _req, ep->is_in); in lpc32xx_ep_queue()
1791 _req, _req->length, _req->buf, ep->is_in, _req->zero); in lpc32xx_ep_queue()
1795 _req->status = -EINPROGRESS; in lpc32xx_ep_queue()
1796 _req->actual = 0; in lpc32xx_ep_queue()
1797 req->send_zlp = _req->zero; in lpc32xx_ep_queue()
[all …]
Dmv_udc_core.c611 static void mv_free_request(struct usb_ep *_ep, struct usb_request *_req) in mv_free_request() argument
615 req = container_of(_req, struct mv_req, req); in mv_free_request()
617 if (_req) in mv_free_request()
683 mv_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in mv_ep_queue() argument
686 struct mv_req *req = container_of(_req, struct mv_req, req); in mv_ep_queue()
692 if (!_req || !req->req.complete || !req->req.buf in mv_ep_queue()
709 retval = usb_gadget_map_request(&udc->gadget, _req, ep_dir(ep)); in mv_ep_queue()
745 usb_gadget_unmap_request(&udc->gadget, _req, ep_dir(ep)); in mv_ep_queue()
772 static int mv_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in mv_ep_dequeue() argument
781 if (!_ep || !_req) in mv_ep_dequeue()
[all …]
Dudc-xilinx.c982 static void xudc_free_request(struct usb_ep *_ep, struct usb_request *_req) in xudc_free_request() argument
984 struct xusb_req *req = to_xusb_req(_req); in xudc_free_request()
1047 static int xudc_ep0_queue(struct usb_ep *_ep, struct usb_request *_req, in xudc_ep0_queue() argument
1050 struct xusb_req *req = to_xusb_req(_req); in xudc_ep0_queue()
1071 static int xudc_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in xudc_ep_queue() argument
1074 struct xusb_req *req = to_xusb_req(_req); in xudc_ep_queue()
1093 _req->status = -EINPROGRESS; in xudc_ep_queue()
1094 _req->actual = 0; in xudc_ep_queue()
1133 static int xudc_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in xudc_ep_dequeue() argument
1136 struct xusb_req *req = to_xusb_req(_req); in xudc_ep_dequeue()
[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 …]
Dnet2280.c581 static void net2280_free_request(struct usb_ep *_ep, struct usb_request *_req) in net2280_free_request() argument
587 if (!_ep || !_req) { in net2280_free_request()
589 __func__, _ep, _req); in net2280_free_request()
593 req = container_of(_req, struct net2280_request, req); in net2280_free_request()
989 net2280_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in net2280_queue() argument
1005 req = container_of(_req, struct net2280_request, req); in net2280_queue()
1006 if (!_req || !_req->complete || !_req->buf || in net2280_queue()
1011 if (_req->length > (~0 & DMA_BYTE_COUNT_MASK)) { in net2280_queue()
1022 if (ep->dma && _req->length == 0) { in net2280_queue()
1029 ret = usb_gadget_map_request(&dev->gadget, _req, in net2280_queue()
[all …]
Dmv_u3d_core.c680 static void mv_u3d_free_request(struct usb_ep *_ep, struct usb_request *_req) in mv_u3d_free_request() argument
682 struct mv_u3d_req *req = container_of(_req, struct mv_u3d_req, req); in mv_u3d_free_request()
771 mv_u3d_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in mv_u3d_ep_queue() argument
779 if (unlikely(!_ep || !_req)) in mv_u3d_ep_queue()
785 req = container_of(_req, struct mv_u3d_req, req); in mv_u3d_ep_queue()
789 && !_req->length) { in mv_u3d_ep_queue()
805 __func__, _req, in mv_u3d_ep_queue()
845 static int mv_u3d_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in mv_u3d_ep_dequeue() argument
856 if (!_ep || !_req) in mv_u3d_ep_dequeue()
866 if (&req->req == _req) in mv_u3d_ep_dequeue()
[all …]
Drenesas_usb3.c370 #define usb_req_to_usb3_req(_req) container_of(_req, \ argument
1504 static int renesas_usb3_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in renesas_usb3_ep_queue() argument
1508 struct renesas_usb3_request *usb3_req = usb_req_to_usb3_req(_req); in renesas_usb3_ep_queue()
1513 _req->length); in renesas_usb3_ep_queue()
1515 _req->status = -EINPROGRESS; in renesas_usb3_ep_queue()
1516 _req->actual = 0; in renesas_usb3_ep_queue()
2182 static void __renesas_usb3_ep_free_request(struct usb_request *_req) in __renesas_usb3_ep_free_request() argument
2184 struct renesas_usb3_request *usb3_req = usb_req_to_usb3_req(_req); in __renesas_usb3_ep_free_request()
2196 struct usb_request *_req) in renesas_usb3_ep_free_request() argument
2198 __renesas_usb3_ep_free_request(_req); in renesas_usb3_ep_free_request()
[all …]
Dfsl_qe_udc.c1677 static void qe_free_request(struct usb_ep *_ep, struct usb_request *_req) in qe_free_request() argument
1681 req = container_of(_req, struct qe_req, req); in qe_free_request()
1683 if (_req) in qe_free_request()
1687 static int __qe_ep_queue(struct usb_ep *_ep, struct usb_request *_req) in __qe_ep_queue() argument
1690 struct qe_req *req = container_of(_req, struct qe_req, req); in __qe_ep_queue()
1696 if (!_req || !req->req.complete || !req->req.buf in __qe_ep_queue()
1755 static int qe_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in qe_ep_queue() argument
1764 ret = __qe_ep_queue(_ep, _req); in qe_ep_queue()
1770 static int qe_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in qe_ep_dequeue() argument
1776 if (!_ep || !_req) in qe_ep_dequeue()
[all …]
Datmel_usba_udc.c710 usba_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in usba_ep_free_request() argument
712 struct usba_request *req = to_usba_req(_req); in usba_ep_free_request()
714 DBG(DBG_GADGET, "ep_free_request: %p, %p\n", _ep, _req); in usba_ep_free_request()
769 usba_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in usba_ep_queue() argument
771 struct usba_request *req = to_usba_req(_req); in usba_ep_queue()
778 ep->ep.name, req, _req->length); in usba_ep_queue()
788 _req->status = -EINPROGRESS; in usba_ep_queue()
789 _req->actual = 0; in usba_ep_queue()
852 static int usba_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in usba_ep_dequeue() argument
866 if (&req->req == _req) in usba_ep_dequeue()
[all …]
/Linux-v4.19/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()
883 struct hptiop_request *_req) in hptiop_post_req_itl() argument
885 struct hpt_iop_request_header *reqhdr = _req->req_virt; in hptiop_post_req_itl()
888 (u32)_req->index); in hptiop_post_req_itl()
902 writel(_req->req_shifted_phy | size_bits, in hptiop_post_req_itl()
905 writel(_req->req_shifted_phy | IOPMU_QUEUE_ADDR_HOST_BIT, in hptiop_post_req_itl()
910 struct hptiop_request *_req) in hptiop_post_req_mv() argument
912 struct hpt_iop_request_header *reqhdr = _req->req_virt; in hptiop_post_req_mv()
915 reqhdr->context = cpu_to_le32(_req->index<<8 | in hptiop_post_req_mv()
[all …]
/Linux-v4.19/drivers/usb/gadget/udc/bdc/
Dbdc_ep.c1377 static void ep0_set_sel_cmpl(struct usb_ep *_ep, struct usb_request *_req) in ep0_set_sel_cmpl() argument
1709 struct usb_request *_req, gfp_t gfp_flags) in bdc_gadget_ep_queue() argument
1720 if (!_req || !_req->complete || !_req->buf) in bdc_gadget_ep_queue()
1724 req = to_bdc_req(_req); in bdc_gadget_ep_queue()
1728 _req, ep->name, _req->length, _req->zero); in bdc_gadget_ep_queue()
1733 _req, ep->name); in bdc_gadget_ep_queue()
1737 if (_req->length > MAX_XFR_LEN) { in bdc_gadget_ep_queue()
1740 MAX_XFR_LEN, _req->length); in bdc_gadget_ep_queue()
1755 struct usb_request *_req) in bdc_gadget_ep_dequeue() argument
1763 if (!_ep || !_req) in bdc_gadget_ep_dequeue()
[all …]
/Linux-v4.19/drivers/usb/isp1760/
Disp1760-udc.c818 static void isp1760_ep_free_request(struct usb_ep *ep, struct usb_request *_req) in isp1760_ep_free_request() argument
820 struct isp1760_request *req = req_to_udc_req(_req); in isp1760_ep_free_request()
825 static int isp1760_ep_queue(struct usb_ep *ep, struct usb_request *_req, in isp1760_ep_queue() argument
828 struct isp1760_request *req = req_to_udc_req(_req); in isp1760_ep_queue()
835 _req->status = -EINPROGRESS; in isp1760_ep_queue()
836 _req->actual = 0; in isp1760_ep_queue()
841 "%s: req %p (%u bytes%s) ep %p(0x%02x)\n", __func__, _req, in isp1760_ep_queue()
842 _req->length, _req->zero ? " (zlp)" : "", uep, uep->addr); in isp1760_ep_queue()
847 if (_req->length != udc->ep0_length && in isp1760_ep_queue()
851 __func__, _req->length, req); in isp1760_ep_queue()
[all …]
/Linux-v4.19/drivers/staging/emxx_udc/
Demxx_udc.c134 static void _nbu2ss_ep0_complete(struct usb_ep *_ep, struct usb_request *_req) in _nbu2ss_ep0_complete() argument
142 if ((!_ep) || (!_req)) in _nbu2ss_ep0_complete()
145 udc = (struct nbu2ss_udc *)_req->context; in _nbu2ss_ep0_complete()
2611 struct usb_request *_req) in nbu2ss_ep_free_request() argument
2615 if (_req) { in nbu2ss_ep_free_request()
2616 req = container_of(_req, struct nbu2ss_req, req); in nbu2ss_ep_free_request()
2625 struct usb_request *_req, in nbu2ss_ep_queue() argument
2636 if ((!_ep) || (!_req)) { in nbu2ss_ep_queue()
2640 if (!_req) in nbu2ss_ep_queue()
2646 req = container_of(_req, struct nbu2ss_req, req); in nbu2ss_ep_queue()
[all …]
/Linux-v4.19/include/xen/interface/io/
Dring.h196 #define RING_COPY_REQUEST(_r, _idx, _req) do { \ argument
198 *(_req) = *(volatile typeof(_req))RING_GET_REQUEST(_r, _idx); \
/Linux-v4.19/arch/s390/kernel/
Ddiag.c247 register unsigned long _req asm("2") = (addr_t) req; in __diag26c()
258 : [rx] "d" (_req), "d" (_resp), [ry] "d" (_subcode) in __diag26c()

12