/drivers/usb/host/ |
D | xhci-ring.c | 383 unsigned int ep_index, in xhci_ring_ep_doorbell() argument 387 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_ring_ep_doorbell() 399 writel(DB_VALUE(ep_index, stream_id), db_addr); in xhci_ring_ep_doorbell() 408 unsigned int ep_index) in ring_doorbell_for_active_rings() argument 413 ep = &xhci->devs[slot_id]->eps[ep_index]; in ring_doorbell_for_active_rings() 418 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, 0); in ring_doorbell_for_active_rings() 426 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, in ring_doorbell_for_active_rings() 436 unsigned int slot_id, unsigned int ep_index, in xhci_triad_to_transfer_ring() argument 441 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_triad_to_transfer_ring() 450 slot_id, ep_index); in xhci_triad_to_transfer_ring() [all …]
|
D | xhci.c | 1169 unsigned int xhci_get_endpoint_address(unsigned int ep_index) in xhci_get_endpoint_address() argument 1171 unsigned int number = DIV_ROUND_UP(ep_index, 2); in xhci_get_endpoint_address() 1172 unsigned int direction = ep_index % 2 ? USB_DIR_OUT : USB_DIR_IN; in xhci_get_endpoint_address() 1189 unsigned int xhci_get_endpoint_flag_from_index(unsigned int ep_index) in xhci_get_endpoint_flag_from_index() argument 1191 return 1 << (ep_index + 1); in xhci_get_endpoint_flag_from_index() 1256 unsigned int ep_index, struct urb *urb) in xhci_check_maxpacket() argument 1267 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_check_maxpacket() 1301 xhci->devs[slot_id]->out_ctx, ep_index); in xhci_check_maxpacket() 1303 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_check_maxpacket() 1311 xhci_dbg_ctx(xhci, command->in_ctx, ep_index); in xhci_check_maxpacket() [all …]
|
D | xhci.h | 1776 unsigned int slot_id, unsigned int ep_index, 1790 unsigned int xhci_get_endpoint_address(unsigned int ep_index); 1792 unsigned int xhci_get_endpoint_flag_from_index(unsigned int ep_index); 1812 unsigned int ep_index); 1824 unsigned int ep_index); 1843 unsigned int ep_index, 1919 int slot_id, unsigned int ep_index, int suspend); 1921 int slot_id, unsigned int ep_index); 1923 int slot_id, unsigned int ep_index); 1925 int slot_id, unsigned int ep_index); [all …]
|
D | xhci-mem.c | 412 unsigned int ep_index) in xhci_free_or_cache_endpoint_ring() argument 419 virt_dev->eps[ep_index].ring; in xhci_free_or_cache_endpoint_ring() 426 xhci_ring_free(xhci, virt_dev->eps[ep_index].ring); in xhci_free_or_cache_endpoint_ring() 431 virt_dev->eps[ep_index].ring = NULL; in xhci_free_or_cache_endpoint_ring() 571 unsigned int ep_index) in xhci_get_ep_ctx() argument 574 ep_index++; in xhci_get_ep_ctx() 576 ep_index++; in xhci_get_ep_ctx() 579 (ctx->bytes + (ep_index * CTX_SIZE(xhci->hcc_params))); in xhci_get_ep_ctx() 643 unsigned int ep_index, in xhci_stream_id_to_ring() argument 646 struct xhci_virt_ep *ep = &dev->eps[ep_index]; in xhci_stream_id_to_ring() [all …]
|
D | xhci-mtk-sch.c | 327 unsigned int ep_index; in xhci_mtk_add_ep_quirk() local 333 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_mtk_add_ep_quirk() 335 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_mtk_add_ep_quirk()
|
D | xhci-dbg.c | 387 unsigned int slot_id, unsigned int ep_index, in xhci_dbg_ep_rings() argument 397 slot_id, ep_index, i); in xhci_dbg_ep_rings() 405 slot_id, ep_index); in xhci_dbg_ep_rings()
|
/drivers/usb/gadget/udc/ |
D | fsl_usb2_udc.h | 574 #define ep_index(EP) ((EP)->ep.desc->bEndpointAddress&0xF) macro 576 #define ep_is_in(EP) ( (ep_index(EP) == 0) ? (EP->udc->ep0_dir == \ 583 #define get_pipe_by_ep(EP) (ep_index(EP) * 2 + ep_is_in(EP)) 588 if (ep_index(ep) != 0) in get_qh_by_ep()
|
D | fsl_udc_core.c | 606 struct_ep_qh_setup(udc, (unsigned char) ep_index(ep), in fsl_ep_enable() 614 dr_ep_setup((unsigned char) ep_index(ep), in fsl_ep_enable() 650 ep_num = ep_index(ep); in fsl_ep_disable() 722 fsl_writel(ep_is_in(ep) ? (1 << (ep_index(ep) + 16)) in fsl_prime_ep() 723 : (1 << (ep_index(ep))), &dr_regs->endpointprime); in fsl_prime_ep() 735 ? (1 << (ep_index(ep) + 16)) in fsl_queue_td() 736 : (1 << (ep_index(ep))); in fsl_queue_td() 739 if (!(list_empty(&ep->queue)) && !(ep_index(ep) == 0)) { in fsl_queue_td() 942 ep_num = ep_index(ep); in fsl_ep_dequeue() 1035 ep_num = (unsigned char)(ep_index(ep)); in fsl_ep_set_halt() [all …]
|
D | s3c-hsudc.c | 160 #define ep_index(_ep) ((_ep)->bEndpointAddress & \ macro 254 if (!ep_index(hsep)) { in s3c_hsudc_complete_request() 387 offset = (ep_index(hsep)) ? S3C_ESR : S3C_EP0SR; in s3c_hsudc_read_fifo() 513 set_index(hsudc, ep_index(hsep)); in s3c_hsudc_set_halt() 514 offset = (ep_index(hsep)) ? S3C_ECR : S3C_EP0CR; in s3c_hsudc_set_halt() 519 if (ep_index(hsep)) in s3c_hsudc_set_halt() 786 __set_bit(ep_index(hsep), hsudc->regs + S3C_EIER); in s3c_hsudc_ep_enable() 811 __clear_bit(ep_index(hsep), hsudc->regs + S3C_EIER); in s3c_hsudc_ep_disable() 892 if (!ep_index(hsep) && _req->length == 0) { in s3c_hsudc_queue() 900 offset = (ep_index(hsep)) ? S3C_ESR : S3C_EP0SR; in s3c_hsudc_queue()
|
D | fsl_qe_udc.h | 156 #define ep_index(EP) ((EP)->ep.desc->bEndpointAddress & 0xF) macro 158 #define ep_is_in(EP) ((ep_index(EP) == 0) ? (EP->udc->ep0_dir == \
|
D | fsl_qe_udc.c | 1705 if (!_ep || (!ep->ep.desc && ep_index(ep))) { in __qe_ep_queue() 1745 if (ep_index(ep) == 0 && req->req.length > 0) { in __qe_ep_queue()
|
/drivers/usb/dwc2/ |
D | gadget.c | 64 u32 ep_index, u32 dir_in) in index_to_ep() argument 67 return hsotg->eps_in[ep_index]; in index_to_ep() 69 return hsotg->eps_out[ep_index]; in index_to_ep()
|