Lines Matching refs:ep_index
1386 static unsigned int xhci_get_endpoint_address(unsigned int ep_index) in xhci_get_endpoint_address() argument
1388 unsigned int number = DIV_ROUND_UP(ep_index, 2); in xhci_get_endpoint_address()
1389 unsigned int direction = ep_index % 2 ? USB_DIR_OUT : USB_DIR_IN; in xhci_get_endpoint_address()
1541 unsigned int slot_id, ep_index; in xhci_urb_enqueue() local
1546 ep_index = xhci_get_endpoint_index(&urb->ep->desc); in xhci_urb_enqueue()
1597 ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_urb_enqueue()
1615 slot_id, ep_index); in xhci_urb_enqueue()
1619 slot_id, ep_index); in xhci_urb_enqueue()
1623 slot_id, ep_index); in xhci_urb_enqueue()
1627 slot_id, ep_index); in xhci_urb_enqueue()
1678 unsigned int ep_index; in xhci_urb_dequeue() local
1700 ep_index = xhci_get_endpoint_index(&urb->ep->desc); in xhci_urb_dequeue()
1701 ep = &vdev->eps[ep_index]; in xhci_urb_dequeue()
1767 urb->dev->slot_id, ep_index, ep->ep_state); in xhci_urb_dequeue()
1775 urb->dev->slot_id, ep_index, ep->ep_state); in xhci_urb_dequeue()
1787 ep_index, 0); in xhci_urb_dequeue()
1822 unsigned int ep_index; in xhci_drop_endpoint() local
1852 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_drop_endpoint()
1853 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_drop_endpoint()
1861 if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL) in xhci_drop_endpoint()
1873 xhci_debugfs_remove_endpoint(xhci, xhci->devs[udev->slot_id], ep_index); in xhci_drop_endpoint()
1904 unsigned int ep_index; in xhci_add_endpoint() local
1942 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_add_endpoint()
1946 if (virt_dev->eps[ep_index].ring && in xhci_add_endpoint()
1988 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_add_endpoint()
2824 ep->ep_index, suspend); in xhci_stop_endpoint_sync()
3115 unsigned int ep_index; in xhci_endpoint_disable() local
3129 ep_index = xhci_get_endpoint_index(&host_ep->desc); in xhci_endpoint_disable()
3130 ep = &vdev->eps[ep_index]; in xhci_endpoint_disable()
3171 unsigned int ep_index; in xhci_endpoint_reset() local
3177 ep_index = xhci_get_endpoint_index(&host_ep->desc); in xhci_endpoint_reset()
3184 if (usb_endpoint_xfer_control(&host_ep->desc) && ep_index == 0) { in xhci_endpoint_reset()
3208 ep = &vdev->eps[ep_index]; in xhci_endpoint_reset()
3255 ep_index, 0); in xhci_endpoint_reset()
3283 xhci_endpoint_copy(xhci, cfg_cmd->in_ctx, vdev->out_ctx, ep_index); in xhci_endpoint_reset()
3314 unsigned int ep_index; in xhci_check_streams_endpoint() local
3329 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_check_streams_endpoint()
3330 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_check_streams_endpoint()
3340 if (!list_empty(&xhci->devs[slot_id]->eps[ep_index].ring->td_list)) { in xhci_check_streams_endpoint()
3413 unsigned int ep_index; in xhci_calculate_no_streams_bitmask() local
3422 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_calculate_no_streams_bitmask()
3423 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_calculate_no_streams_bitmask()
3473 unsigned int ep_index; in xhci_alloc_streams() local
3533 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3534 vdev->eps[ep_index].ep_state |= EP_GETTING_STREAMS; in xhci_alloc_streams()
3547 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3549 vdev->eps[ep_index].stream_info = xhci_alloc_stream_info(xhci, in xhci_alloc_streams()
3553 if (!vdev->eps[ep_index].stream_info) in xhci_alloc_streams()
3564 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3565 ep_ctx = xhci_get_ep_ctx(xhci, config_cmd->in_ctx, ep_index); in xhci_alloc_streams()
3568 vdev->out_ctx, ep_index); in xhci_alloc_streams()
3570 vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3592 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3593 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3595 udev->slot_id, ep_index); in xhci_alloc_streams()
3596 vdev->eps[ep_index].ep_state |= EP_HAS_STREAMS; in xhci_alloc_streams()
3602 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3603 xhci_debugfs_create_stream_files(xhci, vdev, ep_index); in xhci_alloc_streams()
3611 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3612 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3613 vdev->eps[ep_index].stream_info = NULL; in xhci_alloc_streams()
3617 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3618 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_alloc_streams()
3640 unsigned int ep_index; in xhci_free_streams() local
3660 ep_index = xhci_get_endpoint_index(&eps[0]->desc); in xhci_free_streams()
3661 command = vdev->eps[ep_index].stream_info->free_streams_command; in xhci_free_streams()
3673 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3674 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_free_streams()
3675 xhci->devs[udev->slot_id]->eps[ep_index].ep_state |= in xhci_free_streams()
3679 vdev->out_ctx, ep_index); in xhci_free_streams()
3681 &vdev->eps[ep_index]); in xhci_free_streams()
3702 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3703 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_free_streams()
3704 vdev->eps[ep_index].stream_info = NULL; in xhci_free_streams()
3708 vdev->eps[ep_index].ep_state &= ~EP_GETTING_NO_STREAMS; in xhci_free_streams()
3709 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_free_streams()
5395 unsigned int ep_index; in xhci_clear_tt_buffer_complete() local
5403 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_clear_tt_buffer_complete()
5405 xhci->devs[slot_id]->eps[ep_index].ep_state &= ~EP_CLEARING_TT; in xhci_clear_tt_buffer_complete()
5406 xhci_ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_clear_tt_buffer_complete()