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()
243 static int is_match_usb_pxa(struct udc_usb_ep *udc_usb_ep, struct pxa_ep *ep, in is_match_usb_pxa()
283 static struct pxa_ep *find_pxa_ep(struct pxa_udc *udc, in find_pxa_ep()
287 struct pxa_ep *ep; in find_pxa_ep()
293 return &udc->pxa_ep[0]; in find_pxa_ep()
296 ep = &udc->pxa_ep[i]; in find_pxa_ep()
320 if (udc_usb_ep->pxa_ep) in update_pxa_ep_matches()
321 udc_usb_ep->pxa_ep = find_pxa_ep(udc, udc_usb_ep); in update_pxa_ep_matches()
329 static void pio_irq_enable(struct pxa_ep *ep) in pio_irq_enable()
346 static void pio_irq_disable(struct pxa_ep *ep) in pio_irq_disable()
397 static inline void ep_write_UDCCSR(struct pxa_ep *ep, int mask) in ep_write_UDCCSR()
410 static int ep_count_bytes_remain(struct pxa_ep *ep) in ep_count_bytes_remain()
427 static int ep_is_empty(struct pxa_ep *ep) in ep_is_empty()
449 static int ep_is_full(struct pxa_ep *ep) in ep_is_full()
464 static int epout_has_pkt(struct pxa_ep *ep) in epout_has_pkt()
480 struct pxa_ep *ep = &udc->pxa_ep[0]; in set_ep0state()
505 static void inc_ep_stats_reqs(struct pxa_ep *ep, int is_in) in inc_ep_stats_reqs()
519 static void inc_ep_stats_bytes(struct pxa_ep *ep, int count, int is_in) in inc_ep_stats_bytes()
533 static void pxa_ep_setup(struct pxa_ep *ep) in pxa_ep_setup()
562 pxa_ep_setup(&dev->pxa_ep[i]); in pxa_eps_setup()
616 static void ep_add_request(struct pxa_ep *ep, struct pxa27x_request *req) in ep_add_request()
639 static void ep_del_request(struct pxa_ep *ep, struct pxa27x_request *req) in ep_del_request()
663 static void req_done(struct pxa_ep *ep, struct pxa27x_request *req, int status, in req_done()
698 static void ep_end_out_req(struct pxa_ep *ep, struct pxa27x_request *req, in ep_end_out_req()
716 static void ep0_end_out_req(struct pxa_ep *ep, struct pxa27x_request *req, in ep0_end_out_req()
734 static void ep_end_in_req(struct pxa_ep *ep, struct pxa27x_request *req, in ep_end_in_req()
752 static void ep0_end_in_req(struct pxa_ep *ep, struct pxa27x_request *req, in ep0_end_in_req()
769 static void nuke(struct pxa_ep *ep, int status) in nuke()
793 static int read_packet(struct pxa_ep *ep, struct pxa27x_request *req) in read_packet()
830 static int write_packet(struct pxa_ep *ep, struct pxa27x_request *req, in write_packet()
872 static int read_fifo(struct pxa_ep *ep, struct pxa27x_request *req) in read_fifo()
907 static int write_fifo(struct pxa_ep *ep, struct pxa27x_request *req) in write_fifo()
973 static int read_ep0_fifo(struct pxa_ep *ep, struct pxa27x_request *req) in read_ep0_fifo()
1011 static int write_ep0_fifo(struct pxa_ep *ep, struct pxa27x_request *req) in write_ep0_fifo()
1050 struct pxa_ep *ep; in pxa_ep_queue()
1068 ep = udc_usb_ep->pxa_ep; in pxa_ep_queue()
1163 struct pxa_ep *ep; in pxa_ep_dequeue()
1172 ep = udc_usb_ep->pxa_ep; in pxa_ep_dequeue()
1201 struct pxa_ep *ep; in pxa_ep_set_halt()
1210 ep = udc_usb_ep->pxa_ep; in pxa_ep_set_halt()
1250 struct pxa_ep *ep; in pxa_ep_fifo_status()
1256 ep = udc_usb_ep->pxa_ep; in pxa_ep_fifo_status()
1276 struct pxa_ep *ep; in pxa_ep_fifo_flush()
1283 ep = udc_usb_ep->pxa_ep; in pxa_ep_fifo_flush()
1320 struct pxa_ep *ep; in pxa_ep_enable()
1328 if (udc_usb_ep->pxa_ep) { in pxa_ep_enable()
1329 ep = udc_usb_ep->pxa_ep; in pxa_ep_enable()
1354 udc_usb_ep->pxa_ep = ep; in pxa_ep_enable()
1381 struct pxa_ep *ep; in pxa_ep_disable()
1388 ep = udc_usb_ep->pxa_ep; in pxa_ep_disable()
1396 udc_usb_ep->pxa_ep = NULL; in pxa_ep_disable()
1662 struct pxa_ep *ep; in udc_init_data()
1667 dev->udc_usb_ep[0].pxa_ep = &dev->pxa_ep[0]; in udc_init_data()
1673 ep = &dev->pxa_ep[i]; in udc_init_data()
1712 ep_write_UDCCSR(&udc->pxa_ep[0], UDCCSR0_ACM); in udc_enable()
1728 pio_irq_enable(&udc->pxa_ep[0]); in udc_enable()
1821 struct pxa_ep *ep = &udc->pxa_ep[0]; in handle_ep0_ctrl_req()
1937 struct pxa_ep *ep = &udc->pxa_ep[0]; in handle_ep0()
2019 static void handle_ep(struct pxa_ep *ep) in handle_ep()
2099 ep_write_UDCCSR(&udc->pxa_ep[0], UDCCSR0_AREN); in pxa27x_change_configuration()
2128 ep_write_UDCCSR(&udc->pxa_ep[0], UDCCSR0_AREN); in pxa27x_change_interface()
2141 struct pxa_ep *ep; in irq_handle_data()
2146 udc->pxa_ep[0].stats.irqs++; in irq_handle_data()
2159 WARN_ON(i >= ARRAY_SIZE(udc->pxa_ep)); in irq_handle_data()
2160 if (i < ARRAY_SIZE(udc->pxa_ep)) { in irq_handle_data()
2161 ep = &udc->pxa_ep[i]; in irq_handle_data()
2172 WARN_ON(i >= ARRAY_SIZE(udc->pxa_ep)); in irq_handle_data()
2173 if (i < ARRAY_SIZE(udc->pxa_ep)) { in irq_handle_data()
2174 ep = &udc->pxa_ep[i]; in irq_handle_data()
2243 struct pxa_ep *ep = &udc->pxa_ep[0]; in irq_udc_reset()
2314 .pxa_ep = {
2498 struct pxa_ep *ep; in pxa_udc_suspend()
2500 ep = &udc->pxa_ep[0]; in pxa_udc_suspend()
2523 struct pxa_ep *ep; in pxa_udc_resume()
2525 ep = &udc->pxa_ep[0]; in pxa_udc_resume()