Home
last modified time | relevance | path

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

/linux/drivers/usb/host/
H A Dxhci-sideband.c89 sb->eps[ep->ep_index] = NULL; in __xhci_sideband_remove_endpoint()
119 unsigned int ep_index) in xhci_sideband_notify_ep_ring_free() argument
124 evt.evt_data = &ep_index; in xhci_sideband_notify_ep_ring_free()
148 unsigned int ep_index; in xhci_sideband_add_endpoint() local
155 ep_index = xhci_get_endpoint_index(&host_ep->desc); in xhci_sideband_add_endpoint()
156 ep = &sb->vdev->eps[ep_index]; in xhci_sideband_add_endpoint()
169 if (sb->eps[ep_index] || ep->sideband) in xhci_sideband_add_endpoint()
173 sb->eps[ep_index] = ep; in xhci_sideband_add_endpoint()
196 unsigned int ep_index; in xhci_sideband_remove_endpoint() local
200 ep_index = xhci_get_endpoint_index(&host_ep->desc); in xhci_sideband_remove_endpoint()
[all …]
H A Dxhci-ring.c551 unsigned int ep_index, in xhci_ring_ep_doorbell() argument
555 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_ring_ep_doorbell()
568 trace_xhci_ring_ep_doorbell(slot_id, DB_VALUE(ep_index, stream_id)); in xhci_ring_ep_doorbell()
570 writel(DB_VALUE(ep_index, stream_id), db_addr); in xhci_ring_ep_doorbell()
578 unsigned int ep_index) in ring_doorbell_for_active_rings() argument
583 ep = &xhci->devs[slot_id]->eps[ep_index]; in ring_doorbell_for_active_rings()
588 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, 0); in ring_doorbell_for_active_rings()
596 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, in ring_doorbell_for_active_rings()
603 unsigned int ep_index) in xhci_ring_doorbell_for_active_rings() argument
605 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_ring_doorbell_for_active_rings()
[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-debugfs.c269 int ep_index; in xhci_endpoint_context_show() local
279 for (ep_index = 0; ep_index < 31; ep_index++) { in xhci_endpoint_context_show()
280 ep_ctx = xhci_get_ep_ctx(xhci, dev->out_ctx, ep_index); in xhci_endpoint_context_show()
281 dma = dev->out_ctx->dma + (ep_index + 1) * CTX_SIZE(xhci->hcc_params); in xhci_endpoint_context_show()
288 dev->eps[ep_index].ep_state); in xhci_endpoint_context_show()
468 int ep_index) in xhci_debugfs_create_endpoint() argument
476 if (spriv->eps[ep_index]) in xhci_debugfs_create_endpoint()
483 epriv->show_ring = dev->eps[ep_index].ring; in xhci_debugfs_create_endpoint()
485 snprintf(epriv->name, sizeof(epriv->name), "ep%02d", ep_index); in xhci_debugfs_create_endpoint()
490 spriv->eps[ep_index] = epriv; in xhci_debugfs_create_endpoint()
[all …]
H A Dxhci.c1472 static unsigned int xhci_get_endpoint_address(unsigned int ep_index) in xhci_get_endpoint_address() argument
1474 unsigned int number = DIV_ROUND_UP(ep_index, 2); in xhci_get_endpoint_address()
1475 unsigned int direction = ep_index % 2 ? USB_DIR_OUT : USB_DIR_IN; in xhci_get_endpoint_address()
1627 unsigned int slot_id, ep_index; in xhci_urb_enqueue() local
1632 ep_index = xhci_get_endpoint_index(&urb->ep->desc); in xhci_urb_enqueue()
1683 ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_urb_enqueue()
1701 slot_id, ep_index); in xhci_urb_enqueue()
1705 slot_id, ep_index); in xhci_urb_enqueue()
1709 slot_id, ep_index); in xhci_urb_enqueue()
1713 slot_id, ep_index); in xhci_urb_enqueue()
[all …]
H A Dxhci-mtk-sch.c918 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 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()
H A Dfsl_udc_core.c599 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()
646 ep_num = ep_index(ep); in fsl_ep_disable()
718 fsl_writel(ep_is_in(ep) ? (1 << (ep_index(ep) + 16)) in fsl_prime_ep()
719 : (1 << (ep_index(ep))), &dr_regs->endpointprime); in fsl_prime_ep()
731 ? (1 << (ep_index(ep) + 16)) in fsl_queue_td()
732 : (1 << (ep_index(ep))); in fsl_queue_td()
735 if (!(list_empty(&ep->queue)) && !(ep_index(ep) == 0)) { in fsl_queue_td()
938 ep_num = ep_index(ep); in fsl_ep_dequeue()
1033 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.c2706 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 …]
H A 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/drivers/usb/cdns3/
H A Dcdnsp-ring.c400 unsigned int ep_index, in cdnsp_get_hw_deq() argument
406 pep = &pdev->eps[ep_index]; in cdnsp_get_hw_deq()
1185 int ep_index; in cdnsp_handle_tx_nrdy() local
1190 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in cdnsp_handle_tx_nrdy()
1194 pep = &pdev->eps[ep_index]; in cdnsp_handle_tx_nrdy()
1244 int ep_index; in cdnsp_handle_tx_event() local
1247 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in cdnsp_handle_tx_event()
1251 pep = &pdev->eps[ep_index]; in cdnsp_handle_tx_event()
1375 "comp_code %u\n", ep_index, in cdnsp_handle_tx_event()
2444 void cdnsp_queue_stop_endpoint(struct cdnsp_device *pdev, unsigned int ep_index) in cdnsp_queue_stop_endpoint() argument
[all …]
H A Dcdnsp-gadget.h1549 unsigned int ep_index);
1556 void cdnsp_queue_reset_ep(struct cdnsp_device *pdev, unsigned int ep_index);
1558 unsigned int ep_index);
1578 unsigned int ep_index);
H A 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/sound/soc/sof/intel/
H A Dhda.c1163 int ep_index = 0; in find_acpi_adr_device() local
1207 endpoints[ep_index].num = j; in find_acpi_adr_device()
1210 endpoints[ep_index].aggregated = 1; in find_acpi_adr_device()
1211 endpoints[ep_index].group_id = amp_group_id; in find_acpi_adr_device()
1212 endpoints[ep_index].group_position = *amp_index; in find_acpi_adr_device()
1216 endpoints[ep_index].aggregated = 0; in find_acpi_adr_device()
1217 endpoints[ep_index].group_id = 0; in find_acpi_adr_device()
1218 endpoints[ep_index].group_position = 0; in find_acpi_adr_device()
1221 ep_index++; in find_acpi_adr_device()
1224 adr_dev[index].num_endpoints = ep_index; in find_acpi_adr_device()
[all...]
/linux/drivers/usb/dwc2/
H A 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()