/linux/drivers/usb/host/ |
H A D | xhci-ring.c | 493 unsigned int ep_index, in xhci_ring_ep_doorbell() argument 497 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_ring_ep_doorbell() 510 trace_xhci_ring_ep_doorbell(slot_id, DB_VALUE(ep_index, stream_id)); in xhci_ring_ep_doorbell() 512 writel(DB_VALUE(ep_index, stream_id), db_addr); in xhci_ring_ep_doorbell() 520 unsigned int ep_index) in ring_doorbell_for_active_rings() argument 525 ep = &xhci->devs[slot_id]->eps[ep_index]; in ring_doorbell_for_active_rings() 530 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, 0); in ring_doorbell_for_active_rings() 538 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, in ring_doorbell_for_active_rings() 545 unsigned int ep_index) in xhci_ring_doorbell_for_active_rings() argument 547 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-mem.c | 404 unsigned int ep_index) in xhci_free_endpoint_ring() argument 406 xhci_ring_free(xhci, virt_dev->eps[ep_index].ring); in xhci_free_endpoint_ring() 407 virt_dev->eps[ep_index].ring = NULL; in xhci_free_endpoint_ring() 508 unsigned int ep_index) in xhci_get_ep_ctx() argument 511 ep_index++; in xhci_get_ep_ctx() 513 ep_index++; in xhci_get_ep_ctx() 516 (ctx->bytes + (ep_index * CTX_SIZE(xhci->hcc_params))); in xhci_get_ep_ctx() 973 dev->eps[i].ep_index = i; in xhci_alloc_virt_device() 1389 unsigned int ep_index; in xhci_endpoint_init() local 1402 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_endpoint_init() [all …]
|
H A D | xhci.h | 652 unsigned int ep_index; member 1793 unsigned int ep_index); 1808 unsigned int ep_index); 1894 int slot_id, unsigned int ep_index, int suspend); 1896 int slot_id, unsigned int ep_index); 1898 int slot_id, unsigned int ep_index); 1900 int slot_id, unsigned int ep_index); 1902 struct urb *urb, int slot_id, unsigned int ep_index); 1909 int slot_id, unsigned int ep_index, 1916 unsigned int ep_index, unsigned int stream_id); [all …]
|
H A D | xhci-mtk-sch.c | 919 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/drivers/usb/gadget/udc/ |
H A D | fsl_usb2_udc.h | 523 #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()
|
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 == \
|
/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() 2441 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 | 1533 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);
|
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()
|
/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()
|