/drivers/usb/gadget/udc/ |
D | s3c-hsudc.c | 158 #define ep_maxpacket(_ep) ((_ep)->ep.maxpacket) argument 159 #define ep_is_in(_ep) ((_ep)->bEndpointAddress & USB_DIR_IN) argument 160 #define ep_index(_ep) ((_ep)->bEndpointAddress & \ argument 500 static int s3c_hsudc_set_halt(struct usb_ep *_ep, int value) in s3c_hsudc_set_halt() argument 502 struct s3c_hsudc_ep *hsep = our_ep(_ep); in s3c_hsudc_set_halt() 544 static int s3c_hsudc_set_wedge(struct usb_ep *_ep) in s3c_hsudc_set_wedge() argument 546 struct s3c_hsudc_ep *hsep = our_ep(_ep); in s3c_hsudc_set_wedge() 552 return usb_ep_set_halt(_ep); in s3c_hsudc_set_wedge() 751 static int s3c_hsudc_ep_enable(struct usb_ep *_ep, in s3c_hsudc_ep_enable() argument 759 hsep = our_ep(_ep); in s3c_hsudc_ep_enable() [all …]
|
D | pxa25x_udc.c | 212 static int pxa25x_ep_enable (struct usb_ep *_ep, in pxa25x_ep_enable() argument 218 ep = container_of (_ep, struct pxa25x_ep, ep); in pxa25x_ep_enable() 219 if (!_ep || !desc || _ep->name == ep0name in pxa25x_ep_enable() 231 DMSG("%s, %s type mismatch\n", __func__, _ep->name); in pxa25x_ep_enable() 240 DMSG("%s, bad %s maxpacket\n", __func__, _ep->name); in pxa25x_ep_enable() 256 pxa25x_ep_fifo_flush (_ep); in pxa25x_ep_enable() 260 DBG(DBG_VERBOSE, "enabled %s\n", _ep->name); in pxa25x_ep_enable() 264 static int pxa25x_ep_disable (struct usb_ep *_ep) in pxa25x_ep_disable() argument 269 ep = container_of (_ep, struct pxa25x_ep, ep); in pxa25x_ep_disable() 270 if (!_ep || !ep->ep.desc) { in pxa25x_ep_disable() [all …]
|
D | s3c2410_udc.c | 619 static int s3c2410_udc_set_halt(struct usb_ep *_ep, int value); 1051 static int s3c2410_udc_ep_enable(struct usb_ep *_ep, in s3c2410_udc_ep_enable() argument 1061 ep = to_s3c2410_ep(_ep); in s3c2410_udc_ep_enable() 1063 if (!_ep || !desc in s3c2410_udc_ep_enable() 1064 || _ep->name == ep0name in s3c2410_udc_ep_enable() 1075 _ep->maxpacket = max & 0x7ff; in s3c2410_udc_ep_enable() 1119 _ep->name, ep->num, tmp, in s3c2410_udc_ep_enable() 1123 s3c2410_udc_set_halt(_ep, 0); in s3c2410_udc_ep_enable() 1131 static int s3c2410_udc_ep_disable(struct usb_ep *_ep) in s3c2410_udc_ep_disable() argument 1133 struct s3c2410_ep *ep = to_s3c2410_ep(_ep); in s3c2410_udc_ep_disable() [all …]
|
D | dummy_hcd.c | 101 static inline struct dummy_ep *usb_ep_to_dummy_ep(struct usb_ep *_ep) in usb_ep_to_dummy_ep() argument 103 return container_of(_ep, struct dummy_ep, ep); in usb_ep_to_dummy_ep() 415 static int dummy_enable(struct usb_ep *_ep, in dummy_enable() argument 424 ep = usb_ep_to_dummy_ep(_ep); in dummy_enable() 425 if (!_ep || !desc || ep->desc || _ep->name == ep0name in dummy_enable() 520 _ep->maxpacket = max; in dummy_enable() 521 if (usb_ss_max_streams(_ep->comp_desc)) { in dummy_enable() 524 "non-bulk ep %s\n", _ep->name); in dummy_enable() 532 _ep->name, in dummy_enable() 561 static int dummy_disable(struct usb_ep *_ep) in dummy_disable() argument [all …]
|
D | net2272.c | 189 net2272_enable(struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc) in net2272_enable() argument 197 ep = container_of(_ep, struct net2272_ep, ep); in net2272_enable() 198 if (!_ep || !desc || ep->desc || _ep->name == ep0name in net2272_enable() 208 _ep->maxpacket = max & 0x7fff; in net2272_enable() 254 _ep->name, tmp & 0x0f, PIPEDIR(tmp), in net2272_enable() 308 static int net2272_disable(struct usb_ep *_ep) in net2272_disable() argument 313 ep = container_of(_ep, struct net2272_ep, ep); in net2272_disable() 314 if (!_ep || !ep->desc || _ep->name == ep0name) in net2272_disable() 321 dev_vdbg(ep->dev->dev, "disabled %s\n", _ep->name); in net2272_disable() 330 net2272_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in net2272_alloc_request() argument [all …]
|
D | fotg210-udc.c | 160 static int fotg210_ep_enable(struct usb_ep *_ep, in fotg210_ep_enable() argument 165 ep = container_of(_ep, struct fotg210_ep, ep); in fotg210_ep_enable() 212 static int fotg210_ep_disable(struct usb_ep *_ep) in fotg210_ep_disable() argument 218 BUG_ON(!_ep); in fotg210_ep_disable() 220 ep = container_of(_ep, struct fotg210_ep, ep); in fotg210_ep_disable() 233 static struct usb_request *fotg210_ep_alloc_request(struct usb_ep *_ep, in fotg210_ep_alloc_request() argument 247 static void fotg210_ep_free_request(struct usb_ep *_ep, in fotg210_ep_free_request() argument 409 static int fotg210_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in fotg210_ep_queue() argument 417 ep = container_of(_ep, struct fotg210_ep, ep); in fotg210_ep_queue() 443 static int fotg210_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in fotg210_ep_dequeue() argument [all …]
|
D | gr_udc.c | 367 static struct usb_request *gr_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in gr_alloc_request() argument 811 static void gr_ep0_testmode_complete(struct usb_ep *_ep, in gr_ep0_testmode_complete() argument 818 ep = container_of(_ep, struct gr_ep, ep); in gr_ep0_testmode_complete() 830 static void gr_ep0_dummy_complete(struct usb_ep *_ep, struct usb_request *_req) in gr_ep0_dummy_complete() argument 1486 static int gr_ep_enable(struct usb_ep *_ep, in gr_ep_enable() argument 1497 ep = container_of(_ep, struct gr_ep, ep); in gr_ep_enable() 1498 if (!_ep || !desc || desc->bDescriptorType != USB_DT_ENDPOINT) in gr_ep_enable() 1620 static int gr_ep_disable(struct usb_ep *_ep) in gr_ep_disable() argument 1626 ep = container_of(_ep, struct gr_ep, ep); in gr_ep_disable() 1627 if (!_ep || !ep->ep.desc) in gr_ep_disable() [all …]
|
D | mv_u3d_core.c | 525 static int mv_u3d_ep_enable(struct usb_ep *_ep, in mv_u3d_ep_enable() argument 535 if (!_ep || !desc || desc->bDescriptorType != USB_DT_ENDPOINT) in mv_u3d_ep_enable() 538 ep = container_of(_ep, struct mv_u3d_ep, ep); in mv_u3d_ep_enable() 547 if (!_ep->maxburst) in mv_u3d_ep_enable() 548 _ep->maxburst = 1; in mv_u3d_ep_enable() 549 maxburst = _ep->maxburst; in mv_u3d_ep_enable() 562 _ep->maxburst = maxburst; in mv_u3d_ep_enable() 570 _ep->maxburst = maxburst; in mv_u3d_ep_enable() 578 _ep->maxburst = maxburst; in mv_u3d_ep_enable() 587 _ep->maxburst = maxburst; in mv_u3d_ep_enable() [all …]
|
D | goku_udc.c | 94 goku_ep_enable(struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc) in goku_ep_enable() argument 102 ep = container_of(_ep, struct goku_ep, ep); in goku_ep_enable() 103 if (!_ep || !desc in goku_ep_enable() 240 static int goku_ep_disable(struct usb_ep *_ep) in goku_ep_disable() argument 246 ep = container_of(_ep, struct goku_ep, ep); in goku_ep_disable() 247 if (!_ep || !ep->ep.desc) in goku_ep_disable() 253 VDBG(dev, "disable %s\n", _ep->name); in goku_ep_disable() 266 goku_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in goku_alloc_request() argument 270 if (!_ep) in goku_alloc_request() 281 goku_free_request(struct usb_ep *_ep, struct usb_request *_req) in goku_free_request() argument [all …]
|
D | pxa27x_udc.c | 654 pxa_ep_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in pxa_ep_alloc_request() argument 664 req->udc_usb_ep = container_of(_ep, struct udc_usb_ep, usb_ep); in pxa_ep_alloc_request() 676 static void pxa_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in pxa_ep_free_request() argument 1127 static int pxa_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in pxa_ep_queue() argument 1141 udc_usb_ep = container_of(_ep, struct udc_usb_ep, usb_ep); in pxa_ep_queue() 1146 if (unlikely(!_ep)) in pxa_ep_queue() 1243 static int pxa_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in pxa_ep_dequeue() argument 1251 if (!_ep) in pxa_ep_dequeue() 1253 udc_usb_ep = container_of(_ep, struct udc_usb_ep, usb_ep); in pxa_ep_dequeue() 1281 static int pxa_ep_set_halt(struct usb_ep *_ep, int value) in pxa_ep_set_halt() argument [all …]
|
D | fusb300_udc.c | 235 static int fusb300_enable(struct usb_ep *_ep, in fusb300_enable() argument 240 ep = container_of(_ep, struct fusb300_ep, ep); in fusb300_enable() 251 static int fusb300_disable(struct usb_ep *_ep) in fusb300_disable() argument 257 ep = container_of(_ep, struct fusb300_ep, ep); in fusb300_disable() 271 static struct usb_request *fusb300_alloc_request(struct usb_ep *_ep, in fusb300_alloc_request() argument 284 static void fusb300_free_request(struct usb_ep *_ep, struct usb_request *_req) in fusb300_free_request() argument 422 static int fusb300_queue(struct usb_ep *_ep, struct usb_request *_req, in fusb300_queue() argument 430 ep = container_of(_ep, struct fusb300_ep, ep); in fusb300_queue() 456 static int fusb300_dequeue(struct usb_ep *_ep, struct usb_request *_req) in fusb300_dequeue() argument 462 ep = container_of(_ep, struct fusb300_ep, ep); in fusb300_dequeue() [all …]
|
D | net2280.c | 160 net2280_enable(struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc) in net2280_enable() argument 168 ep = container_of(_ep, struct net2280_ep, ep); in net2280_enable() 169 if (!_ep || !desc || ep->desc || _ep->name == ep0name || in net2280_enable() 194 _ep->maxpacket = max & 0x7ff; in net2280_enable() 303 _ep->name, tmp & 0x0f, DIR_STRING(tmp), in net2280_enable() 458 static int net2280_disable(struct usb_ep *_ep) in net2280_disable() argument 463 ep = container_of(_ep, struct net2280_ep, ep); in net2280_disable() 464 if (!_ep || !ep->desc || _ep->name == ep0name) in net2280_disable() 476 ep->dma ? "dma" : "pio", _ep->name); in net2280_disable() 491 *net2280_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in net2280_alloc_request() argument [all …]
|
D | fsl_udc_core.c | 78 static void fsl_ep_fifo_flush(struct usb_ep *_ep); 546 static int fsl_ep_enable(struct usb_ep *_ep, in fsl_ep_enable() argument 556 ep = container_of(_ep, struct fsl_ep, ep); in fsl_ep_enable() 559 if (!_ep || !desc in fsl_ep_enable() 635 static int fsl_ep_disable(struct usb_ep *_ep) in fsl_ep_disable() argument 643 ep = container_of(_ep, struct fsl_ep, ep); in fsl_ep_disable() 644 if (!_ep || !ep->ep.desc) { in fsl_ep_disable() 645 VDBG("%s not enabled", _ep ? ep->ep.name : NULL); in fsl_ep_disable() 671 VDBG("disabled %s OK", _ep->name); in fsl_ep_disable() 681 fsl_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in fsl_alloc_request() argument [all …]
|
D | mv_udc_core.c | 444 static int mv_ep_enable(struct usb_ep *_ep, in mv_ep_enable() argument 455 ep = container_of(_ep, struct mv_ep, ep); in mv_ep_enable() 458 if (!_ep || !desc in mv_ep_enable() 565 static int mv_ep_disable(struct usb_ep *_ep) in mv_ep_disable() argument 573 ep = container_of(_ep, struct mv_ep, ep); in mv_ep_disable() 574 if ((_ep == NULL) || !ep->ep.desc) in mv_ep_disable() 609 mv_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in mv_alloc_request() argument 623 static void mv_free_request(struct usb_ep *_ep, struct usb_request *_req) in mv_free_request() argument 633 static void mv_ep_fifo_flush(struct usb_ep *_ep) in mv_ep_fifo_flush() argument 640 if (!_ep) in mv_ep_fifo_flush() [all …]
|
D | fsl_qe_udc.c | 1585 static int qe_ep_enable(struct usb_ep *_ep, in qe_ep_enable() argument 1593 ep = container_of(_ep, struct qe_ep, ep); in qe_ep_enable() 1596 if (!_ep || !desc || _ep->name == ep_name[0] || in qe_ep_enable() 1616 static int qe_ep_disable(struct usb_ep *_ep) in qe_ep_disable() argument 1623 ep = container_of(_ep, struct qe_ep, ep); in qe_ep_disable() 1626 if (!_ep || !ep->ep.desc) { in qe_ep_disable() 1627 dev_dbg(udc->dev, "%s not enabled\n", _ep ? ep->ep.name : NULL); in qe_ep_disable() 1668 dev_dbg(udc->dev, "disabled %s OK\n", _ep->name); in qe_ep_disable() 1672 static struct usb_request *qe_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in qe_alloc_request() argument 1687 static void qe_free_request(struct usb_ep *_ep, struct usb_request *_req) in qe_free_request() argument [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 | at91_udc.c | 467 static int at91_ep_enable(struct usb_ep *_ep, in at91_ep_enable() argument 470 struct at91_ep *ep = container_of(_ep, struct at91_ep, ep); in at91_ep_enable() 476 if (!_ep || !ep in at91_ep_enable() 477 || !desc || _ep->name == ep0name in at91_ep_enable() 545 static int at91_ep_disable (struct usb_ep * _ep) in at91_ep_disable() argument 547 struct at91_ep *ep = container_of(_ep, struct at91_ep, ep); in at91_ep_disable() 579 at91_ep_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in at91_ep_alloc_request() argument 591 static void at91_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in at91_ep_free_request() argument 600 static int at91_ep_queue(struct usb_ep *_ep, in at91_ep_queue() argument 610 ep = container_of(_ep, struct at91_ep, ep); in at91_ep_queue() [all …]
|
D | omap_udc.c | 146 static int omap_ep_enable(struct usb_ep *_ep, in omap_ep_enable() argument 149 struct omap_ep *ep = container_of(_ep, struct omap_ep, ep); in omap_ep_enable() 155 if (!_ep || !desc in omap_ep_enable() 167 DBG("%s, bad %s maxpacket\n", __func__, _ep->name); in omap_ep_enable() 175 DBG("%s, unsupported ISO period %dms\n", _ep->name, in omap_ep_enable() 181 DBG("%s, ISO nyet\n", _ep->name); in omap_ep_enable() 190 DBG("%s, %s type mismatch\n", __func__, _ep->name); in omap_ep_enable() 233 VDBG("%s enabled\n", _ep->name); in omap_ep_enable() 239 static int omap_ep_disable(struct usb_ep *_ep) in omap_ep_disable() argument 241 struct omap_ep *ep = container_of(_ep, struct omap_ep, ep); in omap_ep_disable() [all …]
|
D | atmel_usba_udc.c | 514 usba_ep_enable(struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc) in usba_ep_enable() argument 516 struct usba_ep *ep = to_usba_ep(_ep); in usba_ep_enable() 626 static int usba_ep_disable(struct usb_ep *_ep) in usba_ep_disable() argument 628 struct usba_ep *ep = to_usba_ep(_ep); in usba_ep_disable() 669 usba_ep_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in usba_ep_alloc_request() argument 673 DBG(DBG_GADGET, "ep_alloc_request: %p, 0x%x\n", _ep, gfp_flags); in usba_ep_alloc_request() 685 usba_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in usba_ep_free_request() argument 689 DBG(DBG_GADGET, "ep_free_request: %p, %p\n", _ep, _req); in usba_ep_free_request() 744 usba_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) in usba_ep_queue() argument 747 struct usba_ep *ep = to_usba_ep(_ep); in usba_ep_queue() [all …]
|
D | r8a66597-udc.c | 41 static int r8a66597_queue(struct usb_ep *_ep, struct usb_request *_req, 1556 static int r8a66597_enable(struct usb_ep *_ep, in r8a66597_enable() argument 1561 ep = container_of(_ep, struct r8a66597_ep, ep); in r8a66597_enable() 1565 static int r8a66597_disable(struct usb_ep *_ep) in r8a66597_disable() argument 1571 ep = container_of(_ep, struct r8a66597_ep, ep); in r8a66597_disable() 1585 static struct usb_request *r8a66597_alloc_request(struct usb_ep *_ep, in r8a66597_alloc_request() argument 1599 static void r8a66597_free_request(struct usb_ep *_ep, struct usb_request *_req) in r8a66597_free_request() argument 1607 static int r8a66597_queue(struct usb_ep *_ep, struct usb_request *_req, in r8a66597_queue() argument 1615 ep = container_of(_ep, struct r8a66597_ep, ep); in r8a66597_queue() 1642 static int r8a66597_dequeue(struct usb_ep *_ep, struct usb_request *_req) in r8a66597_dequeue() argument [all …]
|
D | m66592-udc.c | 40 static int m66592_queue(struct usb_ep *_ep, struct usb_request *_req, 1306 static int m66592_enable(struct usb_ep *_ep, in m66592_enable() argument 1311 ep = container_of(_ep, struct m66592_ep, ep); in m66592_enable() 1315 static int m66592_disable(struct usb_ep *_ep) in m66592_disable() argument 1321 ep = container_of(_ep, struct m66592_ep, ep); in m66592_disable() 1335 static struct usb_request *m66592_alloc_request(struct usb_ep *_ep, in m66592_alloc_request() argument 1349 static void m66592_free_request(struct usb_ep *_ep, struct usb_request *_req) in m66592_free_request() argument 1357 static int m66592_queue(struct usb_ep *_ep, struct usb_request *_req, in m66592_queue() argument 1365 ep = container_of(_ep, struct m66592_ep, ep); in m66592_queue() 1392 static int m66592_dequeue(struct usb_ep *_ep, struct usb_request *_req) in m66592_dequeue() argument [all …]
|
D | lpc32xx_udc.c | 1627 static int lpc32xx_ep_disable(struct usb_ep *_ep) in lpc32xx_ep_disable() argument 1629 struct lpc32xx_ep *ep = container_of(_ep, struct lpc32xx_ep, ep); in lpc32xx_ep_disable() 1664 static int lpc32xx_ep_enable(struct usb_ep *_ep, in lpc32xx_ep_enable() argument 1667 struct lpc32xx_ep *ep = container_of(_ep, struct lpc32xx_ep, ep); in lpc32xx_ep_enable() 1674 if ((!_ep) || (!ep) || (!desc) || in lpc32xx_ep_enable() 1768 static struct usb_request *lpc32xx_ep_alloc_request(struct usb_ep *_ep, in lpc32xx_ep_alloc_request() argument 1785 static void lpc32xx_ep_free_request(struct usb_ep *_ep, in lpc32xx_ep_free_request() argument 1796 static int lpc32xx_ep_queue(struct usb_ep *_ep, in lpc32xx_ep_queue() argument 1806 ep = container_of(_ep, struct lpc32xx_ep, ep); in lpc32xx_ep_queue() 1814 if (!_ep) { in lpc32xx_ep_queue() [all …]
|
/drivers/scsi/libfc/ |
D | fc_libfc.h | 71 struct fc_exch *_ep = NULL; \ 72 _ep = fc_seq_exch((pkt)->seq_ptr); \ 77 (_ep)->oxid, (_ep)->rxid, ##args); \
|
/drivers/staging/emxx_udc/ |
D | emxx_udc.c | 150 static void _nbu2ss_ep0_complete(struct usb_ep *_ep, struct usb_request *_req) in _nbu2ss_ep0_complete() argument 158 if ((_ep == NULL) || (_req == NULL)) in _nbu2ss_ep0_complete() 2605 struct usb_ep *_ep, in nbu2ss_ep_enable() argument 2614 if ((_ep == NULL) || (desc == NULL)) { in nbu2ss_ep_enable() 2619 ep = container_of(_ep, struct nbu2ss_ep, ep); in nbu2ss_ep_enable() 2668 static int nbu2ss_ep_disable(struct usb_ep *_ep) in nbu2ss_ep_disable() argument 2674 if (_ep == NULL) { in nbu2ss_ep_disable() 2679 ep = container_of(_ep, struct nbu2ss_ep, ep); in nbu2ss_ep_disable() 2717 struct usb_ep *_ep, in nbu2ss_ep_free_request() argument 2732 struct usb_ep *_ep, in nbu2ss_ep_queue() argument [all …]
|
/drivers/media/platform/exynos4-is/ |
D | media-dev.h | 67 #define to_fimc_pipeline(_ep) container_of(_ep, struct fimc_pipeline, ep) argument
|