| /linux/drivers/usb/host/ |
| H A D | xhci-sideband.c | 91 sb->eps[ep->ep_index] = NULL; in __xhci_sideband_remove_endpoint() 121 unsigned int ep_index) in xhci_sideband_notify_ep_ring_free() argument 126 evt.evt_data = &ep_index; in xhci_sideband_notify_ep_ring_free() 150 unsigned int ep_index; in xhci_sideband_add_endpoint() local 157 ep_index = xhci_get_endpoint_index(&host_ep->desc); in xhci_sideband_add_endpoint() 158 ep = &sb->vdev->eps[ep_index]; in xhci_sideband_add_endpoint() 171 if (sb->eps[ep_index] || ep->sideband) in xhci_sideband_add_endpoint() 175 sb->eps[ep_index] = ep; in xhci_sideband_add_endpoint() 198 unsigned int ep_index; in xhci_sideband_remove_endpoint() local 202 ep_index = xhci_get_endpoint_index(&host_ep->desc); in xhci_sideband_remove_endpoint() [all …]
|
| H A D | xhci-ring.c | 553 unsigned int ep_index, in xhci_ring_ep_doorbell() argument 557 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_ring_ep_doorbell() 570 trace_xhci_ring_ep_doorbell(slot_id, DB_VALUE(ep_index, stream_id)); in xhci_ring_ep_doorbell() 572 writel(DB_VALUE(ep_index, stream_id), db_addr); in xhci_ring_ep_doorbell() 579 unsigned int ep_index) in xhci_ring_doorbell_for_active_rings() argument 584 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_ring_doorbell_for_active_rings() 589 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, 0); in xhci_ring_doorbell_for_active_rings() 597 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, in xhci_ring_doorbell_for_active_rings() 604 unsigned int ep_index) in xhci_get_virt_ep() argument 610 if (ep_index >= EP_CTX_PER_DEV) { in xhci_get_virt_ep() [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 | 403 unsigned int ep_index) in xhci_free_endpoint_ring() argument 405 xhci_ring_free(xhci, virt_dev->eps[ep_index].ring); in xhci_free_endpoint_ring() 406 virt_dev->eps[ep_index].ring = NULL; in xhci_free_endpoint_ring() 536 unsigned int ep_index) in xhci_get_ep_ctx() argument 539 ep_index++; in xhci_get_ep_ctx() 541 ep_index++; in xhci_get_ep_ctx() 544 (ctx->bytes + (ep_index * CTX_SIZE(xhci->hcc_params))); in xhci_get_ep_ctx() 1003 dev->eps[i].ep_index = i; in xhci_alloc_virt_device() 1415 unsigned int ep_index; in xhci_endpoint_init() local 1428 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_endpoint_init() [all …]
|
| H A D | xhci-mtk-sch.c | 918 unsigned int ep_index; in add_ep_quirk() local 921 ep_index = xhci_get_endpoint_index(&ep->desc); in add_ep_quirk() 922 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in add_ep_quirk() 985 unsigned int ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_mtk_check_bandwidth() local 994 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 | 524 #define ep_index(EP) ((EP)->ep.desc->bEndpointAddress&0xF) macro 526 #define ep_is_in(EP) ( (ep_index(EP) == 0) ? (EP->udc->ep0_dir == \ 533 #define get_pipe_by_ep(EP) (ep_index(EP) * 2 + ep_is_in(EP)) 538 if (ep_index(ep) != 0) in get_qh_by_ep()
|
| H A D | fsl_udc_core.c | 599 struct_ep_qh_setup(udc, (unsigned char) ep_index(ep), in fsl_ep_enable() 607 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() 723 ? (1 << (ep_index(ep) + 16)) in fsl_queue_td() 724 : (1 << (ep_index(ep))); in fsl_queue_td() 727 if (!(list_empty(&ep->queue)) && !(ep_index(ep) == 0)) { in fsl_queue_td() 930 ep_num = ep_index(ep); in fsl_ep_dequeue() 1025 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 | 2706 unsigned int ep_index = trb_read_endpoint_id(event); in tegra_xudc_handle_transfer_event() local 2707 struct tegra_xudc_ep *ep = &xudc->ep[ep_index]; in tegra_xudc_handle_transfer_event() 2713 ep_index); in tegra_xudc_handle_transfer_event() 2734 dev_info(xudc->dev, "stream rejected on EP %u\n", ep_index); in tegra_xudc_handle_transfer_event() 2739 dev_info(xudc->dev, "prime pipe received on EP %u\n", ep_index); in tegra_xudc_handle_transfer_event() 2748 ep_wait_for_stopped(xudc, ep_index); in tegra_xudc_handle_transfer_event() 2757 ep_wait_for_stopped(xudc, ep_index); in tegra_xudc_handle_transfer_event() 2770 comp_code, ep_index); in tegra_xudc_handle_transfer_event() 2772 ep_halt(xudc, ep_index); in tegra_xudc_handle_transfer_event() 2793 ep_index); in tegra_xudc_handle_transfer_event() [all …]
|
| /linux/sound/soc/sof/intel/ |
| H A D | hda.c | 1172 int ep_index = 0; in find_acpi_adr_device() 1216 endpoints[ep_index].num = j; in find_acpi_adr_device() 1219 endpoints[ep_index].aggregated = 1; in find_acpi_adr_device() 1220 endpoints[ep_index].group_id = amp_group_id; in find_acpi_adr_device() 1221 endpoints[ep_index].group_position = *amp_index; in find_acpi_adr_device() 1225 endpoints[ep_index].aggregated = 0; in find_acpi_adr_device() 1226 endpoints[ep_index].group_id = 0; in find_acpi_adr_device() 1227 endpoints[ep_index].group_position = 0; in find_acpi_adr_device() 1229 ep_index++; in find_acpi_adr_device() 1232 adr_dev[index].num_endpoints = ep_index; in find_acpi_adr_device() 1163 int ep_index = 0; find_acpi_adr_device() local [all...] |
| /linux/drivers/usb/cdns3/ |
| H A D | cdnsp-gadget.h | 1551 unsigned int ep_index); 1558 void cdnsp_queue_reset_ep(struct cdnsp_device *pdev, unsigned int ep_index); 1560 unsigned int ep_index); 1580 unsigned int ep_index);
|
| H A D | cdnsp-mem.c | 500 unsigned int ep_index) in cdnsp_get_ep_ctx() argument 503 ep_index++; in cdnsp_get_ep_ctx() 505 ep_index++; in cdnsp_get_ep_ctx() 507 return (struct cdnsp_ep_ctx *)(ctx->bytes + (ep_index * ctx->ctx_size)); in cdnsp_get_ep_ctx()
|