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()
610 xhci_get_virt_ep(struct xhci_hcd * xhci,unsigned int slot_id,unsigned int ep_index) xhci_get_virt_ep() argument
653 xhci_triad_to_transfer_ring(struct xhci_hcd * xhci,unsigned int slot_id,unsigned int ep_index,unsigned int stream_id) xhci_triad_to_transfer_ring() argument
673 xhci_get_hw_deq(struct xhci_hcd * xhci,struct xhci_virt_device * vdev,unsigned int ep_index,unsigned int stream_id) xhci_get_hw_deq() argument
690 xhci_move_dequeue_past_td(struct xhci_hcd * xhci,unsigned int slot_id,unsigned int ep_index,unsigned int stream_id,struct xhci_td * td) xhci_move_dequeue_past_td() argument
961 xhci_reset_halted_ep(struct xhci_hcd * xhci,unsigned int slot_id,unsigned int ep_index,enum xhci_ep_reset_type reset_type) xhci_reset_halted_ep() argument
1186 unsigned int ep_index; xhci_handle_cmd_stop_ep() local
1326 xhci_kill_endpoint_urbs(struct xhci_hcd * xhci,int slot_id,int ep_index) xhci_kill_endpoint_urbs() argument
1419 unsigned int ep_index; xhci_handle_cmd_set_deq() local
1561 unsigned int ep_index; xhci_handle_cmd_reset_ep() local
1626 unsigned int ep_index; xhci_handle_cmd_config_ep() local
2640 int ep_index; handle_tx_event() local
3326 prepare_transfer(struct xhci_hcd * xhci,struct xhci_virt_device * xdev,unsigned int ep_index,unsigned int stream_id,unsigned int num_trbs,struct urb * urb,unsigned int td_index,gfp_t mem_flags) prepare_transfer() argument
3432 giveback_first_trb(struct xhci_hcd * xhci,int slot_id,unsigned int ep_index,unsigned int stream_id,int start_cycle,struct xhci_generic_trb * start_trb) giveback_first_trb() argument
3483 xhci_queue_intr_tx(struct xhci_hcd * xhci,gfp_t mem_flags,struct urb * urb,int slot_id,unsigned int ep_index) xhci_queue_intr_tx() argument
3611 xhci_queue_bulk_tx(struct xhci_hcd * xhci,gfp_t mem_flags,struct urb * urb,int slot_id,unsigned int ep_index) xhci_queue_bulk_tx() argument
3770 xhci_queue_ctrl_tx(struct xhci_hcd * xhci,gfp_t mem_flags,struct urb * urb,int slot_id,unsigned int ep_index) xhci_queue_ctrl_tx() argument
4077 xhci_queue_isoc_tx(struct xhci_hcd * xhci,gfp_t mem_flags,struct urb * urb,int slot_id,unsigned int ep_index) xhci_queue_isoc_tx() argument
4270 xhci_queue_isoc_tx_prepare(struct xhci_hcd * xhci,gfp_t mem_flags,struct urb * urb,int slot_id,unsigned int ep_index) xhci_queue_isoc_tx_prepare() argument
4463 xhci_queue_stop_endpoint(struct xhci_hcd * xhci,struct xhci_command * cmd,int slot_id,unsigned int ep_index,int suspend) xhci_queue_stop_endpoint() argument
4475 xhci_queue_reset_ep(struct xhci_hcd * xhci,struct xhci_command * cmd,int slot_id,unsigned int ep_index,enum xhci_ep_reset_type reset_type) xhci_queue_reset_ep() 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-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.c1469 static unsigned int xhci_get_endpoint_address(unsigned int ep_index)
1471 unsigned int number = DIV_ROUND_UP(ep_index, 2);
1472 unsigned int direction = ep_index % 2 ? USB_DIR_OUT : USB_DIR_IN; in xhci_get_endpoint_address() argument
1624 unsigned int slot_id, ep_index; in xhci_urb_enqueue()
1629 ep_index = xhci_get_endpoint_index(&urb->ep->desc); in xhci_urb_enqueue()
1680 ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_urb_enqueue()
1698 slot_id, ep_index); in xhci_urb_enqueue()
1702 slot_id, ep_index); in xhci_urb_enqueue()
1706 slot_id, ep_index); in xhci_urb_enqueue()
1710 slot_id, ep_index); in xhci_urb_enqueue()
1627 unsigned int slot_id, ep_index; xhci_urb_enqueue() local
1764 unsigned int ep_index; xhci_urb_dequeue() local
1908 unsigned int ep_index; xhci_drop_endpoint() local
1990 unsigned int ep_index; xhci_add_endpoint() local
3267 unsigned int ep_index; xhci_endpoint_disable() local
3322 unsigned int ep_index; xhci_endpoint_reset() local
3465 unsigned int ep_index; xhci_check_streams_endpoint() local
3564 unsigned int ep_index; xhci_calculate_no_streams_bitmask() local
3624 unsigned int ep_index; xhci_alloc_streams() local
3791 unsigned int ep_index; xhci_free_streams() local
5564 unsigned int ep_index; xhci_clear_tt_buffer_complete() local
[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()
1188 int ep_index; in cdnsp_handle_tx_nrdy()
1193 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in cdnsp_handle_tx_nrdy()
1197 pep = &pdev->eps[ep_index]; in cdnsp_handle_tx_nrdy()
1247 int ep_index; in cdnsp_handle_tx_event()
1250 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in cdnsp_handle_tx_event()
1254 pep = &pdev->eps[ep_index]; in cdnsp_handle_tx_event()
1377 "part of current TD ep_index %d " in cdnsp_handle_tx_event()
1378 "comp_code %u\n", ep_index, in cdnsp_handle_tx_event()
1185 int ep_index; cdnsp_handle_tx_nrdy() local
1244 int ep_index; cdnsp_handle_tx_event() local
2444 cdnsp_queue_stop_endpoint(struct cdnsp_device * pdev,unsigned int ep_index) cdnsp_queue_stop_endpoint() argument
2473 cdnsp_queue_reset_ep(struct cdnsp_device * pdev,unsigned int ep_index) cdnsp_queue_reset_ep() argument
2484 cdnsp_queue_halt_endpoint(struct cdnsp_device * pdev,unsigned int ep_index) cdnsp_queue_halt_endpoint() argument
[all...]
H A Dcdnsp-gadget.h976 /* Stop Endpoint TRB - ep_index to endpoint ID for this TRB. */
1550 unsigned int ep_index);
1557 void cdnsp_queue_reset_ep(struct cdnsp_device *pdev, unsigned int ep_index);
1559 unsigned int ep_index);
1579 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.c1162 int ep_index = 0; in find_acpi_adr_device()
1206 endpoints[ep_index].num = j; in find_acpi_adr_device()
1209 endpoints[ep_index].aggregated = 1; in find_acpi_adr_device()
1210 endpoints[ep_index].group_id = amp_group_id; in find_acpi_adr_device()
1211 endpoints[ep_index].group_position = *amp_index; in find_acpi_adr_device()
1215 endpoints[ep_index].aggregated = 0; in find_acpi_adr_device()
1216 endpoints[ep_index].group_id = 0; in find_acpi_adr_device()
1217 endpoints[ep_index].group_position = 0; in find_acpi_adr_device()
1219 ep_index++; in find_acpi_adr_device()
1222 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/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()