/linux-6.1.9/drivers/usb/usbip/ |
D | vudc_dev.c | 296 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 …]
|
D | vudc.h | 128 struct usb_request *_req) in to_vrequest() argument 130 return container_of(_req, struct vrequest, req); in to_vrequest()
|
/linux-6.1.9/drivers/usb/gadget/udc/ |
D | s3c2410_udc.c | 1139 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 …]
|
D | dummy_hcd.c | 106 (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 …]
|
D | s3c-hsudc.c | 797 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 (&iter->req != _req) in s3c_hsudc_dequeue()
|
D | goku_udc.c | 285 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 …]
|
D | aspeed_udc.c | 467 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()
|
D | pxa27x_udc.c | 594 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 …]
|
D | net2272.c | 333 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 …]
|
D | gr_udc.c | 792 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 …]
|
D | pxa25x_udc.c | 524 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 …]
|
D | lpc32xx_udc.c | 1723 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 …]
|
D | max3420_udc.c | 1021 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 1048 struct max3420_req *req = to_max3420_req(_req); in max3420_ep_dequeue()
|
D | net2280.c | 580 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 …]
|
D | mv_udc_core.c | 610 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 …]
|
D | at91_udc.c | 595 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()
|
D | mv_u3d_core.c | 679 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 …]
|
D | fsl_qe_udc.c | 1683 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 …]
|
D | renesas_usb3.c | 382 #define usb_req_to_usb3_req(_req) container_of(_req, \ argument 1546 static int renesas_usb3_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in renesas_usb3_ep_queue() argument 1550 struct renesas_usb3_request *usb3_req = usb_req_to_usb3_req(_req); in renesas_usb3_ep_queue() 1555 _req->length); in renesas_usb3_ep_queue() 1557 _req->status = -EINPROGRESS; in renesas_usb3_ep_queue() 1558 _req->actual = 0; in renesas_usb3_ep_queue() 2236 static void __renesas_usb3_ep_free_request(struct usb_request *_req) in __renesas_usb3_ep_free_request() argument 2238 struct renesas_usb3_request *usb3_req = usb_req_to_usb3_req(_req); in __renesas_usb3_ep_free_request() 2250 struct usb_request *_req) in renesas_usb3_ep_free_request() argument 2252 __renesas_usb3_ep_free_request(_req); in renesas_usb3_ep_free_request() [all …]
|
D | udc-xilinx.c | 985 static void xudc_free_request(struct usb_ep *_ep, struct usb_request *_req) in xudc_free_request() argument 987 struct xusb_req *req = to_xusb_req(_req); in xudc_free_request() 1050 static int xudc_ep0_queue(struct usb_ep *_ep, struct usb_request *_req, in xudc_ep0_queue() argument 1053 struct xusb_req *req = to_xusb_req(_req); in xudc_ep0_queue() 1074 static int xudc_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in xudc_ep_queue() argument 1077 struct xusb_req *req = to_xusb_req(_req); in xudc_ep_queue() 1096 _req->status = -EINPROGRESS; in xudc_ep_queue() 1097 _req->actual = 0; in xudc_ep_queue() 1136 static int xudc_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in xudc_ep_dequeue() argument 1147 if (&iter->usb_req != _req) in xudc_ep_dequeue()
|
D | fotg210-udc.c | 245 struct usb_request *_req) in fotg210_ep_free_request() argument 249 req = container_of(_req, struct fotg210_request, req); in fotg210_ep_free_request() 393 static int fotg210_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in fotg210_ep_queue() argument 402 req = container_of(_req, struct fotg210_request, req); in fotg210_ep_queue() 427 static int fotg210_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in fotg210_ep_dequeue() argument 434 req = container_of(_req, struct fotg210_request, req); in fotg210_ep_dequeue()
|
/linux-6.1.9/drivers/scsi/ |
D | hptiop.c | 299 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.1.9/drivers/usb/gadget/udc/bdc/ |
D | bdc_ep.c | 1379 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.1.9/drivers/usb/isp1760/ |
D | isp1760-udc.c | 888 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.1.9/drivers/staging/emxx_udc/ |
D | emxx_udc.c | 132 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 …]
|