/linux-master/drivers/usb/host/ |
H A D | xhci-debugfs.h | 115 int ep_index); 118 int ep_index); 121 int ep_index); 132 int ep_index) { } 136 int ep_index) { } 140 int ep_index) { } 130 xhci_debugfs_create_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index) argument 134 xhci_debugfs_remove_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index) argument 138 xhci_debugfs_create_stream_files(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index) argument
|
H A D | xhci-debugfs.c | 281 int ep_index; local 291 for (ep_index = 0; ep_index < 31; ep_index++) { 292 ep_ctx = xhci_get_ep_ctx(xhci, dev->out_ctx, ep_index); 293 dma = dev->out_ctx->dma + (ep_index + 1) * CTX_SIZE(xhci->hcc_params); 446 int ep_index) 454 if (spriv->eps[ep_index]) 461 epriv->show_ring = dev->eps[ep_index].ring; 463 snprintf(epriv->name, sizeof(epriv->name), "ep%02d", ep_index); 444 xhci_debugfs_create_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *dev, int ep_index) argument 471 xhci_debugfs_remove_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *dev, int ep_index) argument 567 xhci_debugfs_create_stream_files(struct xhci_hcd *xhci, struct xhci_virt_device *dev, int ep_index) argument [all...] |
H A D | xhci-ring.c | 496 unsigned int ep_index, 500 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; 513 trace_xhci_ring_ep_doorbell(slot_id, DB_VALUE(ep_index, stream_id)); 515 writel(DB_VALUE(ep_index, stream_id), db_addr); 523 unsigned int ep_index) 528 ep = &xhci->devs[slot_id]->eps[ep_index]; 533 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, 0); 541 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, 548 unsigned int ep_index) 550 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); 494 xhci_ring_ep_doorbell(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id) argument 521 ring_doorbell_for_active_rings(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index) argument 546 xhci_ring_doorbell_for_active_rings(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index) argument 553 xhci_get_virt_ep(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index) argument 597 xhci_triad_to_transfer_ring(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id) argument 617 xhci_get_hw_deq(struct xhci_hcd *xhci, struct xhci_virt_device *vdev, unsigned int ep_index, unsigned int stream_id) argument 634 xhci_move_dequeue_past_td(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id, struct xhci_td *td) argument 919 xhci_reset_halted_ep(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, enum xhci_ep_reset_type reset_type) argument 1107 unsigned int ep_index; local 1218 xhci_kill_endpoint_urbs(struct xhci_hcd *xhci, int slot_id, int ep_index) argument 1299 update_ring_for_set_deq_completion(struct xhci_hcd *xhci, struct xhci_virt_device *dev, struct xhci_ring *ep_ring, unsigned int ep_index) argument 1346 unsigned int ep_index; local 1457 unsigned int ep_index; local 1518 unsigned int ep_index; local 2584 int ep_index; local 3306 prepare_transfer(struct xhci_hcd *xhci, struct xhci_virt_device *xdev, unsigned int ep_index, unsigned int stream_id, unsigned int num_trbs, struct urb *urb, unsigned int td_index, gfp_t mem_flags) argument 3413 giveback_first_trb(struct xhci_hcd *xhci, int slot_id, unsigned int ep_index, unsigned int stream_id, int start_cycle, struct xhci_generic_trb *start_trb) argument 3465 xhci_queue_intr_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) argument 3593 xhci_queue_bulk_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) argument 3754 xhci_queue_ctrl_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) argument 4052 xhci_queue_isoc_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) argument 4246 xhci_queue_isoc_tx_prepare(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) argument 4429 xhci_queue_stop_endpoint(struct xhci_hcd *xhci, struct xhci_command *cmd, int slot_id, unsigned int ep_index, int suspend) argument 4441 xhci_queue_reset_ep(struct xhci_hcd *xhci, struct xhci_command *cmd, int slot_id, unsigned int ep_index, enum xhci_ep_reset_type reset_type) argument [all...] |
H A D | xhci.c | 1383 static unsigned int xhci_get_endpoint_address(unsigned int ep_index) argument 1385 unsigned int number = DIV_ROUND_UP(ep_index, 2); 1386 unsigned int direction = ep_index % 2 ? USB_DIR_OUT : USB_DIR_IN; 1538 unsigned int slot_id, ep_index; local 1543 ep_index = xhci_get_endpoint_index(&urb->ep->desc); 1594 ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state; 1612 slot_id, ep_index); 1616 slot_id, ep_index); 1620 slot_id, ep_index); 1624 slot_id, ep_index); 1675 unsigned int ep_index; local 1807 unsigned int ep_index; local 1889 unsigned int ep_index; local 3055 unsigned int ep_index; local 3111 unsigned int ep_index; local 3254 unsigned int ep_index; local 3353 unsigned int ep_index; local 3413 unsigned int ep_index; local 3580 unsigned int ep_index; local 5317 unsigned int ep_index; local [all...] |
H A D | xhci-mem.c | 420 unsigned int ep_index) 422 xhci_ring_free(xhci, virt_dev->eps[ep_index].ring); 423 virt_dev->eps[ep_index].ring = NULL; 520 unsigned int ep_index) 523 ep_index++; 525 ep_index++; 528 (ctx->bytes + (ep_index * CTX_SIZE(xhci->hcc_params))); 984 dev->eps[i].ep_index = i; 1400 unsigned int ep_index; local 1413 ep_index 418 xhci_free_endpoint_ring(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, unsigned int ep_index) argument 518 xhci_get_ep_ctx(struct xhci_hcd *xhci, struct xhci_container_ctx *ctx, unsigned int ep_index) argument 1497 unsigned int ep_index; local 1580 xhci_endpoint_copy(struct xhci_hcd *xhci, struct xhci_container_ctx *in_ctx, struct xhci_container_ctx *out_ctx, unsigned int ep_index) argument [all...] |
H A D | xhci.h | 650 unsigned int ep_index; member in struct:xhci_virt_ep 993 /* Stop Endpoint TRB - ep_index to endpoint ID for this TRB */ 1790 unsigned int ep_index); 1807 unsigned int ep_index); 1891 int slot_id, unsigned int ep_index, int suspend); 1893 int slot_id, unsigned int ep_index); 1895 int slot_id, unsigned int ep_index); 1897 int slot_id, unsigned int ep_index); 1899 struct urb *urb, int slot_id, unsigned int ep_index); 1906 int slot_id, unsigned int ep_index, [all...] |
H A D | xhci-mtk-sch.c | 919 unsigned int ep_index; local 922 ep_index = xhci_get_endpoint_index(&ep->desc); 923 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); 986 unsigned int ep_index = xhci_get_endpoint_index(&ep->desc); local 995 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index);
|
/linux-master/drivers/usb/gadget/udc/ |
H A D | fsl_usb2_udc.h | 523 #define ep_index(EP) ((EP)->ep.desc->bEndpointAddress&0xF) macro 525 #define ep_is_in(EP) ( (ep_index(EP) == 0) ? (EP->udc->ep0_dir == \ 532 #define get_pipe_by_ep(EP) (ep_index(EP) * 2 + ep_is_in(EP)) 537 if (ep_index(ep) != 0)
|
H A D | fsl_udc_core.c | 598 struct_ep_qh_setup(udc, (unsigned char) ep_index(ep), 606 dr_ep_setup((unsigned char) ep_index(ep), 645 ep_num = ep_index(ep); 717 fsl_writel(ep_is_in(ep) ? (1 << (ep_index(ep) + 16)) 718 : (1 << (ep_index(ep))), &dr_regs->endpointprime); 730 ? (1 << (ep_index(ep) + 16)) 731 : (1 << (ep_index(ep))); 734 if (!(list_empty(&ep->queue)) && !(ep_index(ep) == 0)) { 937 ep_num = ep_index(ep); 1032 ep_num = (unsigned char)(ep_index(e [all...] |
H A 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 == \
|
H A D | tegra-xudc.c | 2704 unsigned int ep_index = trb_read_endpoint_id(event); local 2705 struct tegra_xudc_ep *ep = &xudc->ep[ep_index]; 2711 ep_index); 2732 dev_info(xudc->dev, "stream rejected on EP %u\n", ep_index); 2737 dev_info(xudc->dev, "prime pipe received on EP %u\n", ep_index); 2746 ep_wait_for_stopped(xudc, ep_index); 2755 ep_wait_for_stopped(xudc, ep_index); 2768 comp_code, ep_index); 2770 ep_halt(xudc, ep_index); 2791 ep_index); [all...] |
H A D | fsl_qe_udc.c | 1708 if (!_ep || (!ep->ep.desc && ep_index(ep))) { 1748 if (ep_index(ep) == 0 && req->req.length > 0) {
|
/linux-master/drivers/usb/cdns3/ |
H A D | cdnsp-ring.c | 399 unsigned int ep_index, 1180 int ep_index; local 1185 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; 1189 pep = &pdev->eps[ep_index]; 1239 int ep_index; local 1242 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; 1246 pep = &pdev->eps[ep_index]; 1369 "part of current TD ep_index %d " 1370 "comp_code %u\n", ep_index, 2411 void cdnsp_queue_stop_endpoint(struct cdnsp_device *pdev, unsigned int ep_index) argument 398 cdnsp_get_hw_deq(struct cdnsp_device *pdev, unsigned int ep_index, unsigned int stream_id) argument 2440 cdnsp_queue_reset_ep(struct cdnsp_device *pdev, unsigned int ep_index) argument 2451 cdnsp_queue_halt_endpoint(struct cdnsp_device *pdev, unsigned int ep_index) argument [all...] |
H A D | cdnsp-gadget.h | 966 /* Stop Endpoint TRB - ep_index to endpoint ID for this TRB. */ 1530 unsigned int ep_index); 1537 void cdnsp_queue_reset_ep(struct cdnsp_device *pdev, unsigned int ep_index); 1539 unsigned int ep_index); 1559 unsigned int ep_index);
|
H A D | cdnsp-mem.c | 507 unsigned int ep_index) 510 ep_index++; 512 ep_index++; 514 return (struct cdnsp_ep_ctx *)(ctx->bytes + (ep_index * ctx->ctx_size)); 506 cdnsp_get_ep_ctx(struct cdnsp_container_ctx *ctx, unsigned int ep_index) argument
|
/linux-master/drivers/usb/dwc2/ |
H A D | gadget.c | 62 u32 ep_index, u32 dir_in) 65 return hsotg->eps_in[ep_index]; 67 return hsotg->eps_out[ep_index]; 61 index_to_ep(struct dwc2_hsotg *hsotg, u32 ep_index, u32 dir_in) argument
|