Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/usb/host/
Dxhci-ring.c327 unsigned int ep_index, in xhci_ring_ep_doorbell() argument
331 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_ring_ep_doorbell()
343 writel(DB_VALUE(ep_index, stream_id), db_addr); in xhci_ring_ep_doorbell()
352 unsigned int ep_index) in ring_doorbell_for_active_rings() argument
357 ep = &xhci->devs[slot_id]->eps[ep_index]; in ring_doorbell_for_active_rings()
362 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, 0); in ring_doorbell_for_active_rings()
370 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, in ring_doorbell_for_active_rings()
376 unsigned int slot_id, unsigned int ep_index, in xhci_triad_to_transfer_ring() argument
381 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_triad_to_transfer_ring()
390 slot_id, ep_index); in xhci_triad_to_transfer_ring()
[all …]
Dxhci.c1159 unsigned int xhci_get_endpoint_address(unsigned int ep_index) in xhci_get_endpoint_address() argument
1161 unsigned int number = DIV_ROUND_UP(ep_index, 2); in xhci_get_endpoint_address()
1162 unsigned int direction = ep_index % 2 ? USB_DIR_OUT : USB_DIR_IN; in xhci_get_endpoint_address()
1179 unsigned int xhci_get_endpoint_flag_from_index(unsigned int ep_index) in xhci_get_endpoint_flag_from_index() argument
1181 return 1 << (ep_index + 1); in xhci_get_endpoint_flag_from_index()
1246 unsigned int ep_index, struct urb *urb) in xhci_check_maxpacket() argument
1257 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_check_maxpacket()
1291 xhci->devs[slot_id]->out_ctx, ep_index); in xhci_check_maxpacket()
1293 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_check_maxpacket()
1301 xhci_dbg_ctx(xhci, command->in_ctx, ep_index); in xhci_check_maxpacket()
[all …]
Dxhci.h1741 unsigned int slot_id, unsigned int ep_index,
1755 unsigned int xhci_get_endpoint_address(unsigned int ep_index);
1757 unsigned int xhci_get_endpoint_flag_from_index(unsigned int ep_index);
1777 unsigned int ep_index);
1789 unsigned int ep_index);
1807 unsigned int ep_index,
1883 int slot_id, unsigned int ep_index, int suspend);
1885 int slot_id, unsigned int ep_index);
1887 int slot_id, unsigned int ep_index);
1889 int slot_id, unsigned int ep_index);
[all …]
Dxhci-mem.c400 unsigned int ep_index) in xhci_free_or_cache_endpoint_ring() argument
407 virt_dev->eps[ep_index].ring; in xhci_free_or_cache_endpoint_ring()
414 xhci_ring_free(xhci, virt_dev->eps[ep_index].ring); in xhci_free_or_cache_endpoint_ring()
419 virt_dev->eps[ep_index].ring = NULL; in xhci_free_or_cache_endpoint_ring()
559 unsigned int ep_index) in xhci_get_ep_ctx() argument
562 ep_index++; in xhci_get_ep_ctx()
564 ep_index++; in xhci_get_ep_ctx()
567 (ctx->bytes + (ep_index * CTX_SIZE(xhci->hcc_params))); in xhci_get_ep_ctx()
631 unsigned int ep_index, in xhci_stream_id_to_ring() argument
634 struct xhci_virt_ep *ep = &dev->eps[ep_index]; in xhci_stream_id_to_ring()
[all …]
Dxhci-dbg.c387 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()
/linux-4.4.14/drivers/usb/gadget/udc/
Dfsl_usb2_udc.h574 #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()
Dfsl_udc_core.c606 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 …]
Ds3c-hsudc.c160 #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()
Dfsl_qe_udc.h156 #define ep_index(EP) ((EP)->ep.desc->bEndpointAddress & 0xF) macro
158 #define ep_is_in(EP) ((ep_index(EP) == 0) ? (EP->udc->ep0_dir == \
Dfsl_qe_udc.c1711 if (!_ep || (!ep->ep.desc && ep_index(ep))) { in __qe_ep_queue()
1751 if (ep_index(ep) == 0 && req->req.length > 0) { in __qe_ep_queue()
/linux-4.4.14/drivers/usb/dwc2/
Dgadget.c64 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()