Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/usb/usbip/
Dvudc_dev.c229 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 …]
Dvudc.h122 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()
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/
Ds3c-hsudc.c153 #define ep_maxpacket(_ep) ((_ep)->ep.maxpacket) argument
154 #define ep_is_in(_ep) ((_ep)->bEndpointAddress & USB_DIR_IN) argument
155 #define ep_index(_ep) ((_ep)->bEndpointAddress & \ argument
448 static int s3c_hsudc_set_halt(struct usb_ep *_ep, int value) in s3c_hsudc_set_halt() argument
450 struct s3c_hsudc_ep *hsep = our_ep(_ep); in s3c_hsudc_set_halt()
492 static int s3c_hsudc_set_wedge(struct usb_ep *_ep) in s3c_hsudc_set_wedge() argument
494 struct s3c_hsudc_ep *hsep = our_ep(_ep); in s3c_hsudc_set_wedge()
500 return usb_ep_set_halt(_ep); in s3c_hsudc_set_wedge()
699 static int s3c_hsudc_ep_enable(struct usb_ep *_ep, in s3c_hsudc_ep_enable() argument
707 hsep = our_ep(_ep); in s3c_hsudc_ep_enable()
[all …]
Ds3c2410_udc.c572 static int s3c2410_udc_set_halt(struct usb_ep *_ep, int value);
1002 static int s3c2410_udc_ep_enable(struct usb_ep *_ep, in s3c2410_udc_ep_enable() argument
1012 ep = to_s3c2410_ep(_ep); in s3c2410_udc_ep_enable()
1014 if (!_ep || !desc in s3c2410_udc_ep_enable()
1015 || _ep->name == ep0name in s3c2410_udc_ep_enable()
1026 _ep->maxpacket = max; in s3c2410_udc_ep_enable()
1070 _ep->name, ep->num, tmp, in s3c2410_udc_ep_enable()
1074 s3c2410_udc_set_halt(_ep, 0); in s3c2410_udc_ep_enable()
1082 static int s3c2410_udc_ep_disable(struct usb_ep *_ep) in s3c2410_udc_ep_disable() argument
1084 struct s3c2410_ep *ep = to_s3c2410_ep(_ep); in s3c2410_udc_ep_disable()
[all …]
Dfotg210-udc.c157 static int fotg210_ep_enable(struct usb_ep *_ep, in fotg210_ep_enable() argument
162 ep = container_of(_ep, struct fotg210_ep, ep); in fotg210_ep_enable()
209 static int fotg210_ep_disable(struct usb_ep *_ep) in fotg210_ep_disable() argument
215 BUG_ON(!_ep); in fotg210_ep_disable()
217 ep = container_of(_ep, struct fotg210_ep, ep); in fotg210_ep_disable()
230 static struct usb_request *fotg210_ep_alloc_request(struct usb_ep *_ep, in fotg210_ep_alloc_request() argument
244 static void fotg210_ep_free_request(struct usb_ep *_ep, in fotg210_ep_free_request() argument
393 static int fotg210_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in fotg210_ep_queue() argument
401 ep = container_of(_ep, struct fotg210_ep, ep); in fotg210_ep_queue()
427 static int fotg210_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in fotg210_ep_dequeue() argument
[all …]
Dpxa25x_udc.c422 static int pxa25x_ep_enable (struct usb_ep *_ep, in pxa25x_ep_enable() argument
428 ep = container_of (_ep, struct pxa25x_ep, ep); in pxa25x_ep_enable()
429 if (!_ep || !desc || _ep->name == ep0name in pxa25x_ep_enable()
441 DMSG("%s, %s type mismatch\n", __func__, _ep->name); in pxa25x_ep_enable()
450 DMSG("%s, bad %s maxpacket\n", __func__, _ep->name); in pxa25x_ep_enable()
466 pxa25x_ep_fifo_flush (_ep); in pxa25x_ep_enable()
470 DBG(DBG_VERBOSE, "enabled %s\n", _ep->name); in pxa25x_ep_enable()
474 static int pxa25x_ep_disable (struct usb_ep *_ep) in pxa25x_ep_disable() argument
479 ep = container_of (_ep, struct pxa25x_ep, ep); in pxa25x_ep_disable()
480 if (!_ep || !ep->ep.desc) { in pxa25x_ep_disable()
[all …]
Dnet2272.c175 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 …]
Ddummy_hcd.c100 static inline struct dummy_ep *usb_ep_to_dummy_ep(struct usb_ep *_ep) in usb_ep_to_dummy_ep() argument
102 return container_of(_ep, struct dummy_ep, ep); in usb_ep_to_dummy_ep()
499 static int dummy_enable(struct usb_ep *_ep, in dummy_enable() argument
508 ep = usb_ep_to_dummy_ep(_ep); in dummy_enable()
509 if (!_ep || !desc || ep->desc || _ep->name == ep0name in dummy_enable()
607 _ep->maxpacket = max; in dummy_enable()
608 if (usb_ss_max_streams(_ep->comp_desc)) { in dummy_enable()
611 "non-bulk ep %s\n", _ep->name); in dummy_enable()
619 _ep->name, in dummy_enable()
634 static int dummy_disable(struct usb_ep *_ep) in dummy_disable() argument
[all …]
Dmv_u3d_core.c520 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 …]
Dgr_udc.c346 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 …]
Dpxa27x_udc.c574 pxa_ep_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in pxa_ep_alloc_request() argument
584 req->udc_usb_ep = container_of(_ep, struct udc_usb_ep, usb_ep); in pxa_ep_alloc_request()
596 static void pxa_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in pxa_ep_free_request() argument
1045 static int pxa_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in pxa_ep_queue() argument
1059 udc_usb_ep = container_of(_ep, struct udc_usb_ep, usb_ep); in pxa_ep_queue()
1064 if (unlikely(!_ep)) in pxa_ep_queue()
1160 static int pxa_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in pxa_ep_dequeue() argument
1168 if (!_ep) in pxa_ep_dequeue()
1170 udc_usb_ep = container_of(_ep, struct udc_usb_ep, usb_ep); in pxa_ep_dequeue()
1198 static int pxa_ep_set_halt(struct usb_ep *_ep, int value) in pxa_ep_set_halt() argument
[all …]
Dgoku_udc.c91 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 …]
Dnet2280.c182 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 …]
Dfusb300_udc.c232 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 …]
Dfsl_udc_core.c73 static void fsl_ep_fifo_flush(struct usb_ep *_ep);
542 static int fsl_ep_enable(struct usb_ep *_ep, in fsl_ep_enable() argument
552 ep = container_of(_ep, struct fsl_ep, ep); in fsl_ep_enable()
555 if (!_ep || !desc in fsl_ep_enable()
630 static int fsl_ep_disable(struct usb_ep *_ep) in fsl_ep_disable() argument
638 ep = container_of(_ep, struct fsl_ep, ep); in fsl_ep_disable()
639 if (!_ep || !ep->ep.desc) { in fsl_ep_disable()
640 VDBG("%s not enabled", _ep ? ep->ep.name : NULL); in fsl_ep_disable()
666 VDBG("disabled %s OK", _ep->name); in fsl_ep_disable()
676 fsl_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in fsl_alloc_request() argument
[all …]
Dmv_udc_core.c434 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 …]
Dmax3420_udc.c907 static int max3420_ep_set_halt(struct usb_ep *_ep, int stall) in max3420_ep_set_halt() argument
909 struct max3420_ep *ep = to_max3420_ep(_ep); in max3420_ep_set_halt()
946 static int max3420_ep_enable(struct usb_ep *_ep, in max3420_ep_enable() argument
949 struct max3420_ep *ep = to_max3420_ep(_ep); in max3420_ep_enable()
994 static int max3420_ep_disable(struct usb_ep *_ep) in max3420_ep_disable() argument
996 struct max3420_ep *ep = to_max3420_ep(_ep); in max3420_ep_disable()
1008 static struct usb_request *max3420_alloc_request(struct usb_ep *_ep, in max3420_alloc_request() argument
1011 struct max3420_ep *ep = to_max3420_ep(_ep); in max3420_alloc_request()
1023 static void max3420_free_request(struct usb_ep *_ep, struct usb_request *_req) in max3420_free_request() argument
1028 static int max3420_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in max3420_ep_queue() argument
[all …]
Datmel_usba_udc.c574 usba_ep_enable(struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc) in usba_ep_enable() argument
576 struct usba_ep *ep = to_usba_ep(_ep); in usba_ep_enable()
666 static int usba_ep_disable(struct usb_ep *_ep) in usba_ep_disable() argument
668 struct usba_ep *ep = to_usba_ep(_ep); in usba_ep_disable()
701 usba_ep_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in usba_ep_alloc_request() argument
705 DBG(DBG_GADGET, "ep_alloc_request: %p, 0x%x\n", _ep, gfp_flags); in usba_ep_alloc_request()
717 usba_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in usba_ep_free_request() argument
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
779 struct usba_ep *ep = to_usba_ep(_ep); in usba_ep_queue()
[all …]
Dfsl_qe_udc.c1575 static int qe_ep_enable(struct usb_ep *_ep, in qe_ep_enable() argument
1583 ep = container_of(_ep, struct qe_ep, ep); in qe_ep_enable()
1586 if (!_ep || !desc || _ep->name == ep_name[0] || in qe_ep_enable()
1606 static int qe_ep_disable(struct usb_ep *_ep) in qe_ep_disable() argument
1613 ep = container_of(_ep, struct qe_ep, ep); in qe_ep_disable()
1616 if (!_ep || !ep->ep.desc) { in qe_ep_disable()
1617 dev_dbg(udc->dev, "%s not enabled\n", _ep ? ep->ep.name : NULL); in qe_ep_disable()
1658 dev_dbg(udc->dev, "disabled %s OK\n", _ep->name); in qe_ep_disable()
1662 static struct usb_request *qe_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in qe_alloc_request() argument
1677 static void qe_free_request(struct usb_ep *_ep, struct usb_request *_req) in qe_free_request() argument
[all …]
Dudc-xilinx.c746 static int xudc_ep_set_halt(struct usb_ep *_ep, int value) in xudc_ep_set_halt() argument
748 struct xusb_ep *ep = to_xusb_ep(_ep); in xudc_ep_set_halt()
753 if (!_ep || (!ep->desc && ep->epnumber)) { in xudc_ep_set_halt()
888 static int xudc_ep_enable(struct usb_ep *_ep, in xudc_ep_enable() argument
896 if (!_ep || !desc || desc->bDescriptorType != USB_DT_ENDPOINT) { in xudc_ep_enable()
901 ep = to_xusb_ep(_ep); in xudc_ep_enable()
922 static int xudc_ep_disable(struct usb_ep *_ep) in xudc_ep_disable() argument
929 if (!_ep) { in xudc_ep_disable()
934 ep = to_xusb_ep(_ep); in xudc_ep_disable()
962 static struct usb_request *xudc_ep_alloc_request(struct usb_ep *_ep, in xudc_ep_alloc_request() argument
[all …]
Dat91_udc.c471 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 …]
/kernel/linux/linux-5.10/drivers/scsi/libfc/
Dfc_libfc.h59 struct fc_exch *_ep = NULL; \
60 _ep = fc_seq_exch((pkt)->seq_ptr); \
65 (_ep)->oxid, (_ep)->rxid, ##args); \
/kernel/linux/linux-5.10/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
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
1765 if (!_ep || !_req) in bdc_gadget_ep_dequeue()
1768 ep = to_bdc_ep(_ep); in bdc_gadget_ep_dequeue()
1798 static int bdc_gadget_ep_set_halt(struct usb_ep *_ep, int value) in bdc_gadget_ep_set_halt() argument
1805 ep = to_bdc_ep(_ep); in bdc_gadget_ep_set_halt()
1821 static struct usb_request *bdc_gadget_alloc_request(struct usb_ep *_ep, in bdc_gadget_alloc_request() argument
[all …]
/kernel/linux/linux-5.10/drivers/staging/emxx_udc/
Demxx_udc.c130 static void _nbu2ss_ep0_complete(struct usb_ep *_ep, struct usb_request *_req) in _nbu2ss_ep0_complete() argument
139 if (!_ep || !_req) in _nbu2ss_ep0_complete()
2414 static int nbu2ss_ep_enable(struct usb_ep *_ep, in nbu2ss_ep_enable() argument
2423 if (!_ep || !desc) { in nbu2ss_ep_enable()
2428 ep = container_of(_ep, struct nbu2ss_ep, ep); in nbu2ss_ep_enable()
2474 static int nbu2ss_ep_disable(struct usb_ep *_ep) in nbu2ss_ep_disable() argument
2480 if (!_ep) { in nbu2ss_ep_disable()
2485 ep = container_of(_ep, struct nbu2ss_ep, ep); in nbu2ss_ep_disable()
2521 static void nbu2ss_ep_free_request(struct usb_ep *_ep, in nbu2ss_ep_free_request() argument
2534 static int nbu2ss_ep_queue(struct usb_ep *_ep, in nbu2ss_ep_queue() argument
[all …]
/kernel/linux/linux-5.10/drivers/usb/gadget/
Dcomposite.c150 struct usb_ep *_ep, in config_ep_by_speed_and_alt() argument
162 if (!g || !f || !_ep) in config_ep_by_speed_and_alt()
206 if (chosen_desc->bEndpointAddress == _ep->address) in config_ep_by_speed_and_alt()
213 _ep->maxpacket = usb_endpoint_maxp(chosen_desc); in config_ep_by_speed_and_alt()
214 _ep->desc = chosen_desc; in config_ep_by_speed_and_alt()
215 _ep->comp_desc = NULL; in config_ep_by_speed_and_alt()
216 _ep->maxburst = 0; in config_ep_by_speed_and_alt()
217 _ep->mult = 1; in config_ep_by_speed_and_alt()
219 if (g->speed == USB_SPEED_HIGH && (usb_endpoint_xfer_isoc(_ep->desc) || in config_ep_by_speed_and_alt()
220 usb_endpoint_xfer_int(_ep->desc))) in config_ep_by_speed_and_alt()
[all …]

12