| /Linux-v5.4/drivers/usb/host/ |
| D | xhci-ring.c | 388 unsigned int ep_index, in xhci_ring_ep_doorbell() argument 392 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_ring_ep_doorbell() 404 writel(DB_VALUE(ep_index, stream_id), db_addr); in xhci_ring_ep_doorbell() 413 unsigned int ep_index) in ring_doorbell_for_active_rings() argument 418 ep = &xhci->devs[slot_id]->eps[ep_index]; in ring_doorbell_for_active_rings() 423 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, 0); in ring_doorbell_for_active_rings() 431 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, in ring_doorbell_for_active_rings() 438 unsigned int ep_index) in xhci_ring_doorbell_for_active_rings() argument 440 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_ring_doorbell_for_active_rings() 448 unsigned int slot_id, unsigned int ep_index, in xhci_triad_to_transfer_ring() argument [all …]
|
| D | xhci.c | 1299 unsigned int xhci_get_endpoint_address(unsigned int ep_index) in xhci_get_endpoint_address() argument 1301 unsigned int number = DIV_ROUND_UP(ep_index, 2); in xhci_get_endpoint_address() 1302 unsigned int direction = ep_index % 2 ? USB_DIR_OUT : USB_DIR_IN; in xhci_get_endpoint_address() 1319 static unsigned int xhci_get_endpoint_flag_from_index(unsigned int ep_index) in xhci_get_endpoint_flag_from_index() argument 1321 return 1 << (ep_index + 1); in xhci_get_endpoint_flag_from_index() 1386 unsigned int ep_index, struct urb *urb) in xhci_check_maxpacket() argument 1397 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_check_maxpacket() 1431 xhci->devs[slot_id]->out_ctx, ep_index); in xhci_check_maxpacket() 1433 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_check_maxpacket() 1463 unsigned int slot_id, ep_index; in xhci_urb_enqueue() local [all …]
|
| D | xhci-debugfs.h | 112 int ep_index); 115 int ep_index); 126 int ep_index) { } in xhci_debugfs_create_endpoint() argument 130 int ep_index) { } in xhci_debugfs_remove_endpoint() argument
|
| D | xhci-debugfs.c | 438 int ep_index) in xhci_debugfs_create_endpoint() argument 446 if (spriv->eps[ep_index]) in xhci_debugfs_create_endpoint() 453 snprintf(epriv->name, sizeof(epriv->name), "ep%02d", ep_index); in xhci_debugfs_create_endpoint() 455 &dev->eps[ep_index].ring, in xhci_debugfs_create_endpoint() 458 spriv->eps[ep_index] = epriv; in xhci_debugfs_create_endpoint() 463 int ep_index) in xhci_debugfs_remove_endpoint() argument 468 if (!spriv || !spriv->eps[ep_index]) in xhci_debugfs_remove_endpoint() 471 epriv = spriv->eps[ep_index]; in xhci_debugfs_remove_endpoint() 473 spriv->eps[ep_index] = NULL; in xhci_debugfs_remove_endpoint()
|
| D | xhci.h | 1977 unsigned int xhci_get_endpoint_address(unsigned int ep_index); 1991 unsigned int ep_index); 2011 unsigned int ep_index); 2030 unsigned int ep_index, 2083 int slot_id, unsigned int ep_index, int suspend); 2085 int slot_id, unsigned int ep_index); 2087 int slot_id, unsigned int ep_index); 2089 int slot_id, unsigned int ep_index); 2091 struct urb *urb, int slot_id, unsigned int ep_index); 2098 int slot_id, unsigned int ep_index, [all …]
|
| D | xhci-mem.c | 404 unsigned int ep_index) in xhci_free_endpoint_ring() argument 406 xhci_ring_free(xhci, virt_dev->eps[ep_index].ring); in xhci_free_endpoint_ring() 407 virt_dev->eps[ep_index].ring = NULL; in xhci_free_endpoint_ring() 516 unsigned int ep_index) in xhci_get_ep_ctx() argument 519 ep_index++; in xhci_get_ep_ctx() 521 ep_index++; in xhci_get_ep_ctx() 524 (ctx->bytes + (ep_index * CTX_SIZE(xhci->hcc_params))); in xhci_get_ep_ctx() 588 unsigned int ep_index, in xhci_stream_id_to_ring() argument 591 struct xhci_virt_ep *ep = &dev->eps[ep_index]; in xhci_stream_id_to_ring() 1427 unsigned int ep_index; in xhci_endpoint_init() local [all …]
|
| D | xhci-mtk-sch.c | 603 unsigned int ep_index; in xhci_mtk_add_ep_quirk() local 609 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_mtk_add_ep_quirk() 611 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_mtk_add_ep_quirk()
|
| /Linux-v5.4/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 | fsl_udc_core.c | 602 struct_ep_qh_setup(udc, (unsigned char) ep_index(ep), in fsl_ep_enable() 610 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() 1031 ep_num = (unsigned char)(ep_index(ep)); in fsl_ep_set_halt() [all …]
|
| D | s3c-hsudc.c | 157 #define ep_index(_ep) ((_ep)->bEndpointAddress & \ macro 251 if (!ep_index(hsep)) { in s3c_hsudc_complete_request() 384 offset = (ep_index(hsep)) ? S3C_ESR : S3C_EP0SR; in s3c_hsudc_read_fifo() 510 set_index(hsudc, ep_index(hsep)); in s3c_hsudc_set_halt() 511 offset = (ep_index(hsep)) ? S3C_ECR : S3C_EP0CR; in s3c_hsudc_set_halt() 516 if (ep_index(hsep)) in s3c_hsudc_set_halt() 783 __set_bit(ep_index(hsep), hsudc->regs + S3C_EIER); in s3c_hsudc_ep_enable() 808 __clear_bit(ep_index(hsep), hsudc->regs + S3C_EIER); in s3c_hsudc_ep_disable() 889 if (!ep_index(hsep) && _req->length == 0) { in s3c_hsudc_queue() 897 offset = (ep_index(hsep)) ? S3C_ESR : S3C_EP0SR; in s3c_hsudc_queue()
|
| 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 | fsl_qe_udc.c | 1701 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.4/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()
|