Lines Matching refs:eps

1406 		if (xhci->devs[slot_id]->eps[ep_index].ep_state &  in xhci_urb_enqueue()
1411 } else if (xhci->devs[slot_id]->eps[ep_index].ep_state & in xhci_urb_enqueue()
1472 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_urb_to_transfer_ring()
1584 ep = &xhci->devs[urb->dev->slot_id]->eps[ep_index]; in xhci_urb_dequeue()
1690 if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL) in xhci_drop_endpoint()
1771 if (virt_dev->eps[ep_index].ring && in xhci_add_endpoint()
2566 memcpy(&ep_bw_info[i], &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2573 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2576 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2585 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2588 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2610 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2613 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2617 memcpy(&virt_dev->eps[i].bw_info, &ep_bw_info[i], in xhci_reserve_bandwidth()
2622 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2625 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2722 struct xhci_virt_ep *ep = &vdev->eps[i]; in xhci_check_bw_drop_ep_streams()
2793 if ((virt_dev->eps[i-1].ring && !(ctrl_ctx->drop_flags & le32)) in xhci_check_bandwidth()
2828 if (!virt_dev->eps[i].new_ring) in xhci_check_bandwidth()
2833 if (virt_dev->eps[i].ring) { in xhci_check_bandwidth()
2837 virt_dev->eps[i].ring = virt_dev->eps[i].new_ring; in xhci_check_bandwidth()
2838 virt_dev->eps[i].new_ring = NULL; in xhci_check_bandwidth()
2862 if (virt_dev->eps[i].new_ring) { in xhci_reset_bandwidth()
2863 xhci_ring_free(xhci, virt_dev->eps[i].new_ring); in xhci_reset_bandwidth()
2864 virt_dev->eps[i].new_ring = NULL; in xhci_reset_bandwidth()
2933 ep = &xhci->devs[udev->slot_id]->eps[ep_index]; in xhci_cleanup_stalled_ring()
3015 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_check_streams_endpoint()
3025 if (!list_empty(&xhci->devs[slot_id]->eps[ep_index].ring->td_list)) { in xhci_check_streams_endpoint()
3062 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_calculate_streams_and_bitmask() argument
3072 eps[i], udev->slot_id); in xhci_calculate_streams_and_bitmask()
3076 max_streams = usb_ss_max_streams(&eps[i]->ss_ep_comp); in xhci_calculate_streams_and_bitmask()
3079 eps[i]->desc.bEndpointAddress, in xhci_calculate_streams_and_bitmask()
3084 endpoint_flag = xhci_get_endpoint_flag(&eps[i]->desc); in xhci_calculate_streams_and_bitmask()
3094 struct usb_host_endpoint **eps, unsigned int num_eps) in xhci_calculate_no_streams_bitmask() argument
3107 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_calculate_no_streams_bitmask()
3108 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_calculate_no_streams_bitmask()
3114 eps[i]->desc.bEndpointAddress); in xhci_calculate_no_streams_bitmask()
3123 eps[i]->desc.bEndpointAddress); in xhci_calculate_no_streams_bitmask()
3128 changed_ep_bitmask |= xhci_get_endpoint_flag(&eps[i]->desc); in xhci_calculate_no_streams_bitmask()
3150 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_alloc_streams() argument
3163 if (!eps) in xhci_alloc_streams()
3199 ret = xhci_calculate_streams_and_bitmask(xhci, udev, eps, in xhci_alloc_streams()
3218 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3219 vdev->eps[ep_index].ep_state |= EP_GETTING_STREAMS; in xhci_alloc_streams()
3232 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3233 vdev->eps[ep_index].stream_info = xhci_alloc_stream_info(xhci, in xhci_alloc_streams()
3236 if (!vdev->eps[ep_index].stream_info) in xhci_alloc_streams()
3247 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3253 vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3275 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3276 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3279 vdev->eps[ep_index].ep_state |= EP_HAS_STREAMS; in xhci_alloc_streams()
3290 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3291 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3292 vdev->eps[ep_index].stream_info = NULL; in xhci_alloc_streams()
3296 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3297 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_alloc_streams()
3298 xhci_endpoint_zero(xhci, vdev, eps[i]); in xhci_alloc_streams()
3311 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_free_streams() argument
3329 udev, eps, num_eps); in xhci_free_streams()
3339 ep_index = xhci_get_endpoint_index(&eps[0]->desc); in xhci_free_streams()
3340 command = vdev->eps[ep_index].stream_info->free_streams_command; in xhci_free_streams()
3352 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3354 xhci->devs[udev->slot_id]->eps[ep_index].ep_state |= in xhci_free_streams()
3360 &vdev->eps[ep_index]); in xhci_free_streams()
3381 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3382 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_free_streams()
3383 vdev->eps[ep_index].stream_info = NULL; in xhci_free_streams()
3387 vdev->eps[ep_index].ep_state &= ~EP_GETTING_NO_STREAMS; in xhci_free_streams()
3388 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_free_streams()
3410 if (virt_dev->eps[i].ring) { in xhci_free_device_endpoint_resources()
3565 struct xhci_virt_ep *ep = &virt_dev->eps[i]; in xhci_discover_or_reset_device()
3579 if (!list_empty(&virt_dev->eps[i].bw_endpoint_list)) in xhci_discover_or_reset_device()
3581 &virt_dev->eps[i].bw_info, in xhci_discover_or_reset_device()
3584 &virt_dev->eps[i], in xhci_discover_or_reset_device()
3586 xhci_clear_endpoint_bw_info(&virt_dev->eps[i].bw_info); in xhci_discover_or_reset_device()
3641 virt_dev->eps[i].ep_state &= ~EP_HALT_PENDING; in xhci_free_dev()
3642 del_timer_sync(&virt_dev->eps[i].stop_cmd_timer); in xhci_free_dev()