Lines Matching full:ep

35 static void irq_ep0_write(struct r8a66597_ep *ep, struct r8a66597_request *req);
36 static void irq_packet_write(struct r8a66597_ep *ep,
41 static void transfer_complete(struct r8a66597_ep *ep,
98 INIT_LIST_HEAD(&r8a66597->ep[0].queue); in r8a66597_usb_disconnect()
298 struct r8a66597_ep *ep = r8a66597->pipenum2ep[pipenum]; in pipe_change() local
300 if (ep->use_dma) in pipe_change()
301 r8a66597_bclr(r8a66597, DREQE, ep->fifosel); in pipe_change()
303 r8a66597_mdfy(r8a66597, pipenum, CURPIPE, ep->fifosel); in pipe_change()
307 if (r8a66597_is_sudmac(r8a66597) && ep->use_dma) in pipe_change()
308 r8a66597_bclr(r8a66597, mbw_value(r8a66597), ep->fifosel); in pipe_change()
310 r8a66597_bset(r8a66597, mbw_value(r8a66597), ep->fifosel); in pipe_change()
312 if (ep->use_dma) in pipe_change()
313 r8a66597_bset(r8a66597, DREQE, ep->fifosel); in pipe_change()
391 static void pipe_initialize(struct r8a66597_ep *ep) in pipe_initialize() argument
393 struct r8a66597 *r8a66597 = ep->r8a66597; in pipe_initialize()
395 r8a66597_mdfy(r8a66597, 0, CURPIPE, ep->fifosel); in pipe_initialize()
397 r8a66597_write(r8a66597, ACLRM, ep->pipectr); in pipe_initialize()
398 r8a66597_write(r8a66597, 0, ep->pipectr); in pipe_initialize()
399 r8a66597_write(r8a66597, SQCLR, ep->pipectr); in pipe_initialize()
400 if (ep->use_dma) { in pipe_initialize()
401 r8a66597_mdfy(r8a66597, ep->pipenum, CURPIPE, ep->fifosel); in pipe_initialize()
405 r8a66597_bset(r8a66597, mbw_value(r8a66597), ep->fifosel); in pipe_initialize()
410 struct r8a66597_ep *ep, in r8a66597_ep_setting() argument
414 ep->use_dma = 0; in r8a66597_ep_setting()
415 ep->fifoaddr = CFIFO; in r8a66597_ep_setting()
416 ep->fifosel = CFIFOSEL; in r8a66597_ep_setting()
417 ep->fifoctr = CFIFOCTR; in r8a66597_ep_setting()
419 ep->pipectr = get_pipectr_addr(pipenum); in r8a66597_ep_setting()
421 ep->pipetre = get_pipetre_addr(pipenum); in r8a66597_ep_setting()
422 ep->pipetrn = get_pipetrn_addr(pipenum); in r8a66597_ep_setting()
424 ep->pipetre = 0; in r8a66597_ep_setting()
425 ep->pipetrn = 0; in r8a66597_ep_setting()
427 ep->pipenum = pipenum; in r8a66597_ep_setting()
428 ep->ep.maxpacket = usb_endpoint_maxp(desc); in r8a66597_ep_setting()
429 r8a66597->pipenum2ep[pipenum] = ep; in r8a66597_ep_setting()
431 = ep; in r8a66597_ep_setting()
432 INIT_LIST_HEAD(&ep->queue); in r8a66597_ep_setting()
435 static void r8a66597_ep_release(struct r8a66597_ep *ep) in r8a66597_ep_release() argument
437 struct r8a66597 *r8a66597 = ep->r8a66597; in r8a66597_ep_release()
438 u16 pipenum = ep->pipenum; in r8a66597_ep_release()
443 if (ep->use_dma) in r8a66597_ep_release()
445 ep->pipenum = 0; in r8a66597_ep_release()
446 ep->busy = 0; in r8a66597_ep_release()
447 ep->use_dma = 0; in r8a66597_ep_release()
450 static int alloc_pipe_config(struct r8a66597_ep *ep, in alloc_pipe_config() argument
453 struct r8a66597 *r8a66597 = ep->r8a66597; in alloc_pipe_config()
459 ep->ep.desc = desc; in alloc_pipe_config()
461 if (ep->pipenum) /* already allocated pipe */ in alloc_pipe_config()
507 ep->type = info.type; in alloc_pipe_config()
528 r8a66597_ep_setting(r8a66597, ep, desc, info.pipe, dma); in alloc_pipe_config()
529 pipe_initialize(ep); in alloc_pipe_config()
534 static int free_pipe_config(struct r8a66597_ep *ep) in free_pipe_config() argument
536 struct r8a66597 *r8a66597 = ep->r8a66597; in free_pipe_config()
539 info.pipe = ep->pipenum; in free_pipe_config()
540 info.type = ep->type; in free_pipe_config()
542 r8a66597_ep_release(ep); in free_pipe_config()
563 r8a66597->ep[0].internal_ccpl = ccpl; in control_end()
568 static void start_ep0_write(struct r8a66597_ep *ep, in start_ep0_write() argument
571 struct r8a66597 *r8a66597 = ep->r8a66597; in start_ep0_write()
573 pipe_change(r8a66597, ep->pipenum); in start_ep0_write()
575 r8a66597_write(r8a66597, BCLR, ep->fifoctr); in start_ep0_write()
577 r8a66597_bset(r8a66597, BVAL, ep->fifoctr); in start_ep0_write()
579 transfer_complete(ep, req, 0); in start_ep0_write()
582 irq_ep0_write(ep, req); in start_ep0_write()
599 struct r8a66597_ep *ep = r8a66597->pipenum2ep[pipenum]; in change_bfre_mode() local
623 r8a66597_bset(r8a66597, ACLRM, ep->pipectr); in change_bfre_mode()
624 r8a66597_bclr(r8a66597, ACLRM, ep->pipectr); in change_bfre_mode()
630 struct r8a66597_ep *ep, in sudmac_alloc_channel() argument
639 if (!is_bulk_pipe(ep->pipenum)) in sudmac_alloc_channel()
648 if (ep->ep.desc->bEndpointAddress & USB_DIR_IN) { in sudmac_alloc_channel()
652 change_bfre_mode(r8a66597, ep->pipenum, 1); in sudmac_alloc_channel()
656 ep->use_dma = 1; in sudmac_alloc_channel()
657 ep->dma = dma; in sudmac_alloc_channel()
658 ep->fifoaddr = D0FIFO; in sudmac_alloc_channel()
659 ep->fifosel = D0FIFOSEL; in sudmac_alloc_channel()
660 ep->fifoctr = D0FIFOCTR; in sudmac_alloc_channel()
667 struct r8a66597_ep *ep, in sudmac_free_channel() argument
673 usb_gadget_unmap_request(&r8a66597->gadget, &req->req, ep->dma->dir); in sudmac_free_channel()
675 r8a66597_bclr(r8a66597, DREQE, ep->fifosel); in sudmac_free_channel()
676 r8a66597_change_curpipe(r8a66597, 0, 0, ep->fifosel); in sudmac_free_channel()
678 ep->dma->used = 0; in sudmac_free_channel()
679 ep->use_dma = 0; in sudmac_free_channel()
680 ep->fifoaddr = CFIFO; in sudmac_free_channel()
681 ep->fifosel = CFIFOSEL; in sudmac_free_channel()
682 ep->fifoctr = CFIFOCTR; in sudmac_free_channel()
685 static void sudmac_start(struct r8a66597 *r8a66597, struct r8a66597_ep *ep, in sudmac_start() argument
698 static void start_packet_write(struct r8a66597_ep *ep, in start_packet_write() argument
701 struct r8a66597 *r8a66597 = ep->r8a66597; in start_packet_write()
704 pipe_change(r8a66597, ep->pipenum); in start_packet_write()
705 disable_irq_empty(r8a66597, ep->pipenum); in start_packet_write()
706 pipe_start(r8a66597, ep->pipenum); in start_packet_write()
709 transfer_complete(ep, req, 0); in start_packet_write()
711 r8a66597_write(r8a66597, ~(1 << ep->pipenum), BRDYSTS); in start_packet_write()
712 if (sudmac_alloc_channel(r8a66597, ep, req) < 0) { in start_packet_write()
714 pipe_change(r8a66597, ep->pipenum); in start_packet_write()
715 disable_irq_empty(r8a66597, ep->pipenum); in start_packet_write()
716 pipe_start(r8a66597, ep->pipenum); in start_packet_write()
717 tmp = r8a66597_read(r8a66597, ep->fifoctr); in start_packet_write()
719 pipe_irq_enable(r8a66597, ep->pipenum); in start_packet_write()
721 irq_packet_write(ep, req); in start_packet_write()
724 pipe_change(r8a66597, ep->pipenum); in start_packet_write()
725 disable_irq_nrdy(r8a66597, ep->pipenum); in start_packet_write()
726 pipe_start(r8a66597, ep->pipenum); in start_packet_write()
727 enable_irq_nrdy(r8a66597, ep->pipenum); in start_packet_write()
728 sudmac_start(r8a66597, ep, req); in start_packet_write()
733 static void start_packet_read(struct r8a66597_ep *ep, in start_packet_read() argument
736 struct r8a66597 *r8a66597 = ep->r8a66597; in start_packet_read()
737 u16 pipenum = ep->pipenum; in start_packet_read()
739 if (ep->pipenum == 0) { in start_packet_read()
741 r8a66597_write(r8a66597, BCLR, ep->fifoctr); in start_packet_read()
746 if (ep->pipetre) { in start_packet_read()
748 r8a66597_write(r8a66597, TRCLR, ep->pipetre); in start_packet_read()
750 DIV_ROUND_UP(req->req.length, ep->ep.maxpacket), in start_packet_read()
751 ep->pipetrn); in start_packet_read()
752 r8a66597_bset(r8a66597, TRENB, ep->pipetre); in start_packet_read()
755 if (sudmac_alloc_channel(r8a66597, ep, req) < 0) { in start_packet_read()
757 change_bfre_mode(r8a66597, ep->pipenum, 0); in start_packet_read()
762 sudmac_start(r8a66597, ep, req); in start_packet_read()
768 static void start_packet(struct r8a66597_ep *ep, struct r8a66597_request *req) in start_packet() argument
770 if (ep->ep.desc->bEndpointAddress & USB_DIR_IN) in start_packet()
771 start_packet_write(ep, req); in start_packet()
773 start_packet_read(ep, req); in start_packet()
776 static void start_ep0(struct r8a66597_ep *ep, struct r8a66597_request *req) in start_ep0() argument
780 ctsq = r8a66597_read(ep->r8a66597, INTSTS0) & CTSQ; in start_ep0()
784 start_ep0_write(ep, req); in start_ep0()
787 start_packet_read(ep, req); in start_ep0()
791 control_end(ep->r8a66597, 0); in start_ep0()
794 dev_err(r8a66597_to_dev(ep->r8a66597), in start_ep0()
892 static struct r8a66597_request *get_request_from_ep(struct r8a66597_ep *ep) in get_request_from_ep() argument
894 return list_entry(ep->queue.next, struct r8a66597_request, queue); in get_request_from_ep()
898 static void transfer_complete(struct r8a66597_ep *ep, in transfer_complete() argument
905 if (unlikely(ep->pipenum == 0)) { in transfer_complete()
906 if (ep->internal_ccpl) { in transfer_complete()
907 ep->internal_ccpl = 0; in transfer_complete()
913 if (ep->r8a66597->gadget.speed == USB_SPEED_UNKNOWN) in transfer_complete()
918 if (!list_empty(&ep->queue)) in transfer_complete()
921 if (ep->use_dma) in transfer_complete()
922 sudmac_free_channel(ep->r8a66597, ep, req); in transfer_complete()
924 spin_unlock(&ep->r8a66597->lock); in transfer_complete()
925 usb_gadget_giveback_request(&ep->ep, &req->req); in transfer_complete()
926 spin_lock(&ep->r8a66597->lock); in transfer_complete()
929 req = get_request_from_ep(ep); in transfer_complete()
930 if (ep->ep.desc) in transfer_complete()
931 start_packet(ep, req); in transfer_complete()
935 static void irq_ep0_write(struct r8a66597_ep *ep, struct r8a66597_request *req) in irq_ep0_write() argument
942 u16 pipenum = ep->pipenum; in irq_ep0_write()
943 struct r8a66597 *r8a66597 = ep->r8a66597; in irq_ep0_write()
946 r8a66597_bset(r8a66597, ISEL, ep->fifosel); in irq_ep0_write()
950 tmp = r8a66597_read(r8a66597, ep->fifoctr); in irq_ep0_write()
968 r8a66597_write_fifo(r8a66597, ep, buf, size); in irq_ep0_write()
969 if ((size == 0) || ((size % ep->ep.maxpacket) != 0)) in irq_ep0_write()
970 r8a66597_bset(r8a66597, BVAL, ep->fifoctr); in irq_ep0_write()
978 || (size % ep->ep.maxpacket) in irq_ep0_write()
989 static void irq_packet_write(struct r8a66597_ep *ep, in irq_packet_write() argument
996 u16 pipenum = ep->pipenum; in irq_packet_write()
997 struct r8a66597 *r8a66597 = ep->r8a66597; in irq_packet_write()
1000 tmp = r8a66597_read(r8a66597, ep->fifoctr); in irq_packet_write()
1016 r8a66597_write_fifo(r8a66597, ep, buf, size); in irq_packet_write()
1018 || ((size % ep->ep.maxpacket) != 0) in irq_packet_write()
1019 || ((bufsize != ep->ep.maxpacket) in irq_packet_write()
1021 r8a66597_bset(r8a66597, BVAL, ep->fifoctr); in irq_packet_write()
1028 || (size % ep->ep.maxpacket) in irq_packet_write()
1038 static void irq_packet_read(struct r8a66597_ep *ep, in irq_packet_read() argument
1045 u16 pipenum = ep->pipenum; in irq_packet_read()
1046 struct r8a66597 *r8a66597 = ep->r8a66597; in irq_packet_read()
1050 tmp = r8a66597_read(r8a66597, ep->fifoctr); in irq_packet_read()
1075 || (size % ep->ep.maxpacket) in irq_packet_read()
1085 r8a66597_write(r8a66597, BCLR, ep->fifoctr); in irq_packet_read()
1087 r8a66597_read_fifo(r8a66597, ep->fifoaddr, buf, size); in irq_packet_read()
1091 if ((ep->pipenum != 0) && finish) in irq_packet_read()
1092 transfer_complete(ep, req, 0); in irq_packet_read()
1099 struct r8a66597_ep *ep; in irq_pipe_ready() local
1106 ep = &r8a66597->ep[0]; in irq_pipe_ready()
1107 req = get_request_from_ep(ep); in irq_pipe_ready()
1108 irq_packet_read(ep, req); in irq_pipe_ready()
1114 ep = r8a66597->pipenum2ep[pipenum]; in irq_pipe_ready()
1115 req = get_request_from_ep(ep); in irq_pipe_ready()
1116 if (ep->ep.desc->bEndpointAddress & USB_DIR_IN) in irq_pipe_ready()
1117 irq_packet_write(ep, req); in irq_pipe_ready()
1119 irq_packet_read(ep, req); in irq_pipe_ready()
1130 struct r8a66597_ep *ep; in irq_pipe_empty() local
1136 ep = &r8a66597->ep[0]; in irq_pipe_empty()
1137 req = get_request_from_ep(ep); in irq_pipe_empty()
1138 irq_ep0_write(ep, req); in irq_pipe_empty()
1149 ep = r8a66597->pipenum2ep[pipenum]; in irq_pipe_empty()
1150 req = get_request_from_ep(ep); in irq_pipe_empty()
1151 if (!list_empty(&ep->queue)) in irq_pipe_empty()
1152 transfer_complete(ep, req, 0); in irq_pipe_empty()
1163 struct r8a66597_ep *ep; in get_status() local
1176 ep = r8a66597->epaddr2ep[w_index & USB_ENDPOINT_NUMBER_MASK]; in get_status()
1177 pid = control_reg_get_pid(r8a66597, ep->pipenum); in get_status()
1208 struct r8a66597_ep *ep; in clear_feature() local
1212 ep = r8a66597->epaddr2ep[w_index & USB_ENDPOINT_NUMBER_MASK]; in clear_feature()
1213 if (!ep->wedge) { in clear_feature()
1214 pipe_stop(r8a66597, ep->pipenum); in clear_feature()
1215 control_reg_sqclr(r8a66597, ep->pipenum); in clear_feature()
1217 usb_ep_clear_halt(&ep->ep); in clear_feature()
1223 req = get_request_from_ep(ep); in clear_feature()
1224 if (ep->busy) { in clear_feature()
1225 ep->busy = 0; in clear_feature()
1226 if (list_empty(&ep->queue)) in clear_feature()
1228 start_packet(ep, req); in clear_feature()
1229 } else if (!list_empty(&ep->queue)) in clear_feature()
1230 pipe_start(r8a66597, ep->pipenum); in clear_feature()
1269 struct r8a66597_ep *ep; in set_feature() local
1272 ep = r8a66597->epaddr2ep[w_index & USB_ENDPOINT_NUMBER_MASK]; in set_feature()
1273 pipe_stall(r8a66597, ep->pipenum); in set_feature()
1370 struct r8a66597_ep *ep; in irq_control_stage() local
1372 ep = &r8a66597->ep[0]; in irq_control_stage()
1373 req = get_request_from_ep(ep); in irq_control_stage()
1374 transfer_complete(ep, req, 0); in irq_control_stage()
1400 static void sudmac_finish(struct r8a66597 *r8a66597, struct r8a66597_ep *ep) in sudmac_finish() argument
1407 pipenum = ep->pipenum; in sudmac_finish()
1410 while (!(r8a66597_read(r8a66597, ep->fifoctr) & FRDY)) { in sudmac_finish()
1420 r8a66597_bset(r8a66597, BCLR, ep->fifoctr); in sudmac_finish()
1421 req = get_request_from_ep(ep); in sudmac_finish()
1432 || (len % ep->ep.maxpacket)) { in sudmac_finish()
1433 if (ep->dma->dir) { in sudmac_finish()
1439 transfer_complete(ep, req, 0); in sudmac_finish()
1447 struct r8a66597_ep *ep; in r8a66597_sudmac_irq() local
1454 ep = r8a66597->pipenum2ep[pipenum]; in r8a66597_sudmac_irq()
1455 sudmac_finish(r8a66597, ep); in r8a66597_sudmac_irq()
1552 struct r8a66597_ep *ep; in r8a66597_enable() local
1554 ep = container_of(_ep, struct r8a66597_ep, ep); in r8a66597_enable()
1555 return alloc_pipe_config(ep, desc); in r8a66597_enable()
1560 struct r8a66597_ep *ep; in r8a66597_disable() local
1564 ep = container_of(_ep, struct r8a66597_ep, ep); in r8a66597_disable()
1565 BUG_ON(!ep); in r8a66597_disable()
1567 while (!list_empty(&ep->queue)) { in r8a66597_disable()
1568 req = get_request_from_ep(ep); in r8a66597_disable()
1569 spin_lock_irqsave(&ep->r8a66597->lock, flags); in r8a66597_disable()
1570 transfer_complete(ep, req, -ECONNRESET); in r8a66597_disable()
1571 spin_unlock_irqrestore(&ep->r8a66597->lock, flags); in r8a66597_disable()
1574 pipe_irq_disable(ep->r8a66597, ep->pipenum); in r8a66597_disable()
1575 return free_pipe_config(ep); in r8a66597_disable()
1603 struct r8a66597_ep *ep; in r8a66597_queue() local
1608 ep = container_of(_ep, struct r8a66597_ep, ep); in r8a66597_queue()
1611 if (ep->r8a66597->gadget.speed == USB_SPEED_UNKNOWN) in r8a66597_queue()
1614 spin_lock_irqsave(&ep->r8a66597->lock, flags); in r8a66597_queue()
1616 if (list_empty(&ep->queue)) in r8a66597_queue()
1619 list_add_tail(&req->queue, &ep->queue); in r8a66597_queue()
1623 if (ep->ep.desc == NULL) /* control */ in r8a66597_queue()
1624 start_ep0(ep, req); in r8a66597_queue()
1626 if (request && !ep->busy) in r8a66597_queue()
1627 start_packet(ep, req); in r8a66597_queue()
1630 spin_unlock_irqrestore(&ep->r8a66597->lock, flags); in r8a66597_queue()
1637 struct r8a66597_ep *ep; in r8a66597_dequeue() local
1641 ep = container_of(_ep, struct r8a66597_ep, ep); in r8a66597_dequeue()
1644 spin_lock_irqsave(&ep->r8a66597->lock, flags); in r8a66597_dequeue()
1645 if (!list_empty(&ep->queue)) in r8a66597_dequeue()
1646 transfer_complete(ep, req, -ECONNRESET); in r8a66597_dequeue()
1647 spin_unlock_irqrestore(&ep->r8a66597->lock, flags); in r8a66597_dequeue()
1654 struct r8a66597_ep *ep = container_of(_ep, struct r8a66597_ep, ep); in r8a66597_set_halt() local
1658 spin_lock_irqsave(&ep->r8a66597->lock, flags); in r8a66597_set_halt()
1659 if (!list_empty(&ep->queue)) { in r8a66597_set_halt()
1662 ep->busy = 1; in r8a66597_set_halt()
1663 pipe_stall(ep->r8a66597, ep->pipenum); in r8a66597_set_halt()
1665 ep->busy = 0; in r8a66597_set_halt()
1666 ep->wedge = 0; in r8a66597_set_halt()
1667 pipe_stop(ep->r8a66597, ep->pipenum); in r8a66597_set_halt()
1669 spin_unlock_irqrestore(&ep->r8a66597->lock, flags); in r8a66597_set_halt()
1675 struct r8a66597_ep *ep; in r8a66597_set_wedge() local
1678 ep = container_of(_ep, struct r8a66597_ep, ep); in r8a66597_set_wedge()
1680 if (!ep || !ep->ep.desc) in r8a66597_set_wedge()
1683 spin_lock_irqsave(&ep->r8a66597->lock, flags); in r8a66597_set_wedge()
1684 ep->wedge = 1; in r8a66597_set_wedge()
1685 spin_unlock_irqrestore(&ep->r8a66597->lock, flags); in r8a66597_set_wedge()
1692 struct r8a66597_ep *ep; in r8a66597_fifo_flush() local
1695 ep = container_of(_ep, struct r8a66597_ep, ep); in r8a66597_fifo_flush()
1696 spin_lock_irqsave(&ep->r8a66597->lock, flags); in r8a66597_fifo_flush()
1697 if (list_empty(&ep->queue) && !ep->busy) { in r8a66597_fifo_flush()
1698 pipe_stop(ep->r8a66597, ep->pipenum); in r8a66597_fifo_flush()
1699 r8a66597_bclr(ep->r8a66597, BCLR, ep->fifoctr); in r8a66597_fifo_flush()
1700 r8a66597_write(ep->r8a66597, ACLRM, ep->pipectr); in r8a66597_fifo_flush()
1701 r8a66597_write(ep->r8a66597, 0, ep->pipectr); in r8a66597_fifo_flush()
1703 spin_unlock_irqrestore(&ep->r8a66597->lock, flags); in r8a66597_fifo_flush()
1814 r8a66597_free_request(&r8a66597->ep[0].ep, r8a66597->ep0_req); in r8a66597_remove()
1821 static void nop_completion(struct usb_ep *ep, struct usb_request *r) in nop_completion() argument
1903 r8a66597->gadget.ep0 = &r8a66597->ep[0].ep; in r8a66597_probe()
1906 struct r8a66597_ep *ep = &r8a66597->ep[i]; in r8a66597_probe() local
1909 INIT_LIST_HEAD(&r8a66597->ep[i].ep.ep_list); in r8a66597_probe()
1910 list_add_tail(&r8a66597->ep[i].ep.ep_list, in r8a66597_probe()
1913 ep->r8a66597 = r8a66597; in r8a66597_probe()
1914 INIT_LIST_HEAD(&ep->queue); in r8a66597_probe()
1915 ep->ep.name = r8a66597_ep_name[i]; in r8a66597_probe()
1916 ep->ep.ops = &r8a66597_ep_ops; in r8a66597_probe()
1917 usb_ep_set_maxpacket_limit(&ep->ep, 512); in r8a66597_probe()
1920 ep->ep.caps.type_control = true; in r8a66597_probe()
1922 ep->ep.caps.type_iso = true; in r8a66597_probe()
1923 ep->ep.caps.type_bulk = true; in r8a66597_probe()
1924 ep->ep.caps.type_int = true; in r8a66597_probe()
1926 ep->ep.caps.dir_in = true; in r8a66597_probe()
1927 ep->ep.caps.dir_out = true; in r8a66597_probe()
1929 usb_ep_set_maxpacket_limit(&r8a66597->ep[0].ep, 64); in r8a66597_probe()
1930 r8a66597->ep[0].pipenum = 0; in r8a66597_probe()
1931 r8a66597->ep[0].fifoaddr = CFIFO; in r8a66597_probe()
1932 r8a66597->ep[0].fifosel = CFIFOSEL; in r8a66597_probe()
1933 r8a66597->ep[0].fifoctr = CFIFOCTR; in r8a66597_probe()
1934 r8a66597->ep[0].pipectr = get_pipectr_addr(0); in r8a66597_probe()
1935 r8a66597->pipenum2ep[0] = &r8a66597->ep[0]; in r8a66597_probe()
1936 r8a66597->epaddr2ep[0] = &r8a66597->ep[0]; in r8a66597_probe()
1938 r8a66597->ep0_req = r8a66597_alloc_request(&r8a66597->ep[0].ep, in r8a66597_probe()
1954 r8a66597_free_request(&r8a66597->ep[0].ep, r8a66597->ep0_req); in r8a66597_probe()
1960 r8a66597_free_request(&r8a66597->ep[0].ep, r8a66597->ep0_req); in r8a66597_probe()