Home
last modified time | relevance | path

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

12

/linux-6.6.21/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()
/linux-6.6.21/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 …]
/linux-6.6.21/drivers/usb/gadget/udc/
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 …]
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 …]
Daspeed_udc.c467 struct usb_request *_req) in ast_udc_ep_free_request() argument
469 struct ast_udc_request *req = to_ast_req(_req); in ast_udc_ep_free_request()
626 static int ast_udc_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in ast_udc_ep_queue() argument
629 struct ast_udc_request *req = to_ast_req(_req); in ast_udc_ep_queue()
636 if (unlikely(!_req || !_req->complete || !_req->buf || !_ep)) { in ast_udc_ep_queue()
663 _req->length, _req->dma, _req->zero, ep->dir_in); in ast_udc_ep_queue()
691 static int ast_udc_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in ast_udc_ep_dequeue() argument
703 if (&req->req == _req) { in ast_udc_ep_dequeue()
706 _req->status = -ECONNRESET; in ast_udc_ep_dequeue()
712 if (&req->req != _req) in ast_udc_ep_dequeue()
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 …]
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 …]
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.c524 pxa25x_ep_free_request (struct usb_ep *_ep, struct usb_request *_req) in pxa25x_ep_free_request() argument
528 req = container_of (_req, struct pxa25x_request, req); in pxa25x_ep_free_request()
836 pxa25x_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in pxa25x_ep_queue() argument
843 req = container_of(_req, struct pxa25x_request, req); in pxa25x_ep_queue()
844 if (unlikely (!_req || !_req->complete || !_req->buf in pxa25x_ep_queue()
871 _ep->name, _req, _req->length, _req->buf); in pxa25x_ep_queue()
875 _req->status = -EINPROGRESS; in pxa25x_ep_queue()
876 _req->actual = 0; in pxa25x_ep_queue()
881 unsigned length = _req->length; in pxa25x_ep_queue()
962 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 …]
Dmax3420_udc.c1019 static void max3420_free_request(struct usb_ep *_ep, struct usb_request *_req) in max3420_free_request() argument
1021 kfree(to_max3420_req(_req)); in max3420_free_request()
1024 static int max3420_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in max3420_ep_queue() argument
1027 struct max3420_req *req = to_max3420_req(_req); in max3420_ep_queue()
1032 _req->status = -EINPROGRESS; in max3420_ep_queue()
1033 _req->actual = 0; in max3420_ep_queue()
1043 static int max3420_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in max3420_ep_dequeue() argument
1046 struct max3420_req *req = to_max3420_req(_req); in max3420_ep_dequeue()
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()
977 net2280_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in net2280_queue() argument
993 req = container_of(_req, struct net2280_request, req); in net2280_queue()
994 if (!_req || !_req->complete || !_req->buf || in net2280_queue()
999 if (_req->length > (~0 & DMA_BYTE_COUNT_MASK)) { in net2280_queue()
1010 if (ep->dma && _req->length == 0) { in net2280_queue()
1017 ret = usb_gadget_map_request(&dev->gadget, _req, in net2280_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 …]
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 (&iter->req != _req) in at91_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 (&iter->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
1783 if (!_ep || !_req) in qe_ep_dequeue()
[all …]
Drenesas_usb3.c383 #define usb_req_to_usb3_req(_req) container_of(_req, \ argument
1587 static int renesas_usb3_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in renesas_usb3_ep_queue() argument
1591 struct renesas_usb3_request *usb3_req = usb_req_to_usb3_req(_req); in renesas_usb3_ep_queue()
1596 _req->length); in renesas_usb3_ep_queue()
1598 _req->status = -EINPROGRESS; in renesas_usb3_ep_queue()
1599 _req->actual = 0; in renesas_usb3_ep_queue()
2277 static void __renesas_usb3_ep_free_request(struct usb_request *_req) in __renesas_usb3_ep_free_request() argument
2279 struct renesas_usb3_request *usb3_req = usb_req_to_usb3_req(_req); in __renesas_usb3_ep_free_request()
2291 struct usb_request *_req) in renesas_usb3_ep_free_request() argument
2293 __renesas_usb3_ep_free_request(_req); in renesas_usb3_ep_free_request()
[all …]
Dudc-xilinx.c987 static void xudc_free_request(struct usb_ep *_ep, struct usb_request *_req) in xudc_free_request() argument
989 struct xusb_req *req = to_xusb_req(_req); in xudc_free_request()
1052 static int xudc_ep0_queue(struct usb_ep *_ep, struct usb_request *_req, in xudc_ep0_queue() argument
1055 struct xusb_req *req = to_xusb_req(_req); in xudc_ep0_queue()
1076 static int xudc_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in xudc_ep_queue() argument
1079 struct xusb_req *req = to_xusb_req(_req); in xudc_ep_queue()
1098 _req->status = -EINPROGRESS; in xudc_ep_queue()
1099 _req->actual = 0; in xudc_ep_queue()
1138 static int xudc_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in xudc_ep_dequeue() argument
1149 if (&iter->usb_req != _req) in xudc_ep_dequeue()
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
869 ep->ep.name, _req); in usba_ep_dequeue()
[all …]
Dfsl_udc_core.c686 static void fsl_free_request(struct usb_ep *_ep, struct usb_request *_req) in fsl_free_request() argument
690 req = container_of(_req, struct fsl_req, req); in fsl_free_request()
692 if (_req) in fsl_free_request()
863 fsl_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in fsl_ep_queue() argument
866 struct fsl_req *req = container_of(_req, struct fsl_req, req); in fsl_ep_queue()
872 if (!_req || !req->req.complete || !req->req.buf in fsl_ep_queue()
917 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 (&iter->req != _req) in fsl_ep_dequeue()
956 _req->status = -ECONNRESET; in fsl_ep_dequeue()
/linux-6.6.21/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
1766 if (!_ep || !_req) in bdc_gadget_ep_dequeue()
[all …]
/linux-6.6.21/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 …]
/linux-6.6.21/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()
2518 struct usb_request *_req) in nbu2ss_ep_free_request() argument
2522 if (_req) { in nbu2ss_ep_free_request()
2523 req = container_of(_req, struct nbu2ss_req, req); in nbu2ss_ep_free_request()
2531 struct usb_request *_req, gfp_t gfp_flags) in nbu2ss_ep_queue() argument
2541 if (!_ep || !_req) { in nbu2ss_ep_queue()
2545 if (!_req) in nbu2ss_ep_queue()
2551 req = container_of(_req, struct nbu2ss_req, req); in nbu2ss_ep_queue()
[all …]
/linux-6.6.21/drivers/usb/fotg210/
Dfotg210-udc.c257 struct usb_request *_req) in fotg210_ep_free_request() argument
261 req = container_of(_req, struct fotg210_request, req); in fotg210_ep_free_request()
404 static int fotg210_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in fotg210_ep_queue() argument
413 req = container_of(_req, struct fotg210_request, req); in fotg210_ep_queue()
438 static int fotg210_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in fotg210_ep_dequeue() argument
445 req = container_of(_req, struct fotg210_request, req); in fotg210_ep_dequeue()

12