Lines Matching refs:ep_index
1332 static unsigned int xhci_get_endpoint_address(unsigned int ep_index) in xhci_get_endpoint_address() argument
1334 unsigned int number = DIV_ROUND_UP(ep_index, 2); in xhci_get_endpoint_address()
1335 unsigned int direction = ep_index % 2 ? USB_DIR_OUT : USB_DIR_IN; in xhci_get_endpoint_address()
1410 unsigned int ep_index, struct urb *urb, gfp_t mem_flags) in xhci_check_maxpacket() argument
1421 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_check_maxpacket()
1455 xhci->devs[slot_id]->out_ctx, ep_index); in xhci_check_maxpacket()
1457 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_check_maxpacket()
1488 unsigned int slot_id, ep_index; in xhci_urb_enqueue() local
1501 ep_index = xhci_get_endpoint_index(&urb->ep->desc); in xhci_urb_enqueue()
1502 ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_urb_enqueue()
1538 ep_index, urb, mem_flags); in xhci_urb_enqueue()
1571 slot_id, ep_index); in xhci_urb_enqueue()
1575 slot_id, ep_index); in xhci_urb_enqueue()
1579 slot_id, ep_index); in xhci_urb_enqueue()
1583 slot_id, ep_index); in xhci_urb_enqueue()
1634 unsigned int ep_index; in xhci_urb_dequeue() local
1656 ep_index = xhci_get_endpoint_index(&urb->ep->desc); in xhci_urb_dequeue()
1657 ep = &vdev->eps[ep_index]; in xhci_urb_dequeue()
1731 ep_index, 0); in xhci_urb_dequeue()
1766 unsigned int ep_index; in xhci_drop_endpoint() local
1796 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_drop_endpoint()
1797 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_drop_endpoint()
1805 if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL) in xhci_drop_endpoint()
1817 xhci_debugfs_remove_endpoint(xhci, xhci->devs[udev->slot_id], ep_index); in xhci_drop_endpoint()
1848 unsigned int ep_index; in xhci_add_endpoint() local
1886 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_add_endpoint()
1890 if (virt_dev->eps[ep_index].ring && in xhci_add_endpoint()
1932 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_add_endpoint()
3016 unsigned int ep_index; in xhci_endpoint_disable() local
3030 ep_index = xhci_get_endpoint_index(&host_ep->desc); in xhci_endpoint_disable()
3031 ep = &vdev->eps[ep_index]; in xhci_endpoint_disable()
3069 unsigned int ep_index; in xhci_endpoint_reset() local
3087 ep_index = xhci_get_endpoint_index(&host_ep->desc); in xhci_endpoint_reset()
3088 ep = &vdev->eps[ep_index]; in xhci_endpoint_reset()
3135 ep_index, 0); in xhci_endpoint_reset()
3163 xhci_endpoint_copy(xhci, cfg_cmd->in_ctx, vdev->out_ctx, ep_index); in xhci_endpoint_reset()
3194 unsigned int ep_index; in xhci_check_streams_endpoint() local
3209 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_check_streams_endpoint()
3210 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_check_streams_endpoint()
3220 if (!list_empty(&xhci->devs[slot_id]->eps[ep_index].ring->td_list)) { in xhci_check_streams_endpoint()
3293 unsigned int ep_index; in xhci_calculate_no_streams_bitmask() local
3302 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_calculate_no_streams_bitmask()
3303 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_calculate_no_streams_bitmask()
3353 unsigned int ep_index; in xhci_alloc_streams() local
3413 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3414 vdev->eps[ep_index].ep_state |= EP_GETTING_STREAMS; in xhci_alloc_streams()
3427 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3429 vdev->eps[ep_index].stream_info = xhci_alloc_stream_info(xhci, in xhci_alloc_streams()
3433 if (!vdev->eps[ep_index].stream_info) in xhci_alloc_streams()
3444 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3445 ep_ctx = xhci_get_ep_ctx(xhci, config_cmd->in_ctx, ep_index); in xhci_alloc_streams()
3448 vdev->out_ctx, ep_index); in xhci_alloc_streams()
3450 vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3472 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3473 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3475 udev->slot_id, ep_index); in xhci_alloc_streams()
3476 vdev->eps[ep_index].ep_state |= EP_HAS_STREAMS; in xhci_alloc_streams()
3482 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3483 xhci_debugfs_create_stream_files(xhci, vdev, ep_index); in xhci_alloc_streams()
3491 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3492 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3493 vdev->eps[ep_index].stream_info = NULL; in xhci_alloc_streams()
3497 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3498 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_alloc_streams()
3520 unsigned int ep_index; in xhci_free_streams() local
3540 ep_index = xhci_get_endpoint_index(&eps[0]->desc); in xhci_free_streams()
3541 command = vdev->eps[ep_index].stream_info->free_streams_command; in xhci_free_streams()
3553 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3554 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_free_streams()
3555 xhci->devs[udev->slot_id]->eps[ep_index].ep_state |= in xhci_free_streams()
3559 vdev->out_ctx, ep_index); in xhci_free_streams()
3561 &vdev->eps[ep_index]); in xhci_free_streams()
3582 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3583 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_free_streams()
3584 vdev->eps[ep_index].stream_info = NULL; in xhci_free_streams()
3588 vdev->eps[ep_index].ep_state &= ~EP_GETTING_NO_STREAMS; in xhci_free_streams()
3589 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_free_streams()
5248 unsigned int ep_index; in xhci_clear_tt_buffer_complete() local
5256 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_clear_tt_buffer_complete()
5258 xhci->devs[slot_id]->eps[ep_index].ep_state &= ~EP_CLEARING_TT; in xhci_clear_tt_buffer_complete()
5259 xhci_ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_clear_tt_buffer_complete()