/Linux-v6.6/include/linux/usb/ |
D | gadget.h | 31 struct usb_ep; 115 void (*complete)(struct usb_ep *ep, 136 int (*enable) (struct usb_ep *ep, 138 int (*disable) (struct usb_ep *ep); 139 void (*dispose) (struct usb_ep *ep); 141 struct usb_request *(*alloc_request) (struct usb_ep *ep, 143 void (*free_request) (struct usb_ep *ep, struct usb_request *req); 145 int (*queue) (struct usb_ep *ep, struct usb_request *req, 147 int (*dequeue) (struct usb_ep *ep, struct usb_request *req); 149 int (*set_halt) (struct usb_ep *ep, int value); [all …]
|
/Linux-v6.6/drivers/usb/gadget/function/ |
D | f_midi2.c | 31 struct f_midi2_usb_ep *usb_ep; /* belonging USB EP */ member 40 struct usb_ep *usb_ep; /* assigned USB EP */ member 41 void (*complete)(struct usb_ep *usb_ep, struct usb_request *req); 380 static struct usb_request *get_empty_request(struct f_midi2_usb_ep *usb_ep) in get_empty_request() argument 386 spin_lock_irqsave(&usb_ep->card->queue_lock, flags); in get_empty_request() 387 if (!usb_ep->free_reqs) in get_empty_request() 389 index = find_first_bit(&usb_ep->free_reqs, usb_ep->num_reqs); in get_empty_request() 390 if (index >= usb_ep->num_reqs) in get_empty_request() 392 req = usb_ep->reqs[index].req; in get_empty_request() 395 clear_bit(index, &usb_ep->free_reqs); in get_empty_request() [all …]
|
D | g_zero.h | 70 struct usb_ep *in, struct usb_ep *out, 71 struct usb_ep *iso_in, struct usb_ep *iso_out);
|
D | u_serial.h | 40 struct usb_ep *in; 41 struct usb_ep *out; 53 struct usb_request *gs_alloc_req(struct usb_ep *ep, unsigned len, gfp_t flags); 54 void gs_free_req(struct usb_ep *, struct usb_request *req);
|
D | tcm.h | 121 struct usb_ep *ep_in; 122 struct usb_ep *ep_out; 125 struct usb_ep *ep_status; 126 struct usb_ep *ep_cmd;
|
D | u_audio.h | 64 struct usb_ep *in_ep; 66 struct usb_ep *out_ep; 68 struct usb_ep *in_ep_fback;
|
D | uvc.h | 25 struct usb_ep; 88 struct usb_ep *ep; 150 struct usb_ep *interrupt_ep;
|
D | f_sourcesink.c | 37 struct usb_ep *in_ep; 38 struct usb_ep *out_ep; 39 struct usb_ep *iso_in_ep; 40 struct usb_ep *iso_out_ep; 290 static inline struct usb_request *ss_alloc_ep_req(struct usb_ep *ep, int len) in ss_alloc_ep_req() 295 static void disable_ep(struct usb_composite_dev *cdev, struct usb_ep *ep) in disable_ep() 305 struct usb_ep *in, struct usb_ep *out, in disable_endpoints() 306 struct usb_ep *iso_in, struct usb_ep *iso_out) in disable_endpoints() 500 static void reinit_write_data(struct usb_ep *ep, struct usb_request *req) in reinit_write_data() 520 static void source_sink_complete(struct usb_ep *ep, struct usb_request *req) in source_sink_complete() [all …]
|
D | u_serial.c | 166 gs_alloc_req(struct usb_ep *ep, unsigned len, gfp_t kmalloc_flags) in gs_alloc_req() 190 void gs_free_req(struct usb_ep *ep, struct usb_request *req) in gs_free_req() 237 struct usb_ep *in; in gs_start_tx() 309 struct usb_ep *out = port->port_usb->out; in gs_start_rx() 453 static void gs_read_complete(struct usb_ep *ep, struct usb_request *req) in gs_read_complete() 464 static void gs_write_complete(struct usb_ep *ep, struct usb_request *req) in gs_write_complete() 492 static void gs_free_requests(struct usb_ep *ep, struct list_head *head, in gs_free_requests() 506 static int gs_alloc_requests(struct usb_ep *ep, struct list_head *head, in gs_alloc_requests() 507 void (*fn)(struct usb_ep *, struct usb_request *), in gs_alloc_requests() argument 542 struct usb_ep *ep; in gs_start_io() [all …]
|
D | f_loopback.c | 31 struct usb_ep *in_ep; 32 struct usb_ep *out_ep; 233 static void loopback_complete(struct usb_ep *ep, struct usb_request *req) in loopback_complete() 303 static inline struct usb_request *lb_alloc_ep_req(struct usb_ep *ep, int len) in lb_alloc_ep_req() 359 struct f_loopback *loop, struct usb_ep *ep) in enable_endpoint()
|
/Linux-v6.6/drivers/usb/gadget/udc/ |
D | trace.h | 145 TP_PROTO(struct usb_ep *ep, int ret), 179 TP_PROTO(struct usb_ep *ep, int ret), 184 TP_PROTO(struct usb_ep *ep, int ret), 189 TP_PROTO(struct usb_ep *ep, int ret), 194 TP_PROTO(struct usb_ep *ep, int ret), 199 TP_PROTO(struct usb_ep *ep, int ret), 204 TP_PROTO(struct usb_ep *ep, int ret), 209 TP_PROTO(struct usb_ep *ep, int ret), 214 TP_PROTO(struct usb_ep *ep, int ret), 219 TP_PROTO(struct usb_ep *ep, struct usb_request *req, int ret), [all …]
|
D | tegra-xudc.c | 397 struct usb_ep usb_ep; member 607 static inline struct tegra_xudc_ep *to_xudc_ep(struct usb_ep *ep) in to_xudc_ep() 609 return container_of(ep, struct tegra_xudc_ep, usb_ep); in to_xudc_ep() 1053 usb_gadget_giveback_request(&ep->usb_ep, &req->usb_req); in tegra_xudc_req_done() 1290 ((req->usb_req.length % ep->usb_ep.maxpacket) == 0)) { in __tegra_xudc_ep_queue() 1306 tegra_xudc_ep_queue(struct usb_ep *usb_ep, struct usb_request *usb_req, in tegra_xudc_ep_queue() argument 1315 if (!usb_ep || !usb_req) in tegra_xudc_ep_queue() 1318 ep = to_xudc_ep(usb_ep); in tegra_xudc_ep_queue() 1516 tegra_xudc_ep_dequeue(struct usb_ep *usb_ep, struct usb_request *usb_req) in tegra_xudc_ep_dequeue() argument 1524 if (!usb_ep || !usb_req) in tegra_xudc_ep_dequeue() [all …]
|
D | core.c | 81 void usb_ep_set_maxpacket_limit(struct usb_ep *ep, in usb_ep_set_maxpacket_limit() 113 int usb_ep_enable(struct usb_ep *ep) in usb_ep_enable() 158 int usb_ep_disable(struct usb_ep *ep) in usb_ep_disable() 192 struct usb_request *usb_ep_alloc_request(struct usb_ep *ep, in usb_ep_alloc_request() 214 void usb_ep_free_request(struct usb_ep *ep, in usb_ep_free_request() 290 int usb_ep_queue(struct usb_ep *ep, in usb_ep_queue() 326 int usb_ep_dequeue(struct usb_ep *ep, struct usb_request *req) in usb_ep_dequeue() 360 int usb_ep_set_halt(struct usb_ep *ep) in usb_ep_set_halt() 386 int usb_ep_clear_halt(struct usb_ep *ep) in usb_ep_clear_halt() 409 int usb_ep_set_wedge(struct usb_ep *ep) in usb_ep_set_wedge() [all …]
|
D | pxa27x_udc.c | 572 pxa_ep_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) in pxa_ep_alloc_request() 582 req->udc_usb_ep = container_of(_ep, struct udc_usb_ep, usb_ep); in pxa_ep_alloc_request() 594 static void pxa_ep_free_request(struct usb_ep *_ep, struct usb_request *_req) in pxa_ep_free_request() 679 usb_gadget_giveback_request(&req->udc_usb_ep->usb_ep, &req->req); in req_done() 1043 static int pxa_ep_queue(struct usb_ep *_ep, struct usb_request *_req, in pxa_ep_queue() 1057 udc_usb_ep = container_of(_ep, struct udc_usb_ep, usb_ep); in pxa_ep_queue() 1158 static int pxa_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in pxa_ep_dequeue() 1168 udc_usb_ep = container_of(_ep, struct udc_usb_ep, usb_ep); in pxa_ep_dequeue() 1197 static int pxa_ep_set_halt(struct usb_ep *_ep, int value) in pxa_ep_set_halt() 1207 udc_usb_ep = container_of(_ep, struct udc_usb_ep, usb_ep); in pxa_ep_set_halt() [all …]
|
/Linux-v6.6/drivers/usb/gadget/ |
D | epautoconf.c | 63 struct usb_ep *usb_ep_autoconfig_ss( in usb_ep_autoconfig_ss() 69 struct usb_ep *ep; in usb_ep_autoconfig_ss() 149 struct usb_ep *usb_ep_autoconfig( in usb_ep_autoconfig() 154 struct usb_ep *ep; in usb_ep_autoconfig() 187 void usb_ep_autoconfig_release(struct usb_ep *ep) in usb_ep_autoconfig_release() 205 struct usb_ep *ep; in usb_ep_autoconfig_reset()
|
D | u_f.h | 60 struct usb_ep; 75 struct usb_request *alloc_ep_req(struct usb_ep *ep, size_t len); 78 static inline void free_ep_req(struct usb_ep *ep, struct usb_request *req) in free_ep_req()
|
/Linux-v6.6/drivers/usb/gadget/udc/bdc/ |
D | bdc_ep.c | 552 usb_gadget_giveback_request(&ep->usb_ep, &req->usb_req); in bdc_req_complete() 595 ep->usb_ep.desc = NULL; in bdc_ep_disable() 626 ep->usb_ep.maxpacket = usb_endpoint_maxp(ep->desc); in bdc_ep_enable() 627 ep->usb_ep.desc = ep->desc; in bdc_ep_enable() 628 ep->usb_ep.comp_desc = ep->comp_desc; in bdc_ep_enable() 714 if (!req || !ep->usb_ep.desc) in ep_queue() 760 ep, (void *)ep->usb_ep.desc); in ep_dequeue() 917 list_del(&ep->usb_ep.ep_list); in bdc_free_ep() 1379 static void ep0_set_sel_cmpl(struct usb_ep *_ep, struct usb_request *_req) in ep0_set_sel_cmpl() 1710 static int bdc_gadget_ep_queue(struct usb_ep *_ep, in bdc_gadget_ep_queue() [all …]
|
/Linux-v6.6/drivers/usb/gadget/legacy/ |
D | dbgp.c | 29 struct usb_ep *i_ep; 30 struct usb_ep *o_ep; 81 static void __disable_ep(struct usb_ep *ep) in __disable_ep() 92 static void dbgp_complete(struct usb_ep *ep, struct usb_request *req) in dbgp_complete() 128 static int dbgp_enable_ep_req(struct usb_ep *ep) in dbgp_enable_ep_req() 167 static int __enable_ep(struct usb_ep *ep, struct usb_endpoint_descriptor *desc) in __enable_ep() 330 static void dbgp_setup_complete(struct usb_ep *ep, in dbgp_setup_complete()
|
/Linux-v6.6/drivers/usb/musb/ |
D | musb_gadget.h | 66 musb_alloc_request(struct usb_ep *ep, gfp_t gfp_flags); 67 extern void musb_free_request(struct usb_ep *ep, struct usb_request *req); 75 struct usb_ep end_point;
|
/Linux-v6.6/drivers/usb/usbip/ |
D | vudc_dev.c | 229 static int vep_enable(struct usb_ep *_ep, in vep_enable() 260 static int vep_disable(struct usb_ep *_ep) in vep_disable() 279 static struct usb_request *vep_alloc_request(struct usb_ep *_ep, in vep_alloc_request() 296 static void vep_free_request(struct usb_ep *_ep, struct usb_request *_req) in vep_free_request() 308 static int vep_queue(struct usb_ep *_ep, struct usb_request *_req, in vep_queue() 333 static int vep_dequeue(struct usb_ep *_ep, struct usb_request *_req) in vep_dequeue() 370 vep_set_halt_and_wedge(struct usb_ep *_ep, int value, int wedged) in vep_set_halt_and_wedge() 402 vep_set_halt(struct usb_ep *_ep, int value) in vep_set_halt() 407 static int vep_set_wedge(struct usb_ep *_ep) in vep_set_wedge()
|
D | vudc.h | 26 struct usb_ep ep; 122 static inline struct vep *to_vep(struct usb_ep *_ep) in to_vep()
|
/Linux-v6.6/drivers/usb/dwc3/ |
D | gadget.h | 115 int __dwc3_gadget_ep0_set_halt(struct usb_ep *ep, int value); 116 int dwc3_gadget_ep0_set_halt(struct usb_ep *ep, int value); 117 int dwc3_gadget_ep0_queue(struct usb_ep *ep, struct usb_request *request,
|
/Linux-v6.6/drivers/usb/mtu3/ |
D | mtu3.h | 275 struct usb_ep ep; 380 static inline struct mtu3_ep *to_mtu3_ep(struct usb_ep *ep) in to_mtu3_ep() 418 struct usb_request *mtu3_alloc_request(struct usb_ep *ep, gfp_t gfp_flags); 419 void mtu3_free_request(struct usb_ep *ep, struct usb_request *req);
|
D | mtu3_gadget.c | 151 static int mtu3_gadget_ep_enable(struct usb_ep *ep, in mtu3_gadget_ep_enable() 206 static int mtu3_gadget_ep_disable(struct usb_ep *ep) in mtu3_gadget_ep_disable() 232 struct usb_request *mtu3_alloc_request(struct usb_ep *ep, gfp_t gfp_flags) in mtu3_alloc_request() 250 void mtu3_free_request(struct usb_ep *ep, struct usb_request *req) in mtu3_free_request() 258 static int mtu3_gadget_queue(struct usb_ep *ep, in mtu3_gadget_queue() 321 static int mtu3_gadget_dequeue(struct usb_ep *ep, struct usb_request *req) in mtu3_gadget_dequeue() 362 static int mtu3_gadget_ep_set_halt(struct usb_ep *ep, int value) in mtu3_gadget_ep_set_halt() 408 static int mtu3_gadget_ep_set_wedge(struct usb_ep *ep) in mtu3_gadget_ep_set_wedge()
|
/Linux-v6.6/drivers/usb/renesas_usbhs/ |
D | mod_gadget.c | 30 struct usb_ep ep; 301 static void __usbhsg_recip_send_complete(struct usb_ep *ep, in __usbhsg_recip_send_complete() 579 static int usbhsg_ep_enable(struct usb_ep *ep, in usbhsg_ep_enable() 636 static int usbhsg_ep_disable(struct usb_ep *ep) in usbhsg_ep_disable() 659 static struct usb_request *usbhsg_ep_alloc_request(struct usb_ep *ep, in usbhsg_ep_alloc_request() 673 static void usbhsg_ep_free_request(struct usb_ep *ep, in usbhsg_ep_free_request() 682 static int usbhsg_ep_queue(struct usb_ep *ep, struct usb_request *req, in usbhsg_ep_queue() 701 static int usbhsg_ep_dequeue(struct usb_ep *ep, struct usb_request *req) in usbhsg_ep_dequeue() 723 static int __usbhsg_ep_set_halt_wedge(struct usb_ep *ep, int halt, int wedge) in __usbhsg_ep_set_halt_wedge() 768 static int usbhsg_ep_set_halt(struct usb_ep *ep, int value) in usbhsg_ep_set_halt() [all …]
|