Home
last modified time | relevance | path

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

12

/drivers/usb/usbip/
Dvudc_dev.c242 static int vep_enable(struct usb_ep *_ep, in vep_enable() argument
250 ep = to_vep(_ep); in vep_enable()
253 if (!_ep || !desc || ep->desc || _ep->caps.type_control in vep_enable()
263 _ep->maxpacket = maxp; in vep_enable()
273 static int vep_disable(struct usb_ep *_ep) in vep_disable() argument
279 ep = to_vep(_ep); in vep_disable()
281 if (!_ep || !ep->desc || _ep->caps.type_control) in vep_disable()
292 static struct usb_request *vep_alloc_request(struct usb_ep *_ep, in vep_alloc_request() argument
298 if (!_ep) in vep_alloc_request()
300 ep = to_vep(_ep); in vep_alloc_request()
[all …]
/drivers/usb/gadget/udc/
Ds3c2410_udc.c597 static int s3c2410_udc_set_halt(struct usb_ep *_ep, int value);
1029 static int s3c2410_udc_ep_enable(struct usb_ep *_ep, in s3c2410_udc_ep_enable() argument
1039 ep = to_s3c2410_ep(_ep); in s3c2410_udc_ep_enable()
1041 if (!_ep || !desc in s3c2410_udc_ep_enable()
1042 || _ep->name == ep0name in s3c2410_udc_ep_enable()
1053 _ep->maxpacket = max & 0x7ff; in s3c2410_udc_ep_enable()
1097 _ep->name, ep->num, tmp, in s3c2410_udc_ep_enable()
1101 s3c2410_udc_set_halt(_ep, 0); in s3c2410_udc_ep_enable()
1109 static int s3c2410_udc_ep_disable(struct usb_ep *_ep) in s3c2410_udc_ep_disable() argument
1111 struct s3c2410_ep *ep = to_s3c2410_ep(_ep); in s3c2410_udc_ep_disable()
[all …]
Ds3c-hsudc.c158 #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 …]
Dpxa25x_udc.c426 static int pxa25x_ep_enable (struct usb_ep *_ep, in pxa25x_ep_enable() argument
432 ep = container_of (_ep, struct pxa25x_ep, ep); in pxa25x_ep_enable()
433 if (!_ep || !desc || _ep->name == ep0name in pxa25x_ep_enable()
445 DMSG("%s, %s type mismatch\n", __func__, _ep->name); in pxa25x_ep_enable()
454 DMSG("%s, bad %s maxpacket\n", __func__, _ep->name); in pxa25x_ep_enable()
470 pxa25x_ep_fifo_flush (_ep); in pxa25x_ep_enable()
474 DBG(DBG_VERBOSE, "enabled %s\n", _ep->name); in pxa25x_ep_enable()
478 static int pxa25x_ep_disable (struct usb_ep *_ep) in pxa25x_ep_disable() argument
483 ep = container_of (_ep, struct pxa25x_ep, ep); in pxa25x_ep_disable()
484 if (!_ep || !ep->ep.desc) { in pxa25x_ep_disable()
[all …]
Dfotg210-udc.c160 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
399 static int fotg210_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in fotg210_ep_queue() argument
407 ep = container_of(_ep, struct fotg210_ep, ep); in fotg210_ep_queue()
433 static int fotg210_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in fotg210_ep_dequeue() argument
[all …]
Dnet2272.c189 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 …]
Ddummy_hcd.c101 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()
489 static int dummy_enable(struct usb_ep *_ep, in dummy_enable() argument
498 ep = usb_ep_to_dummy_ep(_ep); in dummy_enable()
499 if (!_ep || !desc || ep->desc || _ep->name == ep0name in dummy_enable()
594 _ep->maxpacket = max; in dummy_enable()
595 if (usb_ss_max_streams(_ep->comp_desc)) { in dummy_enable()
598 "non-bulk ep %s\n", _ep->name); in dummy_enable()
606 _ep->name, in dummy_enable()
635 static int dummy_disable(struct usb_ep *_ep) in dummy_disable() argument
[all …]
Dgr_udc.c366 static struct usb_request *gr_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in gr_alloc_request() argument
810 static void gr_ep0_testmode_complete(struct usb_ep *_ep, in gr_ep0_testmode_complete() argument
817 ep = container_of(_ep, struct gr_ep, ep); in gr_ep0_testmode_complete()
829 static void gr_ep0_dummy_complete(struct usb_ep *_ep, struct usb_request *_req) in gr_ep0_dummy_complete() argument
1485 static int gr_ep_enable(struct usb_ep *_ep, in gr_ep_enable() argument
1496 ep = container_of(_ep, struct gr_ep, ep); in gr_ep_enable()
1497 if (!_ep || !desc || desc->bDescriptorType != USB_DT_ENDPOINT) in gr_ep_enable()
1619 static int gr_ep_disable(struct usb_ep *_ep) in gr_ep_disable() argument
1625 ep = container_of(_ep, struct gr_ep, ep); in gr_ep_disable()
1626 if (!_ep || !ep->ep.desc) in gr_ep_disable()
[all …]
Dmv_u3d_core.c516 static int mv_u3d_ep_enable(struct usb_ep *_ep, in mv_u3d_ep_enable() argument
525 if (!_ep || !desc || desc->bDescriptorType != USB_DT_ENDPOINT) in mv_u3d_ep_enable()
528 ep = container_of(_ep, struct mv_u3d_ep, ep); in mv_u3d_ep_enable()
537 if (!_ep->maxburst) in mv_u3d_ep_enable()
538 _ep->maxburst = 1; in mv_u3d_ep_enable()
539 maxburst = _ep->maxburst; in mv_u3d_ep_enable()
549 _ep->maxburst = maxburst; in mv_u3d_ep_enable()
557 _ep->maxburst = maxburst; in mv_u3d_ep_enable()
565 _ep->maxburst = maxburst; in mv_u3d_ep_enable()
574 _ep->maxburst = maxburst; in mv_u3d_ep_enable()
[all …]
Dgoku_udc.c94 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 …]
Dpxa27x_udc.c646 pxa_ep_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in pxa_ep_alloc_request() argument
656 req->udc_usb_ep = container_of(_ep, struct udc_usb_ep, usb_ep); in pxa_ep_alloc_request()
668 static void pxa_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in pxa_ep_free_request() argument
1119 static int pxa_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in pxa_ep_queue() argument
1133 udc_usb_ep = container_of(_ep, struct udc_usb_ep, usb_ep); in pxa_ep_queue()
1138 if (unlikely(!_ep)) in pxa_ep_queue()
1235 static int pxa_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in pxa_ep_dequeue() argument
1243 if (!_ep) in pxa_ep_dequeue()
1245 udc_usb_ep = container_of(_ep, struct udc_usb_ep, usb_ep); in pxa_ep_dequeue()
1273 static int pxa_ep_set_halt(struct usb_ep *_ep, int value) in pxa_ep_set_halt() argument
[all …]
Dnet2280.c185 net2280_enable(struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc) in net2280_enable() argument
196 ep = container_of(_ep, struct net2280_ep, ep); in net2280_enable()
197 if (!_ep || !desc || ep->desc || _ep->name == ep0name || in net2280_enable()
234 _ep->maxpacket = max & 0x7ff; in net2280_enable()
351 _ep->name, tmp & 0x0f, DIR_STRING(tmp), in net2280_enable()
517 static int net2280_disable(struct usb_ep *_ep) in net2280_disable() argument
522 ep = container_of(_ep, struct net2280_ep, ep); in net2280_disable()
523 if (!_ep || !ep->desc || _ep->name == ep0name) { in net2280_disable()
524 pr_err("%s: Invalid ep=%p or ep->desc\n", __func__, _ep); in net2280_disable()
536 ep->dma ? "dma" : "pio", _ep->name); in net2280_disable()
[all …]
Dfusb300_udc.c235 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 …]
Dfsl_udc_core.c78 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 …]
Dmv_udc_core.c440 static int mv_ep_enable(struct usb_ep *_ep, in mv_ep_enable() argument
451 ep = container_of(_ep, struct mv_ep, ep); in mv_ep_enable()
454 if (!_ep || !desc in mv_ep_enable()
561 static int mv_ep_disable(struct usb_ep *_ep) in mv_ep_disable() argument
569 ep = container_of(_ep, struct mv_ep, ep); in mv_ep_disable()
570 if ((_ep == NULL) || !ep->ep.desc) in mv_ep_disable()
604 mv_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in mv_alloc_request() argument
618 static void mv_free_request(struct usb_ep *_ep, struct usb_request *_req) in mv_free_request() argument
628 static void mv_ep_fifo_flush(struct usb_ep *_ep) in mv_ep_fifo_flush() argument
635 if (!_ep) in mv_ep_fifo_flush()
[all …]
Dfsl_qe_udc.c1579 static int qe_ep_enable(struct usb_ep *_ep, in qe_ep_enable() argument
1587 ep = container_of(_ep, struct qe_ep, ep); in qe_ep_enable()
1590 if (!_ep || !desc || _ep->name == ep_name[0] || in qe_ep_enable()
1610 static int qe_ep_disable(struct usb_ep *_ep) in qe_ep_disable() argument
1617 ep = container_of(_ep, struct qe_ep, ep); in qe_ep_disable()
1620 if (!_ep || !ep->ep.desc) { in qe_ep_disable()
1621 dev_dbg(udc->dev, "%s not enabled\n", _ep ? ep->ep.name : NULL); in qe_ep_disable()
1662 dev_dbg(udc->dev, "disabled %s OK\n", _ep->name); in qe_ep_disable()
1666 static struct usb_request *qe_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in qe_alloc_request() argument
1681 static void qe_free_request(struct usb_ep *_ep, struct usb_request *_req) in qe_free_request() argument
[all …]
Dudc-xilinx.c751 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 …]
Drenesas_usb3.c279 #define usb_ep_to_usb3_ep(_ep) container_of(_ep, struct renesas_usb3_ep, ep) argument
1039 static int renesas_usb3_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in renesas_usb3_ep_queue() argument
1042 struct renesas_usb3_ep *usb3_ep = usb_ep_to_usb3_ep(_ep); in renesas_usb3_ep_queue()
1624 static int renesas_usb3_ep_enable(struct usb_ep *_ep, in renesas_usb3_ep_enable() argument
1627 struct renesas_usb3_ep *usb3_ep = usb_ep_to_usb3_ep(_ep); in renesas_usb3_ep_enable()
1632 static int renesas_usb3_ep_disable(struct usb_ep *_ep) in renesas_usb3_ep_disable() argument
1634 struct renesas_usb3_ep *usb3_ep = usb_ep_to_usb3_ep(_ep); in renesas_usb3_ep_disable()
1667 static struct usb_request *renesas_usb3_ep_alloc_request(struct usb_ep *_ep, in renesas_usb3_ep_alloc_request() argument
1673 static void renesas_usb3_ep_free_request(struct usb_ep *_ep, in renesas_usb3_ep_free_request() argument
1679 static int renesas_usb3_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in renesas_usb3_ep_dequeue() argument
[all …]
Dat91_udc.c487 static int at91_ep_enable(struct usb_ep *_ep, in at91_ep_enable() argument
490 struct at91_ep *ep = container_of(_ep, struct at91_ep, ep); in at91_ep_enable()
496 if (!_ep || !ep in at91_ep_enable()
497 || !desc || _ep->name == ep0name in at91_ep_enable()
565 static int at91_ep_disable (struct usb_ep * _ep) in at91_ep_disable() argument
567 struct at91_ep *ep = container_of(_ep, struct at91_ep, ep); in at91_ep_disable()
599 at91_ep_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in at91_ep_alloc_request() argument
611 static void at91_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in at91_ep_free_request() argument
620 static int at91_ep_queue(struct usb_ep *_ep, in at91_ep_queue() argument
630 ep = container_of(_ep, struct at91_ep, ep); in at91_ep_queue()
[all …]
Domap_udc.c146 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 …]
Dr8a66597-udc.c41 static int r8a66597_queue(struct usb_ep *_ep, struct usb_request *_req,
1552 static int r8a66597_enable(struct usb_ep *_ep, in r8a66597_enable() argument
1557 ep = container_of(_ep, struct r8a66597_ep, ep); in r8a66597_enable()
1561 static int r8a66597_disable(struct usb_ep *_ep) in r8a66597_disable() argument
1567 ep = container_of(_ep, struct r8a66597_ep, ep); in r8a66597_disable()
1581 static struct usb_request *r8a66597_alloc_request(struct usb_ep *_ep, in r8a66597_alloc_request() argument
1595 static void r8a66597_free_request(struct usb_ep *_ep, struct usb_request *_req) in r8a66597_free_request() argument
1603 static int r8a66597_queue(struct usb_ep *_ep, struct usb_request *_req, in r8a66597_queue() argument
1611 ep = container_of(_ep, struct r8a66597_ep, ep); in r8a66597_queue()
1638 static int r8a66597_dequeue(struct usb_ep *_ep, struct usb_request *_req) in r8a66597_dequeue() argument
[all …]
/drivers/scsi/libfc/
Dfc_libfc.h71 struct fc_exch *_ep = NULL; \
72 _ep = fc_seq_exch((pkt)->seq_ptr); \
77 (_ep)->oxid, (_ep)->rxid, ##args); \
/drivers/usb/gadget/udc/bdc/
Dbdc_ep.c1383 static void ep0_set_sel_cmpl(struct usb_ep *_ep, struct usb_request *_req) in ep0_set_sel_cmpl() argument
1714 static int bdc_gadget_ep_queue(struct usb_ep *_ep, in bdc_gadget_ep_queue() argument
1723 if (!_ep || !_ep->desc) in bdc_gadget_ep_queue()
1729 ep = to_bdc_ep(_ep); in bdc_gadget_ep_queue()
1760 static int bdc_gadget_ep_dequeue(struct usb_ep *_ep, in bdc_gadget_ep_dequeue() argument
1769 if (!_ep || !_req) in bdc_gadget_ep_dequeue()
1772 ep = to_bdc_ep(_ep); in bdc_gadget_ep_dequeue()
1802 static int bdc_gadget_ep_set_halt(struct usb_ep *_ep, int value) in bdc_gadget_ep_set_halt() argument
1809 ep = to_bdc_ep(_ep); in bdc_gadget_ep_set_halt()
1825 static struct usb_request *bdc_gadget_alloc_request(struct usb_ep *_ep, in bdc_gadget_alloc_request() argument
[all …]
/drivers/staging/emxx_udc/
Demxx_udc.c142 static void _nbu2ss_ep0_complete(struct usb_ep *_ep, struct usb_request *_req) in _nbu2ss_ep0_complete() argument
150 if ((!_ep) || (!_req)) in _nbu2ss_ep0_complete()
2528 struct usb_ep *_ep, in nbu2ss_ep_enable() argument
2537 if ((!_ep) || (!desc)) { in nbu2ss_ep_enable()
2542 ep = container_of(_ep, struct nbu2ss_ep, ep); in nbu2ss_ep_enable()
2591 static int nbu2ss_ep_disable(struct usb_ep *_ep) in nbu2ss_ep_disable() argument
2597 if (!_ep) { in nbu2ss_ep_disable()
2602 ep = container_of(_ep, struct nbu2ss_ep, ep); in nbu2ss_ep_disable()
2640 struct usb_ep *_ep, in nbu2ss_ep_free_request() argument
2654 struct usb_ep *_ep, in nbu2ss_ep_queue() argument
[all …]
/drivers/usb/gadget/
Dcomposite.c151 struct usb_ep *_ep) in config_ep_by_speed() argument
161 if (!g || !f || !_ep) in config_ep_by_speed()
192 if (chosen_desc->bEndpointAddress == _ep->address) in config_ep_by_speed()
199 _ep->maxpacket = usb_endpoint_maxp(chosen_desc) & 0x7ff; in config_ep_by_speed()
200 _ep->desc = chosen_desc; in config_ep_by_speed()
201 _ep->comp_desc = NULL; in config_ep_by_speed()
202 _ep->maxburst = 0; in config_ep_by_speed()
203 _ep->mult = 1; in config_ep_by_speed()
205 if (g->speed == USB_SPEED_HIGH && (usb_endpoint_xfer_isoc(_ep->desc) || in config_ep_by_speed()
206 usb_endpoint_xfer_int(_ep->desc))) in config_ep_by_speed()
[all …]

12