Lines Matching refs:ep_index

1447 unsigned int xhci_get_endpoint_address(unsigned int ep_index)  in xhci_get_endpoint_address()  argument
1449 unsigned int number = DIV_ROUND_UP(ep_index, 2); in xhci_get_endpoint_address()
1450 unsigned int direction = ep_index % 2 ? USB_DIR_OUT : USB_DIR_IN; in xhci_get_endpoint_address()
1525 unsigned int ep_index, struct urb *urb, gfp_t mem_flags) in xhci_check_maxpacket() argument
1536 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_check_maxpacket()
1570 xhci->devs[slot_id]->out_ctx, ep_index); in xhci_check_maxpacket()
1572 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_check_maxpacket()
1603 unsigned int slot_id, ep_index; in xhci_urb_enqueue() local
1613 ep_index = xhci_get_endpoint_index(&urb->ep->desc); in xhci_urb_enqueue()
1614 ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_urb_enqueue()
1650 ep_index, urb, mem_flags); in xhci_urb_enqueue()
1683 slot_id, ep_index); in xhci_urb_enqueue()
1687 slot_id, ep_index); in xhci_urb_enqueue()
1691 slot_id, ep_index); in xhci_urb_enqueue()
1695 slot_id, ep_index); in xhci_urb_enqueue()
1746 unsigned int ep_index; in xhci_urb_dequeue() local
1768 ep_index = xhci_get_endpoint_index(&urb->ep->desc); in xhci_urb_dequeue()
1769 ep = &vdev->eps[ep_index]; in xhci_urb_dequeue()
1846 ep_index, 0); in xhci_urb_dequeue()
1881 unsigned int ep_index; in xhci_drop_endpoint() local
1911 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_drop_endpoint()
1912 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_drop_endpoint()
1920 if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL) in xhci_drop_endpoint()
1932 xhci_debugfs_remove_endpoint(xhci, xhci->devs[udev->slot_id], ep_index); in xhci_drop_endpoint()
1963 unsigned int ep_index; in xhci_add_endpoint() local
2001 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_add_endpoint()
2005 if (virt_dev->eps[ep_index].ring && in xhci_add_endpoint()
2047 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_add_endpoint()
3138 unsigned int ep_index; in xhci_endpoint_disable() local
3152 ep_index = xhci_get_endpoint_index(&host_ep->desc); in xhci_endpoint_disable()
3153 ep = &vdev->eps[ep_index]; in xhci_endpoint_disable()
3193 unsigned int ep_index; in xhci_endpoint_reset() local
3211 ep_index = xhci_get_endpoint_index(&host_ep->desc); in xhci_endpoint_reset()
3212 ep = &vdev->eps[ep_index]; in xhci_endpoint_reset()
3261 ep_index, 0); in xhci_endpoint_reset()
3289 xhci_endpoint_copy(xhci, cfg_cmd->in_ctx, vdev->out_ctx, ep_index); in xhci_endpoint_reset()
3320 unsigned int ep_index; in xhci_check_streams_endpoint() local
3335 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_check_streams_endpoint()
3336 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_check_streams_endpoint()
3346 if (!list_empty(&xhci->devs[slot_id]->eps[ep_index].ring->td_list)) { in xhci_check_streams_endpoint()
3419 unsigned int ep_index; in xhci_calculate_no_streams_bitmask() local
3428 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_calculate_no_streams_bitmask()
3429 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_calculate_no_streams_bitmask()
3479 unsigned int ep_index; in xhci_alloc_streams() local
3539 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3540 vdev->eps[ep_index].ep_state |= EP_GETTING_STREAMS; in xhci_alloc_streams()
3553 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3555 vdev->eps[ep_index].stream_info = xhci_alloc_stream_info(xhci, in xhci_alloc_streams()
3559 if (!vdev->eps[ep_index].stream_info) in xhci_alloc_streams()
3570 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3571 ep_ctx = xhci_get_ep_ctx(xhci, config_cmd->in_ctx, ep_index); in xhci_alloc_streams()
3574 vdev->out_ctx, ep_index); in xhci_alloc_streams()
3576 vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3598 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3599 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3601 udev->slot_id, ep_index); in xhci_alloc_streams()
3602 vdev->eps[ep_index].ep_state |= EP_HAS_STREAMS; in xhci_alloc_streams()
3608 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3609 xhci_debugfs_create_stream_files(xhci, vdev, ep_index); in xhci_alloc_streams()
3617 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3618 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3619 vdev->eps[ep_index].stream_info = NULL; in xhci_alloc_streams()
3623 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3624 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_alloc_streams()
3646 unsigned int ep_index; in xhci_free_streams() local
3666 ep_index = xhci_get_endpoint_index(&eps[0]->desc); in xhci_free_streams()
3667 command = vdev->eps[ep_index].stream_info->free_streams_command; in xhci_free_streams()
3679 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3680 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_free_streams()
3681 xhci->devs[udev->slot_id]->eps[ep_index].ep_state |= in xhci_free_streams()
3685 vdev->out_ctx, ep_index); in xhci_free_streams()
3687 &vdev->eps[ep_index]); in xhci_free_streams()
3708 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3709 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_free_streams()
3710 vdev->eps[ep_index].stream_info = NULL; in xhci_free_streams()
3714 vdev->eps[ep_index].ep_state &= ~EP_GETTING_NO_STREAMS; in xhci_free_streams()
3715 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_free_streams()
5361 unsigned int ep_index; in xhci_clear_tt_buffer_complete() local
5369 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_clear_tt_buffer_complete()
5371 xhci->devs[slot_id]->eps[ep_index].ep_state &= ~EP_CLEARING_TT; in xhci_clear_tt_buffer_complete()
5372 xhci_ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_clear_tt_buffer_complete()