Lines Matching refs:ep
245 struct usb_ep ep; member
353 static inline struct bcm63xx_ep *our_ep(struct usb_ep *ep) in our_ep() argument
355 return container_of(ep, struct bcm63xx_ep, ep); in our_ep()
577 usb_ep_set_maxpacket_limit(&udc->bep[idx].ep, max_pkt); in bcm63xx_ep_setup()
966 bep->ep.name = bcm63xx_ep_info[i].name; in bcm63xx_init_udc_hw()
967 bep->ep.caps = bcm63xx_ep_info[i].caps; in bcm63xx_init_udc_hw()
969 bep->ep.ops = &bcm63xx_udc_ep_ops; in bcm63xx_init_udc_hw()
970 list_add_tail(&bep->ep.ep_list, &udc->gadget.ep_list); in bcm63xx_init_udc_hw()
972 usb_ep_set_maxpacket_limit(&bep->ep, BCM63XX_MAX_CTRL_PKT); in bcm63xx_init_udc_hw()
974 bep->ep.desc = NULL; in bcm63xx_init_udc_hw()
978 udc->gadget.ep0 = &udc->bep[0].ep; in bcm63xx_init_udc_hw()
979 list_del(&udc->bep[0].ep.ep_list); in bcm63xx_init_udc_hw()
1041 static int bcm63xx_ep_enable(struct usb_ep *ep, in bcm63xx_ep_enable() argument
1044 struct bcm63xx_ep *bep = our_ep(ep); in bcm63xx_ep_enable()
1049 if (!ep || !desc || ep->name == bcm63xx_ep0name) in bcm63xx_ep_enable()
1070 ep->desc = desc; in bcm63xx_ep_enable()
1071 ep->maxpacket = usb_endpoint_maxp(desc); in bcm63xx_ep_enable()
1081 static int bcm63xx_ep_disable(struct usb_ep *ep) in bcm63xx_ep_disable() argument
1083 struct bcm63xx_ep *bep = our_ep(ep); in bcm63xx_ep_disable()
1089 if (!ep || !ep->desc) in bcm63xx_ep_disable()
1112 usb_gadget_giveback_request(&iudma->bep->ep, &breq->req); in bcm63xx_ep_disable()
1116 ep->desc = NULL; in bcm63xx_ep_disable()
1127 static struct usb_request *bcm63xx_udc_alloc_request(struct usb_ep *ep, in bcm63xx_udc_alloc_request() argument
1143 static void bcm63xx_udc_free_request(struct usb_ep *ep, in bcm63xx_udc_free_request() argument
1164 static int bcm63xx_udc_queue(struct usb_ep *ep, struct usb_request *req, in bcm63xx_udc_queue() argument
1167 struct bcm63xx_ep *bep = our_ep(ep); in bcm63xx_udc_queue()
1173 if (unlikely(!req || !req->complete || !req->buf || !ep)) in bcm63xx_udc_queue()
1217 static int bcm63xx_udc_dequeue(struct usb_ep *ep, struct usb_request *req) in bcm63xx_udc_dequeue() argument
1219 struct bcm63xx_ep *bep = our_ep(ep); in bcm63xx_udc_dequeue()
1253 req->complete(ep, req); in bcm63xx_udc_dequeue()
1265 static int bcm63xx_udc_set_halt(struct usb_ep *ep, int value) in bcm63xx_udc_set_halt() argument
1267 struct bcm63xx_ep *bep = our_ep(ep); in bcm63xx_udc_set_halt()
1285 static int bcm63xx_udc_set_wedge(struct usb_ep *ep) in bcm63xx_udc_set_wedge() argument
1287 struct bcm63xx_ep *bep = our_ep(ep); in bcm63xx_udc_set_wedge()
1424 req->complete(&udc->bep[0].ep, req); in bcm63xx_ep0_complete()
2122 req->complete(&bep->ep, req); in bcm63xx_udc_data_isr()