Lines Matching refs:ep
95 void (*complete)(struct usb_ep *ep,
114 int (*enable) (struct usb_ep *ep,
116 int (*disable) (struct usb_ep *ep);
118 struct usb_request *(*alloc_request) (struct usb_ep *ep,
120 void (*free_request) (struct usb_ep *ep, struct usb_request *req);
122 int (*queue) (struct usb_ep *ep, struct usb_request *req,
124 int (*dequeue) (struct usb_ep *ep, struct usb_request *req);
126 int (*set_halt) (struct usb_ep *ep, int value);
127 int (*set_wedge)(struct usb_ep *ep);
128 int (*fifo_status) (struct usb_ep *ep);
129 void (*fifo_flush) (struct usb_ep *ep);
200 static inline void usb_ep_set_maxpacket_limit(struct usb_ep *ep, in usb_ep_set_maxpacket_limit() argument
203 ep->maxpacket_limit = maxpacket_limit; in usb_ep_set_maxpacket_limit()
204 ep->maxpacket = maxpacket_limit; in usb_ep_set_maxpacket_limit()
230 static inline int usb_ep_enable(struct usb_ep *ep, in usb_ep_enable() argument
233 return ep->ops->enable(ep, desc); in usb_ep_enable()
248 static inline int usb_ep_disable(struct usb_ep *ep) in usb_ep_disable() argument
250 return ep->ops->disable(ep); in usb_ep_disable()
267 static inline struct usb_request *usb_ep_alloc_request(struct usb_ep *ep, in usb_ep_alloc_request() argument
270 return ep->ops->alloc_request(ep, gfp_flags); in usb_ep_alloc_request()
282 static inline void usb_ep_free_request(struct usb_ep *ep, in usb_ep_free_request() argument
285 ep->ops->free_request(ep, req); in usb_ep_free_request()
342 static inline int usb_ep_queue(struct usb_ep *ep, in usb_ep_queue() argument
345 return ep->ops->queue(ep, req, gfp_flags); in usb_ep_queue()
362 static inline int usb_ep_dequeue(struct usb_ep *ep, struct usb_request *req) in usb_ep_dequeue() argument
364 return ep->ops->dequeue(ep, req); in usb_ep_dequeue()
388 static inline int usb_ep_set_halt(struct usb_ep *ep) in usb_ep_set_halt() argument
390 return ep->ops->set_halt(ep, 1); in usb_ep_set_halt()
406 static inline int usb_ep_clear_halt(struct usb_ep *ep) in usb_ep_clear_halt() argument
408 return ep->ops->set_halt(ep, 0); in usb_ep_clear_halt()
426 static inline int usb_ep_fifo_status(struct usb_ep *ep) in usb_ep_fifo_status() argument
428 if (ep->ops->fifo_status) in usb_ep_fifo_status()
429 return ep->ops->fifo_status(ep); in usb_ep_fifo_status()
443 static inline void usb_ep_fifo_flush(struct usb_ep *ep) in usb_ep_fifo_flush() argument
445 if (ep->ops->fifo_flush) in usb_ep_fifo_flush()
446 ep->ops->fifo_flush(ep); in usb_ep_fifo_flush()
950 extern void usb_gadget_giveback_request(struct usb_ep *ep,