Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/usb/host/
Dxhci-ring.c492 unsigned int ep_index, in xhci_ring_ep_doorbell() argument
496 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_ring_ep_doorbell()
509 trace_xhci_ring_ep_doorbell(slot_id, DB_VALUE(ep_index, stream_id)); in xhci_ring_ep_doorbell()
511 writel(DB_VALUE(ep_index, stream_id), db_addr); in xhci_ring_ep_doorbell()
519 unsigned int ep_index) in ring_doorbell_for_active_rings() argument
524 ep = &xhci->devs[slot_id]->eps[ep_index]; in ring_doorbell_for_active_rings()
529 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, 0); in ring_doorbell_for_active_rings()
537 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, in ring_doorbell_for_active_rings()
544 unsigned int ep_index) in xhci_ring_doorbell_for_active_rings() argument
546 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_ring_doorbell_for_active_rings()
[all …]
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
Dxhci-debugfs.c281 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 …]
Dxhci.c1393 static unsigned int xhci_get_endpoint_address(unsigned int ep_index) in xhci_get_endpoint_address() argument
1395 unsigned int number = DIV_ROUND_UP(ep_index, 2); in xhci_get_endpoint_address()
1396 unsigned int direction = ep_index % 2 ? USB_DIR_OUT : USB_DIR_IN; in xhci_get_endpoint_address()
1548 unsigned int slot_id, ep_index; in xhci_urb_enqueue() local
1553 ep_index = xhci_get_endpoint_index(&urb->ep->desc); in xhci_urb_enqueue()
1604 ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_urb_enqueue()
1622 slot_id, ep_index); in xhci_urb_enqueue()
1626 slot_id, ep_index); in xhci_urb_enqueue()
1630 slot_id, ep_index); in xhci_urb_enqueue()
1634 slot_id, ep_index); in xhci_urb_enqueue()
[all …]
Dxhci-mem.c417 unsigned int ep_index) in xhci_free_endpoint_ring() argument
419 xhci_ring_free(xhci, virt_dev->eps[ep_index].ring); in xhci_free_endpoint_ring()
420 virt_dev->eps[ep_index].ring = NULL; in xhci_free_endpoint_ring()
515 unsigned int ep_index) in xhci_get_ep_ctx() argument
518 ep_index++; in xhci_get_ep_ctx()
520 ep_index++; in xhci_get_ep_ctx()
523 (ctx->bytes + (ep_index * CTX_SIZE(xhci->hcc_params))); in xhci_get_ep_ctx()
979 dev->eps[i].ep_index = i; in xhci_alloc_virt_device()
1395 unsigned int ep_index; in xhci_endpoint_init() local
1408 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_endpoint_init()
[all …]
Dxhci.h651 unsigned int ep_index; member
1784 unsigned int ep_index);
1801 unsigned int ep_index);
1887 int slot_id, unsigned int ep_index, int suspend);
1889 int slot_id, unsigned int ep_index);
1891 int slot_id, unsigned int ep_index);
1893 int slot_id, unsigned int ep_index);
1895 struct urb *urb, int slot_id, unsigned int ep_index);
1902 int slot_id, unsigned int ep_index,
1909 unsigned int ep_index, unsigned int stream_id);
[all …]
Dxhci-mtk-sch.c919 unsigned int ep_index; in add_ep_quirk() local
922 ep_index = xhci_get_endpoint_index(&ep->desc); in add_ep_quirk()
923 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in add_ep_quirk()
986 unsigned int ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_mtk_check_bandwidth() local
995 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_mtk_check_bandwidth()
/linux-6.12.1/drivers/usb/gadget/udc/
Dfsl_usb2_udc.h523 #define ep_index(EP) ((EP)->ep.desc->bEndpointAddress&0xF) macro
525 #define ep_is_in(EP) ( (ep_index(EP) == 0) ? (EP->udc->ep0_dir == \
532 #define get_pipe_by_ep(EP) (ep_index(EP) * 2 + ep_is_in(EP))
537 if (ep_index(ep) != 0) in get_qh_by_ep()
Dfsl_udc_core.c598 struct_ep_qh_setup(udc, (unsigned char) ep_index(ep), in fsl_ep_enable()
606 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()
1032 ep_num = (unsigned char)(ep_index(ep)); in fsl_ep_set_halt()
[all …]
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 == \
Dtegra-xudc.c2704 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 …]
Dfsl_qe_udc.c1708 if (!_ep || (!ep->ep.desc && ep_index(ep))) { in __qe_ep_queue()
1748 if (ep_index(ep) == 0 && req->req.length > 0) { in __qe_ep_queue()
/linux-6.12.1/drivers/usb/cdns3/
Dcdnsp-ring.c399 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()
2441 void cdnsp_queue_stop_endpoint(struct cdnsp_device *pdev, unsigned int ep_index) in cdnsp_queue_stop_endpoint() argument
[all …]
Dcdnsp-gadget.h1533 unsigned int ep_index);
1540 void cdnsp_queue_reset_ep(struct cdnsp_device *pdev, unsigned int ep_index);
1542 unsigned int ep_index);
1562 unsigned int ep_index);
Dcdnsp-mem.c507 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()
/linux-6.12.1/drivers/usb/dwc2/
Dgadget.c62 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()