| /OK3568_Linux_fs/u-boot/drivers/usb/gadget/ |
| H A D | dwc2_udc_otg_xfer_dma.c | 97 u32 ep_num = ep_index(ep); in setdma_rx() local 101 ep_num ? DOEPT_SIZ_XFER_SIZE_MAX_EP : ep->ep.maxpacket); in setdma_rx() 106 if (ep_num == EP0_CON || length == 0) in setdma_rx() 111 ctrl = readl(®->out_endp[ep_num].doepctl); in setdma_rx() 117 writel((unsigned long) ep->dma_buf, ®->out_endp[ep_num].doepdma); in setdma_rx() 119 ®->out_endp[ep_num].doeptsiz); in setdma_rx() 120 writel(DEPCTL_EPENA|DEPCTL_CNAK|ctrl, ®->out_endp[ep_num].doepctl); in setdma_rx() 126 __func__, ep_num, in setdma_rx() 127 readl(®->out_endp[ep_num].doepdma), in setdma_rx() 128 readl(®->out_endp[ep_num].doeptsiz), in setdma_rx() [all …]
|
| H A D | pxa27x_udc.c | 58 int ep_num = endpoint->endpoint_address & USB_ENDPOINT_NUMBER_MASK; in udc_write_urb() local 72 usbdbg("write urb on ep %d", ep_num); in udc_write_urb() 87 if (ep_num) in udc_write_urb() 88 writel(UDCCSR_PC ,UDCCSN(ep_num)); in udc_write_urb() 91 writel(data32[endpoint->sent / 4 + i], UDCDN(ep_num)); in udc_write_urb() 94 writeb(data8[endpoint->sent + w * 4 + i], UDCDN(ep_num)); in udc_write_urb() 98 writel(ep_num ? UDCCSR_SP : UDCCSR0_IPR, UDCCSN(ep_num)); in udc_write_urb() 101 if (ep_num) { in udc_write_urb() 102 while (!(readl(UDCCSN(ep_num)) & UDCCSR_PC)) { in udc_write_urb() 112 if (ep_num) { in udc_write_urb() [all …]
|
| H A D | designware_udc.c | 144 static void udc_stall_ep(u32 ep_num) in udc_stall_ep() argument 146 writel(readl(&inep_regs_p[ep_num].endp_cntl) | ENDP_CNTL_STALL, in udc_stall_ep() 147 &inep_regs_p[ep_num].endp_cntl); in udc_stall_ep() 149 writel(readl(&outep_regs_p[ep_num].endp_cntl) | ENDP_CNTL_STALL, in udc_stall_ep() 150 &outep_regs_p[ep_num].endp_cntl); in udc_stall_ep() 153 static void *get_fifo(int ep_num, int in) in get_fifo() argument 157 switch (ep_num) { in get_fifo() 594 int ep_num, ep_type; in udc_setup_ep() local 609 ep_num = ep_addr & USB_ENDPOINT_NUMBER_MASK; in udc_setup_ep() 639 struct udc_endp_regs *out_p = &outep_regs_p[ep_num]; in udc_setup_ep() [all …]
|
| H A D | ci_udc.c | 153 static struct ept_queue_head *ci_get_qh(int ep_num, int dir_in) in ci_get_qh() argument 155 return &controller.epts[(ep_num * 2) + dir_in]; in ci_get_qh() 166 static struct ept_queue_item *ci_get_qtd(int ep_num, int dir_in) in ci_get_qtd() argument 168 int index = (ep_num * 2) + dir_in; in ci_get_qtd() 179 static void ci_flush_qh(int ep_num) in ci_flush_qh() argument 181 struct ept_queue_head *head = ci_get_qh(ep_num, 0); in ci_flush_qh() 194 static void ci_invalidate_qh(int ep_num) in ci_invalidate_qh() argument 196 struct ept_queue_head *head = ci_get_qh(ep_num, 0); in ci_invalidate_qh() 209 static void ci_flush_qtd(int ep_num) in ci_flush_qtd() argument 211 struct ept_queue_item *item = ci_get_qtd(ep_num, 0); in ci_flush_qtd() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/ |
| H A D | mv_udc_core.c | 39 #define ep_dir(ep) (((ep)->ep_num == 0) ? \ 183 bit_pos = 1 << curr_req->ep->ep_num; in process_ep_req() 185 bit_pos = 1 << (16 + curr_req->ep->ep_num); in process_ep_req() 262 dqh = &(udc->ep_dqh[ep->ep_num * 2 + direction]); in queue_dtd() 263 bit_pos = 1 << (((direction == EP_DIR_OUT) ? 0 : 16) + ep->ep_num); in queue_dtd() 463 bit_pos = 1 << ((direction == EP_DIR_OUT ? 0 : 16) + ep->ep_num); in mv_ep_enable() 471 (unsigned)ep->ep_num, direction ? "SEND" : "RECV", in mv_ep_enable() 514 epctrlx = readl(&udc->op_regs->epctrlx[ep->ep_num]); in mv_ep_enable() 526 writel(epctrlx, &udc->op_regs->epctrlx[ep->ep_num]); in mv_ep_enable() 532 epctrlx = readl(&udc->op_regs->epctrlx[ep->ep_num]); in mv_ep_enable() [all …]
|
| H A D | mv_u3d_core.c | 119 int direction, ep_num; in mv_u3d_process_ep_req() local 124 ep_num = index / 2; in mv_u3d_process_ep_req() 139 tmp = ioread32(&u3d->vuc_regs->rxst[ep_num].statuslo); in mv_u3d_process_ep_req() 141 tmp = ioread32(&u3d->vuc_regs->txst[ep_num].statuslo); in mv_u3d_process_ep_req() 229 if (ep->ep_num == 0) in mv_u3d_queue_trb() 232 ep_context = &(u3d->ep_context[ep->ep_num * 2 + direction]); in mv_u3d_queue_trb() 256 if (ep->ep_num == 0) in mv_u3d_queue_trb() 259 tmp = ep->ep_num * 2 in mv_u3d_queue_trb() 309 if (req->ep->ep_num == 0) in mv_u3d_build_trb_one() 355 if (req->ep->ep_num == 0) in mv_u3d_build_trb_chain() [all …]
|
| H A D | fsl_udc_core.c | 228 unsigned int tmp, portctrl, ep_num; in dr_controller_setup() local 318 for (ep_num = 1; ep_num < max_no_of_ep; ep_num++) { in dr_controller_setup() 319 tmp = fsl_readl(&dr_regs->endptctrl[ep_num]); in dr_controller_setup() 323 fsl_writel(tmp, &dr_regs->endptctrl[ep_num]); in dr_controller_setup() 408 static void dr_ep_setup(unsigned char ep_num, unsigned char dir, in dr_ep_setup() argument 413 tmp_epctrl = fsl_readl(&dr_regs->endptctrl[ep_num]); in dr_ep_setup() 415 if (ep_num) in dr_ep_setup() 422 if (ep_num) in dr_ep_setup() 430 fsl_writel(tmp_epctrl, &dr_regs->endptctrl[ep_num]); in dr_ep_setup() 434 dr_ep_change_stall(unsigned char ep_num, unsigned char dir, int value) in dr_ep_change_stall() argument [all …]
|
| H A D | bcm63xx_udc.c | 156 int ep_num; member 212 int ep_num; member 239 unsigned int ep_num; member 451 (bep->ep_num << USBD_STALL_EPNUM_SHIFT); in bcm63xx_set_stall() 502 static void bcm63xx_fifo_reset_ep(struct bcm63xx_udc *udc, int ep_num) in bcm63xx_fifo_reset_ep() argument 506 bcm63xx_ep_dma_select(udc, ep_num); in bcm63xx_fifo_reset_ep() 537 if (cfg->ep_num < 0) in bcm63xx_ep_init() 540 bcm63xx_ep_dma_select(udc, cfg->ep_num); in bcm63xx_ep_init() 563 int idx = cfg->ep_num; in bcm63xx_ep_setup() 712 bcm63xx_fifo_reset_ep(udc, max(0, iudma->ep_num)); in iudma_reset_channel() [all …]
|
| H A D | mv_u3d.h | 117 #define mv_u3d_ep_dir(ep) (((ep)->ep_num == 0) ? \ 301 unsigned ep_num:8; member
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/aspeed-vhub/ |
| H A D | dev.c | 133 int ep_num; in ast_vhub_ep_feature() local 135 ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_ep_feature() 137 is_set ? "SET" : "CLEAR", ep_num, wValue); in ast_vhub_ep_feature() 138 if (ep_num == 0) in ast_vhub_ep_feature() 140 if (ep_num >= d->max_epns || !d->epns[ep_num - 1]) in ast_vhub_ep_feature() 145 ep = d->epns[ep_num - 1]; in ast_vhub_ep_feature() 154 is_set ? "setting" : "clearing", ep_num); in ast_vhub_ep_feature() 178 int ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_ep_status() local 182 DDBG(d, "GET_STATUS(ep%d)\n", ep_num); in ast_vhub_ep_status() 184 if (ep_num >= d->max_epns) in ast_vhub_ep_status() [all …]
|
| H A D | hub.c | 188 int ep_num; in ast_vhub_hub_ep_status() local 191 ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_hub_ep_status() 192 EPDBG(ep, "GET_STATUS(ep%d)\n", ep_num); in ast_vhub_hub_ep_status() 195 if (ep_num == 1) { in ast_vhub_hub_ep_status() 198 } else if (ep_num != 0) in ast_vhub_hub_ep_status() 225 int ep_num; in ast_vhub_hub_ep_feature() local 228 ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_hub_ep_feature() 230 is_set ? "SET" : "CLEAR", ep_num, wValue); in ast_vhub_hub_ep_feature() 232 if (ep_num > 1) in ast_vhub_hub_ep_feature() 236 if (ep_num == 0) in ast_vhub_hub_ep_feature()
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/bdc/ |
| H A D | bdc_ep.c | 456 if (ep->ep_num == 1) { in setup_bd_list_xfr() 532 bdc_notify_xfr(bdc, ep->ep_num); in bdc_queue_xfr() 566 dev_dbg(bdc->dev, "%s() ep->ep_num=%d\n", __func__, ep->ep_num); in bdc_ep_disable() 568 ret = bdc_stop_ep(bdc, ep->ep_num); in bdc_ep_disable() 588 if (ep->ep_num == 1) in bdc_ep_disable() 618 if (ep->ep_num == 1) in bdc_ep_enable() 665 req->epnum = ep->ep_num; in ep0_queue() 721 req->epnum = ep->ep_num; in ep_queue() 763 ret = bdc_stop_ep(bdc, ep->ep_num); in ep_dequeue() 876 if (ep->ep_num == 1) in ep_set_halt() [all …]
|
| H A D | bdc_cmd.c | 112 cmd_sc = BDC_SUB_CMD_DRP_EP|BDC_CMD_EPN(ep->ep_num)|BDC_CMD_EPC; in bdc_dconfig_ep() 114 ep->ep_num, cmd_sc); in bdc_dconfig_ep() 206 cmd_sc |= BDC_CMD_EPC|BDC_CMD_EPN(ep->ep_num)|BDC_SUB_CMD_ADD_EP; in bdc_config_ep() 235 cmd_sc |= BDC_CMD_EPN(ep->ep_num)|BDC_CMD_BLA; in bdc_ep_bla()
|
| /OK3568_Linux_fs/kernel/sound/usb/ |
| H A D | endpoint.c | 464 int ep_num, int direction, int type) in snd_usb_add_endpoint() argument 475 if (ep->ep_num == ep_num && in snd_usb_add_endpoint() 480 ep_num, ep->iface, ep->altsetting, ep); in snd_usb_add_endpoint() 488 ep_num); in snd_usb_add_endpoint() 497 ep->ep_num = ep_num; in snd_usb_add_endpoint() 501 ep_num &= USB_ENDPOINT_NUMBER_MASK; in snd_usb_add_endpoint() 504 ep->pipe = usb_sndisocpipe(chip->dev, ep_num); in snd_usb_add_endpoint() 506 ep->pipe = usb_rcvisocpipe(chip->dev, ep_num); in snd_usb_add_endpoint() 553 alive, ep->ep_num); in wait_clear_urbs() 1068 ep->ep_num); in snd_usb_endpoint_set_params() [all …]
|
| H A D | card.h | 60 int ep_num; /* the referenced endpoint number */ member 156 unsigned int ep_num; /* the endpoint number */ member
|
| H A D | endpoint.h | 10 int ep_num, int direction, int type);
|
| /OK3568_Linux_fs/kernel/drivers/usb/c67x00/ |
| H A D | c67x00.h | 167 #define CY_UDC_REQ_HEADER_ADDR(ep_num) (CY_UDC_REQ_HEADER_BASE + \ argument 168 ((ep_num) * CY_UDC_REQ_HEADER_SIZE)) 174 #define CY_UDC_REQ_BUFFER_ADDR(ep_num) (CY_UDC_REQ_BUFFER_BASE + \ argument 175 ((ep_num) * CY_UDC_REQ_BUFFER_SIZE))
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/realtek/rtlwifi/ |
| H A D | usb.h | 47 u32 ep_num; member 52 u32 ep_num) in _rtl_install_trx_info() argument 57 info->rate_driver_data[1] = (void *)(__kernel_size_t)ep_num; in _rtl_install_trx_info()
|
| H A D | usb.c | 266 u32 ep_num = rtlusb->ep_map.ep_mapping[i]; in _rtl_usb_init_tx() local 268 if (!ep_num) { in _rtl_usb_init_tx() 882 struct sk_buff *skb, u32 ep_num) in _rtl_usb_tx_urb_setup() argument 891 _rtl_install_trx_info(rtlusb, skb, ep_num); in _rtl_usb_tx_urb_setup() 893 ep_num), skb->data, skb->len, _rtl_tx_complete, skb); in _rtl_usb_tx_urb_setup() 902 u32 ep_num; in _rtl_usb_transmit() local 911 ep_num = rtlusb->ep_map.ep_mapping[qnum]; in _rtl_usb_transmit() 912 _urb = _rtl_usb_tx_urb_setup(hw, skb, ep_num); in _rtl_usb_transmit()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rsi/ |
| H A D | rsi_91x_usb.c | 30 static int rsi_rx_urb_submit(struct rsi_hw *adapter, u8 ep_num, gfp_t flags); 298 if (rsi_rx_urb_submit(dev->priv, rx_cb->ep_num, GFP_ATOMIC)) in rsi_rx_done_handler() 307 static void rsi_rx_urb_kill(struct rsi_hw *adapter, u8 ep_num) in rsi_rx_urb_kill() argument 310 struct rx_usb_ctrl_block *rx_cb = &dev->rx_cb[ep_num - 1]; in rsi_rx_urb_kill() 322 static int rsi_rx_urb_submit(struct rsi_hw *adapter, u8 ep_num, gfp_t mem_flags) in rsi_rx_urb_submit() argument 325 struct rx_usb_ctrl_block *rx_cb = &dev->rx_cb[ep_num - 1]; in rsi_rx_urb_submit() 345 dev->bulkin_endpoint_addr[ep_num - 1]), in rsi_rx_urb_submit() 587 rx_cb->ep_num = idx + 1; in rsi_usb_init_rx()
|
| H A D | rsi_usb.h | 53 u8 ep_num; member
|
| /OK3568_Linux_fs/kernel/drivers/staging/rtl8188eu/os_dep/ |
| H A D | usb_intf.c | 84 int ep_num; in usb_dvobj_init() local 88 ep_num = usb_endpoint_num(pendp_desc); in usb_dvobj_init() 91 pdvobjpriv->RtInPipe[pdvobjpriv->RtNumInPipes] = ep_num; in usb_dvobj_init() 94 pdvobjpriv->RtInPipe[pdvobjpriv->RtNumInPipes] = ep_num; in usb_dvobj_init() 98 ep_num; in usb_dvobj_init()
|
| /OK3568_Linux_fs/kernel/drivers/usb/host/ |
| H A D | xhci-trace.h | 75 unsigned int ep_num), 76 TP_ARGS(xhci, ctx, ep_num), 86 ((ctx->type == XHCI_CTX_TYPE_INPUT) + ep_num + 1)) 97 __entry->ctx_ep_num = ep_num; 100 ((ctx->type == XHCI_CTX_TYPE_INPUT) + ep_num + 1)); 110 unsigned int ep_num), 111 TP_ARGS(xhci, ctx, ep_num)
|
| /OK3568_Linux_fs/kernel/drivers/usb/dwc2/ |
| H A D | hcd.h | 122 unsigned ep_num:4; member 171 u8 ep_num; member 501 return pipe->ep_num; in dwc2_hcd_get_ep_num()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188eu/os_dep/linux/ |
| H A D | usb_ops_linux.c | 271 unsigned int pipe = 0, ep_num = 0; in ffaddr2pipehdl() local 283 ep_num = pdvobj->RtOutPipe[addr]; in ffaddr2pipehdl() 284 pipe = usb_sndbulkpipe(pusbd, ep_num); in ffaddr2pipehdl() 288 ep_num = pdvobj->Queue2Pipe[addr]; in ffaddr2pipehdl() 289 pipe = usb_sndbulkpipe(pusbd, ep_num); in ffaddr2pipehdl()
|