/external/u-boot/drivers/usb/gadget/ |
D | dwc2_udc_otg_xfer_dma.c | 96 u32 ep_num = ep_index(ep); in setdma_rx() local 100 ep_num ? DMA_BUFFER_SIZE : ep->ep.maxpacket); in setdma_rx() 105 if (ep_num == EP0_CON || length == 0) in setdma_rx() 110 ctrl = readl(®->out_endp[ep_num].doepctl); in setdma_rx() 116 writel((unsigned long) ep->dma_buf, ®->out_endp[ep_num].doepdma); in setdma_rx() 118 ®->out_endp[ep_num].doeptsiz); in setdma_rx() 119 writel(DEPCTL_EPENA|DEPCTL_CNAK|ctrl, ®->out_endp[ep_num].doepctl); in setdma_rx() 125 __func__, ep_num, in setdma_rx() 126 readl(®->out_endp[ep_num].doepdma), in setdma_rx() 127 readl(®->out_endp[ep_num].doeptsiz), in setdma_rx() [all …]
|
D | pxa27x_udc.c | 57 int ep_num = endpoint->endpoint_address & USB_ENDPOINT_NUMBER_MASK; in udc_write_urb() local 71 usbdbg("write urb on ep %d", ep_num); in udc_write_urb() 86 if (ep_num) in udc_write_urb() 87 writel(UDCCSR_PC ,UDCCSN(ep_num)); in udc_write_urb() 90 writel(data32[endpoint->sent / 4 + i], UDCDN(ep_num)); in udc_write_urb() 93 writeb(data8[endpoint->sent + w * 4 + i], UDCDN(ep_num)); in udc_write_urb() 97 writel(ep_num ? UDCCSR_SP : UDCCSR0_IPR, UDCCSN(ep_num)); in udc_write_urb() 100 if (ep_num) { in udc_write_urb() 101 while (!(readl(UDCCSN(ep_num)) & UDCCSR_PC)) { in udc_write_urb() 111 if (ep_num) { in udc_write_urb() [all …]
|
D | designware_udc.c | 143 static void udc_stall_ep(u32 ep_num) in udc_stall_ep() argument 145 writel(readl(&inep_regs_p[ep_num].endp_cntl) | ENDP_CNTL_STALL, in udc_stall_ep() 146 &inep_regs_p[ep_num].endp_cntl); in udc_stall_ep() 148 writel(readl(&outep_regs_p[ep_num].endp_cntl) | ENDP_CNTL_STALL, in udc_stall_ep() 149 &outep_regs_p[ep_num].endp_cntl); in udc_stall_ep() 152 static void *get_fifo(int ep_num, int in) in get_fifo() argument 156 switch (ep_num) { in get_fifo() 593 int ep_num, ep_type; in udc_setup_ep() local 608 ep_num = ep_addr & USB_ENDPOINT_NUMBER_MASK; in udc_setup_ep() 638 struct udc_endp_regs *out_p = &outep_regs_p[ep_num]; in udc_setup_ep() [all …]
|
D | ci_udc.c | 152 static struct ept_queue_head *ci_get_qh(int ep_num, int dir_in) in ci_get_qh() argument 154 return &controller.epts[(ep_num * 2) + dir_in]; in ci_get_qh() 165 static struct ept_queue_item *ci_get_qtd(int ep_num, int dir_in) in ci_get_qtd() argument 167 int index = (ep_num * 2) + dir_in; in ci_get_qtd() 178 static void ci_flush_qh(int ep_num) in ci_flush_qh() argument 180 struct ept_queue_head *head = ci_get_qh(ep_num, 0); in ci_flush_qh() 193 static void ci_invalidate_qh(int ep_num) in ci_invalidate_qh() argument 195 struct ept_queue_head *head = ci_get_qh(ep_num, 0); in ci_invalidate_qh() 208 static void ci_flush_qtd(int ep_num) in ci_flush_qtd() argument 210 struct ept_queue_item *item = ci_get_qtd(ep_num, 0); in ci_flush_qtd() [all …]
|
/external/libpcap/ |
D | pcap-usb-linux.c | 735 int tag, cnt, ep_num, dev_addr, dummy, ret, urb_len, data_len; in usb_read_linux() local 767 &pipeid1, &pipeid2, &dev_addr, &ep_num, status, in usb_read_linux() 802 ep_num |= URB_TRANSFER_IN; in usb_read_linux() 819 uhdr->endpoint_number = ep_num; in usb_read_linux()
|
/external/u-boot/drivers/usb/musb-new/ |
D | musb_core.c | 1558 int ep_num; in musb_interrupt() local 1590 ep_num = 1; in musb_interrupt() 1598 musb_host_rx(musb, ep_num); in musb_interrupt() 1601 musb_g_rx(musb, ep_num); in musb_interrupt() 1606 ep_num++; in musb_interrupt() 1611 ep_num = 1; in musb_interrupt() 1619 musb_host_tx(musb, ep_num); in musb_interrupt() 1622 musb_g_tx(musb, ep_num); in musb_interrupt() 1626 ep_num++; in musb_interrupt()
|
/external/u-boot/drivers/usb/musb/ |
D | musb_udc.c | 797 void udc_set_nak(int ep_num) in udc_set_nak() argument 802 void udc_unset_nak(int ep_num) in udc_unset_nak() argument
|
/external/u-boot/drivers/usb/host/ |
D | dwc2.c | 479 struct usb_device *dev, uint8_t dev_addr, uint8_t ep_num, in dwc_otg_hc_init() argument 484 (ep_num << DWC2_HCCHAR_EPNUM_OFFSET) | in dwc_otg_hc_init()
|