Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/usb/host/
Dxhci-ring.c391 unsigned int ep_index, in xhci_ring_ep_doorbell() argument
395 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_ring_ep_doorbell()
408 trace_xhci_ring_ep_doorbell(slot_id, DB_VALUE(ep_index, stream_id)); in xhci_ring_ep_doorbell()
410 writel(DB_VALUE(ep_index, stream_id), db_addr); in xhci_ring_ep_doorbell()
419 unsigned int ep_index) in ring_doorbell_for_active_rings() argument
424 ep = &xhci->devs[slot_id]->eps[ep_index]; in ring_doorbell_for_active_rings()
429 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, 0); in ring_doorbell_for_active_rings()
437 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, in ring_doorbell_for_active_rings()
444 unsigned int ep_index) in xhci_ring_doorbell_for_active_rings() argument
446 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.c277 int ep_index; in xhci_endpoint_context_show() local
286 for (ep_index = 0; ep_index < 31; ep_index++) { in xhci_endpoint_context_show()
287 ep_ctx = xhci_get_ep_ctx(xhci, dev->out_ctx, ep_index); in xhci_endpoint_context_show()
288 dma = dev->out_ctx->dma + (ep_index + 1) * CTX_SIZE(xhci->hcc_params); in xhci_endpoint_context_show()
439 int ep_index) in xhci_debugfs_create_endpoint() argument
447 if (spriv->eps[ep_index]) in xhci_debugfs_create_endpoint()
454 epriv->show_ring = dev->eps[ep_index].ring; in xhci_debugfs_create_endpoint()
456 snprintf(epriv->name, sizeof(epriv->name), "ep%02d", ep_index); in xhci_debugfs_create_endpoint()
461 spriv->eps[ep_index] = epriv; in xhci_debugfs_create_endpoint()
466 int ep_index) in xhci_debugfs_remove_endpoint() argument
[all …]
Dxhci.c1301 unsigned int xhci_get_endpoint_address(unsigned int ep_index) in xhci_get_endpoint_address() argument
1303 unsigned int number = DIV_ROUND_UP(ep_index, 2); in xhci_get_endpoint_address()
1304 unsigned int direction = ep_index % 2 ? USB_DIR_OUT : USB_DIR_IN; in xhci_get_endpoint_address()
1321 static unsigned int xhci_get_endpoint_flag_from_index(unsigned int ep_index) in xhci_get_endpoint_flag_from_index() argument
1323 return 1 << (ep_index + 1); in xhci_get_endpoint_flag_from_index()
1388 unsigned int ep_index, struct urb *urb) in xhci_check_maxpacket() argument
1399 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_check_maxpacket()
1433 xhci->devs[slot_id]->out_ctx, ep_index); in xhci_check_maxpacket()
1435 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_check_maxpacket()
1466 unsigned int slot_id, ep_index; in xhci_urb_enqueue() local
[all …]
Dxhci.h1991 unsigned int xhci_get_endpoint_address(unsigned int ep_index);
2005 unsigned int ep_index);
2027 unsigned int ep_index);
2046 unsigned int ep_index,
2100 int slot_id, unsigned int ep_index, int suspend);
2102 int slot_id, unsigned int ep_index);
2104 int slot_id, unsigned int ep_index);
2106 int slot_id, unsigned int ep_index);
2108 struct urb *urb, int slot_id, unsigned int ep_index);
2115 int slot_id, unsigned int ep_index,
[all …]
Dxhci-mem.c413 unsigned int ep_index) in xhci_free_endpoint_ring() argument
415 xhci_ring_free(xhci, virt_dev->eps[ep_index].ring); in xhci_free_endpoint_ring()
416 virt_dev->eps[ep_index].ring = NULL; in xhci_free_endpoint_ring()
525 unsigned int ep_index) in xhci_get_ep_ctx() argument
528 ep_index++; in xhci_get_ep_ctx()
530 ep_index++; in xhci_get_ep_ctx()
533 (ctx->bytes + (ep_index * CTX_SIZE(xhci->hcc_params))); in xhci_get_ep_ctx()
597 unsigned int ep_index, in xhci_stream_id_to_ring() argument
600 struct xhci_virt_ep *ep = &dev->eps[ep_index]; in xhci_stream_id_to_ring()
1436 unsigned int ep_index; in xhci_endpoint_init() local
[all …]
Dxhci-mtk-sch.c607 unsigned int ep_index; in xhci_mtk_add_ep_quirk() local
613 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_mtk_add_ep_quirk()
615 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_mtk_add_ep_quirk()
/Linux-v5.10/drivers/usb/gadget/udc/
Dfsl_usb2_udc.h570 #define ep_index(EP) ((EP)->ep.desc->bEndpointAddress&0xF) macro
572 #define ep_is_in(EP) ( (ep_index(EP) == 0) ? (EP->udc->ep0_dir == \
579 #define get_pipe_by_ep(EP) (ep_index(EP) * 2 + ep_is_in(EP))
584 if (ep_index(ep) != 0) in get_qh_by_ep()
Ds3c-hsudc.c155 #define ep_index(_ep) ((_ep)->bEndpointAddress & \ macro
202 if (!ep_index(hsep)) { in s3c_hsudc_complete_request()
335 offset = (ep_index(hsep)) ? S3C_ESR : S3C_EP0SR; in s3c_hsudc_read_fifo()
461 set_index(hsudc, ep_index(hsep)); in s3c_hsudc_set_halt()
462 offset = (ep_index(hsep)) ? S3C_ECR : S3C_EP0CR; in s3c_hsudc_set_halt()
467 if (ep_index(hsep)) in s3c_hsudc_set_halt()
734 __set_bit(ep_index(hsep), hsudc->regs + S3C_EIER); in s3c_hsudc_ep_enable()
759 __clear_bit(ep_index(hsep), hsudc->regs + S3C_EIER); in s3c_hsudc_ep_disable()
840 if (!ep_index(hsep) && _req->length == 0) { in s3c_hsudc_queue()
848 offset = (ep_index(hsep)) ? S3C_ESR : S3C_EP0SR; in s3c_hsudc_queue()
Dfsl_udc_core.c601 struct_ep_qh_setup(udc, (unsigned char) ep_index(ep), in fsl_ep_enable()
609 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()
1030 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.c2691 unsigned int ep_index = trb_read_endpoint_id(event); in tegra_xudc_handle_transfer_event() local
2692 struct tegra_xudc_ep *ep = &xudc->ep[ep_index]; in tegra_xudc_handle_transfer_event()
2698 ep_index); in tegra_xudc_handle_transfer_event()
2719 dev_info(xudc->dev, "stream rejected on EP %u\n", ep_index); in tegra_xudc_handle_transfer_event()
2724 dev_info(xudc->dev, "prime pipe received on EP %u\n", ep_index); in tegra_xudc_handle_transfer_event()
2733 ep_wait_for_stopped(xudc, ep_index); in tegra_xudc_handle_transfer_event()
2742 ep_wait_for_stopped(xudc, ep_index); in tegra_xudc_handle_transfer_event()
2755 comp_code, ep_index); in tegra_xudc_handle_transfer_event()
2757 ep_halt(xudc, ep_index); in tegra_xudc_handle_transfer_event()
2778 ep_index); in tegra_xudc_handle_transfer_event()
[all …]
Dfsl_qe_udc.c1701 if (!_ep || (!ep->ep.desc && ep_index(ep))) { in __qe_ep_queue()
1741 if (ep_index(ep) == 0 && req->req.length > 0) { in __qe_ep_queue()
/Linux-v5.10/drivers/usb/dwc2/
Dgadget.c63 u32 ep_index, u32 dir_in) in index_to_ep() argument
66 return hsotg->eps_in[ep_index]; in index_to_ep()
68 return hsotg->eps_out[ep_index]; in index_to_ep()