Lines Matching refs:eps
1508 ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_urb_enqueue()
1670 ep = &vdev->eps[ep_index]; in xhci_urb_dequeue()
1821 if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL) in xhci_drop_endpoint()
1906 if (virt_dev->eps[ep_index].ring && in xhci_add_endpoint()
2706 memcpy(&ep_bw_info[i], &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2713 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2716 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2725 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2728 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2750 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2753 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2757 memcpy(&virt_dev->eps[i].bw_info, &ep_bw_info[i], in xhci_reserve_bandwidth()
2762 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2765 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2882 struct xhci_virt_ep *ep = &vdev->eps[i]; in xhci_check_bw_drop_ep_streams()
2953 if ((virt_dev->eps[i-1].ring && !(ctrl_ctx->drop_flags & le32)) in xhci_check_bandwidth()
2981 if (!virt_dev->eps[i].new_ring) in xhci_check_bandwidth()
2986 if (virt_dev->eps[i].ring) { in xhci_check_bandwidth()
2990 virt_dev->eps[i].ring = virt_dev->eps[i].new_ring; in xhci_check_bandwidth()
2991 virt_dev->eps[i].new_ring = NULL; in xhci_check_bandwidth()
3017 if (virt_dev->eps[i].new_ring) { in xhci_reset_bandwidth()
3022 xhci_ring_free(xhci, virt_dev->eps[i].new_ring); in xhci_reset_bandwidth()
3024 virt_dev->eps[i].new_ring = NULL; in xhci_reset_bandwidth()
3066 ep = &vdev->eps[ep_index]; in xhci_endpoint_disable()
3125 ep = &vdev->eps[ep_index]; in xhci_endpoint_reset()
3261 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_check_streams_endpoint()
3271 if (!list_empty(&xhci->devs[slot_id]->eps[ep_index].ring->td_list)) { in xhci_check_streams_endpoint()
3308 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_calculate_streams_and_bitmask() argument
3318 eps[i], udev->slot_id); in xhci_calculate_streams_and_bitmask()
3322 max_streams = usb_ss_max_streams(&eps[i]->ss_ep_comp); in xhci_calculate_streams_and_bitmask()
3325 eps[i]->desc.bEndpointAddress, in xhci_calculate_streams_and_bitmask()
3330 endpoint_flag = xhci_get_endpoint_flag(&eps[i]->desc); in xhci_calculate_streams_and_bitmask()
3340 struct usb_host_endpoint **eps, unsigned int num_eps) in xhci_calculate_no_streams_bitmask() argument
3353 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_calculate_no_streams_bitmask()
3354 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_calculate_no_streams_bitmask()
3360 eps[i]->desc.bEndpointAddress); in xhci_calculate_no_streams_bitmask()
3369 eps[i]->desc.bEndpointAddress); in xhci_calculate_no_streams_bitmask()
3374 changed_ep_bitmask |= xhci_get_endpoint_flag(&eps[i]->desc); in xhci_calculate_no_streams_bitmask()
3396 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_alloc_streams() argument
3410 if (!eps) in xhci_alloc_streams()
3445 ret = xhci_calculate_streams_and_bitmask(xhci, udev, eps, in xhci_alloc_streams()
3464 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3465 vdev->eps[ep_index].ep_state |= EP_GETTING_STREAMS; in xhci_alloc_streams()
3478 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3479 max_packet = usb_endpoint_maxp(&eps[i]->desc); in xhci_alloc_streams()
3480 vdev->eps[ep_index].stream_info = xhci_alloc_stream_info(xhci, in xhci_alloc_streams()
3484 if (!vdev->eps[ep_index].stream_info) in xhci_alloc_streams()
3495 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3501 vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3523 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3524 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3527 vdev->eps[ep_index].ep_state |= EP_HAS_STREAMS; in xhci_alloc_streams()
3533 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3542 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3543 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3544 vdev->eps[ep_index].stream_info = NULL; in xhci_alloc_streams()
3548 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3549 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_alloc_streams()
3550 xhci_endpoint_zero(xhci, vdev, eps[i]); in xhci_alloc_streams()
3563 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_free_streams() argument
3581 udev, eps, num_eps); in xhci_free_streams()
3591 ep_index = xhci_get_endpoint_index(&eps[0]->desc); in xhci_free_streams()
3592 command = vdev->eps[ep_index].stream_info->free_streams_command; in xhci_free_streams()
3604 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3606 xhci->devs[udev->slot_id]->eps[ep_index].ep_state |= in xhci_free_streams()
3612 &vdev->eps[ep_index]); in xhci_free_streams()
3633 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3634 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_free_streams()
3635 vdev->eps[ep_index].stream_info = NULL; in xhci_free_streams()
3639 vdev->eps[ep_index].ep_state &= ~EP_GETTING_NO_STREAMS; in xhci_free_streams()
3640 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_free_streams()
3662 if (virt_dev->eps[i].ring) { in xhci_free_device_endpoint_resources()
3825 struct xhci_virt_ep *ep = &virt_dev->eps[i]; in xhci_discover_or_reset_device()
3839 if (!list_empty(&virt_dev->eps[i].bw_endpoint_list)) in xhci_discover_or_reset_device()
3841 &virt_dev->eps[i].bw_info, in xhci_discover_or_reset_device()
3844 &virt_dev->eps[i], in xhci_discover_or_reset_device()
3846 xhci_clear_endpoint_bw_info(&virt_dev->eps[i].bw_info); in xhci_discover_or_reset_device()
3891 virt_dev->eps[i].ep_state &= ~EP_STOP_CMD_PENDING; in xhci_free_dev()
3892 del_timer_sync(&virt_dev->eps[i].stop_cmd_timer); in xhci_free_dev()
5363 xhci->devs[slot_id]->eps[ep_index].ep_state &= ~EP_CLEARING_TT; in xhci_clear_tt_buffer_complete()