Home
last modified time | relevance | path

Searched refs:ep_index (Results 1 – 7 of 7) sorted by relevance

/rk3399_rockchip-uboot/drivers/usb/host/
H A Dxhci-ring.c273 u32 ep_index, trb_type cmd) in xhci_queue_command() argument
291 fields[3] |= EP_ID_FOR_TRB(ep_index); in xhci_queue_command()
359 static void giveback_first_trb(struct usb_device *udev, int ep_index, in giveback_first_trb() argument
378 DB_VALUE(ep_index, 0)); in giveback_first_trb()
481 static void reset_ep(struct usb_device *udev, int ep_index) in reset_ep() argument
484 struct xhci_ring *ring = ctrl->devs[udev->slot_id]->eps[ep_index].ring; in reset_ep()
488 printf("Resetting EP %d...\n", ep_index); in reset_ep()
489 xhci_queue_command(ctrl, NULL, udev->slot_id, ep_index, TRB_RESET_EP); in reset_ep()
499 ring->cycle_state), udev->slot_id, ep_index, TRB_SET_DEQ); in reset_ep()
518 static void abort_td(struct usb_device *udev, int ep_index) in abort_td() argument
[all …]
H A Dxhci.c502 int ep_index; in xhci_set_configuration() local
573 ep_index = xhci_get_ep_index(endpt_desc); in xhci_set_configuration()
574 ep_ctx[ep_index] = xhci_get_ep_ctx(ctrl, in_ctx, ep_index); in xhci_set_configuration()
577 virt_dev->eps[ep_index].ring = xhci_ring_alloc(1, true); in xhci_set_configuration()
578 if (!virt_dev->eps[ep_index].ring) in xhci_set_configuration()
585 ep_ctx[ep_index]->ep_info = in xhci_set_configuration()
589 ep_ctx[ep_index]->ep_info2 = in xhci_set_configuration()
591 ep_ctx[ep_index]->ep_info2 |= in xhci_set_configuration()
598 ep_ctx[ep_index]->ep_info2 |= in xhci_set_configuration()
603 virt_dev->eps[ep_index].ring->enqueue; in xhci_set_configuration()
[all …]
H A Dxhci-mem.c646 unsigned int ep_index) in xhci_get_ep_ctx() argument
649 ep_index++; in xhci_get_ep_ctx()
651 ep_index++; in xhci_get_ep_ctx()
655 (ep_index * CTX_SIZE(readl(&ctrl->hccr->cr_hccparams)))); in xhci_get_ep_ctx()
672 unsigned int ep_index) in xhci_endpoint_copy() argument
677 out_ep_ctx = xhci_get_ep_ctx(ctrl, out_ctx, ep_index); in xhci_endpoint_copy()
678 in_ep_ctx = xhci_get_ep_ctx(ctrl, in_ctx, ep_index); in xhci_endpoint_copy()
/rk3399_rockchip-uboot/drivers/usb/gadget/
H A Ddwc2_udc_otg_xfer_dma.c97 u32 ep_num = ep_index(ep); in setdma_rx()
139 u32 ep_num = ep_index(ep); in setdma_tx()
634 ep_num = ep_index(ep); in dwc2_queue()
754 max, ep_index(ep), cp); in dwc2_fifo_read()
798 __func__, ep_index(ep), &reg->in_endp[EP0_CON].diepctl); in dwc2_udc_ep0_set_stall()
954 ep_num = ep_index(ep); in dwc2_udc_set_nak()
980 ep_num = ep_index(ep); in dwc2_udc_ep_set_stall()
1015 ep_num = ep_index(ep); in dwc2_udc_ep_clear_stall()
1066 ep_num = ep_index(ep); in dwc2_udc_set_halt()
1110 ep_num = ep_index(ep); in dwc2_udc_ep_activate()
[all …]
H A Ddwc2_udc_otg_priv.h91 #define ep_index(EP) ((EP)->bEndpointAddress&0xF) macro
H A Ddwc2_udc_otg.c783 debug("%s: %d\n", __func__, ep_index(ep)); in dwc2_fifo_status()
805 debug("%s: %d\n", __func__, ep_index(ep)); in dwc2_fifo_flush()
/rk3399_rockchip-uboot/include/usb/
H A Dxhci.h1244 unsigned int ep_index);
1248 unsigned int ep_index);
1255 u32 slot_id, u32 ep_index, trb_type cmd);