Lines Matching refs:eps

1416 		if (xhci->devs[slot_id]->eps[ep_index].ep_state &  in xhci_urb_enqueue()
1421 } else if (xhci->devs[slot_id]->eps[ep_index].ep_state & in xhci_urb_enqueue()
1482 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_urb_to_transfer_ring()
1594 ep = &xhci->devs[urb->dev->slot_id]->eps[ep_index]; in xhci_urb_dequeue()
1700 if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL) in xhci_drop_endpoint()
1781 if (virt_dev->eps[ep_index].ring && in xhci_add_endpoint()
2576 memcpy(&ep_bw_info[i], &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2583 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2586 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2595 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2598 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2620 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2623 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2627 memcpy(&virt_dev->eps[i].bw_info, &ep_bw_info[i], in xhci_reserve_bandwidth()
2632 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2635 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2732 struct xhci_virt_ep *ep = &vdev->eps[i]; in xhci_check_bw_drop_ep_streams()
2803 if ((virt_dev->eps[i-1].ring && !(ctrl_ctx->drop_flags & le32)) in xhci_check_bandwidth()
2838 if (!virt_dev->eps[i].new_ring) in xhci_check_bandwidth()
2843 if (virt_dev->eps[i].ring) { in xhci_check_bandwidth()
2847 virt_dev->eps[i].ring = virt_dev->eps[i].new_ring; in xhci_check_bandwidth()
2848 virt_dev->eps[i].new_ring = NULL; in xhci_check_bandwidth()
2872 if (virt_dev->eps[i].new_ring) { in xhci_reset_bandwidth()
2873 xhci_ring_free(xhci, virt_dev->eps[i].new_ring); in xhci_reset_bandwidth()
2874 virt_dev->eps[i].new_ring = NULL; in xhci_reset_bandwidth()
2943 ep = &xhci->devs[udev->slot_id]->eps[ep_index]; in xhci_cleanup_stalled_ring()
3025 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_check_streams_endpoint()
3035 if (!list_empty(&xhci->devs[slot_id]->eps[ep_index].ring->td_list)) { in xhci_check_streams_endpoint()
3072 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_calculate_streams_and_bitmask() argument
3082 eps[i], udev->slot_id); in xhci_calculate_streams_and_bitmask()
3086 max_streams = usb_ss_max_streams(&eps[i]->ss_ep_comp); in xhci_calculate_streams_and_bitmask()
3089 eps[i]->desc.bEndpointAddress, in xhci_calculate_streams_and_bitmask()
3094 endpoint_flag = xhci_get_endpoint_flag(&eps[i]->desc); in xhci_calculate_streams_and_bitmask()
3104 struct usb_host_endpoint **eps, unsigned int num_eps) in xhci_calculate_no_streams_bitmask() argument
3117 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_calculate_no_streams_bitmask()
3118 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_calculate_no_streams_bitmask()
3124 eps[i]->desc.bEndpointAddress); in xhci_calculate_no_streams_bitmask()
3133 eps[i]->desc.bEndpointAddress); in xhci_calculate_no_streams_bitmask()
3138 changed_ep_bitmask |= xhci_get_endpoint_flag(&eps[i]->desc); in xhci_calculate_no_streams_bitmask()
3160 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_alloc_streams() argument
3173 if (!eps) in xhci_alloc_streams()
3209 ret = xhci_calculate_streams_and_bitmask(xhci, udev, eps, in xhci_alloc_streams()
3228 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3229 vdev->eps[ep_index].ep_state |= EP_GETTING_STREAMS; in xhci_alloc_streams()
3242 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3243 vdev->eps[ep_index].stream_info = xhci_alloc_stream_info(xhci, in xhci_alloc_streams()
3246 if (!vdev->eps[ep_index].stream_info) in xhci_alloc_streams()
3257 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3263 vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3285 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3286 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3289 vdev->eps[ep_index].ep_state |= EP_HAS_STREAMS; in xhci_alloc_streams()
3300 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3301 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3302 vdev->eps[ep_index].stream_info = NULL; in xhci_alloc_streams()
3306 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3307 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_alloc_streams()
3308 xhci_endpoint_zero(xhci, vdev, eps[i]); in xhci_alloc_streams()
3321 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_free_streams() argument
3339 udev, eps, num_eps); in xhci_free_streams()
3349 ep_index = xhci_get_endpoint_index(&eps[0]->desc); in xhci_free_streams()
3350 command = vdev->eps[ep_index].stream_info->free_streams_command; in xhci_free_streams()
3362 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3364 xhci->devs[udev->slot_id]->eps[ep_index].ep_state |= in xhci_free_streams()
3370 &vdev->eps[ep_index]); in xhci_free_streams()
3391 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3392 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_free_streams()
3393 vdev->eps[ep_index].stream_info = NULL; in xhci_free_streams()
3397 vdev->eps[ep_index].ep_state &= ~EP_GETTING_NO_STREAMS; in xhci_free_streams()
3398 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_free_streams()
3420 if (virt_dev->eps[i].ring) { in xhci_free_device_endpoint_resources()
3575 struct xhci_virt_ep *ep = &virt_dev->eps[i]; in xhci_discover_or_reset_device()
3589 if (!list_empty(&virt_dev->eps[i].bw_endpoint_list)) in xhci_discover_or_reset_device()
3591 &virt_dev->eps[i].bw_info, in xhci_discover_or_reset_device()
3594 &virt_dev->eps[i], in xhci_discover_or_reset_device()
3596 xhci_clear_endpoint_bw_info(&virt_dev->eps[i].bw_info); in xhci_discover_or_reset_device()
3651 virt_dev->eps[i].ep_state &= ~EP_HALT_PENDING; in xhci_free_dev()
3652 del_timer_sync(&virt_dev->eps[i].stop_cmd_timer); in xhci_free_dev()