Lines Matching refs:pxa_ep

79 static void handle_ep(struct pxa_ep *ep);
139 struct pxa_ep *ep; in queues_dbg_show()
148 ep = &udc->pxa_ep[i]; in queues_dbg_show()
172 struct pxa_ep *ep; in eps_dbg_show()
179 ep = &udc->pxa_ep[0]; in eps_dbg_show()
191 ep = &udc->pxa_ep[i]; in eps_dbg_show()
241 static int is_match_usb_pxa(struct udc_usb_ep *udc_usb_ep, struct pxa_ep *ep, in is_match_usb_pxa()
281 static struct pxa_ep *find_pxa_ep(struct pxa_udc *udc, in find_pxa_ep()
285 struct pxa_ep *ep; in find_pxa_ep()
291 return &udc->pxa_ep[0]; in find_pxa_ep()
294 ep = &udc->pxa_ep[i]; in find_pxa_ep()
318 if (udc_usb_ep->pxa_ep) in update_pxa_ep_matches()
319 udc_usb_ep->pxa_ep = find_pxa_ep(udc, udc_usb_ep); in update_pxa_ep_matches()
327 static void pio_irq_enable(struct pxa_ep *ep) in pio_irq_enable()
344 static void pio_irq_disable(struct pxa_ep *ep) in pio_irq_disable()
395 static inline void ep_write_UDCCSR(struct pxa_ep *ep, int mask) in ep_write_UDCCSR()
408 static int ep_count_bytes_remain(struct pxa_ep *ep) in ep_count_bytes_remain()
425 static int ep_is_empty(struct pxa_ep *ep) in ep_is_empty()
447 static int ep_is_full(struct pxa_ep *ep) in ep_is_full()
462 static int epout_has_pkt(struct pxa_ep *ep) in epout_has_pkt()
478 struct pxa_ep *ep = &udc->pxa_ep[0]; in set_ep0state()
502 static void inc_ep_stats_reqs(struct pxa_ep *ep, int is_in) in inc_ep_stats_reqs()
516 static void inc_ep_stats_bytes(struct pxa_ep *ep, int count, int is_in) in inc_ep_stats_bytes()
530 static void pxa_ep_setup(struct pxa_ep *ep) in pxa_ep_setup()
559 pxa_ep_setup(&dev->pxa_ep[i]); in pxa_eps_setup()
613 static void ep_add_request(struct pxa_ep *ep, struct pxa27x_request *req) in ep_add_request()
636 static void ep_del_request(struct pxa_ep *ep, struct pxa27x_request *req) in ep_del_request()
660 static void req_done(struct pxa_ep *ep, struct pxa27x_request *req, int status, in req_done()
695 static void ep_end_out_req(struct pxa_ep *ep, struct pxa27x_request *req, in ep_end_out_req()
713 static void ep0_end_out_req(struct pxa_ep *ep, struct pxa27x_request *req, in ep0_end_out_req()
731 static void ep_end_in_req(struct pxa_ep *ep, struct pxa27x_request *req, in ep_end_in_req()
749 static void ep0_end_in_req(struct pxa_ep *ep, struct pxa27x_request *req, in ep0_end_in_req()
766 static void nuke(struct pxa_ep *ep, int status) in nuke()
790 static int read_packet(struct pxa_ep *ep, struct pxa27x_request *req) in read_packet()
827 static int write_packet(struct pxa_ep *ep, struct pxa27x_request *req, in write_packet()
869 static int read_fifo(struct pxa_ep *ep, struct pxa27x_request *req) in read_fifo()
904 static int write_fifo(struct pxa_ep *ep, struct pxa27x_request *req) in write_fifo()
970 static int read_ep0_fifo(struct pxa_ep *ep, struct pxa27x_request *req) in read_ep0_fifo()
1008 static int write_ep0_fifo(struct pxa_ep *ep, struct pxa27x_request *req) in write_ep0_fifo()
1047 struct pxa_ep *ep; in pxa_ep_queue()
1065 ep = udc_usb_ep->pxa_ep; in pxa_ep_queue()
1160 struct pxa_ep *ep; in pxa_ep_dequeue()
1169 ep = udc_usb_ep->pxa_ep; in pxa_ep_dequeue()
1199 struct pxa_ep *ep; in pxa_ep_set_halt()
1208 ep = udc_usb_ep->pxa_ep; in pxa_ep_set_halt()
1248 struct pxa_ep *ep; in pxa_ep_fifo_status()
1254 ep = udc_usb_ep->pxa_ep; in pxa_ep_fifo_status()
1274 struct pxa_ep *ep; in pxa_ep_fifo_flush()
1281 ep = udc_usb_ep->pxa_ep; in pxa_ep_fifo_flush()
1318 struct pxa_ep *ep; in pxa_ep_enable()
1326 if (udc_usb_ep->pxa_ep) { in pxa_ep_enable()
1327 ep = udc_usb_ep->pxa_ep; in pxa_ep_enable()
1352 udc_usb_ep->pxa_ep = ep; in pxa_ep_enable()
1379 struct pxa_ep *ep; in pxa_ep_disable()
1386 ep = udc_usb_ep->pxa_ep; in pxa_ep_disable()
1394 udc_usb_ep->pxa_ep = NULL; in pxa_ep_disable()
1660 struct pxa_ep *ep; in udc_init_data()
1665 dev->udc_usb_ep[0].pxa_ep = &dev->pxa_ep[0]; in udc_init_data()
1671 ep = &dev->pxa_ep[i]; in udc_init_data()
1710 ep_write_UDCCSR(&udc->pxa_ep[0], UDCCSR0_ACM); in udc_enable()
1726 pio_irq_enable(&udc->pxa_ep[0]); in udc_enable()
1818 struct pxa_ep *ep = &udc->pxa_ep[0]; in handle_ep0_ctrl_req()
1934 struct pxa_ep *ep = &udc->pxa_ep[0]; in handle_ep0()
2016 static void handle_ep(struct pxa_ep *ep) in handle_ep()
2096 ep_write_UDCCSR(&udc->pxa_ep[0], UDCCSR0_AREN); in pxa27x_change_configuration()
2125 ep_write_UDCCSR(&udc->pxa_ep[0], UDCCSR0_AREN); in pxa27x_change_interface()
2138 struct pxa_ep *ep; in irq_handle_data()
2143 udc->pxa_ep[0].stats.irqs++; in irq_handle_data()
2156 WARN_ON(i >= ARRAY_SIZE(udc->pxa_ep)); in irq_handle_data()
2157 if (i < ARRAY_SIZE(udc->pxa_ep)) { in irq_handle_data()
2158 ep = &udc->pxa_ep[i]; in irq_handle_data()
2169 WARN_ON(i >= ARRAY_SIZE(udc->pxa_ep)); in irq_handle_data()
2170 if (i < ARRAY_SIZE(udc->pxa_ep)) { in irq_handle_data()
2171 ep = &udc->pxa_ep[i]; in irq_handle_data()
2240 struct pxa_ep *ep = &udc->pxa_ep[0]; in irq_udc_reset()
2311 .pxa_ep = {
2493 struct pxa_ep *ep; in pxa_udc_suspend()
2495 ep = &udc->pxa_ep[0]; in pxa_udc_suspend()
2518 struct pxa_ep *ep; in pxa_udc_resume()
2520 ep = &udc->pxa_ep[0]; in pxa_udc_resume()