Lines Matching refs:eps

1502 	ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state;  in xhci_urb_enqueue()
1657 ep = &vdev->eps[ep_index]; in xhci_urb_dequeue()
1805 if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL) in xhci_drop_endpoint()
1890 if (virt_dev->eps[ep_index].ring && in xhci_add_endpoint()
2683 memcpy(&ep_bw_info[i], &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2690 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2693 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2702 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2705 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2727 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2730 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2734 memcpy(&virt_dev->eps[i].bw_info, &ep_bw_info[i], in xhci_reserve_bandwidth()
2739 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2742 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2851 struct xhci_virt_ep *ep = &vdev->eps[i]; in xhci_check_bw_drop_ep_streams()
2922 if ((virt_dev->eps[i-1].ring && !(ctrl_ctx->drop_flags & le32)) in xhci_check_bandwidth()
2950 if (!virt_dev->eps[i].new_ring) in xhci_check_bandwidth()
2955 if (virt_dev->eps[i].ring) { in xhci_check_bandwidth()
2959 virt_dev->eps[i].ring = virt_dev->eps[i].new_ring; in xhci_check_bandwidth()
2960 virt_dev->eps[i].new_ring = NULL; in xhci_check_bandwidth()
2986 if (virt_dev->eps[i].new_ring) { in xhci_reset_bandwidth()
2988 xhci_ring_free(xhci, virt_dev->eps[i].new_ring); in xhci_reset_bandwidth()
2989 virt_dev->eps[i].new_ring = NULL; in xhci_reset_bandwidth()
3031 ep = &vdev->eps[ep_index]; in xhci_endpoint_disable()
3088 ep = &vdev->eps[ep_index]; in xhci_endpoint_reset()
3210 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_check_streams_endpoint()
3220 if (!list_empty(&xhci->devs[slot_id]->eps[ep_index].ring->td_list)) { in xhci_check_streams_endpoint()
3257 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_calculate_streams_and_bitmask() argument
3267 eps[i], udev->slot_id); in xhci_calculate_streams_and_bitmask()
3271 max_streams = usb_ss_max_streams(&eps[i]->ss_ep_comp); in xhci_calculate_streams_and_bitmask()
3274 eps[i]->desc.bEndpointAddress, in xhci_calculate_streams_and_bitmask()
3279 endpoint_flag = xhci_get_endpoint_flag(&eps[i]->desc); in xhci_calculate_streams_and_bitmask()
3289 struct usb_host_endpoint **eps, unsigned int num_eps) in xhci_calculate_no_streams_bitmask() argument
3302 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_calculate_no_streams_bitmask()
3303 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_calculate_no_streams_bitmask()
3309 eps[i]->desc.bEndpointAddress); in xhci_calculate_no_streams_bitmask()
3318 eps[i]->desc.bEndpointAddress); in xhci_calculate_no_streams_bitmask()
3323 changed_ep_bitmask |= xhci_get_endpoint_flag(&eps[i]->desc); in xhci_calculate_no_streams_bitmask()
3345 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_alloc_streams() argument
3359 if (!eps) in xhci_alloc_streams()
3394 ret = xhci_calculate_streams_and_bitmask(xhci, udev, eps, in xhci_alloc_streams()
3413 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3414 vdev->eps[ep_index].ep_state |= EP_GETTING_STREAMS; in xhci_alloc_streams()
3427 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3428 max_packet = usb_endpoint_maxp(&eps[i]->desc); in xhci_alloc_streams()
3429 vdev->eps[ep_index].stream_info = xhci_alloc_stream_info(xhci, in xhci_alloc_streams()
3433 if (!vdev->eps[ep_index].stream_info) in xhci_alloc_streams()
3444 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3450 vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3472 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3473 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3476 vdev->eps[ep_index].ep_state |= EP_HAS_STREAMS; in xhci_alloc_streams()
3482 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3491 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3492 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3493 vdev->eps[ep_index].stream_info = NULL; in xhci_alloc_streams()
3497 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3498 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_alloc_streams()
3499 xhci_endpoint_zero(xhci, vdev, eps[i]); in xhci_alloc_streams()
3512 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_free_streams() argument
3530 udev, eps, num_eps); in xhci_free_streams()
3540 ep_index = xhci_get_endpoint_index(&eps[0]->desc); in xhci_free_streams()
3541 command = vdev->eps[ep_index].stream_info->free_streams_command; in xhci_free_streams()
3553 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3555 xhci->devs[udev->slot_id]->eps[ep_index].ep_state |= in xhci_free_streams()
3561 &vdev->eps[ep_index]); in xhci_free_streams()
3582 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3583 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_free_streams()
3584 vdev->eps[ep_index].stream_info = NULL; in xhci_free_streams()
3588 vdev->eps[ep_index].ep_state &= ~EP_GETTING_NO_STREAMS; in xhci_free_streams()
3589 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_free_streams()
3611 if (virt_dev->eps[i].ring) { in xhci_free_device_endpoint_resources()
3767 struct xhci_virt_ep *ep = &virt_dev->eps[i]; in xhci_discover_or_reset_device()
3781 if (!list_empty(&virt_dev->eps[i].bw_endpoint_list)) in xhci_discover_or_reset_device()
3783 &virt_dev->eps[i].bw_info, in xhci_discover_or_reset_device()
3786 &virt_dev->eps[i], in xhci_discover_or_reset_device()
3788 xhci_clear_endpoint_bw_info(&virt_dev->eps[i].bw_info); in xhci_discover_or_reset_device()
3834 virt_dev->eps[i].ep_state &= ~EP_STOP_CMD_PENDING; in xhci_free_dev()
5258 xhci->devs[slot_id]->eps[ep_index].ep_state &= ~EP_CLEARING_TT; in xhci_clear_tt_buffer_complete()