Lines Matching refs:ep_index
1344 unsigned int xhci_get_endpoint_address(unsigned int ep_index)
1346 unsigned int number = DIV_ROUND_UP(ep_index, 2);
1347 unsigned int direction = ep_index % 2 ? USB_DIR_OUT : USB_DIR_IN;
1364 static unsigned int xhci_get_endpoint_flag_from_index(unsigned int ep_index)
1366 return 1 << (ep_index + 1);
1431 unsigned int ep_index, struct urb *urb, gfp_t mem_flags)
1442 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index);
1476 xhci->devs[slot_id]->out_ctx, ep_index);
1478 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index);
1509 unsigned int slot_id, ep_index;
1522 ep_index = xhci_get_endpoint_index(&urb->ep->desc);
1523 ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state;
1561 ep_index, urb, mem_flags);
1594 slot_id, ep_index);
1598 slot_id, ep_index);
1602 slot_id, ep_index);
1606 slot_id, ep_index);
1657 unsigned int ep_index;
1679 ep_index = xhci_get_endpoint_index(&urb->ep->desc);
1680 ep = &vdev->eps[ep_index];
1752 ep_index, 0);
1787 unsigned int ep_index;
1817 ep_index = xhci_get_endpoint_index(&ep->desc);
1818 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index);
1826 if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL)
1838 xhci_debugfs_remove_endpoint(xhci, xhci->devs[udev->slot_id], ep_index);
1871 unsigned int ep_index;
1909 ep_index = xhci_get_endpoint_index(&ep->desc);
1913 if (virt_dev->eps[ep_index].ring &&
1944 xhci_ring_free(xhci, virt_dev->eps[ep_index].new_ring);
1945 virt_dev->eps[ep_index].new_ring = NULL;
1964 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index);
3045 unsigned int slot_id, unsigned int ep_index,
3063 xhci->devs[slot_id]->out_ctx, ep_index);
3064 ep_ctx = xhci_get_ep_ctx(xhci, in_ctx, ep_index);
3077 added_ctxs = xhci_get_endpoint_flag_from_index(ep_index);
3084 unsigned int ep_index, unsigned int stream_id,
3094 xhci_find_new_dequeue_state(xhci, slot_id, ep_index, stream_id, td,
3107 ep_index, &deq_state);
3118 ep_index, &deq_state);
3130 unsigned int ep_index;
3144 ep_index = xhci_get_endpoint_index(&host_ep->desc);
3145 ep = &vdev->eps[ep_index];
3185 unsigned int ep_index;
3203 ep_index = xhci_get_endpoint_index(&host_ep->desc);
3204 ep = &vdev->eps[ep_index];
3253 ep_index, 0);
3281 xhci_endpoint_copy(xhci, cfg_cmd->in_ctx, vdev->out_ctx, ep_index);
3312 unsigned int ep_index;
3327 ep_index = xhci_get_endpoint_index(&ep->desc);
3328 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state;
3338 if (!list_empty(&xhci->devs[slot_id]->eps[ep_index].ring->td_list)) {
3411 unsigned int ep_index;
3420 ep_index = xhci_get_endpoint_index(&eps[i]->desc);
3421 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state;
3471 unsigned int ep_index;
3531 ep_index = xhci_get_endpoint_index(&eps[i]->desc);
3532 vdev->eps[ep_index].ep_state |= EP_GETTING_STREAMS;
3545 ep_index = xhci_get_endpoint_index(&eps[i]->desc);
3547 vdev->eps[ep_index].stream_info = xhci_alloc_stream_info(xhci,
3551 if (!vdev->eps[ep_index].stream_info)
3562 ep_index = xhci_get_endpoint_index(&eps[i]->desc);
3563 ep_ctx = xhci_get_ep_ctx(xhci, config_cmd->in_ctx, ep_index);
3566 vdev->out_ctx, ep_index);
3568 vdev->eps[ep_index].stream_info);
3590 ep_index = xhci_get_endpoint_index(&eps[i]->desc);
3591 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS;
3593 udev->slot_id, ep_index);
3594 vdev->eps[ep_index].ep_state |= EP_HAS_STREAMS;
3600 ep_index = xhci_get_endpoint_index(&eps[i]->desc);
3601 xhci_debugfs_create_stream_files(xhci, vdev, ep_index);
3609 ep_index = xhci_get_endpoint_index(&eps[i]->desc);
3610 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info);
3611 vdev->eps[ep_index].stream_info = NULL;
3615 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS;
3616 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS;
3638 unsigned int ep_index;
3658 ep_index = xhci_get_endpoint_index(&eps[0]->desc);
3659 command = vdev->eps[ep_index].stream_info->free_streams_command;
3671 ep_index = xhci_get_endpoint_index(&eps[i]->desc);
3672 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index);
3673 xhci->devs[udev->slot_id]->eps[ep_index].ep_state |=
3677 vdev->out_ctx, ep_index);
3679 &vdev->eps[ep_index]);
3700 ep_index = xhci_get_endpoint_index(&eps[i]->desc);
3701 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info);
3702 vdev->eps[ep_index].stream_info = NULL;
3706 vdev->eps[ep_index].ep_state &= ~EP_GETTING_NO_STREAMS;
3707 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS;
5372 unsigned int ep_index;
5380 ep_index = xhci_get_endpoint_index(&ep->desc);
5382 xhci->devs[slot_id]->eps[ep_index].ep_state &= ~EP_CLEARING_TT;
5383 xhci_ring_doorbell_for_active_rings(xhci, slot_id, ep_index);