Lines Matching refs:eps
1474 ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_urb_enqueue()
1631 ep = &vdev->eps[ep_index]; in xhci_urb_dequeue()
1777 if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL) in xhci_drop_endpoint()
1864 if (virt_dev->eps[ep_index].ring && in xhci_add_endpoint()
1895 xhci_ring_free(xhci, virt_dev->eps[ep_index].new_ring); in xhci_add_endpoint()
1896 virt_dev->eps[ep_index].new_ring = NULL; in xhci_add_endpoint()
2674 memcpy(&ep_bw_info[i], &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2681 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2684 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2693 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2696 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2718 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2721 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2725 memcpy(&virt_dev->eps[i].bw_info, &ep_bw_info[i], in xhci_reserve_bandwidth()
2730 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2733 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2842 struct xhci_virt_ep *ep = &vdev->eps[i]; in xhci_check_bw_drop_ep_streams()
2913 if ((virt_dev->eps[i-1].ring && !(ctrl_ctx->drop_flags & le32)) in xhci_check_bandwidth()
2941 if (!virt_dev->eps[i].new_ring) in xhci_check_bandwidth()
2946 if (virt_dev->eps[i].ring) { in xhci_check_bandwidth()
2950 virt_dev->eps[i].ring = virt_dev->eps[i].new_ring; in xhci_check_bandwidth()
2951 virt_dev->eps[i].new_ring = NULL; in xhci_check_bandwidth()
2975 if (virt_dev->eps[i].new_ring) { in xhci_reset_bandwidth()
2977 xhci_ring_free(xhci, virt_dev->eps[i].new_ring); in xhci_reset_bandwidth()
2978 virt_dev->eps[i].new_ring = NULL; in xhci_reset_bandwidth()
3097 ep = &vdev->eps[ep_index]; in xhci_endpoint_disable()
3156 ep = &vdev->eps[ep_index]; in xhci_endpoint_reset()
3266 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_check_streams_endpoint()
3276 if (!list_empty(&xhci->devs[slot_id]->eps[ep_index].ring->td_list)) { in xhci_check_streams_endpoint()
3313 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_calculate_streams_and_bitmask() argument
3323 eps[i], udev->slot_id); in xhci_calculate_streams_and_bitmask()
3327 max_streams = usb_ss_max_streams(&eps[i]->ss_ep_comp); in xhci_calculate_streams_and_bitmask()
3330 eps[i]->desc.bEndpointAddress, in xhci_calculate_streams_and_bitmask()
3335 endpoint_flag = xhci_get_endpoint_flag(&eps[i]->desc); in xhci_calculate_streams_and_bitmask()
3345 struct usb_host_endpoint **eps, unsigned int num_eps) in xhci_calculate_no_streams_bitmask() argument
3358 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_calculate_no_streams_bitmask()
3359 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_calculate_no_streams_bitmask()
3365 eps[i]->desc.bEndpointAddress); in xhci_calculate_no_streams_bitmask()
3374 eps[i]->desc.bEndpointAddress); in xhci_calculate_no_streams_bitmask()
3379 changed_ep_bitmask |= xhci_get_endpoint_flag(&eps[i]->desc); in xhci_calculate_no_streams_bitmask()
3401 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_alloc_streams() argument
3415 if (!eps) in xhci_alloc_streams()
3450 ret = xhci_calculate_streams_and_bitmask(xhci, udev, eps, in xhci_alloc_streams()
3469 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3470 vdev->eps[ep_index].ep_state |= EP_GETTING_STREAMS; in xhci_alloc_streams()
3483 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3484 max_packet = usb_endpoint_maxp(&eps[i]->desc); in xhci_alloc_streams()
3485 vdev->eps[ep_index].stream_info = xhci_alloc_stream_info(xhci, in xhci_alloc_streams()
3489 if (!vdev->eps[ep_index].stream_info) in xhci_alloc_streams()
3500 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3506 vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3528 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3529 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3532 vdev->eps[ep_index].ep_state |= EP_HAS_STREAMS; in xhci_alloc_streams()
3543 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3544 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3545 vdev->eps[ep_index].stream_info = NULL; in xhci_alloc_streams()
3549 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3550 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_alloc_streams()
3551 xhci_endpoint_zero(xhci, vdev, eps[i]); in xhci_alloc_streams()
3564 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_free_streams() argument
3582 udev, eps, num_eps); in xhci_free_streams()
3592 ep_index = xhci_get_endpoint_index(&eps[0]->desc); in xhci_free_streams()
3593 command = vdev->eps[ep_index].stream_info->free_streams_command; in xhci_free_streams()
3605 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3607 xhci->devs[udev->slot_id]->eps[ep_index].ep_state |= in xhci_free_streams()
3613 &vdev->eps[ep_index]); in xhci_free_streams()
3634 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3635 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_free_streams()
3636 vdev->eps[ep_index].stream_info = NULL; in xhci_free_streams()
3640 vdev->eps[ep_index].ep_state &= ~EP_GETTING_NO_STREAMS; in xhci_free_streams()
3641 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_free_streams()
3663 if (virt_dev->eps[i].ring) { in xhci_free_device_endpoint_resources()
3819 struct xhci_virt_ep *ep = &virt_dev->eps[i]; in xhci_discover_or_reset_device()
3833 if (!list_empty(&virt_dev->eps[i].bw_endpoint_list)) in xhci_discover_or_reset_device()
3835 &virt_dev->eps[i].bw_info, in xhci_discover_or_reset_device()
3838 &virt_dev->eps[i], in xhci_discover_or_reset_device()
3840 xhci_clear_endpoint_bw_info(&virt_dev->eps[i].bw_info); in xhci_discover_or_reset_device()
3887 virt_dev->eps[i].ep_state &= ~EP_STOP_CMD_PENDING; in xhci_free_dev()
3888 del_timer_sync(&virt_dev->eps[i].stop_cmd_timer); in xhci_free_dev()
5290 xhci->devs[slot_id]->eps[ep_index].ep_state &= ~EP_CLEARING_TT; in xhci_clear_tt_buffer_complete()