Lines Matching refs:ep
293 gs_alloc_req(struct usb_ep *ep, unsigned len, gfp_t kmalloc_flags) in gs_alloc_req() argument
297 req = usb_ep_alloc_request(ep, kmalloc_flags); in gs_alloc_req()
303 usb_ep_free_request(ep, req); in gs_alloc_req()
317 void gs_free_req(struct usb_ep *ep, struct usb_request *req) in gs_free_req() argument
320 usb_ep_free_request(ep, req); in gs_free_req()
584 static void gs_read_complete(struct usb_ep *ep, struct usb_request *req) in gs_read_complete() argument
586 struct gs_port *port = ep->driver_data; in gs_read_complete()
595 static void gs_write_complete(struct usb_ep *ep, struct usb_request *req) in gs_write_complete() argument
597 struct gs_port *port = ep->driver_data; in gs_write_complete()
607 __func__, ep->name, req->status); in gs_write_complete()
616 pr_vdebug("%s: %s shutdown\n", __func__, ep->name); in gs_write_complete()
623 static void gs_free_requests(struct usb_ep *ep, struct list_head *head, in gs_free_requests() argument
631 gs_free_req(ep, req); in gs_free_requests()
637 static int gs_alloc_requests(struct usb_ep *ep, struct list_head *head, in gs_alloc_requests() argument
650 req = gs_alloc_req(ep, ep->maxpacket, GFP_ATOMIC); in gs_alloc_requests()
673 struct usb_ep *ep = port->port_usb->out; in gs_start_io() local
683 status = gs_alloc_requests(ep, head, gs_read_complete, in gs_start_io()
691 gs_free_requests(ep, head, &port->read_allocated); in gs_start_io()
703 gs_free_requests(ep, head, &port->read_allocated); in gs_start_io()