Lines Matching refs:pxa_ep

82 static void handle_ep(struct pxa_ep *ep);
141 struct pxa_ep *ep; in queues_dbg_show()
150 ep = &udc->pxa_ep[i]; in queues_dbg_show()
173 struct pxa_ep *ep; in eps_dbg_show()
180 ep = &udc->pxa_ep[0]; in eps_dbg_show()
192 ep = &udc->pxa_ep[i]; in eps_dbg_show()
313 static int is_match_usb_pxa(struct udc_usb_ep *udc_usb_ep, struct pxa_ep *ep, in is_match_usb_pxa()
353 static struct pxa_ep *find_pxa_ep(struct pxa_udc *udc, in find_pxa_ep()
357 struct pxa_ep *ep; in find_pxa_ep()
363 return &udc->pxa_ep[0]; in find_pxa_ep()
366 ep = &udc->pxa_ep[i]; in find_pxa_ep()
390 if (udc_usb_ep->pxa_ep) in update_pxa_ep_matches()
391 udc_usb_ep->pxa_ep = find_pxa_ep(udc, udc_usb_ep); in update_pxa_ep_matches()
399 static void pio_irq_enable(struct pxa_ep *ep) in pio_irq_enable()
416 static void pio_irq_disable(struct pxa_ep *ep) in pio_irq_disable()
467 static inline void ep_write_UDCCSR(struct pxa_ep *ep, int mask) in ep_write_UDCCSR()
480 static int ep_count_bytes_remain(struct pxa_ep *ep) in ep_count_bytes_remain()
497 static int ep_is_empty(struct pxa_ep *ep) in ep_is_empty()
519 static int ep_is_full(struct pxa_ep *ep) in ep_is_full()
534 static int epout_has_pkt(struct pxa_ep *ep) in epout_has_pkt()
550 struct pxa_ep *ep = &udc->pxa_ep[0]; in set_ep0state()
575 static void inc_ep_stats_reqs(struct pxa_ep *ep, int is_in) in inc_ep_stats_reqs()
589 static void inc_ep_stats_bytes(struct pxa_ep *ep, int count, int is_in) in inc_ep_stats_bytes()
603 static void pxa_ep_setup(struct pxa_ep *ep) in pxa_ep_setup()
632 pxa_ep_setup(&dev->pxa_ep[i]); in pxa_eps_setup()
686 static void ep_add_request(struct pxa_ep *ep, struct pxa27x_request *req) in ep_add_request()
709 static void ep_del_request(struct pxa_ep *ep, struct pxa27x_request *req) in ep_del_request()
733 static void req_done(struct pxa_ep *ep, struct pxa27x_request *req, int status, in req_done()
768 static void ep_end_out_req(struct pxa_ep *ep, struct pxa27x_request *req, in ep_end_out_req()
786 static void ep0_end_out_req(struct pxa_ep *ep, struct pxa27x_request *req, in ep0_end_out_req()
804 static void ep_end_in_req(struct pxa_ep *ep, struct pxa27x_request *req, in ep_end_in_req()
822 static void ep0_end_in_req(struct pxa_ep *ep, struct pxa27x_request *req, in ep0_end_in_req()
839 static void nuke(struct pxa_ep *ep, int status) in nuke()
863 static int read_packet(struct pxa_ep *ep, struct pxa27x_request *req) in read_packet()
900 static int write_packet(struct pxa_ep *ep, struct pxa27x_request *req, in write_packet()
942 static int read_fifo(struct pxa_ep *ep, struct pxa27x_request *req) in read_fifo()
977 static int write_fifo(struct pxa_ep *ep, struct pxa27x_request *req) in write_fifo()
1045 static int read_ep0_fifo(struct pxa_ep *ep, struct pxa27x_request *req) in read_ep0_fifo()
1083 static int write_ep0_fifo(struct pxa_ep *ep, struct pxa27x_request *req) in write_ep0_fifo()
1122 struct pxa_ep *ep; in pxa_ep_queue()
1141 ep = udc_usb_ep->pxa_ep; in pxa_ep_queue()
1236 struct pxa_ep *ep; in pxa_ep_dequeue()
1245 ep = udc_usb_ep->pxa_ep; in pxa_ep_dequeue()
1274 struct pxa_ep *ep; in pxa_ep_set_halt()
1283 ep = udc_usb_ep->pxa_ep; in pxa_ep_set_halt()
1323 struct pxa_ep *ep; in pxa_ep_fifo_status()
1329 ep = udc_usb_ep->pxa_ep; in pxa_ep_fifo_status()
1349 struct pxa_ep *ep; in pxa_ep_fifo_flush()
1356 ep = udc_usb_ep->pxa_ep; in pxa_ep_fifo_flush()
1393 struct pxa_ep *ep; in pxa_ep_enable()
1401 if (udc_usb_ep->pxa_ep) { in pxa_ep_enable()
1402 ep = udc_usb_ep->pxa_ep; in pxa_ep_enable()
1427 udc_usb_ep->pxa_ep = ep; in pxa_ep_enable()
1454 struct pxa_ep *ep; in pxa_ep_disable()
1461 ep = udc_usb_ep->pxa_ep; in pxa_ep_disable()
1469 udc_usb_ep->pxa_ep = NULL; in pxa_ep_disable()
1707 struct pxa_ep *ep; in udc_init_data()
1712 dev->udc_usb_ep[0].pxa_ep = &dev->pxa_ep[0]; in udc_init_data()
1717 ep = &dev->pxa_ep[i]; in udc_init_data()
1756 ep_write_UDCCSR(&udc->pxa_ep[0], UDCCSR0_ACM); in udc_enable()
1772 pio_irq_enable(&udc->pxa_ep[0]); in udc_enable()
1868 struct pxa_ep *ep = &udc->pxa_ep[0]; in handle_ep0_ctrl_req()
1984 struct pxa_ep *ep = &udc->pxa_ep[0]; in handle_ep0()
2066 static void handle_ep(struct pxa_ep *ep) in handle_ep()
2146 ep_write_UDCCSR(&udc->pxa_ep[0], UDCCSR0_AREN); in pxa27x_change_configuration()
2175 ep_write_UDCCSR(&udc->pxa_ep[0], UDCCSR0_AREN); in pxa27x_change_interface()
2188 struct pxa_ep *ep; in irq_handle_data()
2193 udc->pxa_ep[0].stats.irqs++; in irq_handle_data()
2206 WARN_ON(i >= ARRAY_SIZE(udc->pxa_ep)); in irq_handle_data()
2207 if (i < ARRAY_SIZE(udc->pxa_ep)) { in irq_handle_data()
2208 ep = &udc->pxa_ep[i]; in irq_handle_data()
2219 WARN_ON(i >= ARRAY_SIZE(udc->pxa_ep)); in irq_handle_data()
2220 if (i < ARRAY_SIZE(udc->pxa_ep)) { in irq_handle_data()
2221 ep = &udc->pxa_ep[i]; in irq_handle_data()
2290 struct pxa_ep *ep = &udc->pxa_ep[0]; in irq_udc_reset()
2361 .pxa_ep = {
2529 struct pxa_ep *ep; in pxa_udc_suspend()
2531 ep = &udc->pxa_ep[0]; in pxa_udc_suspend()
2554 struct pxa_ep *ep; in pxa_udc_resume()
2556 ep = &udc->pxa_ep[0]; in pxa_udc_resume()