Home
last modified time | relevance | path

Searched refs:ep_num (Results 1 – 9 of 9) sorted by relevance

/openbmc/u-boot/drivers/usb/gadget/
H A Ddwc2_udc_otg_xfer_dma.c96 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(&reg->out_endp[ep_num].doepctl); in setdma_rx()
116 writel((unsigned long) ep->dma_buf, &reg->out_endp[ep_num].doepdma); in setdma_rx()
118 &reg->out_endp[ep_num].doeptsiz); in setdma_rx()
119 writel(DEPCTL_EPENA|DEPCTL_CNAK|ctrl, &reg->out_endp[ep_num].doepctl); in setdma_rx()
125 __func__, ep_num, in setdma_rx()
126 readl(&reg->out_endp[ep_num].doepdma), in setdma_rx()
127 readl(&reg->out_endp[ep_num].doeptsiz), in setdma_rx()
[all …]
H A Dpxa27x_udc.c57 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 …]
H A Daspeed_usbtty.c141 static void udc_stall_ep(u32 ep_num) in udc_stall_ep() argument
145 usbdbg("stall ep: %d", ep_num); in udc_stall_ep()
147 if (ep_num) { in udc_stall_ep()
149 (AST_EP_OFFSET * (ep_num - 1)); in udc_stall_ep()
166 int ep_num; in udc_endpoint_write() local
174 ep_num = endpoint->endpoint_address & USB_ENDPOINT_NUMBER_MASK; in udc_endpoint_write()
175 ep_reg = aspeed_udc->udc_base + AST_EP_BASE + (AST_EP_OFFSET * (ep_num - 1)); in udc_endpoint_write()
210 int ep_isout, ep_num; in aspeed_udc_ep_handle() local
216 ep_num = endpoint->endpoint_address & USB_ENDPOINT_NUMBER_MASK; in aspeed_udc_ep_handle()
218 ep_reg = aspeed_udc->udc_base + AST_EP_BASE + (AST_EP_OFFSET * (ep_num - 1)); in aspeed_udc_ep_handle()
[all …]
H A Ddesignware_udc.c143 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 …]
H A Dci_udc.c156 static struct ept_queue_head *ci_get_qh(int ep_num, int dir_in) in ci_get_qh() argument
158 return &controller.epts[(ep_num * 2) + dir_in]; in ci_get_qh()
169 static struct ept_queue_item *ci_get_qtd(int ep_num, int dir_in) in ci_get_qtd() argument
171 int index = (ep_num * 2) + dir_in; in ci_get_qtd()
182 static void ci_flush_qh(int ep_num) in ci_flush_qh() argument
184 struct ept_queue_head *head = ci_get_qh(ep_num, 0); in ci_flush_qh()
197 static void ci_invalidate_qh(int ep_num) in ci_invalidate_qh() argument
199 struct ept_queue_head *head = ci_get_qh(ep_num, 0); in ci_invalidate_qh()
212 static void ci_flush_qtd(int ep_num) in ci_flush_qtd() argument
214 struct ept_queue_item *item = ci_get_qtd(ep_num, 0); in ci_flush_qtd()
[all …]
H A Daspeed_udc.c248 u16 ep_num = udc->root_setup->wIndex & USB_ENDPOINT_NUMBER_MASK; in aspeed_udc_setup_handle() local
285 SETUP_DBG("USB_REQ_CLEAR_FEATURE ep: %d\n", ep_num); in aspeed_udc_setup_handle()
290 SETUP_DBG("USB_REQ_SET_FEATURE ep: %d\n", ep_num); in aspeed_udc_setup_handle()
793 u16 ep_num) in aspeed_udc_ep_handle_desc_mode() argument
795 struct aspeed_udc_ep *ep = &udc->ep[ep_num]; in aspeed_udc_ep_handle_desc_mode()
890 static void aspeed_udc_ep_handle(struct aspeed_udc_priv *udc, u16 ep_num) in aspeed_udc_ep_handle() argument
892 struct aspeed_udc_ep *ep = &udc->ep[ep_num]; in aspeed_udc_ep_handle()
/openbmc/u-boot/drivers/usb/musb-new/
H A Dmusb_core.c1559 int ep_num; in musb_interrupt() local
1591 ep_num = 1; in musb_interrupt()
1599 musb_host_rx(musb, ep_num); in musb_interrupt()
1602 musb_g_rx(musb, ep_num); in musb_interrupt()
1607 ep_num++; in musb_interrupt()
1612 ep_num = 1; in musb_interrupt()
1620 musb_host_tx(musb, ep_num); in musb_interrupt()
1623 musb_g_tx(musb, ep_num); in musb_interrupt()
1627 ep_num++; in musb_interrupt()
/openbmc/u-boot/drivers/usb/musb/
H A Dmusb_udc.c795 void udc_set_nak(int ep_num) in udc_set_nak() argument
800 void udc_unset_nak(int ep_num) in udc_unset_nak() argument
/openbmc/u-boot/drivers/usb/host/
H A Ddwc2.c482 struct usb_device *dev, uint8_t dev_addr, uint8_t ep_num, in dwc_otg_hc_init() argument
487 (ep_num << DWC2_HCCHAR_EPNUM_OFFSET) | in dwc_otg_hc_init()