/Linux-v4.19/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() 441 unsigned int slot_id, unsigned int ep_index, in xhci_triad_to_transfer_ring() argument 446 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_triad_to_transfer_ring() 455 slot_id, ep_index); in xhci_triad_to_transfer_ring() [all …]
|
D | xhci.c | 1248 unsigned int xhci_get_endpoint_address(unsigned int ep_index) in xhci_get_endpoint_address() argument 1250 unsigned int number = DIV_ROUND_UP(ep_index, 2); in xhci_get_endpoint_address() 1251 unsigned int direction = ep_index % 2 ? USB_DIR_OUT : USB_DIR_IN; in xhci_get_endpoint_address() 1268 static unsigned int xhci_get_endpoint_flag_from_index(unsigned int ep_index) in xhci_get_endpoint_flag_from_index() argument 1270 return 1 << (ep_index + 1); in xhci_get_endpoint_flag_from_index() 1335 unsigned int ep_index, struct urb *urb) in xhci_check_maxpacket() argument 1346 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_check_maxpacket() 1380 xhci->devs[slot_id]->out_ctx, ep_index); in xhci_check_maxpacket() 1382 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_check_maxpacket() 1412 unsigned int slot_id, ep_index; in xhci_urb_enqueue() local [all …]
|
D | xhci-debugfs.h | 113 int ep_index); 116 int ep_index); 127 int ep_index) { } in xhci_debugfs_create_endpoint() argument 131 int ep_index) { } in xhci_debugfs_remove_endpoint() argument
|
D | xhci-debugfs.c | 438 int ep_index) in xhci_debugfs_create_endpoint() argument 443 if (spriv->eps[ep_index]) in xhci_debugfs_create_endpoint() 450 snprintf(epriv->name, sizeof(epriv->name), "ep%02d", ep_index); in xhci_debugfs_create_endpoint() 452 &dev->eps[ep_index].ring, in xhci_debugfs_create_endpoint() 455 spriv->eps[ep_index] = epriv; in xhci_debugfs_create_endpoint() 460 int ep_index) in xhci_debugfs_remove_endpoint() argument 465 if (!spriv || !spriv->eps[ep_index]) in xhci_debugfs_remove_endpoint() 468 epriv = spriv->eps[ep_index]; in xhci_debugfs_remove_endpoint() 470 spriv->eps[ep_index] = NULL; in xhci_debugfs_remove_endpoint()
|
D | xhci.h | 1958 unsigned int xhci_get_endpoint_address(unsigned int ep_index); 1972 unsigned int ep_index); 1992 unsigned int ep_index); 2011 unsigned int ep_index, 2064 int slot_id, unsigned int ep_index, int suspend); 2066 int slot_id, unsigned int ep_index); 2068 int slot_id, unsigned int ep_index); 2070 int slot_id, unsigned int ep_index); 2072 struct urb *urb, int slot_id, unsigned int ep_index); 2079 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 | 319 unsigned int ep_index; in xhci_mtk_add_ep_quirk() local 325 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_mtk_add_ep_quirk() 327 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_mtk_add_ep_quirk()
|
/Linux-v4.19/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-v4.19/drivers/usb/dwc2/ |
D | gadget.c | 61 u32 ep_index, u32 dir_in) in index_to_ep() argument 64 return hsotg->eps_in[ep_index]; in index_to_ep() 66 return hsotg->eps_out[ep_index]; in index_to_ep()
|