/openbmc/linux/drivers/usb/host/ |
H A D | xhci-ring.c | 491 unsigned int ep_index, in xhci_ring_ep_doorbell() argument 495 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_ring_ep_doorbell() 508 trace_xhci_ring_ep_doorbell(slot_id, DB_VALUE(ep_index, stream_id)); in xhci_ring_ep_doorbell() 510 writel(DB_VALUE(ep_index, stream_id), db_addr); in xhci_ring_ep_doorbell() 518 unsigned int ep_index) in ring_doorbell_for_active_rings() argument 523 ep = &xhci->devs[slot_id]->eps[ep_index]; in ring_doorbell_for_active_rings() 528 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, 0); in ring_doorbell_for_active_rings() 536 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, in ring_doorbell_for_active_rings() 543 unsigned int ep_index) in xhci_ring_doorbell_for_active_rings() argument 545 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_ring_doorbell_for_active_rings() [all …]
|
H A D | xhci-debugfs.h | 115 int ep_index); 118 int ep_index); 121 int ep_index); 132 int ep_index) { } in xhci_debugfs_create_endpoint() argument 136 int ep_index) { } in xhci_debugfs_remove_endpoint() argument 140 int ep_index) { } in xhci_debugfs_create_stream_files() argument
|
H A D | xhci-debugfs.c | 281 int ep_index; in xhci_endpoint_context_show() local 291 for (ep_index = 0; ep_index < 31; ep_index++) { in xhci_endpoint_context_show() 292 ep_ctx = xhci_get_ep_ctx(xhci, dev->out_ctx, ep_index); in xhci_endpoint_context_show() 293 dma = dev->out_ctx->dma + (ep_index + 1) * CTX_SIZE(xhci->hcc_params); in xhci_endpoint_context_show() 446 int ep_index) in xhci_debugfs_create_endpoint() argument 454 if (spriv->eps[ep_index]) in xhci_debugfs_create_endpoint() 461 epriv->show_ring = dev->eps[ep_index].ring; in xhci_debugfs_create_endpoint() 463 snprintf(epriv->name, sizeof(epriv->name), "ep%02d", ep_index); in xhci_debugfs_create_endpoint() 468 spriv->eps[ep_index] = epriv; in xhci_debugfs_create_endpoint() 473 int ep_index) in xhci_debugfs_remove_endpoint() argument [all …]
|
H A D | xhci.c | 1353 static unsigned int xhci_get_endpoint_address(unsigned int ep_index) in xhci_get_endpoint_address() argument 1355 unsigned int number = DIV_ROUND_UP(ep_index, 2); in xhci_get_endpoint_address() 1356 unsigned int direction = ep_index % 2 ? USB_DIR_OUT : USB_DIR_IN; in xhci_get_endpoint_address() 1431 unsigned int ep_index, struct urb *urb, gfp_t mem_flags) in xhci_check_maxpacket() argument 1442 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_check_maxpacket() 1476 xhci->devs[slot_id]->out_ctx, ep_index); in xhci_check_maxpacket() 1478 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_check_maxpacket() 1509 unsigned int slot_id, ep_index; in xhci_urb_enqueue() local 1522 ep_index = xhci_get_endpoint_index(&urb->ep->desc); in xhci_urb_enqueue() 1523 ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_urb_enqueue() [all …]
|
H A D | xhci-mem.c | 413 unsigned int ep_index) in xhci_free_endpoint_ring() argument 415 xhci_ring_free(xhci, virt_dev->eps[ep_index].ring); in xhci_free_endpoint_ring() 416 virt_dev->eps[ep_index].ring = NULL; in xhci_free_endpoint_ring() 516 unsigned int ep_index) in xhci_get_ep_ctx() argument 519 ep_index++; in xhci_get_ep_ctx() 521 ep_index++; in xhci_get_ep_ctx() 524 (ctx->bytes + (ep_index * CTX_SIZE(xhci->hcc_params))); in xhci_get_ep_ctx() 980 dev->eps[i].ep_index = i; in xhci_alloc_virt_device() 1400 unsigned int ep_index; in xhci_endpoint_init() local 1413 ep_index in xhci_endpoint_init() 1497 unsigned int ep_index; xhci_endpoint_zero() local 1583 xhci_endpoint_copy(struct xhci_hcd * xhci,struct xhci_container_ctx * in_ctx,struct xhci_container_ctx * out_ctx,unsigned int ep_index) xhci_endpoint_copy() argument [all...] |
H A D | xhci.h | 678 unsigned int ep_index; member 1023 /* Stop Endpoint TRB - ep_index to endpoint ID for this TRB */ 1822 unsigned int ep_index); 1844 unsigned int ep_index); 1922 int slot_id, unsigned int ep_index, int suspend); 1924 int slot_id, unsigned int ep_index); 1926 int slot_id, unsigned int ep_index); 1928 int slot_id, unsigned int ep_index); 1930 struct urb *urb, int slot_id, unsigned int ep_index); 1937 int slot_id, unsigned int ep_index, [all...] |
H A D | xhci-mtk-sch.c | 634 unsigned int ep_index; in add_ep_quirk() local 637 ep_index = xhci_get_endpoint_index(&ep->desc); in add_ep_quirk() 638 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in add_ep_quirk() 701 unsigned int ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_mtk_check_bandwidth() local 710 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_mtk_check_bandwidth()
|
/openbmc/u-boot/drivers/usb/host/ |
H A D | xhci-ring.c | 272 u32 ep_index, trb_type cmd) in xhci_queue_command() argument 290 fields[3] |= EP_ID_FOR_TRB(ep_index); in xhci_queue_command() 358 static void giveback_first_trb(struct usb_device *udev, int ep_index, in giveback_first_trb() argument 377 DB_VALUE(ep_index, 0)); in giveback_first_trb() 484 static void abort_td(struct usb_device *udev, int ep_index) in abort_td() argument 487 struct xhci_ring *ring = ctrl->devs[udev->slot_id]->eps[ep_index].ring; in abort_td() 491 xhci_queue_command(ctrl, NULL, udev->slot_id, ep_index, TRB_STOP_RING); in abort_td() 496 BUG_ON(TRB_TO_EP_INDEX(field) != ep_index); in abort_td() 508 ring->cycle_state), udev->slot_id, ep_index, TRB_SET_DEQ); in abort_td() 565 int ep_index; in xhci_bulk_tx() local [all …]
|
H A D | xhci.c | 498 int ep_index; in xhci_set_configuration() local 569 ep_index = xhci_get_ep_index(endpt_desc); in xhci_set_configuration() 570 ep_ctx[ep_index] = xhci_get_ep_ctx(ctrl, in_ctx, ep_index); in xhci_set_configuration() 573 virt_dev->eps[ep_index].ring = xhci_ring_alloc(1, true); in xhci_set_configuration() 574 if (!virt_dev->eps[ep_index].ring) in xhci_set_configuration() 581 ep_ctx[ep_index]->ep_info = in xhci_set_configuration() 585 ep_ctx[ep_index]->ep_info2 = in xhci_set_configuration() 587 ep_ctx[ep_index]->ep_info2 |= in xhci_set_configuration() 594 ep_ctx[ep_index]->ep_info2 |= in xhci_set_configuration() 599 virt_dev->eps[ep_index].ring->enqueue; in xhci_set_configuration() [all …]
|
H A D | xhci-mem.c | 645 unsigned int ep_index) in xhci_get_ep_ctx() argument 648 ep_index++; in xhci_get_ep_ctx() 650 ep_index++; in xhci_get_ep_ctx() 654 (ep_index * CTX_SIZE(readl(&ctrl->hccr->cr_hccparams)))); in xhci_get_ep_ctx() 671 unsigned int ep_index) in xhci_endpoint_copy() argument 676 out_ep_ctx = xhci_get_ep_ctx(ctrl, out_ctx, ep_index); in xhci_endpoint_copy() 677 in_ep_ctx = xhci_get_ep_ctx(ctrl, in_ctx, ep_index); in xhci_endpoint_copy()
|
H A D | xhci.h | 1242 unsigned int ep_index); 1246 unsigned int ep_index); 1253 u32 slot_id, u32 ep_index, trb_type cmd);
|
/openbmc/linux/drivers/usb/gadget/udc/ |
H A D | fsl_usb2_udc.h | 570 #define ep_index(EP) ((EP)->ep.desc->bEndpointAddress&0xF) macro 572 #define ep_is_in(EP) ( (ep_index(EP) == 0) ? (EP->udc->ep0_dir == \ 579 #define get_pipe_by_ep(EP) (ep_index(EP) * 2 + ep_is_in(EP)) 584 if (ep_index(ep) != 0) in get_qh_by_ep()
|
H A D | fsl_udc_core.c | 597 struct_ep_qh_setup(udc, (unsigned char) ep_index(ep), in fsl_ep_enable() 605 dr_ep_setup((unsigned char) ep_index(ep), in fsl_ep_enable() 641 ep_num = ep_index(ep); in fsl_ep_disable() 713 fsl_writel(ep_is_in(ep) ? (1 << (ep_index(ep) + 16)) in fsl_prime_ep() 714 : (1 << (ep_index(ep))), &dr_regs->endpointprime); in fsl_prime_ep() 726 ? (1 << (ep_index(ep) + 16)) in fsl_queue_td() 727 : (1 << (ep_index(ep))); in fsl_queue_td() 730 if (!(list_empty(&ep->queue)) && !(ep_index(ep) == 0)) { in fsl_queue_td() 934 ep_num = ep_index(ep); in fsl_ep_dequeue() 1029 ep_num = (unsigned char)(ep_index(ep)); in fsl_ep_set_halt() [all …]
|
H A D | fsl_qe_udc.h | 152 #define ep_index(EP) ((EP)->ep.desc->bEndpointAddress & 0xF) macro 154 #define ep_is_in(EP) ((ep_index(EP) == 0) ? (EP->udc->ep0_dir == \
|
H A D | tegra-xudc.c | 2704 unsigned int ep_index = trb_read_endpoint_id(event); in tegra_xudc_handle_transfer_event() local 2705 struct tegra_xudc_ep *ep = &xudc->ep[ep_index]; in tegra_xudc_handle_transfer_event() 2711 ep_index); in tegra_xudc_handle_transfer_event() 2732 dev_info(xudc->dev, "stream rejected on EP %u\n", ep_index); in tegra_xudc_handle_transfer_event() 2737 dev_info(xudc->dev, "prime pipe received on EP %u\n", ep_index); in tegra_xudc_handle_transfer_event() 2746 ep_wait_for_stopped(xudc, ep_index); in tegra_xudc_handle_transfer_event() 2755 ep_wait_for_stopped(xudc, ep_index); in tegra_xudc_handle_transfer_event() 2768 comp_code, ep_index); in tegra_xudc_handle_transfer_event() 2770 ep_halt(xudc, ep_index); in tegra_xudc_handle_transfer_event() 2791 ep_index); in tegra_xudc_handle_transfer_event() [all …]
|
H A D | fsl_qe_udc.c | 1707 if (!_ep || (!ep->ep.desc && ep_index(ep))) { in __qe_ep_queue() 1747 if (ep_index(ep) == 0 && req->req.length > 0) { in __qe_ep_queue()
|
/openbmc/u-boot/drivers/usb/gadget/ |
H A D | dwc2_udc_otg_xfer_dma.c | 96 u32 ep_num = ep_index(ep); in setdma_rx() 138 u32 ep_num = ep_index(ep); in setdma_tx() 611 ep_num = ep_index(ep); in dwc2_queue() 731 max, ep_index(ep), cp); in dwc2_fifo_read() 775 __func__, ep_index(ep), ®->in_endp[EP0_CON].diepctl); in dwc2_udc_ep0_set_stall() 931 ep_num = ep_index(ep); in dwc2_udc_set_nak() 957 ep_num = ep_index(ep); in dwc2_udc_ep_set_stall() 992 ep_num = ep_index(ep); in dwc2_udc_ep_clear_stall() 1043 ep_num = ep_index(ep); in dwc2_udc_set_halt() 1087 ep_num = ep_index(ep); in dwc2_udc_ep_activate() [all …]
|
H A D | dwc2_udc_otg_priv.h | 90 #define ep_index(EP) ((EP)->bEndpointAddress&0xF) macro
|
H A D | dwc2_udc_otg.c | 707 debug("%s: %d\n", __func__, ep_index(ep)); in dwc2_fifo_status() 729 debug("%s: %d\n", __func__, ep_index(ep)); in dwc2_fifo_flush()
|
/openbmc/linux/drivers/usb/cdns3/ |
H A D | cdnsp-ring.c | 399 unsigned int ep_index, in cdnsp_get_hw_deq() argument 405 pep = &pdev->eps[ep_index]; in cdnsp_get_hw_deq() 1182 int ep_index; in cdnsp_handle_tx_nrdy() local 1187 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in cdnsp_handle_tx_nrdy() 1191 pep = &pdev->eps[ep_index]; in cdnsp_handle_tx_nrdy() 1241 int ep_index; in cdnsp_handle_tx_event() local 1244 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in cdnsp_handle_tx_event() 1248 pep = &pdev->eps[ep_index]; in cdnsp_handle_tx_event() 1372 "comp_code %u\n", ep_index, in cdnsp_handle_tx_event() 2454 void cdnsp_queue_stop_endpoint(struct cdnsp_device *pdev, unsigned int ep_index) in cdnsp_queue_stop_endpoint() argument [all …]
|
H A D | cdnsp-gadget.h | 1535 unsigned int ep_index); 1542 void cdnsp_queue_reset_ep(struct cdnsp_device *pdev, unsigned int ep_index); 1544 unsigned int ep_index); 1546 unsigned int ep_index); 1566 unsigned int ep_index);
|
H A D | cdnsp-mem.c | 507 unsigned int ep_index) in cdnsp_get_ep_ctx() argument 510 ep_index++; in cdnsp_get_ep_ctx() 512 ep_index++; in cdnsp_get_ep_ctx() 514 return (struct cdnsp_ep_ctx *)(ctx->bytes + (ep_index * ctx->ctx_size)); in cdnsp_get_ep_ctx()
|
/openbmc/linux/drivers/usb/dwc2/ |
H A D | gadget.c | 62 u32 ep_index, u32 dir_in) in index_to_ep() argument 65 return hsotg->eps_in[ep_index]; in index_to_ep() 67 return hsotg->eps_out[ep_index]; in index_to_ep()
|