Lines Matching refs:eps

1662 	ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state;  in xhci_urb_enqueue()
1817 ep = &vdev->eps[ep_index]; in xhci_urb_dequeue()
1965 if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL) in xhci_drop_endpoint()
2050 if (virt_dev->eps[ep_index].ring && in xhci_add_endpoint()
2850 memcpy(&ep_bw_info[i], &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2857 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2860 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2869 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2872 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2894 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2897 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2901 memcpy(&virt_dev->eps[i].bw_info, &ep_bw_info[i], in xhci_reserve_bandwidth()
2906 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2909 &virt_dev->eps[i], in xhci_reserve_bandwidth()
3018 struct xhci_virt_ep *ep = &vdev->eps[i]; in xhci_check_bw_drop_ep_streams()
3089 if ((virt_dev->eps[i-1].ring && !(ctrl_ctx->drop_flags & le32)) in xhci_check_bandwidth()
3117 if (!virt_dev->eps[i].new_ring) in xhci_check_bandwidth()
3122 if (virt_dev->eps[i].ring) { in xhci_check_bandwidth()
3126 virt_dev->eps[i].ring = virt_dev->eps[i].new_ring; in xhci_check_bandwidth()
3127 virt_dev->eps[i].new_ring = NULL; in xhci_check_bandwidth()
3153 if (virt_dev->eps[i].new_ring) { in xhci_reset_bandwidth()
3155 xhci_ring_free(xhci, virt_dev->eps[i].new_ring); in xhci_reset_bandwidth()
3156 virt_dev->eps[i].new_ring = NULL; in xhci_reset_bandwidth()
3198 ep = &vdev->eps[ep_index]; in xhci_endpoint_disable()
3255 ep = &vdev->eps[ep_index]; in xhci_endpoint_reset()
3377 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_check_streams_endpoint()
3387 if (!list_empty(&xhci->devs[slot_id]->eps[ep_index].ring->td_list)) { in xhci_check_streams_endpoint()
3424 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_calculate_streams_and_bitmask() argument
3434 eps[i], udev->slot_id); in xhci_calculate_streams_and_bitmask()
3438 max_streams = usb_ss_max_streams(&eps[i]->ss_ep_comp); in xhci_calculate_streams_and_bitmask()
3441 eps[i]->desc.bEndpointAddress, in xhci_calculate_streams_and_bitmask()
3446 endpoint_flag = xhci_get_endpoint_flag(&eps[i]->desc); in xhci_calculate_streams_and_bitmask()
3456 struct usb_host_endpoint **eps, unsigned int num_eps) in xhci_calculate_no_streams_bitmask() argument
3469 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_calculate_no_streams_bitmask()
3470 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_calculate_no_streams_bitmask()
3476 eps[i]->desc.bEndpointAddress); in xhci_calculate_no_streams_bitmask()
3485 eps[i]->desc.bEndpointAddress); in xhci_calculate_no_streams_bitmask()
3490 changed_ep_bitmask |= xhci_get_endpoint_flag(&eps[i]->desc); in xhci_calculate_no_streams_bitmask()
3512 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_alloc_streams() argument
3526 if (!eps) in xhci_alloc_streams()
3561 ret = xhci_calculate_streams_and_bitmask(xhci, udev, eps, in xhci_alloc_streams()
3580 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3581 vdev->eps[ep_index].ep_state |= EP_GETTING_STREAMS; in xhci_alloc_streams()
3594 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3595 max_packet = usb_endpoint_maxp(&eps[i]->desc); in xhci_alloc_streams()
3596 vdev->eps[ep_index].stream_info = xhci_alloc_stream_info(xhci, in xhci_alloc_streams()
3600 if (!vdev->eps[ep_index].stream_info) in xhci_alloc_streams()
3611 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3617 vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3639 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3640 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3643 vdev->eps[ep_index].ep_state |= EP_HAS_STREAMS; in xhci_alloc_streams()
3649 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3658 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3659 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3660 vdev->eps[ep_index].stream_info = NULL; in xhci_alloc_streams()
3664 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3665 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_alloc_streams()
3666 xhci_endpoint_zero(xhci, vdev, eps[i]); in xhci_alloc_streams()
3679 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_free_streams() argument
3697 udev, eps, num_eps); in xhci_free_streams()
3707 ep_index = xhci_get_endpoint_index(&eps[0]->desc); in xhci_free_streams()
3708 command = vdev->eps[ep_index].stream_info->free_streams_command; in xhci_free_streams()
3720 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3722 xhci->devs[udev->slot_id]->eps[ep_index].ep_state |= in xhci_free_streams()
3728 &vdev->eps[ep_index]); in xhci_free_streams()
3749 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3750 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_free_streams()
3751 vdev->eps[ep_index].stream_info = NULL; in xhci_free_streams()
3755 vdev->eps[ep_index].ep_state &= ~EP_GETTING_NO_STREAMS; in xhci_free_streams()
3756 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_free_streams()
3778 if (virt_dev->eps[i].ring) { in xhci_free_device_endpoint_resources()
3934 struct xhci_virt_ep *ep = &virt_dev->eps[i]; in xhci_discover_or_reset_device()
3948 if (!list_empty(&virt_dev->eps[i].bw_endpoint_list)) in xhci_discover_or_reset_device()
3950 &virt_dev->eps[i].bw_info, in xhci_discover_or_reset_device()
3953 &virt_dev->eps[i], in xhci_discover_or_reset_device()
3955 xhci_clear_endpoint_bw_info(&virt_dev->eps[i].bw_info); in xhci_discover_or_reset_device()
4000 virt_dev->eps[i].ep_state &= ~EP_STOP_CMD_PENDING; in xhci_free_dev()
5411 xhci->devs[slot_id]->eps[ep_index].ep_state &= ~EP_CLEARING_TT; in xhci_clear_tt_buffer_complete()