Lines Matching refs:ep
292 gs_alloc_req(struct usb_ep *ep, unsigned len, gfp_t kmalloc_flags) in gs_alloc_req() argument
296 req = usb_ep_alloc_request(ep, kmalloc_flags); in gs_alloc_req()
302 usb_ep_free_request(ep, req); in gs_alloc_req()
316 void gs_free_req(struct usb_ep *ep, struct usb_request *req) in gs_free_req() argument
319 usb_ep_free_request(ep, req); in gs_free_req()
583 static void gs_read_complete(struct usb_ep *ep, struct usb_request *req) in gs_read_complete() argument
585 struct gs_port *port = ep->driver_data; in gs_read_complete()
594 static void gs_write_complete(struct usb_ep *ep, struct usb_request *req) in gs_write_complete() argument
596 struct gs_port *port = ep->driver_data; in gs_write_complete()
606 __func__, ep->name, req->status); in gs_write_complete()
615 pr_vdebug("%s: %s shutdown\n", __func__, ep->name); in gs_write_complete()
622 static void gs_free_requests(struct usb_ep *ep, struct list_head *head, in gs_free_requests() argument
630 gs_free_req(ep, req); in gs_free_requests()
636 static int gs_alloc_requests(struct usb_ep *ep, struct list_head *head, in gs_alloc_requests() argument
649 req = gs_alloc_req(ep, ep->maxpacket, GFP_ATOMIC); in gs_alloc_requests()
672 struct usb_ep *ep = port->port_usb->out; in gs_start_io() local
682 status = gs_alloc_requests(ep, head, gs_read_complete, in gs_start_io()
690 gs_free_requests(ep, head, &port->read_allocated); in gs_start_io()
702 gs_free_requests(ep, head, &port->read_allocated); in gs_start_io()