Lines Matching refs:ep

225 	struct usb_ep			ep;  member
333 static inline struct bcm63xx_ep *our_ep(struct usb_ep *ep) in our_ep() argument
335 return container_of(ep, struct bcm63xx_ep, ep); in our_ep()
557 usb_ep_set_maxpacket_limit(&udc->bep[idx].ep, max_pkt); in bcm63xx_ep_setup()
946 bep->ep.name = bcm63xx_ep_name[i]; in bcm63xx_init_udc_hw()
948 bep->ep.ops = &bcm63xx_udc_ep_ops; in bcm63xx_init_udc_hw()
949 list_add_tail(&bep->ep.ep_list, &udc->gadget.ep_list); in bcm63xx_init_udc_hw()
951 usb_ep_set_maxpacket_limit(&bep->ep, BCM63XX_MAX_CTRL_PKT); in bcm63xx_init_udc_hw()
953 bep->ep.desc = NULL; in bcm63xx_init_udc_hw()
957 udc->gadget.ep0 = &udc->bep[0].ep; in bcm63xx_init_udc_hw()
958 list_del(&udc->bep[0].ep.ep_list); in bcm63xx_init_udc_hw()
1020 static int bcm63xx_ep_enable(struct usb_ep *ep, in bcm63xx_ep_enable() argument
1023 struct bcm63xx_ep *bep = our_ep(ep); in bcm63xx_ep_enable()
1028 if (!ep || !desc || ep->name == bcm63xx_ep0name) in bcm63xx_ep_enable()
1049 ep->desc = desc; in bcm63xx_ep_enable()
1050 ep->maxpacket = usb_endpoint_maxp(desc); in bcm63xx_ep_enable()
1060 static int bcm63xx_ep_disable(struct usb_ep *ep) in bcm63xx_ep_disable() argument
1062 struct bcm63xx_ep *bep = our_ep(ep); in bcm63xx_ep_disable()
1068 if (!ep || !ep->desc) in bcm63xx_ep_disable()
1091 usb_gadget_giveback_request(&iudma->bep->ep, &breq->req); in bcm63xx_ep_disable()
1095 ep->desc = NULL; in bcm63xx_ep_disable()
1106 static struct usb_request *bcm63xx_udc_alloc_request(struct usb_ep *ep, in bcm63xx_udc_alloc_request() argument
1122 static void bcm63xx_udc_free_request(struct usb_ep *ep, in bcm63xx_udc_free_request() argument
1143 static int bcm63xx_udc_queue(struct usb_ep *ep, struct usb_request *req, in bcm63xx_udc_queue() argument
1146 struct bcm63xx_ep *bep = our_ep(ep); in bcm63xx_udc_queue()
1152 if (unlikely(!req || !req->complete || !req->buf || !ep)) in bcm63xx_udc_queue()
1196 static int bcm63xx_udc_dequeue(struct usb_ep *ep, struct usb_request *req) in bcm63xx_udc_dequeue() argument
1198 struct bcm63xx_ep *bep = our_ep(ep); in bcm63xx_udc_dequeue()
1232 req->complete(ep, req); in bcm63xx_udc_dequeue()
1244 static int bcm63xx_udc_set_halt(struct usb_ep *ep, int value) in bcm63xx_udc_set_halt() argument
1246 struct bcm63xx_ep *bep = our_ep(ep); in bcm63xx_udc_set_halt()
1264 static int bcm63xx_udc_set_wedge(struct usb_ep *ep) in bcm63xx_udc_set_wedge() argument
1266 struct bcm63xx_ep *bep = our_ep(ep); in bcm63xx_udc_set_wedge()
1403 req->complete(&udc->bep[0].ep, req); in bcm63xx_ep0_complete()
2101 req->complete(&bep->ep, req); in bcm63xx_udc_data_isr()