Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/usb/host/
H A Dxhci-ring.c430 unsigned int ep_index, in xhci_ring_ep_doorbell() argument
434 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_ring_ep_doorbell()
447 trace_xhci_ring_ep_doorbell(slot_id, DB_VALUE(ep_index, stream_id)); in xhci_ring_ep_doorbell()
449 writel(DB_VALUE(ep_index, stream_id), db_addr); in xhci_ring_ep_doorbell()
457 unsigned int ep_index) in ring_doorbell_for_active_rings() argument
462 ep = &xhci->devs[slot_id]->eps[ep_index]; in ring_doorbell_for_active_rings()
467 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, 0); in ring_doorbell_for_active_rings()
475 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, in ring_doorbell_for_active_rings()
482 unsigned int ep_index) in xhci_ring_doorbell_for_active_rings() argument
484 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_ring_doorbell_for_active_rings()
[all …]
H A Dxhci-debugfs.c280 int ep_index; in xhci_endpoint_context_show() local
290 for (ep_index = 0; ep_index < 31; ep_index++) { in xhci_endpoint_context_show()
291 ep_ctx = xhci_get_ep_ctx(xhci, dev->out_ctx, ep_index); in xhci_endpoint_context_show()
292 dma = dev->out_ctx->dma + (ep_index + 1) * CTX_SIZE(xhci->hcc_params); in xhci_endpoint_context_show()
445 int ep_index) in xhci_debugfs_create_endpoint() argument
453 if (spriv->eps[ep_index]) in xhci_debugfs_create_endpoint()
460 epriv->show_ring = dev->eps[ep_index].ring; in xhci_debugfs_create_endpoint()
462 snprintf(epriv->name, sizeof(epriv->name), "ep%02d", ep_index); in xhci_debugfs_create_endpoint()
467 spriv->eps[ep_index] = epriv; in xhci_debugfs_create_endpoint()
472 int ep_index) in xhci_debugfs_remove_endpoint() argument
[all …]
H A Dxhci-debugfs.h115 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 Dxhci.c1338 unsigned int xhci_get_endpoint_address(unsigned int ep_index) in xhci_get_endpoint_address() argument
1340 unsigned int number = DIV_ROUND_UP(ep_index, 2); in xhci_get_endpoint_address()
1341 unsigned int direction = ep_index % 2 ? USB_DIR_OUT : USB_DIR_IN; in xhci_get_endpoint_address()
1416 unsigned int ep_index, struct urb *urb, gfp_t mem_flags) in xhci_check_maxpacket() argument
1427 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_check_maxpacket()
1461 xhci->devs[slot_id]->out_ctx, ep_index); in xhci_check_maxpacket()
1463 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_check_maxpacket()
1494 unsigned int slot_id, ep_index; in xhci_urb_enqueue() local
1507 ep_index = xhci_get_endpoint_index(&urb->ep->desc); in xhci_urb_enqueue()
1508 ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_urb_enqueue()
[all …]
H A Dxhci-mem.c398 struct xhci_virt_device *virt_dev, unsigned int ep_index) in xhci_vendor_free_transfer_ring() argument
403 ops->free_transfer_ring(xhci, virt_dev, ep_index); in xhci_vendor_free_transfer_ring()
407 struct xhci_virt_device *virt_dev, unsigned int ep_index) in xhci_vendor_is_usb_offload_enabled() argument
412 return ops->is_usb_offload_enabled(xhci, virt_dev, ep_index); in xhci_vendor_is_usb_offload_enabled()
466 unsigned int ep_index) in xhci_free_endpoint_ring() argument
468 if (xhci_vendor_is_usb_offload_enabled(xhci, virt_dev, ep_index)) in xhci_free_endpoint_ring()
469 xhci_vendor_free_transfer_ring(xhci, virt_dev, ep_index); in xhci_free_endpoint_ring()
471 xhci_ring_free(xhci, virt_dev->eps[ep_index].ring); in xhci_free_endpoint_ring()
473 virt_dev->eps[ep_index].ring = NULL; in xhci_free_endpoint_ring()
596 unsigned int ep_index) in xhci_get_ep_ctx() argument
[all …]
H A Dxhci.h932 unsigned int ep_index; member
2039 unsigned int xhci_get_endpoint_address(unsigned int ep_index);
2053 unsigned int ep_index);
2075 unsigned int ep_index);
2151 int slot_id, unsigned int ep_index, int suspend);
2153 int slot_id, unsigned int ep_index);
2155 int slot_id, unsigned int ep_index);
2157 int slot_id, unsigned int ep_index);
2159 struct urb *urb, int slot_id, unsigned int ep_index);
2166 int slot_id, unsigned int ep_index,
[all …]
H A Dxhci-mtk-sch.c722 unsigned int ep_index; in add_ep_quirk() local
725 ep_index = xhci_get_endpoint_index(&ep->desc); in add_ep_quirk()
726 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in add_ep_quirk()
804 unsigned int ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_mtk_check_bandwidth() local
809 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_mtk_check_bandwidth()
/OK3568_Linux_fs/u-boot/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()
485 static void abort_td(struct usb_device *udev, int ep_index) in abort_td() argument
488 struct xhci_ring *ring = ctrl->devs[udev->slot_id]->eps[ep_index].ring; in abort_td()
492 xhci_queue_command(ctrl, NULL, udev->slot_id, ep_index, TRB_STOP_RING); in abort_td()
497 BUG_ON(TRB_TO_EP_INDEX(field) != ep_index); in abort_td()
509 ring->cycle_state), udev->slot_id, ep_index, TRB_SET_DEQ); in abort_td()
566 int ep_index; in xhci_bulk_tx() local
[all …]
H A Dxhci.c499 int ep_index; in xhci_set_configuration() local
570 ep_index = xhci_get_ep_index(endpt_desc); in xhci_set_configuration()
571 ep_ctx[ep_index] = xhci_get_ep_ctx(ctrl, in_ctx, ep_index); in xhci_set_configuration()
574 virt_dev->eps[ep_index].ring = xhci_ring_alloc(1, true); in xhci_set_configuration()
575 if (!virt_dev->eps[ep_index].ring) in xhci_set_configuration()
582 ep_ctx[ep_index]->ep_info = in xhci_set_configuration()
586 ep_ctx[ep_index]->ep_info2 = in xhci_set_configuration()
588 ep_ctx[ep_index]->ep_info2 |= in xhci_set_configuration()
595 ep_ctx[ep_index]->ep_info2 |= in xhci_set_configuration()
600 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()
/OK3568_Linux_fs/u-boot/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()
633 ep_num = ep_index(ep); in dwc2_queue()
753 max, ep_index(ep), cp); in dwc2_fifo_read()
797 __func__, ep_index(ep), &reg->in_endp[EP0_CON].diepctl); in dwc2_udc_ep0_set_stall()
953 ep_num = ep_index(ep); in dwc2_udc_set_nak()
979 ep_num = ep_index(ep); in dwc2_udc_ep_set_stall()
1014 ep_num = ep_index(ep); in dwc2_udc_ep_clear_stall()
1065 ep_num = ep_index(ep); in dwc2_udc_set_halt()
1109 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.c780 debug("%s: %d\n", __func__, ep_index(ep)); in dwc2_fifo_status()
802 debug("%s: %d\n", __func__, ep_index(ep)); in dwc2_fifo_flush()
/OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/
H A Ds3c-hsudc.c155 #define ep_index(_ep) ((_ep)->bEndpointAddress & \ macro
202 if (!ep_index(hsep)) { in s3c_hsudc_complete_request()
335 offset = (ep_index(hsep)) ? S3C_ESR : S3C_EP0SR; in s3c_hsudc_read_fifo()
461 set_index(hsudc, ep_index(hsep)); in s3c_hsudc_set_halt()
462 offset = (ep_index(hsep)) ? S3C_ECR : S3C_EP0CR; in s3c_hsudc_set_halt()
467 if (ep_index(hsep)) in s3c_hsudc_set_halt()
734 __set_bit(ep_index(hsep), hsudc->regs + S3C_EIER); in s3c_hsudc_ep_enable()
759 __clear_bit(ep_index(hsep), hsudc->regs + S3C_EIER); in s3c_hsudc_ep_disable()
840 if (!ep_index(hsep) && _req->length == 0) { in s3c_hsudc_queue()
848 offset = (ep_index(hsep)) ? S3C_ESR : S3C_EP0SR; in s3c_hsudc_queue()
H A Dfsl_usb2_udc.h570 #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 Dfsl_udc_core.c601 struct_ep_qh_setup(udc, (unsigned char) ep_index(ep), in fsl_ep_enable()
609 dr_ep_setup((unsigned char) ep_index(ep), in fsl_ep_enable()
645 ep_num = ep_index(ep); in fsl_ep_disable()
717 fsl_writel(ep_is_in(ep) ? (1 << (ep_index(ep) + 16)) in fsl_prime_ep()
718 : (1 << (ep_index(ep))), &dr_regs->endpointprime); in fsl_prime_ep()
730 ? (1 << (ep_index(ep) + 16)) in fsl_queue_td()
731 : (1 << (ep_index(ep))); in fsl_queue_td()
734 if (!(list_empty(&ep->queue)) && !(ep_index(ep) == 0)) { in fsl_queue_td()
937 ep_num = ep_index(ep); in fsl_ep_dequeue()
1030 ep_num = (unsigned char)(ep_index(ep)); in fsl_ep_set_halt()
[all …]
H A Dfsl_qe_udc.h152 #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 Dtegra-xudc.c2693 unsigned int ep_index = trb_read_endpoint_id(event); in tegra_xudc_handle_transfer_event() local
2694 struct tegra_xudc_ep *ep = &xudc->ep[ep_index]; in tegra_xudc_handle_transfer_event()
2700 ep_index); in tegra_xudc_handle_transfer_event()
2721 dev_info(xudc->dev, "stream rejected on EP %u\n", ep_index); in tegra_xudc_handle_transfer_event()
2726 dev_info(xudc->dev, "prime pipe received on EP %u\n", ep_index); in tegra_xudc_handle_transfer_event()
2735 ep_wait_for_stopped(xudc, ep_index); in tegra_xudc_handle_transfer_event()
2744 ep_wait_for_stopped(xudc, ep_index); in tegra_xudc_handle_transfer_event()
2757 comp_code, ep_index); in tegra_xudc_handle_transfer_event()
2759 ep_halt(xudc, ep_index); in tegra_xudc_handle_transfer_event()
2780 ep_index); in tegra_xudc_handle_transfer_event()
[all …]
H A Dfsl_qe_udc.c1701 if (!_ep || (!ep->ep.desc && ep_index(ep))) { in __qe_ep_queue()
1741 if (ep_index(ep) == 0 && req->req.length > 0) { in __qe_ep_queue()
/OK3568_Linux_fs/u-boot/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);
/OK3568_Linux_fs/kernel/drivers/usb/dwc2/
H A Dgadget.c64 u32 ep_index, u32 dir_in) in index_to_ep() argument
67 return hsotg->eps_in[ep_index]; in index_to_ep()
69 return hsotg->eps_out[ep_index]; in index_to_ep()