Home
last modified time | relevance | path

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

12

/linux/sound/usb/
H A Dendpoint.c656 snd_usb_get_endpoint(struct snd_usb_audio *chip, int ep_num) in snd_usb_get_endpoint() argument
661 if (ep->ep_num == ep_num) in snd_usb_get_endpoint()
689 int snd_usb_add_endpoint(struct snd_usb_audio *chip, int ep_num, int type) in snd_usb_add_endpoint() argument
694 ep = snd_usb_get_endpoint(chip, ep_num); in snd_usb_add_endpoint()
700 ep_num); in snd_usb_add_endpoint()
708 ep->ep_num = ep_num; in snd_usb_add_endpoint()
712 is_playback = ((ep_num & USB_ENDPOINT_DIR_MASK) == USB_DIR_OUT); in snd_usb_add_endpoint()
713 ep_num &= USB_ENDPOINT_NUMBER_MASK; in snd_usb_add_endpoint()
715 ep->pipe = usb_sndisocpipe(chip->dev, ep_num); in snd_usb_add_endpoint()
717 ep->pipe = usb_rcvisocpipe(chip->dev, ep_num); in snd_usb_add_endpoint()
[all …]
H A Dimplicit.c31 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),\
72 .ep_num = 0x84, .iface = 0 }, /* MOTU MicroBook II */
308 return add_implicit_fb_sync_ep(chip, fmt, p->ep_num, 0, in audioformat_implicit_fb_quirk()
369 return add_implicit_fb_sync_ep(chip, fmt, p->ep_num, 0, in audioformat_capture_quirk()
438 find_matching_substream(struct snd_usb_audio *chip, int stream, int ep_num, in find_matching_substream() argument
446 if (as->fmt_type == fmt_type && subs->ep_num == ep_num) in find_matching_substream()
H A Dendpoint.h9 int ep_num);
11 int snd_usb_add_endpoint(struct snd_usb_audio *chip, int ep_num, int type);
H A Dcard.h71 int ep_num; /* the referenced endpoint number */ member
179 unsigned int ep_num; /* the endpoint number */ member
H A Dstream.c104 subs->ep_num = fp->endpoint; in snd_usb_init_substream()
503 if (subs->ep_num == fp->endpoint) { in __snd_usb_add_audio_stream()
519 if (subs->ep_num) in __snd_usb_add_audio_stream()
/linux/drivers/usb/gadget/udc/
H A Dfsl_udc_core.c227 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()
406 static void dr_ep_setup(unsigned char ep_num, unsigned char dir, in dr_ep_setup() argument
411 tmp_epctrl = fsl_readl(&dr_regs->endptctrl[ep_num]); in dr_ep_setup()
413 if (ep_num) in dr_ep_setup()
420 if (ep_num) in dr_ep_setup()
428 fsl_writel(tmp_epctrl, &dr_regs->endptctrl[ep_num]); in dr_ep_setup()
432 dr_ep_change_stall(unsigned char ep_num, unsigned char dir, int value) in dr_ep_change_stall() argument
[all …]
H A Dbcm63xx_udc.c156 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 …]
H A Daspeed_udc.c859 static void ast_udc_epn_handle(struct ast_udc_dev *udc, u16 ep_num) in ast_udc_epn_handle() argument
861 struct ast_udc_ep *ep = &udc->ep[ep_num]; in ast_udc_epn_handle()
898 static void ast_udc_epn_handle_desc(struct ast_udc_dev *udc, u16 ep_num) in ast_udc_epn_handle_desc() argument
900 struct ast_udc_ep *ep = &udc->ep[ep_num]; in ast_udc_epn_handle_desc()
H A Dpch_udc.c2153 static void pch_udc_svc_data_in(struct pch_udc_dev *dev, int ep_num) in pch_udc_svc_data_in() argument
2158 ep = &dev->ep[UDC_EPIN_IDX(ep_num)]; in pch_udc_svc_data_in()
2197 static void pch_udc_svc_data_out(struct pch_udc_dev *dev, int ep_num) in pch_udc_svc_data_out() argument
2203 ep = &dev->ep[UDC_EPOUT_IDX(ep_num)]; in pch_udc_svc_data_out()
2387 static void pch_udc_postsvc_epinters(struct pch_udc_dev *dev, int ep_num) in pch_udc_postsvc_epinters() argument
2389 struct pch_udc_ep *ep = &dev->ep[UDC_EPIN_IDX(ep_num)]; in pch_udc_postsvc_epinters()
/linux/drivers/usb/gadget/udc/aspeed-vhub/
H A Ddev.c138 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 …]
/linux/drivers/usb/gadget/udc/bdc/
H A Dbdc_ep.c455 if (ep->ep_num == 1) { in setup_bd_list_xfr()
531 bdc_notify_xfr(bdc, ep->ep_num); in bdc_queue_xfr()
565 dev_dbg(bdc->dev, "%s() ep->ep_num=%d\n", __func__, ep->ep_num); in bdc_ep_disable()
567 ret = bdc_stop_ep(bdc, ep->ep_num); in bdc_ep_disable()
587 if (ep->ep_num == 1) in bdc_ep_disable()
617 if (ep->ep_num == 1) in bdc_ep_enable()
664 req->epnum = ep->ep_num; in ep0_queue()
720 req->epnum = ep->ep_num; in ep_queue()
762 ret = bdc_stop_ep(bdc, ep->ep_num); in ep_dequeue()
875 if (ep->ep_num == 1) in ep_set_halt()
[all …]
H A Dbdc_cmd.c112 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()
H A Dbdc_dbg.c96 ep->name, ep->ep_num); in bdc_dbg_bd_list()
H A Dbdc.h356 u8 ep_num; member
/linux/drivers/usb/cdns3/
H A Dcdnsp-debug.h182 unsigned int ep_num; in cdnsp_decode_trb() local
186 ep_num = DIV_ROUND_UP(ep_id, 2); in cdnsp_decode_trb()
206 ep_num, ep_id % 2 ? "out" : "in", in cdnsp_decode_trb()
332 ep_num, ep_id % 2 ? "out" : "in", in cdnsp_decode_trb()
342 ep_num, ep_id % 2 ? "out" : "in", in cdnsp_decode_trb()
352 ep_num, ep_id % 2 ? "out" : "in", in cdnsp_decode_trb()
370 ep_num, ep_id % 2 ? "out" : "in", in cdnsp_decode_trb()
/linux/drivers/usb/c67x00/
H A Dc67x00.h167 #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/drivers/net/wireless/rsi/
H A Drsi_91x_usb.c30 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()
H A Drsi_usb.h53 u8 ep_num; member
/linux/drivers/usb/dwc2/
H A Dhcd.h93 unsigned ep_num:4; member
142 u8 ep_num; member
472 return pipe->ep_num; in dwc2_hcd_get_ep_num()
/linux/drivers/usb/isp1760/
H A Disp1760-udc.c1452 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/drivers/usb/gadget/udc/cdns2/
H A Dcdns2-gadget.h687 #define CDNS2_IF_EP_EXIST(pdev, ep_num, dir) \ argument
689 (BIT(ep_num) << ((dir) ? 0 : 16)))
/linux/sound/usb/qcom/
H A Dmixer_usb_offload.c120 if (!subs->ep_num || as->pcm_index > 0xff) in snd_usb_offload_create_ctl()
H A Dqc_audio_offload.c186 if (subs->ep_num) in usb_qmi_get_pcm_num()
1114 subs->data_endpoint->ep_num); in uaudio_endpoint_setup()
1467 subs->data_endpoint->ep_num : 0; in prepare_qmi_response()
1469 subs->sync_endpoint->ep_num : 0; in prepare_qmi_response()
1717 if (subs->ep_num) { in qc_usb_audio_offload_fill_avail_pcms()
/linux/drivers/char/xillybus/
H A Dxillyusb.c115 u8 ep_num; member
489 u8 ep_num, in endpoint_alloc() argument
518 ep->ep_num = ep_num; in endpoint_alloc()
733 usb_rcvbulkpipe(xdev->udev, ep->ep_num), in try_queue_bulk_in()
837 usb_sndbulkpipe(xdev->udev, ep->ep_num), in try_queue_bulk_out()
/linux/drivers/media/i2c/
H A Dtvp5150.c1998 unsigned int flags, ep_num; in tvp5150_parse_dt() local
2003 ep_num = of_graph_get_endpoint_count(np); in tvp5150_parse_dt()
2004 if (ep_num < 2 || ep_num > 5) { in tvp5150_parse_dt()

12