Home
last modified time | relevance | path

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

1234

/linux-6.3-rc2/drivers/usb/mtu3/
A Dmtu3.h34 #define MU3D_EP_TXCR0(epnum) (U3D_TX1CSR0 + (((epnum) - 1) * 0x10)) argument
35 #define MU3D_EP_TXCR1(epnum) (U3D_TX1CSR1 + (((epnum) - 1) * 0x10)) argument
36 #define MU3D_EP_TXCR2(epnum) (U3D_TX1CSR2 + (((epnum) - 1) * 0x10)) argument
38 #define MU3D_EP_RXCR0(epnum) (U3D_RX1CSR0 + (((epnum) - 1) * 0x10)) argument
39 #define MU3D_EP_RXCR1(epnum) (U3D_RX1CSR1 + (((epnum) - 1) * 0x10)) argument
40 #define MU3D_EP_RXCR2(epnum) (U3D_RX1CSR2 + (((epnum) - 1) * 0x10)) argument
42 #define USB_QMU_TQHIAR(epnum) (U3D_TXQHIAR1 + (((epnum) - 1) * 0x4)) argument
45 #define USB_QMU_RQCSR(epnum) (U3D_RXQCSR1 + (((epnum) - 1) * 0x10)) argument
46 #define USB_QMU_RQSAR(epnum) (U3D_RXQSAR1 + (((epnum) - 1) * 0x10)) argument
277 u8 epnum; member
[all …]
A Dmtu3_qmu.c99 mtu3_writel(mbase, USB_QMU_TQSAR(epnum), in write_txq_start_addr()
111 mtu3_writel(mbase, USB_QMU_RQSAR(epnum), in write_rxq_start_addr()
193 int epnum = mep->epnum; in mtu3_qmu_resume() local
196 offset = mep->is_in ? USB_QMU_TQCSR(epnum) : USB_QMU_RQCSR(epnum); in mtu3_qmu_resume()
262 mep->epnum, gpd, enq, &enq_dma); in mtu3_prepare_tx_gpd()
305 mep->epnum, gpd, enq, &enq_dma); in mtu3_prepare_rx_gpd()
335 u8 epnum = mep->epnum; in mtu3_qmu_start() local
344 QMU_TX_LEN_ERR(epnum) | QMU_TX_CS_ERR(epnum)); in mtu3_qmu_start()
360 QMU_RX_LEN_ERR(epnum) | QMU_RX_CS_ERR(epnum)); in mtu3_qmu_start()
378 int epnum = mep->epnum; in mtu3_qmu_stop() local
[all …]
A Dmtu3_core.c301 u32 rst_bit = EP_RST(mep->is_in, mep->epnum); in mtu3_ep_reset()
312 u8 epnum = mep->epnum; in mtu3_ep_stall_set() local
409 int epnum = mep->epnum; in mtu3_config_ep() local
456 epnum, mtu3_readl(mbase, MU3D_EP_TXCR0(epnum)), in mtu3_config_ep()
457 mtu3_readl(mbase, MU3D_EP_TXCR1(epnum)), in mtu3_config_ep()
458 mtu3_readl(mbase, MU3D_EP_TXCR2(epnum))); in mtu3_config_ep()
492 epnum, mtu3_readl(mbase, MU3D_EP_RXCR0(epnum)), in mtu3_config_ep()
493 mtu3_readl(mbase, MU3D_EP_RXCR1(epnum)), in mtu3_config_ep()
494 mtu3_readl(mbase, MU3D_EP_RXCR2(epnum))); in mtu3_config_ep()
509 int epnum = mep->epnum; in mtu3_deconfig_ep() local
[all …]
A Dmtu3_gadget.c29 if (mep->epnum) in mtu3_req_complete()
49 if (mep->epnum) in nuke()
242 mreq->epnum = mep->epnum; in mtu3_alloc_request()
647 u32 epnum, u32 is_in) in init_hw_ep() argument
649 mep->epnum = epnum; in init_hw_ep()
662 if (!epnum) { in init_hw_ep()
679 if (!epnum) { in init_hw_ep()
691 u8 epnum; in mtu3_gadget_init_eps() local
700 for (epnum = 1; epnum < mtu->num_eps; epnum++) { in mtu3_gadget_init_eps()
701 init_hw_ep(mtu, mtu->in_eps + epnum, epnum, 1); in mtu3_gadget_init_eps()
[all …]
A Dmtu3_debugfs.c148 int epnum = mep->epnum; in mtu3_debugfs_ep_regset() local
156 regs[0].offset = in ? MU3D_EP_TXCR0(epnum) : MU3D_EP_RXCR0(epnum); in mtu3_debugfs_ep_regset()
158 regs[1].offset = in ? MU3D_EP_TXCR1(epnum) : MU3D_EP_RXCR1(epnum); in mtu3_debugfs_ep_regset()
160 regs[2].offset = in ? MU3D_EP_TXCR2(epnum) : MU3D_EP_RXCR2(epnum); in mtu3_debugfs_ep_regset()
162 regs[3].offset = in ? USB_QMU_TQHIAR(epnum) : USB_QMU_RQHIAR(epnum); in mtu3_debugfs_ep_regset()
164 regs[4].offset = in ? USB_QMU_TQCSR(epnum) : USB_QMU_RQCSR(epnum); in mtu3_debugfs_ep_regset()
166 regs[5].offset = in ? USB_QMU_TQSAR(epnum) : USB_QMU_RQSAR(epnum); in mtu3_debugfs_ep_regset()
168 regs[6].offset = in ? USB_QMU_TQCPR(epnum) : USB_QMU_RQCPR(epnum); in mtu3_debugfs_ep_regset()
/linux-6.3-rc2/drivers/usb/musb/
A Dmusb_regs.h286 musb->io.busctl_offset(epnum, MUSB_RXFUNCADDR), in musb_write_rxfunaddr()
308 musb->io.busctl_offset(epnum, MUSB_TXFUNCADDR), in musb_write_txfunaddr()
326 static inline u8 musb_read_rxfunaddr(struct musb *musb, u8 epnum) in musb_read_rxfunaddr() argument
329 musb->io.busctl_offset(epnum, MUSB_RXFUNCADDR)); in musb_read_rxfunaddr()
332 static inline u8 musb_read_rxhubaddr(struct musb *musb, u8 epnum) in musb_read_rxhubaddr() argument
335 musb->io.busctl_offset(epnum, MUSB_RXHUBADDR)); in musb_read_rxhubaddr()
338 static inline u8 musb_read_rxhubport(struct musb *musb, u8 epnum) in musb_read_rxhubport() argument
341 musb->io.busctl_offset(epnum, MUSB_RXHUBPORT)); in musb_read_rxhubport()
347 musb->io.busctl_offset(epnum, MUSB_TXFUNCADDR)); in musb_read_txfunaddr()
353 musb->io.busctl_offset(epnum, MUSB_TXHUBADDR)); in musb_read_txhubaddr()
[all …]
A Dmusb_host.c115 ep->epnum, csr)) in musb_h_tx_flush_fifo()
138 ep->epnum, csr); in musb_h_ep0_flush_fifo()
153 if (ep->epnum) { in musb_h_tx_start()
204 int epnum = hw_ep->epnum; in musb_start_urb() local
726 if (epnum) { in musb_ep_program()
774 if (epnum) { in musb_ep_program()
1817 epnum); in musb_host_rx()
1961 epnum, iso_err); in musb_host_rx()
1994 int best_end, epnum; in musb_schedule() local
2022 epnum++, hw_ep++) { in musb_schedule()
[all …]
A Dmusb_gadget.c225 u8 epnum = req->epnum; in txstate() local
442 epnum, request); in musb_g_tx()
520 const u8 epnum = req->epnum; in rxstate() local
917 u8 epnum; in musb_gadget_enable() local
1088 u8 epnum; in musb_gadget_disable() local
1701 ep->current_epnum = epnum; in init_peripheral_ep()
1713 if (!epnum) { in init_peripheral_ep()
1745 u8 epnum; in musb_g_init_endpoints() local
1754 epnum++, hw_ep++) { in musb_g_init_endpoints()
1761 epnum, 1); in musb_g_init_endpoints()
[all …]
A Dtusb6010_omap.c33 int epnum; member
67 chdat->epnum, reg & 0xf); in tusb_omap_use_shared_dmareq()
72 reg = (1 << 4) | chdat->epnum; in tusb_omap_use_shared_dmareq()
74 reg = chdat->epnum; in tusb_omap_use_shared_dmareq()
85 if ((reg & 0xf) != chdat->epnum) { in tusb_omap_free_shared_dmareq()
87 chdat->epnum, reg & 0xf); in tusb_omap_free_shared_dmareq()
170 musb_ep_select(mbase, chdat->epnum); in tusb_omap_dma_cb()
326 musb_ep_select(mbase, chdat->epnum); in tusb_omap_dma_program()
437 if (hw_ep->epnum == 0) { in tusb_omap_dma_allocate()
458 chdat->epnum = hw_ep->epnum; in tusb_omap_dma_allocate()
[all …]
A Dmusb_gadget_ep0.c56 u8 result[2], epnum = 0; in service_tx_status_request() local
86 if (!epnum) { in service_tx_status_request()
91 is_in = epnum & USB_DIR_IN; in service_tx_status_request()
92 epnum &= 0x0f; in service_tx_status_request()
93 if (epnum >= MUSB_C_NUM_EPS) { in service_tx_status_request()
109 musb_ep_select(mbase, epnum); in service_tx_status_request()
236 const u8 epnum = in service_zero_data_request() local
245 if (epnum == 0 || epnum >= MUSB_C_NUM_EPS || in service_zero_data_request()
249 ep = musb->endpoints + epnum; in service_zero_data_request()
397 const u8 epnum = in service_zero_data_request() local
[all …]
A Dmusbhsdma.c60 u8 epnum; member
113 musb_channel->epnum = hw_ep->epnum; in dma_channel_allocate()
164 csr |= (musb_channel->epnum << MUSB_HSDMA_ENDPOINT_SHIFT) in configure_channel()
190 musb_channel->epnum, in dma_channel_program()
232 offset = musb->io.ep_offset(musb_channel->epnum, in dma_channel_abort()
245 offset = musb->io.ep_offset(musb_channel->epnum, in dma_channel_abort()
344 u8 epnum = musb_channel->epnum; in dma_controller_irq() local
345 int offset = musb->io.ep_offset(epnum, in dma_controller_irq()
353 musb_ep_select(mbase, epnum); in dma_controller_irq()
366 musb_dma_completion(musb, musb_channel->epnum, in dma_controller_irq()
A Dmusb_io.h29 u32 (*ep_offset)(u8 epnum, u16 offset);
30 void (*ep_select)(void __iomem *mbase, u8 epnum);
31 u32 (*fifo_offset)(u8 epnum);
34 u32 (*busctl_offset)(u8 epnum, u16 offset);
A Dmusb_core.h164 u32 (*ep_offset)(u8 epnum, u16 offset);
165 void (*ep_select)(void __iomem *mbase, u8 epnum);
167 u32 (*fifo_offset)(u8 epnum);
168 u32 (*busctl_offset)(u8 epnum, u16 offset);
192 void (*clear_ep_rxintr)(struct musb *musb, int epnum);
210 u8 epnum; member
455 struct musb_hw_ep *hw_ep, u8 epnum) in musb_read_fifosize() argument
461 reg = musb_readb(mbase, musb->io.ep_offset(epnum, MUSB_FIFOSIZE)); in musb_read_fifosize()
467 musb->epmask |= (1 << epnum); in musb_read_fifosize()
591 static inline void musb_platform_clear_ep_rxintr(struct musb *musb, int epnum) in musb_platform_clear_ep_rxintr() argument
[all …]
A Dmusb_core.c1113 u8 epnum; in musb_stage0_irq()
1122 for (epnum = 1; (epnum < musb->nr_endpoints) in musb_stage0_irq()
1124 epnum++, ep++) { in musb_stage0_irq()
1133 epnum); in musb_stage0_irq()
1545 u8 epnum = 0; in ep_config_from_hw() local
1554 for (epnum = 1; epnum < musb->config->num_eps; epnum++) { in ep_config_from_hw()
1725 unsigned long epnum; in musb_interrupt() local
1803 if (!epnum) { in musb_dma_completion()
2146 int epnum; in allocate_instance() local
2167 epnum++, ep++) { in allocate_instance()
[all …]
A Dmediatek.c192 static u32 mtk_musb_busctl_offset(u8 epnum, u16 offset) in mtk_musb_busctl_offset() argument
194 return MTK_MUSB_TXFUNCADDR + offset + 8 * epnum; in mtk_musb_busctl_offset()
305 u8 epnum = qh->hw_ep->epnum; in mtk_musb_get_toggle() local
309 return toggle & (1 << epnum); in mtk_musb_get_toggle()
315 u8 epnum = qh->hw_ep->epnum; in mtk_musb_set_toggle() local
318 toggle = usb_gettoggle(urb->dev, qh->epnum, is_out); in mtk_musb_set_toggle()
322 value |= toggle << epnum; in mtk_musb_set_toggle()
326 value |= toggle << epnum; in mtk_musb_set_toggle()
/linux-6.3-rc2/drivers/usb/fotg210/
A Dfotg210-udc.c85 if (ep->epnum) { in fotg210_done()
127 val |= (dir_in ? FIFOMAP_DIRIN(epnum - 1) : FIFOMAP_DIROUT(epnum - 1)); in fotg210_set_fifo_dir()
210 if (!ep->epnum) in fotg210_ep_release()
212 ep->epnum = 0; in fotg210_ep_release()
279 if (ep->epnum) in fotg210_enable_dma()
324 if (ep->epnum) { in fotg210_wait_dma_done()
345 if (ep->epnum) { in fotg210_start_dma()
662 u8 epnum; in fotg210_set_feature() local
664 if (epnum) in fotg210_set_feature()
737 u8 epnum; in fotg210_get_status() local
[all …]
/linux-6.3-rc2/drivers/usb/gadget/udc/bdc/
A Dbdc_cmd.c285 int bdc_ep_set_stall(struct bdc *bdc, int epnum) in bdc_ep_set_stall() argument
289 dev_dbg(bdc->dev, "%s epnum=%d\n", __func__, epnum); in bdc_ep_set_stall()
297 int bdc_ep_clear_stall(struct bdc *bdc, int epnum) in bdc_ep_clear_stall() argument
304 ep = bdc->bdc_ep_array[epnum]; in bdc_ep_clear_stall()
309 if (epnum != 1) { in bdc_ep_clear_stall()
312 ret = bdc_ep_set_stall(bdc, epnum); in bdc_ep_clear_stall()
318 if (epnum != 1) in bdc_ep_clear_stall()
329 bdc_notify_xfr(bdc, epnum); in bdc_ep_clear_stall()
335 int bdc_stop_ep(struct bdc *bdc, int epnum) in bdc_stop_ep() argument
341 ep = bdc->bdc_ep_array[epnum]; in bdc_stop_ep()
[all …]
A Dbdc_ep.c904 u8 epnum; in bdc_free_ep() local
907 for (epnum = 1; epnum < bdc->num_eps; epnum++) { in bdc_free_ep()
1236 int epnum; in ep0_handle_feature() local
1272 if (epnum) { in ep0_handle_feature()
1274 epnum = epnum * 2 + 1; in ep0_handle_feature()
1276 epnum *= 2; in ep0_handle_feature()
1310 u32 epnum; in ep0_handle_status() local
1347 if (epnum) { in ep0_handle_status()
1349 epnum = epnum*2 + 1; in ep0_handle_status()
2002 u8 epnum; in bdc_init_ep() local
[all …]
A Dbdc_cmd.h16 int bdc_stop_ep(struct bdc *bdc, int epnum);
17 int bdc_ep_set_stall(struct bdc *bdc, int epnum);
18 int bdc_ep_clear_stall(struct bdc *bdc, int epnum);
/linux-6.3-rc2/drivers/usb/gadget/udc/
A Dfusb300_udc.c58 ep->epnum = info.epnum; in fusb300_ep_setting()
64 if (!ep->epnum) in fusb300_ep_release()
66 ep->epnum = 0; in fusb300_ep_release()
227 fusb300->ep[info.epnum] = ep; in config_ep()
293 if (ep->epnum) { in enable_fifo_int()
308 if (ep->epnum) { in disable_fifo_int()
617 FUSB300_OFFSET_EPPORT(ep->epnum)); in fusb300_rdfifo()
628 FUSB300_OFFSET_EPPORT(ep->epnum)); in fusb300_rdfifo()
633 FUSB300_OFFSET_EPPORT(ep->epnum)); in fusb300_rdfifo()
879 if (ep->epnum) { in done()
[all …]
A Dgoku_udc.h135 #define DATASET_A(epnum) (1<<(2*(epnum))) argument
136 #define DATASET_B(epnum) (2<<(2*(epnum))) argument
137 #define DATASET_AB(epnum) (3<<(2*(epnum))) argument
A Dfsl_qe_udc.c145 u8 epnum = ep->epnum; in qe_eprx_stall_change() local
162 u8 epnum = ep->epnum; in qe_eptx_stall_change() local
188 u8 epnum = ep->epnum; in qe_eprx_nack() local
233 ep->epnum, 0); in qe_ep_cmd_stoptx()
245 ep->epnum, 0); in qe_ep_cmd_restarttx()
255 i = (int)ep->epnum; in qe_ep_flushtxfifo()
754 u8 epnum = ep->epnum; in ep_recycle_rxbds() local
917 if (ep->epnum == 0) in qe_ep_rxframe_handle()
1587 unsigned char epnum; in qe_ep_enable() local
1840 if (ep->epnum == 0) { in qe_ep_set_halt()
[all …]
/linux-6.3-rc2/drivers/staging/emxx_udc/
A Demxx_udc.c216 if (ep->epnum == 0) in _nbu2ss_ep_init()
339 if (((ep->epnum == 0) || (data & (1 << ep->epnum)) == 0)) in _nbu2ss_ep_dma_init()
383 if ((ep->epnum == 0) || ((data & (1 << ep->epnum)) == 0)) in _nbu2ss_ep_dma_exit()
427 if (epnum == 0) { in _nbu2ss_ep_in_end()
439 num = epnum - 1; in _nbu2ss_ep_in_end()
1259 u8 num, epnum; in _nbu2ss_set_endpoint_stall() local
1274 num = epnum - 1; in _nbu2ss_set_endpoint_stall()
1360 u8 epnum; in _nbu2ss_get_ep_stall() local
2009 num = epnum - 1; in _nbu2ss_epn_int()
2043 if (epnum == 0) in _nbu2ss_ep_int()
[all …]
/linux-6.3-rc2/drivers/usb/usbip/
A Dstub_rx.c332 int epnum = pdu->base.ep; in get_pipe() local
335 if (epnum < 0 || epnum > 15) in get_pipe()
339 ep = udev->ep_in[epnum & 0x7f]; in get_pipe()
341 ep = udev->ep_out[epnum & 0x7f]; in get_pipe()
349 return usb_sndctrlpipe(udev, epnum); in get_pipe()
351 return usb_rcvctrlpipe(udev, epnum); in get_pipe()
356 return usb_sndbulkpipe(udev, epnum); in get_pipe()
358 return usb_rcvbulkpipe(udev, epnum); in get_pipe()
363 return usb_sndintpipe(udev, epnum); in get_pipe()
365 return usb_rcvintpipe(udev, epnum); in get_pipe()
[all …]
/linux-6.3-rc2/drivers/usb/dwc3/
A Ddebug.h258 u8 epnum = event->endpoint_number; in dwc3_ep_event_string() local
262 len = scnprintf(str, size, "ep%d%s: ", epnum >> 1, in dwc3_ep_event_string()
263 (epnum & 1) ? "in" : "out"); in dwc3_ep_event_string()
275 if (epnum <= 1) in dwc3_ep_event_string()
295 if (epnum <= 1) { in dwc3_ep_event_string()

Completed in 89 milliseconds

1234