/linux/drivers/usb/mtu3/ |
A D | mtu3_qmu.c | 99 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 D | mtu3.h | 34 #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 D | mtu3_core.c | 301 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 D | mtu3_gadget.c | 29 if (mep->epnum) in mtu3_req_complete() 49 if (mep->epnum) in nuke() 243 mreq->epnum = mep->epnum; in mtu3_alloc_request() 617 u32 epnum, u32 is_in) in init_hw_ep() argument 619 mep->epnum = epnum; in init_hw_ep() 632 if (!epnum) { in init_hw_ep() 649 if (!epnum) { in init_hw_ep() 661 u8 epnum; in mtu3_gadget_init_eps() local 670 for (epnum = 1; epnum < mtu->num_eps; epnum++) { in mtu3_gadget_init_eps() 671 init_hw_ep(mtu, mtu->in_eps + epnum, epnum, 1); in mtu3_gadget_init_eps() [all …]
|
A D | mtu3_debugfs.c | 148 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()
|
A D | mtu3_gadget_ep0.c | 86 __func__, mep->epnum, len, src); in ep0_write_fifo() 107 __func__, mep->epnum, len, dst); in ep0_read_fifo() 211 u8 epnum = 0; in ep0_get_status() local 231 epnum = (u8) le16_to_cpu(setup->wIndex); in ep0_get_status() 232 is_in = epnum & USB_DIR_IN; in ep0_get_status() 233 epnum &= USB_ENDPOINT_NUMBER_MASK; in ep0_get_status() 235 if (epnum >= mtu->num_eps) { in ep0_get_status() 239 if (!epnum) in ep0_get_status() 387 u8 epnum; in ep0_handle_feature() local 408 epnum = index & USB_ENDPOINT_NUMBER_MASK; in ep0_handle_feature() [all …]
|
/linux/drivers/usb/musb/ |
A D | musb_regs.h | 286 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 D | musb_host.c | 115 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 D | musb_gadget.c | 225 u8 epnum = req->epnum; in txstate() local 442 epnum, request); in musb_g_tx() 520 const u8 epnum = req->epnum; in rxstate() local 914 u8 epnum; in musb_gadget_enable() local 1085 u8 epnum; in musb_gadget_disable() local 1698 ep->current_epnum = epnum; in init_peripheral_ep() 1710 if (!epnum) { in init_peripheral_ep() 1742 u8 epnum; in musb_g_init_endpoints() local 1751 epnum++, hw_ep++) { in musb_g_init_endpoints() 1758 epnum, 1); in musb_g_init_endpoints() [all …]
|
A D | tusb6010_omap.c | 33 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 D | musb_gadget_ep0.c | 56 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 D | musbhsdma.c | 60 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 D | musb_core.c | 1118 u8 epnum; in musb_stage0_irq() 1127 for (epnum = 1; (epnum < musb->nr_endpoints) in musb_stage0_irq() 1129 epnum++, ep++) { in musb_stage0_irq() 1138 epnum); in musb_stage0_irq() 1550 u8 epnum = 0; in ep_config_from_hw() local 1559 for (epnum = 1; epnum < musb->config->num_eps; epnum++) { in ep_config_from_hw() 1730 unsigned long epnum; in musb_interrupt() local 1808 if (!epnum) { in musb_dma_completion() 2151 int epnum; in allocate_instance() local 2172 epnum++, ep++) { in allocate_instance() [all …]
|
A D | musb_core.h | 164 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 453 struct musb_hw_ep *hw_ep, u8 epnum) in musb_read_fifosize() argument 459 reg = musb_readb(mbase, musb->io.ep_offset(epnum, MUSB_FIFOSIZE)); in musb_read_fifosize() 465 musb->epmask |= (1 << epnum); in musb_read_fifosize() 589 static inline void musb_platform_clear_ep_rxintr(struct musb *musb, int epnum) in musb_platform_clear_ep_rxintr() argument [all …]
|
A D | musb_io.h | 29 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);
|
/linux/drivers/usb/gadget/udc/ |
A D | fotg210-udc.c | 73 if (ep->epnum) { in fotg210_done() 115 val |= (dir_in ? FIFOMAP_DIRIN(epnum - 1) : FIFOMAP_DIROUT(epnum - 1)); in fotg210_set_fifo_dir() 198 if (!ep->epnum) in fotg210_ep_release() 200 ep->epnum = 0; in fotg210_ep_release() 267 if (ep->epnum) in fotg210_enable_dma() 313 if (ep->epnum) { in fotg210_wait_dma_done() 334 if (ep->epnum) { in fotg210_start_dma() 651 u8 epnum; in fotg210_set_feature() local 653 if (epnum) in fotg210_set_feature() 712 u8 epnum; in fotg210_get_status() local [all …]
|
A D | fusb300_udc.c | 58 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 D | s3c-hsudc.c | 240 int epnum; in s3c_hsudc_stop_activity() local 244 for (epnum = 0; epnum < hsudc->pd->epnum; epnum++) { in s3c_hsudc_stop_activity() 543 u8 epnum; in s3c_hsudc_process_req_status() local 929 if ((epnum % 2) == 0) { in s3c_hsudc_initep() 937 if (epnum) in s3c_hsudc_initep() 944 if (epnum) in s3c_hsudc_initep() 956 if (epnum == 0) { in s3c_hsudc_initep() 966 if (epnum & 1) in s3c_hsudc_initep() 983 int epnum; in s3c_hsudc_setup_ep() local 987 for (epnum = 0; epnum < hsudc->pd->epnum; epnum++) in s3c_hsudc_setup_ep() [all …]
|
A D | goku_udc.h | 135 #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 D | fsl_qe_udc.c | 145 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 1837 if (ep->epnum == 0) { in qe_ep_set_halt() [all …]
|
/linux/drivers/usb/gadget/udc/bdc/ |
A D | bdc_cmd.c | 285 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 D | bdc_ep.c | 904 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() 1997 u8 epnum; in bdc_init_ep() local [all …]
|
A D | bdc_cmd.h | 16 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/drivers/staging/emxx_udc/ |
A D | emxx_udc.c | 216 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() 1262 u8 num, epnum; in _nbu2ss_set_endpoint_stall() local 1277 num = epnum - 1; in _nbu2ss_set_endpoint_stall() 1363 u8 epnum; in _nbu2ss_get_ep_stall() local 2012 num = epnum - 1; in _nbu2ss_epn_int() 2046 if (epnum == 0) in _nbu2ss_ep_int() [all …]
|
/linux/drivers/usb/usbip/ |
A D | stub_rx.c | 330 int epnum = pdu->base.ep; in get_pipe() local 333 if (epnum < 0 || epnum > 15) in get_pipe() 337 ep = udev->ep_in[epnum & 0x7f]; in get_pipe() 339 ep = udev->ep_out[epnum & 0x7f]; in get_pipe() 347 return usb_sndctrlpipe(udev, epnum); in get_pipe() 349 return usb_rcvctrlpipe(udev, epnum); in get_pipe() 354 return usb_sndbulkpipe(udev, epnum); in get_pipe() 356 return usb_rcvbulkpipe(udev, epnum); in get_pipe() 361 return usb_sndintpipe(udev, epnum); in get_pipe() 363 return usb_rcvintpipe(udev, epnum); in get_pipe() [all …]
|