Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/staging/ozwpan/
Dozusbsvc.c211 int oz_usb_stream_create(void *hpd, u8 ep_num) in oz_usb_stream_create() argument
216 oz_dbg(ON, "%s: (0x%x)\n", __func__, ep_num); in oz_usb_stream_create()
218 oz_isoc_stream_create(pd, ep_num); in oz_usb_stream_create()
221 if (oz_elt_stream_create(&pd->elt_buff, ep_num, in oz_usb_stream_create()
233 int oz_usb_stream_delete(void *hpd, u8 ep_num) in oz_usb_stream_delete() argument
241 oz_dbg(ON, "%s: (0x%x)\n", __func__, ep_num); in oz_usb_stream_delete()
243 oz_isoc_stream_delete(pd, ep_num); in oz_usb_stream_delete()
245 if (oz_elt_stream_delete(&pd->elt_buff, ep_num)) in oz_usb_stream_delete()
Dozpd.h44 u8 ep_num; member
54 u8 ep_num; member
124 int oz_isoc_stream_create(struct oz_pd *pd, u8 ep_num);
125 int oz_isoc_stream_delete(struct oz_pd *pd, u8 ep_num);
126 int oz_send_isoc_unit(struct oz_pd *pd, u8 ep_num, const u8 *data, int len);
Dozusbif.h18 int oz_usb_stream_create(void *hpd, u8 ep_num);
19 int oz_usb_stream_delete(void *hpd, u8 ep_num);
27 int oz_usb_send_isoc(void *hpd, u8 ep_num, struct urb *urb);
Dozpd.c641 static struct oz_isoc_stream *pd_stream_find(struct oz_pd *pd, u8 ep_num) in pd_stream_find() argument
646 if (st->ep_num == ep_num) in pd_stream_find()
655 int oz_isoc_stream_create(struct oz_pd *pd, u8 ep_num) in oz_isoc_stream_create() argument
662 st->ep_num = ep_num; in oz_isoc_stream_create()
664 if (!pd_stream_find(pd, ep_num)) { in oz_isoc_stream_create()
685 int oz_isoc_stream_delete(struct oz_pd *pd, u8 ep_num) in oz_isoc_stream_delete() argument
690 st = pd_stream_find(pd, ep_num); in oz_isoc_stream_delete()
710 int oz_send_isoc_unit(struct oz_pd *pd, u8 ep_num, const u8 *data, int len) in oz_send_isoc_unit() argument
720 st = pd_stream_find(pd, ep_num); in oz_send_isoc_unit()
769 iso.endpoint = ep_num; in oz_send_isoc_unit()
[all …]
Dozusbsvc1.c245 int oz_usb_send_isoc(void *hpd, u8 ep_num, struct urb *urb) in oz_usb_send_isoc() argument
261 oz_send_isoc_unit(pd, ep_num, data, desc->length); in oz_usb_send_isoc()
283 body->endpoint = ep_num; in oz_usb_send_isoc()
310 oz_usb_submit_elt(eb, ei, usb_ctx, ep_num, in oz_usb_send_isoc()
446 void oz_usb_farewell(struct oz_pd *pd, u8 ep_num, u8 *data, u8 len) in oz_usb_farewell() argument
458 oz_dbg(ON, "Farewell indicated ep = 0x%x\n", ep_num); in oz_usb_farewell()
459 oz_hcd_data_ind(usb_ctx->hport, ep_num, data, len); in oz_usb_farewell()
Dozhcd.c66 u8 ep_num; member
83 u8 ep_num; member
374 oz_usb_stream_delete(port->hpd, ep->ep_num); in oz_ep_free()
446 urbl->ep_num = ep_addr; in oz_enqueue_ep_urb()
1079 oz_usb_send_isoc(port->hpd, urbl->ep_num, urb); in oz_hcd_heartbeat()
1197 u8 ep_num = ep_addr & USB_ENDPOINT_NUMBER_MASK; in oz_build_endpoints_for_interface() local
1220 ep->ep_num = ep_num; in oz_build_endpoints_for_interface()
1230 if (oz_usb_stream_create(port->hpd, ep_num)) in oz_build_endpoints_for_interface()
1236 port->in_ep[ep_num] = ep; in oz_build_endpoints_for_interface()
1238 (1<<(ep_num+OZ_NB_ENDPOINTS)); in oz_build_endpoints_for_interface()
[all …]
Dozproto.c300 static void oz_add_farewell(struct oz_pd *pd, u8 ep_num, u8 index, in oz_add_farewell() argument
310 f->ep_num = ep_num; in oz_add_farewell()
317 if ((f2->ep_num == ep_num) && (f2->index == index)) { in oz_add_farewell()
427 oz_add_farewell(pd, body->ep_num, in oz_rx_frame()
Dozusbsvc.h29 void oz_usb_farewell(struct oz_pd *pd, u8 ep_num, u8 *data, u8 len);
Dozproto.h39 void (*farewell)(struct oz_pd *pd, u8 ep_num, u8 *data, u8 len);
Dozprotocol.h119 u8 ep_num; member
/linux-4.1.27/drivers/usb/host/
Dxhci-trace.h79 unsigned int ep_num),
80 TP_ARGS(xhci, ctx, ep_num),
90 ((ctx->type == XHCI_CTX_TYPE_INPUT) + ep_num + 1))
101 __entry->ctx_ep_num = ep_num;
104 ((ctx->type == XHCI_CTX_TYPE_INPUT) + ep_num + 1));
114 unsigned int ep_num),
115 TP_ARGS(xhci, ctx, ep_num)
/linux-4.1.27/drivers/usb/gadget/udc/
Dmv_u3d_core.c125 int direction, ep_num; in mv_u3d_process_ep_req() local
131 ep_num = index / 2; in mv_u3d_process_ep_req()
147 tmp = ioread32(&u3d->vuc_regs->rxst[ep_num].statuslo); in mv_u3d_process_ep_req()
149 ioread32(&u3d->vuc_regs->rxst[ep_num].curdeqlo); in mv_u3d_process_ep_req()
151 tmp = ioread32(&u3d->vuc_regs->txst[ep_num].statuslo); in mv_u3d_process_ep_req()
153 ioread32(&u3d->vuc_regs->txst[ep_num].curdeqlo); in mv_u3d_process_ep_req()
242 if (ep->ep_num == 0) in mv_u3d_queue_trb()
245 ep_context = &(u3d->ep_context[ep->ep_num * 2 + direction]); in mv_u3d_queue_trb()
269 if (ep->ep_num == 0) in mv_u3d_queue_trb()
272 tmp = ep->ep_num * 2 in mv_u3d_queue_trb()
[all …]
Dmv_udc_core.c44 #define ep_dir(ep) (((ep)->ep_num == 0) ? \
190 bit_pos = 1 << curr_req->ep->ep_num; in process_ep_req()
192 bit_pos = 1 << (16 + curr_req->ep->ep_num); in process_ep_req()
269 dqh = &(udc->ep_dqh[ep->ep_num * 2 + direction]); in queue_dtd()
270 bit_pos = 1 << (((direction == EP_DIR_OUT) ? 0 : 16) + ep->ep_num); in queue_dtd()
474 bit_pos = 1 << ((direction == EP_DIR_OUT ? 0 : 16) + ep->ep_num); in mv_ep_enable()
482 (unsigned)ep->ep_num, direction ? "SEND" : "RECV", in mv_ep_enable()
526 epctrlx = readl(&udc->op_regs->epctrlx[ep->ep_num]); in mv_ep_enable()
538 writel(epctrlx, &udc->op_regs->epctrlx[ep->ep_num]); in mv_ep_enable()
544 epctrlx = readl(&udc->op_regs->epctrlx[ep->ep_num]); in mv_ep_enable()
[all …]
Dfsl_udc_core.c233 unsigned int tmp, portctrl, ep_num; in dr_controller_setup() local
322 for (ep_num = 1; ep_num < max_no_of_ep; ep_num++) { in dr_controller_setup()
323 tmp = fsl_readl(&dr_regs->endptctrl[ep_num]); in dr_controller_setup()
327 fsl_writel(tmp, &dr_regs->endptctrl[ep_num]); in dr_controller_setup()
412 static void dr_ep_setup(unsigned char ep_num, unsigned char dir, in dr_ep_setup() argument
417 tmp_epctrl = fsl_readl(&dr_regs->endptctrl[ep_num]); in dr_ep_setup()
419 if (ep_num) in dr_ep_setup()
426 if (ep_num) in dr_ep_setup()
434 fsl_writel(tmp_epctrl, &dr_regs->endptctrl[ep_num]); in dr_ep_setup()
438 dr_ep_change_stall(unsigned char ep_num, unsigned char dir, int value) in dr_ep_change_stall() argument
[all …]
Dbcm63xx_udc.c140 int ep_num; member
196 int ep_num; member
223 unsigned int ep_num; member
439 (bep->ep_num << USBD_STALL_EPNUM_SHIFT); in bcm63xx_set_stall()
490 static void bcm63xx_fifo_reset_ep(struct bcm63xx_udc *udc, int ep_num) in bcm63xx_fifo_reset_ep() argument
494 bcm63xx_ep_dma_select(udc, ep_num); in bcm63xx_fifo_reset_ep()
525 if (cfg->ep_num < 0) in bcm63xx_ep_init()
528 bcm63xx_ep_dma_select(udc, cfg->ep_num); in bcm63xx_ep_init()
551 int idx = cfg->ep_num; in bcm63xx_ep_setup()
700 bcm63xx_fifo_reset_ep(udc, max(0, iudma->ep_num)); in iudma_reset_channel()
[all …]
Dmv_u3d.h120 #define mv_u3d_ep_dir(ep) (((ep)->ep_num == 0) ? \
304 unsigned ep_num:8; member
Dmv_udc.h239 ep_num:8; member
Ds3c2410_udc.c553 u8 ep_num = crq->wIndex & 0x7F; in s3c2410_udc_get_status() local
565 if (ep_num > 4 || crq->wLength > 2) in s3c2410_udc_get_status()
568 if (ep_num == 0) { in s3c2410_udc_get_status()
573 udc_write(ep_num, S3C2410_UDC_INDEX_REG); in s3c2410_udc_get_status()
Dpch_udc.c2251 static void pch_udc_svc_data_in(struct pch_udc_dev *dev, int ep_num) in pch_udc_svc_data_in() argument
2256 ep = &dev->ep[UDC_EPIN_IDX(ep_num)]; in pch_udc_svc_data_in()
2295 static void pch_udc_svc_data_out(struct pch_udc_dev *dev, int ep_num) in pch_udc_svc_data_out() argument
2301 ep = &dev->ep[UDC_EPOUT_IDX(ep_num)]; in pch_udc_svc_data_out()
2473 static void pch_udc_postsvc_epinters(struct pch_udc_dev *dev, int ep_num) in pch_udc_postsvc_epinters() argument
2478 ep = &dev->ep[UDC_EPIN_IDX(ep_num)]; in pch_udc_postsvc_epinters()
Ds3c-hsudc.c566 u8 ep_num = ctrl->wIndex & USB_ENDPOINT_NUMBER_MASK; in s3c_hsudc_handle_reqfeat() local
569 hsep = &hsudc->ep[ep_num]; in s3c_hsudc_handle_reqfeat()
/linux-4.1.27/sound/usb/
Dendpoint.c424 int ep_num, int direction, int type) in snd_usb_add_endpoint() argument
435 if (ep->ep_num == ep_num && in snd_usb_add_endpoint()
440 ep_num, ep->iface, ep->altsetting, ep); in snd_usb_add_endpoint()
448 ep_num); in snd_usb_add_endpoint()
457 ep->ep_num = ep_num; in snd_usb_add_endpoint()
461 ep_num &= USB_ENDPOINT_NUMBER_MASK; in snd_usb_add_endpoint()
464 ep->pipe = usb_sndisocpipe(chip->dev, ep_num); in snd_usb_add_endpoint()
466 ep->pipe = usb_rcvisocpipe(chip->dev, ep_num); in snd_usb_add_endpoint()
515 alive, ep->ep_num); in wait_clear_urbs()
814 ep->ep_num); in snd_usb_endpoint_set_params()
[all …]
Dcard.h54 int ep_num; /* the referenced endpoint number */ member
135 unsigned int ep_num; /* the endpoint number */ member
Dendpoint.h9 int ep_num, int direction, int type);
Dstream.c104 subs->ep_num = fp->endpoint; in snd_usb_init_substream()
333 if (subs->ep_num == fp->endpoint) { in snd_usb_add_audio_stream()
345 if (subs->ep_num) in snd_usb_add_audio_stream()
Dpcm.c618 __func__, sync_subs->ep_num); in configure_sync_endpoint()
/linux-4.1.27/drivers/usb/gadget/udc/bdc/
Dbdc_ep.c460 if (ep->ep_num == 1) { in setup_bd_list_xfr()
536 bdc_notify_xfr(bdc, ep->ep_num); in bdc_queue_xfr()
570 dev_dbg(bdc->dev, "%s() ep->ep_num=%d\n", __func__, ep->ep_num); in bdc_ep_disable()
572 ret = bdc_stop_ep(bdc, ep->ep_num); in bdc_ep_disable()
592 if (ep->ep_num == 1) in bdc_ep_disable()
623 if (ep->ep_num == 1) in bdc_ep_enable()
670 req->epnum = ep->ep_num; in ep0_queue()
728 req->epnum = ep->ep_num; in ep_queue()
769 ret = bdc_stop_ep(bdc, ep->ep_num); in ep_dequeue()
880 if (ep->ep_num == 1) in ep_set_halt()
[all …]
Dbdc_cmd.c120 cmd_sc = BDC_SUB_CMD_DRP_EP|BDC_CMD_EPN(ep->ep_num)|BDC_CMD_EPC; in bdc_dconfig_ep()
122 ep->ep_num, cmd_sc); in bdc_dconfig_ep()
214 cmd_sc |= BDC_CMD_EPC|BDC_CMD_EPN(ep->ep_num)|BDC_SUB_CMD_ADD_EP; in bdc_config_ep()
243 cmd_sc |= BDC_CMD_EPN(ep->ep_num)|BDC_CMD_BLA; in bdc_ep_bla()
Dbdc_dbg.c101 ep->name, ep->ep_num); in bdc_dbg_bd_list()
Dbdc.h361 u8 ep_num; member
/linux-4.1.27/drivers/net/wireless/rtlwifi/
Dusb.h72 u32 ep_num; member
77 u32 ep_num) in _rtl_install_trx_info() argument
81 info->rate_driver_data[1] = (void *)(__kernel_size_t)ep_num; in _rtl_install_trx_info()
Dusb.c293 u32 ep_num = rtlusb->ep_map.ep_mapping[i]; in _rtl_usb_init_tx() local
294 if (!ep_num) { in _rtl_usb_init_tx()
908 struct sk_buff *skb, u32 ep_num) in _rtl_usb_tx_urb_setup() argument
922 _rtl_install_trx_info(rtlusb, skb, ep_num); in _rtl_usb_tx_urb_setup()
924 ep_num), skb->data, skb->len, _rtl_tx_complete, skb); in _rtl_usb_tx_urb_setup()
934 u32 ep_num; in _rtl_usb_transmit() local
945 ep_num = rtlusb->ep_map.ep_mapping[qnum]; in _rtl_usb_transmit()
947 _urb = _rtl_usb_tx_urb_setup(hw, _skb, ep_num); in _rtl_usb_transmit()
/linux-4.1.27/drivers/usb/c67x00/
Dc67x00.h181 #define CY_UDC_REQ_HEADER_ADDR(ep_num) (CY_UDC_REQ_HEADER_BASE + \ argument
182 ((ep_num) * CY_UDC_REQ_HEADER_SIZE))
188 #define CY_UDC_REQ_BUFFER_ADDR(ep_num) (CY_UDC_REQ_BUFFER_BASE + \ argument
189 ((ep_num) * CY_UDC_REQ_BUFFER_SIZE))
/linux-4.1.27/drivers/staging/rtl8188eu/os_dep/
Dusb_intf.c93 int ep_num; in usb_dvobj_init() local
96 ep_num = usb_endpoint_num(pendp_desc); in usb_dvobj_init()
99 pdvobjpriv->RtInPipe[pdvobjpriv->RtNumInPipes] = ep_num; in usb_dvobj_init()
102 pdvobjpriv->RtInPipe[pdvobjpriv->RtNumInPipes] = ep_num; in usb_dvobj_init()
106 ep_num; in usb_dvobj_init()
109 pdvobjpriv->ep_num[i] = ep_num; in usb_dvobj_init()
Dusb_ops_linux.c215 unsigned int pipe = 0, ep_num = 0; in ffaddr2pipehdl() local
223 ep_num = pdvobj->Queue2Pipe[addr]; in ffaddr2pipehdl()
224 pipe = usb_sndbulkpipe(pusbd, ep_num); in ffaddr2pipehdl()
/linux-4.1.27/drivers/staging/rtl8723au/os_dep/
Dusb_ops_linux.c128 unsigned int pipe, ep_num; in rtl8723au_write_port() local
171 ep_num = pdvobj->Queue2Pipe[addr]; in rtl8723au_write_port()
172 pipe = usb_sndbulkpipe(pusbd, ep_num); in rtl8723au_write_port()
Dusb_intf.c146 pdvobjpriv->ep_num[i] = usb_endpoint_num(pendp_desc); in usb_dvobj_init()
/linux-4.1.27/drivers/usb/dwc2/
Dhcd.h119 unsigned ep_num:4; member
166 u8 ep_num; member
406 return pipe->ep_num; in dwc2_hcd_get_ep_num()
Dhcd.c94 chan->dev_addr, chan->ep_num, chan->ep_is_in); in dwc2_dump_channel_info()
800 chan->ep_num = dwc2_hcd_get_ep_num(&urb->pipe_info); in dwc2_assign_and_init_hc()
1861 u8 ep_num, u8 ep_type, u8 ep_dir, u16 mps) in dwc2_hcd_urb_set_pipeinfo() argument
1868 dev_addr, ep_num, ep_dir, ep_type, mps); in dwc2_hcd_urb_set_pipeinfo()
1870 urb->pipe_info.ep_num = ep_num; in dwc2_hcd_urb_set_pipeinfo()
1903 chan->dev_addr, chan->ep_num, chan->ep_is_in); in dwc2_hcd_dump_state()
Dcore.c950 hcchar |= chan->ep_num << HCCHAR_EPNUM_SHIFT & HCCHAR_EPNUM_MASK; in dwc2_hc_init()
967 chan->ep_num); in dwc2_hc_init()
/linux-4.1.27/drivers/usb/isp1760/
Disp1760-udc.c1360 unsigned int ep_num = (i + 1) / 2; in isp1760_udc_init_eps() local
1367 ep->addr = (ep_num && is_in ? USB_DIR_IN : USB_DIR_OUT) in isp1760_udc_init_eps()
1368 | ep_num; in isp1760_udc_init_eps()
1371 sprintf(ep->name, "ep%u%s", ep_num, in isp1760_udc_init_eps()
1372 ep_num ? (is_in ? "in" : "out") : ""); in isp1760_udc_init_eps()
1382 if (ep_num == 0) { in isp1760_udc_init_eps()
/linux-4.1.27/drivers/staging/rtl8723au/include/
Ddrv_types.h176 int ep_num[5]; /* endpoint number */ member
/linux-4.1.27/drivers/staging/rtl8188eu/include/
Ddrv_types.h161 int ep_num[5]; /* endpoint number */ member