/linux-6.6.21/drivers/usb/gadget/udc/ |
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 …]
|
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 …]
|
D | fsl_udc_core.c | 226 unsigned int tmp, portctrl, ep_num; in dr_controller_setup() local 316 for (ep_num = 1; ep_num < max_no_of_ep; ep_num++) { in dr_controller_setup() 317 tmp = fsl_readl(&dr_regs->endptctrl[ep_num]); in dr_controller_setup() 321 fsl_writel(tmp, &dr_regs->endptctrl[ep_num]); in dr_controller_setup() 404 static void dr_ep_setup(unsigned char ep_num, unsigned char dir, in dr_ep_setup() argument 409 tmp_epctrl = fsl_readl(&dr_regs->endptctrl[ep_num]); in dr_ep_setup() 411 if (ep_num) in dr_ep_setup() 418 if (ep_num) in dr_ep_setup() 426 fsl_writel(tmp_epctrl, &dr_regs->endptctrl[ep_num]); in dr_ep_setup() 430 dr_ep_change_stall(unsigned char ep_num, unsigned char dir, int value) in dr_ep_change_stall() argument [all …]
|
D | bcm63xx_udc.c | 156 int ep_num; member 212 int ep_num; member 239 unsigned int ep_num; member 448 (bep->ep_num << USBD_STALL_EPNUM_SHIFT); in bcm63xx_set_stall() 499 static void bcm63xx_fifo_reset_ep(struct bcm63xx_udc *udc, int ep_num) in bcm63xx_fifo_reset_ep() argument 503 bcm63xx_ep_dma_select(udc, ep_num); in bcm63xx_fifo_reset_ep() 534 if (cfg->ep_num < 0) in bcm63xx_ep_init() 537 bcm63xx_ep_dma_select(udc, cfg->ep_num); in bcm63xx_ep_init() 560 int idx = cfg->ep_num; in bcm63xx_ep_setup() 709 bcm63xx_fifo_reset_ep(udc, max(0, iudma->ep_num)); in iudma_reset_channel() [all …]
|
D | mv_u3d.h | 117 #define mv_u3d_ep_dir(ep) (((ep)->ep_num == 0) ? \ 301 unsigned ep_num:8; member
|
/linux-6.6.21/sound/usb/ |
D | endpoint.c | 646 snd_usb_get_endpoint(struct snd_usb_audio *chip, int ep_num) in snd_usb_get_endpoint() argument 651 if (ep->ep_num == ep_num) in snd_usb_get_endpoint() 679 int snd_usb_add_endpoint(struct snd_usb_audio *chip, int ep_num, int type) in snd_usb_add_endpoint() argument 684 ep = snd_usb_get_endpoint(chip, ep_num); in snd_usb_add_endpoint() 690 ep_num); in snd_usb_add_endpoint() 698 ep->ep_num = ep_num; in snd_usb_add_endpoint() 702 is_playback = ((ep_num & USB_ENDPOINT_DIR_MASK) == USB_DIR_OUT); in snd_usb_add_endpoint() 703 ep_num &= USB_ENDPOINT_NUMBER_MASK; in snd_usb_add_endpoint() 705 ep->pipe = usb_sndisocpipe(chip->dev, ep_num); in snd_usb_add_endpoint() 707 ep->pipe = usb_rcvisocpipe(chip->dev, ep_num); in snd_usb_add_endpoint() [all …]
|
D | implicit.c | 31 unsigned int ep_num; member 39 { .id = USB_ID(vend, prod), .type = IMPLICIT_FB_FIXED, .ep_num = (ep),\ 42 { .id = USB_ID(vend, prod), .type = IMPLICIT_FB_BOTH, .ep_num = (ep),\ 71 .ep_num = 0x84, .iface = 0 }, /* MOTU MicroBook II */ 307 return add_implicit_fb_sync_ep(chip, fmt, p->ep_num, 0, in audioformat_implicit_fb_quirk() 368 return add_implicit_fb_sync_ep(chip, fmt, p->ep_num, 0, in audioformat_capture_quirk() 437 find_matching_substream(struct snd_usb_audio *chip, int stream, int ep_num, in find_matching_substream() argument 445 if (as->fmt_type == fmt_type && subs->ep_num == ep_num) in find_matching_substream()
|
D | endpoint.h | 9 int ep_num); 11 int snd_usb_add_endpoint(struct snd_usb_audio *chip, int ep_num, int type);
|
D | card.h | 70 int ep_num; /* the referenced endpoint number */ member 177 unsigned int ep_num; /* the endpoint number */ member
|
/linux-6.6.21/drivers/usb/gadget/udc/aspeed-vhub/ |
D | dev.c | 138 int ep_num; in ast_vhub_ep_feature() local 140 ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_ep_feature() 142 is_set ? "SET" : "CLEAR", ep_num, wValue); in ast_vhub_ep_feature() 143 if (ep_num == 0) in ast_vhub_ep_feature() 145 if (ep_num >= d->max_epns || !d->epns[ep_num - 1]) in ast_vhub_ep_feature() 150 ep = d->epns[ep_num - 1]; in ast_vhub_ep_feature() 159 is_set ? "setting" : "clearing", ep_num); in ast_vhub_ep_feature() 183 int ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_ep_status() local 187 DDBG(d, "GET_STATUS(ep%d)\n", ep_num); in ast_vhub_ep_status() 189 if (ep_num >= d->max_epns) in ast_vhub_ep_status() [all …]
|
D | hub.c | 194 int ep_num; in ast_vhub_hub_ep_status() local 197 ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_hub_ep_status() 198 EPDBG(ep, "GET_STATUS(ep%d)\n", ep_num); in ast_vhub_hub_ep_status() 201 if (ep_num == 1) { in ast_vhub_hub_ep_status() 204 } else if (ep_num != 0) in ast_vhub_hub_ep_status() 242 int ep_num; in ast_vhub_hub_ep_feature() local 245 ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_hub_ep_feature() 247 is_set ? "SET" : "CLEAR", ep_num, wValue); in ast_vhub_hub_ep_feature() 249 if (ep_num > 1) in ast_vhub_hub_ep_feature() 253 if (ep_num == 0) in ast_vhub_hub_ep_feature()
|
/linux-6.6.21/drivers/usb/gadget/udc/bdc/ |
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 …]
|
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() 205 cmd_sc |= BDC_CMD_EPC|BDC_CMD_EPN(ep->ep_num)|BDC_SUB_CMD_ADD_EP; in bdc_config_ep() 234 cmd_sc |= BDC_CMD_EPN(ep->ep_num)|BDC_CMD_BLA; in bdc_ep_bla()
|
D | bdc_dbg.c | 96 ep->name, ep->ep_num); in bdc_dbg_bd_list()
|
/linux-6.6.21/drivers/usb/c67x00/ |
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))
|
/linux-6.6.21/drivers/usb/cdns3/ |
D | cdnsp-debug.h | 184 unsigned int ep_num; in cdnsp_decode_trb() local 188 ep_num = DIV_ROUND_UP(ep_id, 2); in cdnsp_decode_trb() 208 ep_num, ep_id % 2 ? "out" : "in", in cdnsp_decode_trb() 335 ep_num, ep_id % 2 ? "out" : "in", in cdnsp_decode_trb() 344 ep_num, ep_id % 2 ? "out" : "in", in cdnsp_decode_trb() 354 ep_num, ep_id % 2 ? "out" : "in", in cdnsp_decode_trb() 372 ep_num, ep_id % 2 ? "out" : "in", in cdnsp_decode_trb()
|
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/ |
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()
|
D | usb.c | 247 u32 ep_num = rtlusb->ep_map.ep_mapping[i]; in _rtl_usb_init_tx() local 249 if (!ep_num) { in _rtl_usb_init_tx() 862 struct sk_buff *skb, u32 ep_num) in _rtl_usb_tx_urb_setup() argument 871 _rtl_install_trx_info(rtlusb, skb, ep_num); in _rtl_usb_tx_urb_setup() 873 ep_num), skb->data, skb->len, _rtl_tx_complete, skb); in _rtl_usb_tx_urb_setup() 882 u32 ep_num; in _rtl_usb_transmit() local 891 ep_num = rtlusb->ep_map.ep_mapping[qnum]; in _rtl_usb_transmit() 892 _urb = _rtl_usb_tx_urb_setup(hw, skb, ep_num); in _rtl_usb_transmit()
|
/linux-6.6.21/drivers/net/wireless/rsi/ |
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() 324 static int rsi_rx_urb_submit(struct rsi_hw *adapter, u8 ep_num, gfp_t mem_flags) in rsi_rx_urb_submit() argument 327 struct rx_usb_ctrl_block *rx_cb = &dev->rx_cb[ep_num - 1]; in rsi_rx_urb_submit() 347 dev->bulkin_endpoint_addr[ep_num - 1]), in rsi_rx_urb_submit() 589 rx_cb->ep_num = idx + 1; in rsi_usb_init_rx()
|
D | rsi_usb.h | 53 u8 ep_num; member
|
/linux-6.6.21/drivers/usb/host/ |
D | xhci-trace.h | 75 unsigned int ep_num), 76 TP_ARGS(xhci, ctx, ep_num), 85 ((ctx->type == XHCI_CTX_TYPE_INPUT) + ep_num + 1)) 93 __entry->ctx_ep_num = ep_num; 96 ((ctx->type == XHCI_CTX_TYPE_INPUT) + ep_num + 1)); 106 unsigned int ep_num), 107 TP_ARGS(xhci, ctx, ep_num)
|
/linux-6.6.21/drivers/usb/dwc2/ |
D | hcd.h | 93 unsigned ep_num:4; member 142 u8 ep_num; member 472 return pipe->ep_num; in dwc2_hcd_get_ep_num()
|
/linux-6.6.21/drivers/usb/gadget/udc/cdns2/ |
D | cdns2-gadget.h | 678 #define CDNS2_IF_EP_EXIST(pdev, ep_num, dir) \ argument 680 (BIT(ep_num) << ((dir) ? 0 : 16)))
|
/linux-6.6.21/drivers/usb/isp1760/ |
D | isp1760-udc.c | 1452 unsigned int ep_num = (i + 1) / 2; in isp1760_udc_init_eps() local 1459 ep->addr = (ep_num && is_in ? USB_DIR_IN : USB_DIR_OUT) in isp1760_udc_init_eps() 1460 | ep_num; in isp1760_udc_init_eps() 1463 sprintf(ep->name, "ep%u%s", ep_num, in isp1760_udc_init_eps() 1464 ep_num ? (is_in ? "in" : "out") : ""); in isp1760_udc_init_eps() 1474 if (ep_num == 0) { in isp1760_udc_init_eps()
|
/linux-6.6.21/drivers/char/xillybus/ |
D | xillyusb.c | 114 u8 ep_num; member 488 u8 ep_num, in endpoint_alloc() argument 517 ep->ep_num = ep_num; in endpoint_alloc() 736 usb_rcvbulkpipe(xdev->udev, ep->ep_num), in try_queue_bulk_in() 840 usb_sndbulkpipe(xdev->udev, ep->ep_num), in try_queue_bulk_out()
|