Lines Matching refs:ep

112 	struct usb_ep			*ep;	/* P: ffs->eps_lock */  member
129 struct ffs_ep *ep; /* P: ffs->eps_lock */ member
155 struct usb_ep *ep; member
198 static void ffs_ep0_complete(struct usb_ep *ep, struct usb_request *req) in ffs_ep0_complete() argument
637 struct ffs_ep *ep = _ep->driver_data; in ffs_epfile_io_complete() local
638 ep->status = req->status ? req->status : req->actual; in ffs_epfile_io_complete()
664 usb_ep_free_request(io_data->ep, io_data->req); in ffs_user_copy_worker()
686 struct ffs_ep *ep; in ffs_epfile_io() local
698 ep = epfile->ep; in ffs_epfile_io()
699 if (!ep) { in ffs_epfile_io()
705 ret = wait_event_interruptible(epfile->wait, (ep = epfile->ep)); in ffs_epfile_io()
730 if (epfile->ep != ep) { in ffs_epfile_io()
740 data_len = usb_ep_align_maybe(gadget, ep->ep, data_len); in ffs_epfile_io()
762 if (epfile->ep != ep) { in ffs_epfile_io()
768 if (likely(epfile->ep == ep) && !WARN_ON(!ep->ep)) in ffs_epfile_io()
769 usb_ep_set_halt(ep->ep); in ffs_epfile_io()
794 req = usb_ep_alloc_request(ep->ep, GFP_KERNEL); in ffs_epfile_io()
802 io_data->ep = ep->ep; in ffs_epfile_io()
809 ret = usb_ep_queue(ep->ep, req, GFP_ATOMIC); in ffs_epfile_io()
811 usb_ep_free_request(ep->ep, req); in ffs_epfile_io()
820 req = ep->req; in ffs_epfile_io()
827 ret = usb_ep_queue(ep->ep, req, GFP_ATOMIC); in ffs_epfile_io()
836 usb_ep_dequeue(ep->ep, req); in ffs_epfile_io()
845 ret = ep->status; in ffs_epfile_io()
893 if (likely(io_data && io_data->ep && io_data->req)) in ffs_aio_cancel()
894 value = usb_ep_dequeue(io_data->ep, io_data->req); in ffs_aio_cancel()
1011 if (likely(epfile->ep)) { in ffs_epfile_ioctl()
1014 ret = usb_ep_fifo_status(epfile->ep->ep); in ffs_epfile_ioctl()
1017 usb_ep_fifo_flush(epfile->ep->ep); in ffs_epfile_ioctl()
1021 ret = usb_ep_clear_halt(epfile->ep->ep); in ffs_epfile_ioctl()
1024 ret = epfile->ep->num; in ffs_epfile_ioctl()
1041 desc = epfile->ep->descs[desc_idx]; in ffs_epfile_ioctl()
1614 struct ffs_ep *ep = func->eps; in ffs_func_eps_disable() local
1622 if (likely(ep->ep)) in ffs_func_eps_disable()
1623 usb_ep_disable(ep->ep); in ffs_func_eps_disable()
1624 ++ep; in ffs_func_eps_disable()
1627 epfile->ep = NULL; in ffs_func_eps_disable()
1637 struct ffs_ep *ep = func->eps; in ffs_func_eps_enable() local
1657 ds = ep->descs[desc_idx]; in ffs_func_eps_enable()
1665 ep->ep->driver_data = ep; in ffs_func_eps_enable()
1666 ep->ep->desc = ds; in ffs_func_eps_enable()
1667 ret = usb_ep_enable(ep->ep); in ffs_func_eps_enable()
1669 epfile->ep = ep; in ffs_func_eps_enable()
1678 ++ep; in ffs_func_eps_enable()
2509 if (ffs_ep->ep) { in __ffs_func_bind_do_descs()
2515 struct usb_ep *ep; in __ffs_func_bind_do_descs() local
2524 ep = usb_ep_autoconfig(func->gadget, ds); in __ffs_func_bind_do_descs()
2525 if (unlikely(!ep)) in __ffs_func_bind_do_descs()
2527 ep->driver_data = func->eps + idx; in __ffs_func_bind_do_descs()
2529 req = usb_ep_alloc_request(ep, GFP_KERNEL); in __ffs_func_bind_do_descs()
2533 ffs_ep->ep = ep; in __ffs_func_bind_do_descs()
2588 if (unlikely(!func->eps[idx].ep)) in __ffs_func_bind_do_nums()
3219 struct ffs_ep *ep = func->eps; in ffs_func_unbind() local
3235 if (ep->ep && ep->req) in ffs_func_unbind()
3236 usb_ep_free_request(ep->ep, ep->req); in ffs_func_unbind()
3237 ep->req = NULL; in ffs_func_unbind()
3238 ++ep; in ffs_func_unbind()