/linux-6.12.1/drivers/usb/usbip/ |
D | vudc_dev.c | 229 static int vep_enable(struct usb_ep *_ep, in vep_enable() argument 237 ep = to_vep(_ep); in vep_enable() 240 if (!_ep || !desc || ep->desc || _ep->caps.type_control in vep_enable() 250 _ep->maxpacket = maxp; in vep_enable() 260 static int vep_disable(struct usb_ep *_ep) in vep_disable() argument 266 ep = to_vep(_ep); in vep_disable() 268 if (!_ep || !ep->desc || _ep->caps.type_control) in vep_disable() 279 static struct usb_request *vep_alloc_request(struct usb_ep *_ep, in vep_alloc_request() argument 284 if (!_ep) in vep_alloc_request() 296 static void vep_free_request(struct usb_ep *_ep, struct usb_request *_req) in vep_free_request() argument [all …]
|
D | vudc.h | 122 static inline struct vep *to_vep(struct usb_ep *_ep) in to_vep() argument 124 return container_of(_ep, struct vep, ep); in to_vep()
|
/linux-6.12.1/drivers/scsi/libfc/ |
D | fc_libfc.h | 59 struct fc_exch *_ep = NULL; \ 60 _ep = fc_seq_exch((pkt)->seq_ptr); \ 65 (_ep)->oxid, (_ep)->rxid, ##args); \
|
/linux-6.12.1/drivers/usb/gadget/udc/ |
D | pxa25x_udc.c | 418 static int pxa25x_ep_enable (struct usb_ep *_ep, in pxa25x_ep_enable() argument 424 ep = container_of (_ep, struct pxa25x_ep, ep); in pxa25x_ep_enable() 425 if (!_ep || !desc || _ep->name == ep0name in pxa25x_ep_enable() 437 DMSG("%s, %s type mismatch\n", __func__, _ep->name); in pxa25x_ep_enable() 446 DMSG("%s, bad %s maxpacket\n", __func__, _ep->name); in pxa25x_ep_enable() 462 pxa25x_ep_fifo_flush (_ep); in pxa25x_ep_enable() 466 DBG(DBG_VERBOSE, "enabled %s\n", _ep->name); in pxa25x_ep_enable() 470 static int pxa25x_ep_disable (struct usb_ep *_ep) in pxa25x_ep_disable() argument 475 ep = container_of (_ep, struct pxa25x_ep, ep); in pxa25x_ep_disable() 476 if (!_ep || !ep->ep.desc) { in pxa25x_ep_disable() [all …]
|
D | net2272.c | 175 net2272_enable(struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc) in net2272_enable() argument 183 ep = container_of(_ep, struct net2272_ep, ep); in net2272_enable() 184 if (!_ep || !desc || ep->desc || _ep->name == ep0name in net2272_enable() 194 _ep->maxpacket = max; in net2272_enable() 240 _ep->name, tmp & 0x0f, PIPEDIR(tmp), in net2272_enable() 294 static int net2272_disable(struct usb_ep *_ep) in net2272_disable() argument 299 ep = container_of(_ep, struct net2272_ep, ep); in net2272_disable() 300 if (!_ep || !ep->desc || _ep->name == ep0name) in net2272_disable() 307 dev_vdbg(ep->dev->dev, "disabled %s\n", _ep->name); in net2272_disable() 316 net2272_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in net2272_alloc_request() argument [all …]
|
D | dummy_hcd.c | 102 static inline struct dummy_ep *usb_ep_to_dummy_ep(struct usb_ep *_ep) in usb_ep_to_dummy_ep() argument 104 return container_of(_ep, struct dummy_ep, ep); in usb_ep_to_dummy_ep() 502 static int dummy_enable(struct usb_ep *_ep, in dummy_enable() argument 511 ep = usb_ep_to_dummy_ep(_ep); in dummy_enable() 512 if (!_ep || !desc || ep->desc || _ep->name == ep0name in dummy_enable() 612 _ep->maxpacket = max; in dummy_enable() 613 if (usb_ss_max_streams(_ep->comp_desc)) { in dummy_enable() 616 "non-bulk ep %s\n", _ep->name); in dummy_enable() 624 _ep->name, in dummy_enable() 639 static int dummy_disable(struct usb_ep *_ep) in dummy_disable() argument [all …]
|
D | mv_u3d_core.c | 520 static int mv_u3d_ep_enable(struct usb_ep *_ep, in mv_u3d_ep_enable() argument 529 if (!_ep || !desc || desc->bDescriptorType != USB_DT_ENDPOINT) in mv_u3d_ep_enable() 532 ep = container_of(_ep, struct mv_u3d_ep, ep); in mv_u3d_ep_enable() 541 if (!_ep->maxburst) in mv_u3d_ep_enable() 542 _ep->maxburst = 1; in mv_u3d_ep_enable() 543 maxburst = _ep->maxburst; in mv_u3d_ep_enable() 553 _ep->maxburst = maxburst; in mv_u3d_ep_enable() 561 _ep->maxburst = maxburst; in mv_u3d_ep_enable() 569 _ep->maxburst = maxburst; in mv_u3d_ep_enable() 578 _ep->maxburst = maxburst; in mv_u3d_ep_enable() [all …]
|
D | gr_udc.c | 346 static struct usb_request *gr_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in gr_alloc_request() argument 790 static void gr_ep0_testmode_complete(struct usb_ep *_ep, in gr_ep0_testmode_complete() argument 797 ep = container_of(_ep, struct gr_ep, ep); in gr_ep0_testmode_complete() 809 static void gr_ep0_dummy_complete(struct usb_ep *_ep, struct usb_request *_req) in gr_ep0_dummy_complete() argument 1465 static int gr_ep_enable(struct usb_ep *_ep, in gr_ep_enable() argument 1476 ep = container_of(_ep, struct gr_ep, ep); in gr_ep_enable() 1477 if (!_ep || !desc || desc->bDescriptorType != USB_DT_ENDPOINT) in gr_ep_enable() 1599 static int gr_ep_disable(struct usb_ep *_ep) in gr_ep_disable() argument 1605 ep = container_of(_ep, struct gr_ep, ep); in gr_ep_disable() 1606 if (!_ep || !ep->ep.desc) in gr_ep_disable() [all …]
|
D | goku_udc.c | 91 goku_ep_enable(struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc) in goku_ep_enable() argument 99 ep = container_of(_ep, struct goku_ep, ep); in goku_ep_enable() 100 if (!_ep || !desc in goku_ep_enable() 244 static int goku_ep_disable(struct usb_ep *_ep) in goku_ep_disable() argument 250 ep = container_of(_ep, struct goku_ep, ep); in goku_ep_disable() 251 if (!_ep || !ep->ep.desc) in goku_ep_disable() 257 VDBG(dev, "disable %s\n", _ep->name); in goku_ep_disable() 270 goku_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in goku_alloc_request() argument 274 if (!_ep) in goku_alloc_request() 285 goku_free_request(struct usb_ep *_ep, struct usb_request *_req) in goku_free_request() argument [all …]
|
D | pxa27x_udc.c | 571 pxa_ep_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in pxa_ep_alloc_request() argument 581 req->udc_usb_ep = container_of(_ep, struct udc_usb_ep, usb_ep); in pxa_ep_alloc_request() 593 static void pxa_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in pxa_ep_free_request() argument 1042 static int pxa_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in pxa_ep_queue() argument 1056 udc_usb_ep = container_of(_ep, struct udc_usb_ep, usb_ep); in pxa_ep_queue() 1061 if (unlikely(!_ep)) in pxa_ep_queue() 1157 static int pxa_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in pxa_ep_dequeue() argument 1165 if (!_ep) in pxa_ep_dequeue() 1167 udc_usb_ep = container_of(_ep, struct udc_usb_ep, usb_ep); in pxa_ep_dequeue() 1196 static int pxa_ep_set_halt(struct usb_ep *_ep, int value) in pxa_ep_set_halt() argument [all …]
|
D | net2280.c | 182 net2280_enable(struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc) in net2280_enable() argument 193 ep = container_of(_ep, struct net2280_ep, ep); in net2280_enable() 194 if (!_ep || !desc || ep->desc || _ep->name == ep0name || in net2280_enable() 231 _ep->maxpacket = max; in net2280_enable() 348 _ep->name, tmp & 0x0f, DIR_STRING(tmp), in net2280_enable() 512 static int net2280_disable(struct usb_ep *_ep) in net2280_disable() argument 517 ep = container_of(_ep, struct net2280_ep, ep); in net2280_disable() 518 if (!_ep || _ep->name == ep0name) { in net2280_disable() 519 pr_err("%s: Invalid ep=%p\n", __func__, _ep); in net2280_disable() 531 ep->dma ? "dma" : "pio", _ep->name); in net2280_disable() [all …]
|
D | fusb300_udc.c | 232 static int fusb300_enable(struct usb_ep *_ep, in fusb300_enable() argument 237 ep = container_of(_ep, struct fusb300_ep, ep); in fusb300_enable() 248 static int fusb300_disable(struct usb_ep *_ep) in fusb300_disable() argument 254 ep = container_of(_ep, struct fusb300_ep, ep); in fusb300_disable() 268 static struct usb_request *fusb300_alloc_request(struct usb_ep *_ep, in fusb300_alloc_request() argument 281 static void fusb300_free_request(struct usb_ep *_ep, struct usb_request *_req) in fusb300_free_request() argument 419 static int fusb300_queue(struct usb_ep *_ep, struct usb_request *_req, in fusb300_queue() argument 427 ep = container_of(_ep, struct fusb300_ep, ep); in fusb300_queue() 453 static int fusb300_dequeue(struct usb_ep *_ep, struct usb_request *_req) in fusb300_dequeue() argument 459 ep = container_of(_ep, struct fusb300_ep, ep); in fusb300_dequeue() [all …]
|
D | fsl_udc_core.c | 71 static void fsl_ep_fifo_flush(struct usb_ep *_ep); 539 static int fsl_ep_enable(struct usb_ep *_ep, in fsl_ep_enable() argument 549 ep = container_of(_ep, struct fsl_ep, ep); in fsl_ep_enable() 552 if (!_ep || !desc in fsl_ep_enable() 627 static int fsl_ep_disable(struct usb_ep *_ep) in fsl_ep_disable() argument 635 ep = container_of(_ep, struct fsl_ep, ep); in fsl_ep_disable() 636 if (!_ep || !ep->ep.desc) { in fsl_ep_disable() 666 dev_vdbg(&udc->gadget.dev, "disabled %s OK\n", _ep->name); in fsl_ep_disable() 676 fsl_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in fsl_alloc_request() argument 690 static void fsl_free_request(struct usb_ep *_ep, struct usb_request *_req) in fsl_free_request() argument [all …]
|
D | mv_udc_core.c | 434 static int mv_ep_enable(struct usb_ep *_ep, in mv_ep_enable() argument 446 ep = container_of(_ep, struct mv_ep, ep); in mv_ep_enable() 449 if (!_ep || !desc in mv_ep_enable() 553 static int mv_ep_disable(struct usb_ep *_ep) in mv_ep_disable() argument 561 ep = container_of(_ep, struct mv_ep, ep); in mv_ep_disable() 562 if ((_ep == NULL) || !ep->ep.desc) in mv_ep_disable() 596 mv_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in mv_alloc_request() argument 610 static void mv_free_request(struct usb_ep *_ep, struct usb_request *_req) in mv_free_request() argument 620 static void mv_ep_fifo_flush(struct usb_ep *_ep) in mv_ep_fifo_flush() argument 627 if (!_ep) in mv_ep_fifo_flush() [all …]
|
D | aspeed_udc.c | 341 static int ast_udc_ep_enable(struct usb_ep *_ep, in ast_udc_ep_enable() argument 345 struct ast_udc_ep *ep = to_ast_ep(_ep); in ast_udc_ep_enable() 353 if (!_ep || !ep || !desc || desc->bDescriptorType != USB_DT_ENDPOINT || in ast_udc_ep_enable() 430 static int ast_udc_ep_disable(struct usb_ep *_ep) in ast_udc_ep_disable() argument 432 struct ast_udc_ep *ep = to_ast_ep(_ep); in ast_udc_ep_disable() 449 static struct usb_request *ast_udc_ep_alloc_request(struct usb_ep *_ep, in ast_udc_ep_alloc_request() argument 452 struct ast_udc_ep *ep = to_ast_ep(_ep); in ast_udc_ep_alloc_request() 466 static void ast_udc_ep_free_request(struct usb_ep *_ep, in ast_udc_ep_free_request() argument 626 static int ast_udc_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in ast_udc_ep_queue() argument 630 struct ast_udc_ep *ep = to_ast_ep(_ep); in ast_udc_ep_queue() [all …]
|
D | max3420_udc.c | 903 static int max3420_ep_set_halt(struct usb_ep *_ep, int stall) in max3420_ep_set_halt() argument 905 struct max3420_ep *ep = to_max3420_ep(_ep); in max3420_ep_set_halt() 942 static int max3420_ep_enable(struct usb_ep *_ep, in max3420_ep_enable() argument 945 struct max3420_ep *ep = to_max3420_ep(_ep); in max3420_ep_enable() 990 static int max3420_ep_disable(struct usb_ep *_ep) in max3420_ep_disable() argument 992 struct max3420_ep *ep = to_max3420_ep(_ep); in max3420_ep_disable() 1004 static struct usb_request *max3420_alloc_request(struct usb_ep *_ep, in max3420_alloc_request() argument 1007 struct max3420_ep *ep = to_max3420_ep(_ep); in max3420_alloc_request() 1019 static void max3420_free_request(struct usb_ep *_ep, struct usb_request *_req) in max3420_free_request() argument 1024 static int max3420_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in max3420_ep_queue() argument [all …]
|
D | fsl_qe_udc.c | 1582 static int qe_ep_enable(struct usb_ep *_ep, in qe_ep_enable() argument 1590 ep = container_of(_ep, struct qe_ep, ep); in qe_ep_enable() 1593 if (!_ep || !desc || _ep->name == ep_name[0] || in qe_ep_enable() 1613 static int qe_ep_disable(struct usb_ep *_ep) in qe_ep_disable() argument 1620 ep = container_of(_ep, struct qe_ep, ep); in qe_ep_disable() 1623 if (!_ep || !ep->ep.desc) { in qe_ep_disable() 1624 dev_dbg(udc->dev, "%s not enabled\n", _ep ? ep->ep.name : NULL); in qe_ep_disable() 1665 dev_dbg(udc->dev, "disabled %s OK\n", _ep->name); in qe_ep_disable() 1669 static struct usb_request *qe_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in qe_alloc_request() argument 1684 static void qe_free_request(struct usb_ep *_ep, struct usb_request *_req) in qe_free_request() argument [all …]
|
D | atmel_usba_udc.c | 572 usba_ep_enable(struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc) in usba_ep_enable() argument 574 struct usba_ep *ep = to_usba_ep(_ep); in usba_ep_enable() 664 static int usba_ep_disable(struct usb_ep *_ep) in usba_ep_disable() argument 666 struct usba_ep *ep = to_usba_ep(_ep); in usba_ep_disable() 699 usba_ep_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in usba_ep_alloc_request() argument 703 DBG(DBG_GADGET, "ep_alloc_request: %p, 0x%x\n", _ep, gfp_flags); in usba_ep_alloc_request() 715 usba_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in usba_ep_free_request() argument 719 DBG(DBG_GADGET, "ep_free_request: %p, %p\n", _ep, _req); in usba_ep_free_request() 774 usba_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in usba_ep_queue() argument 777 struct usba_ep *ep = to_usba_ep(_ep); in usba_ep_queue() [all …]
|
D | at91_udc.c | 471 static int at91_ep_enable(struct usb_ep *_ep, in at91_ep_enable() argument 474 struct at91_ep *ep = container_of(_ep, struct at91_ep, ep); in at91_ep_enable() 480 if (!_ep || !ep in at91_ep_enable() 481 || !desc || _ep->name == ep0name in at91_ep_enable() 549 static int at91_ep_disable (struct usb_ep * _ep) in at91_ep_disable() argument 551 struct at91_ep *ep = container_of(_ep, struct at91_ep, ep); in at91_ep_disable() 583 at91_ep_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in at91_ep_alloc_request() argument 595 static void at91_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in at91_ep_free_request() argument 604 static int at91_ep_queue(struct usb_ep *_ep, in at91_ep_queue() argument 614 ep = container_of(_ep, struct at91_ep, ep); in at91_ep_queue() [all …]
|
D | udc-xilinx.c | 751 static int xudc_ep_set_halt(struct usb_ep *_ep, int value) in xudc_ep_set_halt() argument 753 struct xusb_ep *ep = to_xusb_ep(_ep); in xudc_ep_set_halt() 758 if (!_ep || (!ep->desc && ep->epnumber)) { in xudc_ep_set_halt() 893 static int xudc_ep_enable(struct usb_ep *_ep, in xudc_ep_enable() argument 901 if (!_ep || !desc || desc->bDescriptorType != USB_DT_ENDPOINT) { in xudc_ep_enable() 906 ep = to_xusb_ep(_ep); in xudc_ep_enable() 927 static int xudc_ep_disable(struct usb_ep *_ep) in xudc_ep_disable() argument 934 if (!_ep) { in xudc_ep_disable() 939 ep = to_xusb_ep(_ep); in xudc_ep_disable() 967 static struct usb_request *xudc_ep_alloc_request(struct usb_ep *_ep, in xudc_ep_alloc_request() argument [all …]
|
D | r8a66597-udc.c | 38 static int r8a66597_queue(struct usb_ep *_ep, struct usb_request *_req, 1549 static int r8a66597_enable(struct usb_ep *_ep, in r8a66597_enable() argument 1554 ep = container_of(_ep, struct r8a66597_ep, ep); in r8a66597_enable() 1558 static int r8a66597_disable(struct usb_ep *_ep) in r8a66597_disable() argument 1564 ep = container_of(_ep, struct r8a66597_ep, ep); in r8a66597_disable() 1578 static struct usb_request *r8a66597_alloc_request(struct usb_ep *_ep, in r8a66597_alloc_request() argument 1592 static void r8a66597_free_request(struct usb_ep *_ep, struct usb_request *_req) in r8a66597_free_request() argument 1600 static int r8a66597_queue(struct usb_ep *_ep, struct usb_request *_req, in r8a66597_queue() argument 1608 ep = container_of(_ep, struct r8a66597_ep, ep); in r8a66597_queue() 1635 static int r8a66597_dequeue(struct usb_ep *_ep, struct usb_request *_req) in r8a66597_dequeue() argument [all …]
|
/linux-6.12.1/drivers/usb/fotg210/ |
D | fotg210-udc.c | 169 static int fotg210_ep_enable(struct usb_ep *_ep, in fotg210_ep_enable() argument 174 ep = container_of(_ep, struct fotg210_ep, ep); in fotg210_ep_enable() 221 static int fotg210_ep_disable(struct usb_ep *_ep) in fotg210_ep_disable() argument 227 BUG_ON(!_ep); in fotg210_ep_disable() 229 ep = container_of(_ep, struct fotg210_ep, ep); in fotg210_ep_disable() 242 static struct usb_request *fotg210_ep_alloc_request(struct usb_ep *_ep, in fotg210_ep_alloc_request() argument 256 static void fotg210_ep_free_request(struct usb_ep *_ep, in fotg210_ep_free_request() argument 404 static int fotg210_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in fotg210_ep_queue() argument 412 ep = container_of(_ep, struct fotg210_ep, ep); in fotg210_ep_queue() 438 static int fotg210_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in fotg210_ep_dequeue() argument [all …]
|
/linux-6.12.1/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 1710 static int bdc_gadget_ep_queue(struct usb_ep *_ep, in bdc_gadget_ep_queue() argument 1719 if (!_ep || !_ep->desc) in bdc_gadget_ep_queue() 1725 ep = to_bdc_ep(_ep); in bdc_gadget_ep_queue() 1756 static int bdc_gadget_ep_dequeue(struct usb_ep *_ep, in bdc_gadget_ep_dequeue() argument 1766 if (!_ep || !_req) in bdc_gadget_ep_dequeue() 1769 ep = to_bdc_ep(_ep); in bdc_gadget_ep_dequeue() 1803 static int bdc_gadget_ep_set_halt(struct usb_ep *_ep, int value) in bdc_gadget_ep_set_halt() argument 1810 ep = to_bdc_ep(_ep); in bdc_gadget_ep_set_halt() 1826 static struct usb_request *bdc_gadget_alloc_request(struct usb_ep *_ep, in bdc_gadget_alloc_request() argument [all …]
|
/linux-6.12.1/drivers/usb/gadget/ |
D | composite.c | 153 struct usb_ep *_ep, in config_ep_by_speed_and_alt() argument 167 if (!g || !f || !_ep) in config_ep_by_speed_and_alt() 220 if (chosen_desc->bEndpointAddress == _ep->address) in config_ep_by_speed_and_alt() 227 _ep->maxpacket = usb_endpoint_maxp(chosen_desc); in config_ep_by_speed_and_alt() 228 _ep->desc = chosen_desc; in config_ep_by_speed_and_alt() 229 _ep->comp_desc = NULL; in config_ep_by_speed_and_alt() 230 _ep->maxburst = 0; in config_ep_by_speed_and_alt() 231 _ep->mult = 1; in config_ep_by_speed_and_alt() 233 if (g->speed == USB_SPEED_HIGH && (usb_endpoint_xfer_isoc(_ep->desc) || in config_ep_by_speed_and_alt() 234 usb_endpoint_xfer_int(_ep->desc))) in config_ep_by_speed_and_alt() [all …]
|
/linux-6.12.1/drivers/media/platform/samsung/exynos4-is/ |
D | media-dev.h | 61 #define to_fimc_pipeline(_ep) container_of(_ep, struct fimc_pipeline, ep) argument
|