| /Linux-v5.15/drivers/usb/host/ |
| D | xhci-ring.c | 421 unsigned int ep_index, in xhci_ring_ep_doorbell() argument 425 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_ring_ep_doorbell() 438 trace_xhci_ring_ep_doorbell(slot_id, DB_VALUE(ep_index, stream_id)); in xhci_ring_ep_doorbell() 440 writel(DB_VALUE(ep_index, stream_id), db_addr); in xhci_ring_ep_doorbell() 448 unsigned int ep_index) in ring_doorbell_for_active_rings() argument 453 ep = &xhci->devs[slot_id]->eps[ep_index]; in ring_doorbell_for_active_rings() 458 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, 0); in ring_doorbell_for_active_rings() 466 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, in ring_doorbell_for_active_rings() 473 unsigned int ep_index) in xhci_ring_doorbell_for_active_rings() argument 475 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_ring_doorbell_for_active_rings() [all …]
|
| 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
|
| D | xhci-debugfs.c | 280 int ep_index; in xhci_endpoint_context_show() local 290 for (ep_index = 0; ep_index < 31; ep_index++) { in xhci_endpoint_context_show() 291 ep_ctx = xhci_get_ep_ctx(xhci, dev->out_ctx, ep_index); in xhci_endpoint_context_show() 292 dma = dev->out_ctx->dma + (ep_index + 1) * CTX_SIZE(xhci->hcc_params); in xhci_endpoint_context_show() 445 int ep_index) in xhci_debugfs_create_endpoint() argument 453 if (spriv->eps[ep_index]) in xhci_debugfs_create_endpoint() 460 epriv->show_ring = dev->eps[ep_index].ring; in xhci_debugfs_create_endpoint() 462 snprintf(epriv->name, sizeof(epriv->name), "ep%02d", ep_index); in xhci_debugfs_create_endpoint() 467 spriv->eps[ep_index] = epriv; in xhci_debugfs_create_endpoint() 472 int ep_index) in xhci_debugfs_remove_endpoint() argument [all …]
|
| D | xhci.c | 1447 unsigned int xhci_get_endpoint_address(unsigned int ep_index) in xhci_get_endpoint_address() argument 1449 unsigned int number = DIV_ROUND_UP(ep_index, 2); in xhci_get_endpoint_address() 1450 unsigned int direction = ep_index % 2 ? USB_DIR_OUT : USB_DIR_IN; in xhci_get_endpoint_address() 1525 unsigned int ep_index, struct urb *urb, gfp_t mem_flags) in xhci_check_maxpacket() argument 1536 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_check_maxpacket() 1570 xhci->devs[slot_id]->out_ctx, ep_index); in xhci_check_maxpacket() 1572 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_check_maxpacket() 1603 unsigned int slot_id, ep_index; in xhci_urb_enqueue() local 1613 ep_index = xhci_get_endpoint_index(&urb->ep->desc); in xhci_urb_enqueue() 1614 ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_urb_enqueue() [all …]
|
| D | xhci-mem.c | 413 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() 1000 dev->eps[i].ep_index = i; in xhci_alloc_virt_device() 1422 unsigned int ep_index; in xhci_endpoint_init() local 1435 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_endpoint_init() [all …]
|
| D | xhci.h | 925 unsigned int ep_index; member 2019 unsigned int xhci_get_endpoint_address(unsigned int ep_index); 2033 unsigned int ep_index); 2055 unsigned int ep_index); 2130 int slot_id, unsigned int ep_index, int suspend); 2132 int slot_id, unsigned int ep_index); 2134 int slot_id, unsigned int ep_index); 2136 int slot_id, unsigned int ep_index); 2138 struct urb *urb, int slot_id, unsigned int ep_index); 2145 int slot_id, unsigned int ep_index, [all …]
|
| D | xhci-mtk-sch.c | 694 unsigned int ep_index; in add_ep_quirk() local 697 ep_index = xhci_get_endpoint_index(&ep->desc); in add_ep_quirk() 698 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in add_ep_quirk() 761 unsigned int ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_mtk_check_bandwidth() local 770 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_mtk_check_bandwidth()
|
| /Linux-v5.15/drivers/usb/gadget/udc/ |
| D | fsl_usb2_udc.h | 570 #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()
|
| D | s3c-hsudc.c | 155 #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()
|
| D | fsl_udc_core.c | 598 struct_ep_qh_setup(udc, (unsigned char) ep_index(ep), in fsl_ep_enable() 606 dr_ep_setup((unsigned char) ep_index(ep), in fsl_ep_enable() 642 ep_num = ep_index(ep); in fsl_ep_disable() 714 fsl_writel(ep_is_in(ep) ? (1 << (ep_index(ep) + 16)) in fsl_prime_ep() 715 : (1 << (ep_index(ep))), &dr_regs->endpointprime); in fsl_prime_ep() 727 ? (1 << (ep_index(ep) + 16)) in fsl_queue_td() 728 : (1 << (ep_index(ep))); in fsl_queue_td() 731 if (!(list_empty(&ep->queue)) && !(ep_index(ep) == 0)) { in fsl_queue_td() 934 ep_num = ep_index(ep); in fsl_ep_dequeue() 1027 ep_num = (unsigned char)(ep_index(ep)); in fsl_ep_set_halt() [all …]
|
| 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 == \
|
| D | tegra-xudc.c | 2691 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 …]
|
| D | fsl_qe_udc.c | 1707 if (!_ep || (!ep->ep.desc && ep_index(ep))) { in __qe_ep_queue() 1747 if (ep_index(ep) == 0 && req->req.length > 0) { in __qe_ep_queue()
|
| /Linux-v5.15/drivers/usb/cdns3/ |
| D | cdnsp-ring.c | 399 unsigned int ep_index, in cdnsp_get_hw_deq() argument 1178 int ep_index; in cdnsp_handle_tx_nrdy() local 1183 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in cdnsp_handle_tx_nrdy() 1187 pep = &pdev->eps[ep_index]; in cdnsp_handle_tx_nrdy() 1237 int ep_index; in cdnsp_handle_tx_event() local 1240 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in cdnsp_handle_tx_event() 1244 pep = &pdev->eps[ep_index]; in cdnsp_handle_tx_event() 1355 "comp_code %u\n", ep_index, in cdnsp_handle_tx_event() 2370 void cdnsp_queue_stop_endpoint(struct cdnsp_device *pdev, unsigned int ep_index) in cdnsp_queue_stop_endpoint() argument 2373 EP_ID_FOR_TRB(ep_index) | TRB_TYPE(TRB_STOP_RING)); in cdnsp_queue_stop_endpoint() [all …]
|
| D | cdnsp-gadget.h | 1532 unsigned int ep_index); 1539 void cdnsp_queue_reset_ep(struct cdnsp_device *pdev, unsigned int ep_index); 1541 unsigned int ep_index); 1543 unsigned int ep_index); 1563 unsigned int ep_index);
|
| 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-v5.15/drivers/usb/dwc2/ |
| D | gadget.c | 63 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()
|