Home
last modified time | relevance | path

Searched refs:epnum (Results 1 – 25 of 25) sorted by relevance

/u-boot/drivers/usb/mtu3/
A Dmtu3.h35 #define MU3D_EP_TXCR0(epnum) (U3D_TX1CSR0 + (((epnum) - 1) * 0x10)) argument
36 #define MU3D_EP_TXCR1(epnum) (U3D_TX1CSR1 + (((epnum) - 1) * 0x10)) argument
37 #define MU3D_EP_TXCR2(epnum) (U3D_TX1CSR2 + (((epnum) - 1) * 0x10)) argument
39 #define MU3D_EP_RXCR0(epnum) (U3D_RX1CSR0 + (((epnum) - 1) * 0x10)) argument
40 #define MU3D_EP_RXCR1(epnum) (U3D_RX1CSR1 + (((epnum) - 1) * 0x10)) argument
41 #define MU3D_EP_RXCR2(epnum) (U3D_RX1CSR2 + (((epnum) - 1) * 0x10)) argument
43 #define USB_QMU_RQCSR(epnum) (U3D_RXQCSR1 + (((epnum) - 1) * 0x10)) argument
44 #define USB_QMU_RQSAR(epnum) (U3D_RXQSAR1 + (((epnum) - 1) * 0x10)) argument
45 #define USB_QMU_RQCPR(epnum) (U3D_RXQCPR1 + (((epnum) - 1) * 0x10)) argument
255 u8 epnum; member
[all …]
A Dmtu3_qmu.c132 int epnum = mep->epnum; in mtu3_qmu_resume() local
135 offset = mep->is_in ? USB_QMU_TQCSR(epnum) : USB_QMU_RQCSR(epnum); in mtu3_qmu_resume()
198 mep->epnum, gpd, enq); in mtu3_prepare_tx_gpd()
235 mep->epnum, gpd, enq); in mtu3_prepare_rx_gpd()
264 u8 epnum = mep->epnum; in mtu3_qmu_start() local
273 QMU_TX_LEN_ERR(epnum) | QMU_TX_CS_ERR(epnum)); in mtu3_qmu_start()
289 QMU_RX_LEN_ERR(epnum) | QMU_RX_CS_ERR(epnum)); in mtu3_qmu_start()
307 int epnum = mep->epnum; in mtu3_qmu_stop() local
312 qcsr = mep->is_in ? USB_QMU_TQCSR(epnum) : USB_QMU_RQCSR(epnum); in mtu3_qmu_stop()
349 struct mtu3_ep *mep = mtu->in_eps + epnum; in qmu_done_tx()
[all …]
A Dmtu3_core.c223 u32 rst_bit = EP_RST(mep->is_in, mep->epnum); in mtu3_ep_reset()
234 u8 epnum = mep->epnum; in mtu3_ep_stall_set() local
308 int epnum = mep->epnum; in mtu3_config_ep() local
355 epnum, mtu3_readl(mbase, MU3D_EP_TXCR0(epnum)), in mtu3_config_ep()
356 mtu3_readl(mbase, MU3D_EP_TXCR1(epnum)), in mtu3_config_ep()
357 mtu3_readl(mbase, MU3D_EP_TXCR2(epnum))); in mtu3_config_ep()
391 epnum, mtu3_readl(mbase, MU3D_EP_RXCR0(epnum)), in mtu3_config_ep()
392 mtu3_readl(mbase, MU3D_EP_RXCR1(epnum)), in mtu3_config_ep()
393 mtu3_readl(mbase, MU3D_EP_RXCR2(epnum))); in mtu3_config_ep()
408 int epnum = mep->epnum; in mtu3_deconfig_ep() local
[all …]
A Dmtu3_gadget.c27 if (mep->epnum) in mtu3_req_complete()
47 if (mep->epnum) in nuke()
231 mreq->epnum = mep->epnum; in mtu3_alloc_request()
576 u32 epnum, u32 is_in) in init_hw_ep() argument
578 mep->epnum = epnum; in init_hw_ep()
584 sprintf(mep->name, "ep%d%s", epnum, in init_hw_ep()
591 if (!epnum) { in init_hw_ep()
607 u8 epnum; in mtu3_gadget_init_eps() local
616 for (epnum = 1; epnum < mtu->num_eps; epnum++) { in mtu3_gadget_init_eps()
617 init_hw_ep(mtu, mtu->in_eps + epnum, epnum, 1); in mtu3_gadget_init_eps()
[all …]
A Dmtu3_gadget_ep0.c109 __func__, mep->epnum, len, src); in ep0_write_fifo()
130 __func__, mep->epnum, len, dst); in ep0_read_fifo()
233 u8 epnum = 0; in ep0_get_status() local
253 epnum = (u8)le16_to_cpu(setup->wIndex); in ep0_get_status()
254 is_in = epnum & USB_DIR_IN; in ep0_get_status()
255 epnum &= USB_ENDPOINT_NUMBER_MASK; in ep0_get_status()
257 if (epnum >= mtu->num_eps) { in ep0_get_status()
261 if (!epnum) in ep0_get_status()
409 u8 epnum; in ep0_handle_feature() local
430 epnum = index & USB_ENDPOINT_NUMBER_MASK; in ep0_handle_feature()
[all …]
A Dmtu3_hw_regs.h270 #define EP_RST(is_in, epnum) (((is_in) ? BIT(16) : BIT(0)) << (epnum)) argument
/u-boot/drivers/usb/musb-new/
A Dmusb_regs.h215 #define MUSB_FIFO_OFFSET(epnum) (0x200 + ((epnum) * 0x20)) argument
217 #define MUSB_FIFO_OFFSET(epnum) (0x20 + ((epnum) * 4)) argument
317 #define MUSB_FIFO_OFFSET(epnum) (0x00 + ((epnum) * 4)) argument
478 musb_writeb(mbase, MUSB_BUSCTL_OFFSET(epnum, MUSB_TXFUNCADDR), in musb_write_txfunaddr()
485 musb_writeb(mbase, MUSB_BUSCTL_OFFSET(epnum, MUSB_TXHUBADDR), in musb_write_txhubaddr()
492 musb_writeb(mbase, MUSB_BUSCTL_OFFSET(epnum, MUSB_TXHUBPORT), in musb_write_txhubport()
496 static inline u8 musb_read_rxfunaddr(void __iomem *mbase, u8 epnum) in musb_read_rxfunaddr() argument
501 static inline u8 musb_read_rxhubaddr(void __iomem *mbase, u8 epnum) in musb_read_rxhubaddr() argument
506 static inline u8 musb_read_rxhubport(void __iomem *mbase, u8 epnum) in musb_read_rxhubport() argument
511 static inline u8 musb_read_txfunaddr(void __iomem *mbase, u8 epnum) in musb_read_txfunaddr() argument
[all …]
A Dmusb_host.c112 ep->epnum, csr)) in musb_h_tx_flush_fifo()
135 ep->epnum, csr); in musb_h_ep0_flush_fifo()
150 if (ep->epnum) { in musb_h_tx_start()
204 int epnum = hw_ep->epnum; in musb_start_urb() local
740 if (epnum) { in musb_ep_program()
785 if (epnum) { in musb_ep_program()
1524 epnum); in musb_host_rx()
1653 epnum, rx_count, in musb_host_rx()
1767 epnum, iso_err); in musb_host_rx()
1822 epnum++, hw_ep++) { in musb_schedule()
[all …]
A Dmusb_gadget.c321 u8 epnum = req->epnum; in txstate() local
527 epnum, request); in musb_g_tx()
642 const u8 epnum = req->epnum; in rxstate() local
978 epnum, csr, in musb_g_rx()
1041 u8 epnum; in musb_gadget_enable() local
1222 u8 epnum; in musb_gadget_disable() local
1846 if (!epnum) { in init_peripheral_ep()
1866 u8 epnum; in musb_g_init_endpoints() local
1875 epnum++, hw_ep++) { in musb_g_init_endpoints()
1882 epnum, 1); in musb_g_init_endpoints()
[all …]
A Dmusb_gadget_ep0.c66 u8 result[2], epnum = 0; in service_tx_status_request() local
96 if (!epnum) { in service_tx_status_request()
101 is_in = epnum & USB_DIR_IN; in service_tx_status_request()
103 epnum &= 0x0f; in service_tx_status_request()
115 musb_ep_select(mbase, epnum); in service_tx_status_request()
242 const u8 epnum = in service_zero_data_request() local
251 if (epnum == 0 || epnum >= MUSB_C_NUM_EPS || in service_zero_data_request()
255 ep = musb->endpoints + epnum; in service_zero_data_request()
270 musb_ep_select(mbase, epnum); in service_zero_data_request()
407 const u8 epnum = in service_zero_data_request() local
[all …]
A Dmusb_gadget.h33 u8 epnum; member
90 extern void musb_g_tx(struct musb *musb, u8 epnum);
91 extern void musb_g_rx(struct musb *musb, u8 epnum);
A Dmusb_core.c864 u8 epnum; in musb_stage0_irq()
873 for (epnum = 1; (epnum < musb->nr_endpoints) in musb_stage0_irq()
875 epnum++, ep++) { in musb_stage0_irq()
884 epnum); in musb_stage0_irq()
1221 if (hw_ep->epnum == 1) in fifo_setup()
1354 u8 epnum = 0; in ep_config_from_hw() local
1363 for (epnum = 1; epnum < musb->config->num_eps; epnum++) { in ep_config_from_hw()
1654 if (!epnum) { in musb_dma_completion()
1838 int epnum; in allocate_instance() local
1876 epnum++, ep++) { in allocate_instance()
[all …]
A Dmusb_core.h246 u8 epnum; member
461 struct musb_hw_ep *hw_ep, u8 epnum) in musb_read_fifosize() argument
467 reg = musb_readb(mbase, MUSB_EP_OFFSET(epnum, MUSB_FIFOSIZE)); in musb_read_fifosize()
473 musb->epmask |= (1 << epnum); in musb_read_fifosize()
A Dmusb_dma.h142 extern void musb_dma_completion(struct musb *musb, u8 epnum, u8 transmit);
A Dmusb_uboot.c41 int epnum = usb_pipeendpoint(pipe); in construct_urb() local
59 __cpu_to_le16(is_in ? dev->epmaxpacketin[epnum] : in construct_urb()
60 dev->epmaxpacketout[epnum]); in construct_urb()
63 (is_in ? USB_DIR_IN : USB_DIR_OUT) | epnum; in construct_urb()
A Dmusb_host.h47 u8 epnum; member
/u-boot/drivers/usb/common/
A Dusb_urb.c66 int epnum = usb_pipeendpoint(pipe); in usb_urb_fill() local
68 u16 maxpacketsize = is_in ? dev->epmaxpacketin[epnum] : in usb_urb_fill()
69 dev->epmaxpacketout[epnum]; in usb_urb_fill()
88 epnum); in usb_urb_fill()
/u-boot/drivers/usb/gadget/
A Depautoconf.c21 static unsigned epnum; variable
150 if (++epnum > 15) in ep_matches()
152 desc->bEndpointAddress |= epnum; in ep_matches()
317 epnum = 0; in usb_ep_autoconfig_reset()
/u-boot/drivers/usb/dwc3/
A Dgadget.c1593 dep->number = epnum; in dwc3_gadget_init_hw_endpoints()
1604 if (epnum == 0 || epnum == 1) { in dwc3_gadget_init_hw_endpoints()
1608 if (!epnum) in dwc3_gadget_init_hw_endpoints()
1655 u8 epnum; in dwc3_gadget_free_endpoints() local
1657 for (epnum = 0; epnum < DWC3_ENDPOINTS_NUM; epnum++) { in dwc3_gadget_free_endpoints()
1670 if (epnum != 0 && epnum != 1) { in dwc3_gadget_free_endpoints()
1851 if (epnum == 0 || epnum == 1) { in dwc3_endpoint_interrupt()
2003 u32 epnum; in dwc3_stop_active_transfers() local
2005 for (epnum = 2; epnum < DWC3_ENDPOINTS_NUM; epnum++) { in dwc3_stop_active_transfers()
2021 u32 epnum; in dwc3_clear_stall_all_ep() local
[all …]
A Dep0.c62 dep = dwc->eps[epnum]; in dwc3_ep0_start_trans()
120 req->epnum = dep->number; in __dwc3_gadget_ep0_queue()
313 u32 epnum; in dwc3_wIndex_to_dep() local
317 epnum |= 1; in dwc3_wIndex_to_dep()
319 dep = dwc->eps[epnum]; in dwc3_wIndex_to_dep()
783 u8 epnum; in dwc3_ep0_complete_data() local
785 epnum = event->endpoint_number; in dwc3_ep0_complete_data()
845 if ((epnum & 1) && ur->actual < ur->length) { in dwc3_ep0_complete_data()
858 ret = dwc3_ep0_start_trans(dwc, epnum, in dwc3_ep0_complete_data()
1093 u8 epnum = event->endpoint_number; in dwc3_ep0_interrupt() local
[all …]
A Dcore.h644 u8 epnum; member
/u-boot/drivers/usb/musb/
A Dmusb_core.c78 writeb(epinfo->epnum, &musbr->index); in musb_configure_ep()
A Dmusb_core.h307 u8 epnum; /* endpoint number */ member
A Dmusb_udc.c943 epinfo[ep_loop].epnum = (ep_loop / 2) + 1; in udc_init()
/u-boot/drivers/usb/isp1760/
A Disp1760-hcd.c173 int epnum; member
1851 int epnum; in isp1760_urb_enqueue() local
1884 epnum = usb_pipeendpoint(urb->pipe); in isp1760_urb_enqueue()
1888 if (qh->epnum == epnum) { in isp1760_urb_enqueue()
1903 qh->epnum = epnum; in isp1760_urb_enqueue()

Completed in 958 milliseconds