Lines Matching refs:eps

1613 	ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state;  in xhci_urb_enqueue()
1768 ep = &vdev->eps[ep_index]; in xhci_urb_dequeue()
1919 if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL) in xhci_drop_endpoint()
2004 if (virt_dev->eps[ep_index].ring && in xhci_add_endpoint()
2804 memcpy(&ep_bw_info[i], &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2811 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2814 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2823 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2826 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2848 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2851 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2855 memcpy(&virt_dev->eps[i].bw_info, &ep_bw_info[i], in xhci_reserve_bandwidth()
2860 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2863 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2972 struct xhci_virt_ep *ep = &vdev->eps[i]; in xhci_check_bw_drop_ep_streams()
3043 if ((virt_dev->eps[i-1].ring && !(ctrl_ctx->drop_flags & le32)) in xhci_check_bandwidth()
3071 if (!virt_dev->eps[i].new_ring) in xhci_check_bandwidth()
3076 if (virt_dev->eps[i].ring) { in xhci_check_bandwidth()
3080 virt_dev->eps[i].ring = virt_dev->eps[i].new_ring; in xhci_check_bandwidth()
3081 virt_dev->eps[i].new_ring = NULL; in xhci_check_bandwidth()
3107 if (virt_dev->eps[i].new_ring) { in xhci_reset_bandwidth()
3109 xhci_ring_free(xhci, virt_dev->eps[i].new_ring); in xhci_reset_bandwidth()
3110 virt_dev->eps[i].new_ring = NULL; in xhci_reset_bandwidth()
3152 ep = &vdev->eps[ep_index]; in xhci_endpoint_disable()
3211 ep = &vdev->eps[ep_index]; in xhci_endpoint_reset()
3335 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_check_streams_endpoint()
3345 if (!list_empty(&xhci->devs[slot_id]->eps[ep_index].ring->td_list)) { in xhci_check_streams_endpoint()
3382 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_calculate_streams_and_bitmask() argument
3392 eps[i], udev->slot_id); in xhci_calculate_streams_and_bitmask()
3396 max_streams = usb_ss_max_streams(&eps[i]->ss_ep_comp); in xhci_calculate_streams_and_bitmask()
3399 eps[i]->desc.bEndpointAddress, in xhci_calculate_streams_and_bitmask()
3404 endpoint_flag = xhci_get_endpoint_flag(&eps[i]->desc); in xhci_calculate_streams_and_bitmask()
3414 struct usb_host_endpoint **eps, unsigned int num_eps) in xhci_calculate_no_streams_bitmask() argument
3427 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_calculate_no_streams_bitmask()
3428 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_calculate_no_streams_bitmask()
3434 eps[i]->desc.bEndpointAddress); in xhci_calculate_no_streams_bitmask()
3443 eps[i]->desc.bEndpointAddress); in xhci_calculate_no_streams_bitmask()
3448 changed_ep_bitmask |= xhci_get_endpoint_flag(&eps[i]->desc); in xhci_calculate_no_streams_bitmask()
3470 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_alloc_streams() argument
3484 if (!eps) in xhci_alloc_streams()
3519 ret = xhci_calculate_streams_and_bitmask(xhci, udev, eps, in xhci_alloc_streams()
3538 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3539 vdev->eps[ep_index].ep_state |= EP_GETTING_STREAMS; in xhci_alloc_streams()
3552 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3553 max_packet = usb_endpoint_maxp(&eps[i]->desc); in xhci_alloc_streams()
3554 vdev->eps[ep_index].stream_info = xhci_alloc_stream_info(xhci, in xhci_alloc_streams()
3558 if (!vdev->eps[ep_index].stream_info) in xhci_alloc_streams()
3569 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3575 vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3597 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3598 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3601 vdev->eps[ep_index].ep_state |= EP_HAS_STREAMS; in xhci_alloc_streams()
3607 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3616 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3617 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3618 vdev->eps[ep_index].stream_info = NULL; in xhci_alloc_streams()
3622 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3623 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_alloc_streams()
3624 xhci_endpoint_zero(xhci, vdev, eps[i]); in xhci_alloc_streams()
3637 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_free_streams() argument
3655 udev, eps, num_eps); in xhci_free_streams()
3665 ep_index = xhci_get_endpoint_index(&eps[0]->desc); in xhci_free_streams()
3666 command = vdev->eps[ep_index].stream_info->free_streams_command; in xhci_free_streams()
3678 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3680 xhci->devs[udev->slot_id]->eps[ep_index].ep_state |= in xhci_free_streams()
3686 &vdev->eps[ep_index]); in xhci_free_streams()
3707 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3708 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_free_streams()
3709 vdev->eps[ep_index].stream_info = NULL; in xhci_free_streams()
3713 vdev->eps[ep_index].ep_state &= ~EP_GETTING_NO_STREAMS; in xhci_free_streams()
3714 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_free_streams()
3736 if (virt_dev->eps[i].ring) { in xhci_free_device_endpoint_resources()
3892 struct xhci_virt_ep *ep = &virt_dev->eps[i]; in xhci_discover_or_reset_device()
3906 if (!list_empty(&virt_dev->eps[i].bw_endpoint_list)) in xhci_discover_or_reset_device()
3908 &virt_dev->eps[i].bw_info, in xhci_discover_or_reset_device()
3911 &virt_dev->eps[i], in xhci_discover_or_reset_device()
3913 xhci_clear_endpoint_bw_info(&virt_dev->eps[i].bw_info); in xhci_discover_or_reset_device()
3958 virt_dev->eps[i].ep_state &= ~EP_STOP_CMD_PENDING; in xhci_free_dev()
3959 del_timer_sync(&virt_dev->eps[i].stop_cmd_timer); in xhci_free_dev()
5374 xhci->devs[slot_id]->eps[ep_index].ep_state &= ~EP_CLEARING_TT; in xhci_clear_tt_buffer_complete()