Lines Matching refs:eps
1423 ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_urb_enqueue()
1577 ep = &vdev->eps[ep_index]; in xhci_urb_dequeue()
1723 if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL) in xhci_drop_endpoint()
1809 if (virt_dev->eps[ep_index].ring && in xhci_add_endpoint()
1840 xhci_ring_free(xhci, virt_dev->eps[ep_index].new_ring); in xhci_add_endpoint()
1841 virt_dev->eps[ep_index].new_ring = NULL; in xhci_add_endpoint()
2616 memcpy(&ep_bw_info[i], &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2623 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2626 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2635 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2638 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2660 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2663 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2667 memcpy(&virt_dev->eps[i].bw_info, &ep_bw_info[i], in xhci_reserve_bandwidth()
2672 &virt_dev->eps[i].bw_info, in xhci_reserve_bandwidth()
2675 &virt_dev->eps[i], in xhci_reserve_bandwidth()
2782 struct xhci_virt_ep *ep = &vdev->eps[i]; in xhci_check_bw_drop_ep_streams()
2853 if ((virt_dev->eps[i-1].ring && !(ctrl_ctx->drop_flags & le32)) in xhci_check_bandwidth()
2881 if (!virt_dev->eps[i].new_ring) in xhci_check_bandwidth()
2886 if (virt_dev->eps[i].ring) { in xhci_check_bandwidth()
2890 virt_dev->eps[i].ring = virt_dev->eps[i].new_ring; in xhci_check_bandwidth()
2891 virt_dev->eps[i].new_ring = NULL; in xhci_check_bandwidth()
2915 if (virt_dev->eps[i].new_ring) { in xhci_reset_bandwidth()
2917 xhci_ring_free(xhci, virt_dev->eps[i].new_ring); in xhci_reset_bandwidth()
2918 virt_dev->eps[i].new_ring = NULL; in xhci_reset_bandwidth()
3045 ep = &vdev->eps[ep_index]; in xhci_endpoint_reset()
3135 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_check_streams_endpoint()
3145 if (!list_empty(&xhci->devs[slot_id]->eps[ep_index].ring->td_list)) { in xhci_check_streams_endpoint()
3182 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_calculate_streams_and_bitmask() argument
3192 eps[i], udev->slot_id); in xhci_calculate_streams_and_bitmask()
3196 max_streams = usb_ss_max_streams(&eps[i]->ss_ep_comp); in xhci_calculate_streams_and_bitmask()
3199 eps[i]->desc.bEndpointAddress, in xhci_calculate_streams_and_bitmask()
3204 endpoint_flag = xhci_get_endpoint_flag(&eps[i]->desc); in xhci_calculate_streams_and_bitmask()
3214 struct usb_host_endpoint **eps, unsigned int num_eps) in xhci_calculate_no_streams_bitmask() argument
3227 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_calculate_no_streams_bitmask()
3228 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_calculate_no_streams_bitmask()
3234 eps[i]->desc.bEndpointAddress); in xhci_calculate_no_streams_bitmask()
3243 eps[i]->desc.bEndpointAddress); in xhci_calculate_no_streams_bitmask()
3248 changed_ep_bitmask |= xhci_get_endpoint_flag(&eps[i]->desc); in xhci_calculate_no_streams_bitmask()
3270 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_alloc_streams() argument
3284 if (!eps) in xhci_alloc_streams()
3319 ret = xhci_calculate_streams_and_bitmask(xhci, udev, eps, in xhci_alloc_streams()
3338 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3339 vdev->eps[ep_index].ep_state |= EP_GETTING_STREAMS; in xhci_alloc_streams()
3352 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3353 max_packet = usb_endpoint_maxp(&eps[i]->desc); in xhci_alloc_streams()
3354 vdev->eps[ep_index].stream_info = xhci_alloc_stream_info(xhci, in xhci_alloc_streams()
3358 if (!vdev->eps[ep_index].stream_info) in xhci_alloc_streams()
3369 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3375 vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3397 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3398 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3401 vdev->eps[ep_index].ep_state |= EP_HAS_STREAMS; in xhci_alloc_streams()
3412 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3413 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3414 vdev->eps[ep_index].stream_info = NULL; in xhci_alloc_streams()
3418 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3419 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_alloc_streams()
3420 xhci_endpoint_zero(xhci, vdev, eps[i]); in xhci_alloc_streams()
3433 struct usb_host_endpoint **eps, unsigned int num_eps, in xhci_free_streams() argument
3451 udev, eps, num_eps); in xhci_free_streams()
3461 ep_index = xhci_get_endpoint_index(&eps[0]->desc); in xhci_free_streams()
3462 command = vdev->eps[ep_index].stream_info->free_streams_command; in xhci_free_streams()
3474 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3476 xhci->devs[udev->slot_id]->eps[ep_index].ep_state |= in xhci_free_streams()
3482 &vdev->eps[ep_index]); in xhci_free_streams()
3503 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3504 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_free_streams()
3505 vdev->eps[ep_index].stream_info = NULL; in xhci_free_streams()
3509 vdev->eps[ep_index].ep_state &= ~EP_GETTING_NO_STREAMS; in xhci_free_streams()
3510 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_free_streams()
3532 if (virt_dev->eps[i].ring) { in xhci_free_device_endpoint_resources()
3688 struct xhci_virt_ep *ep = &virt_dev->eps[i]; in xhci_discover_or_reset_device()
3702 if (!list_empty(&virt_dev->eps[i].bw_endpoint_list)) in xhci_discover_or_reset_device()
3704 &virt_dev->eps[i].bw_info, in xhci_discover_or_reset_device()
3707 &virt_dev->eps[i], in xhci_discover_or_reset_device()
3709 xhci_clear_endpoint_bw_info(&virt_dev->eps[i].bw_info); in xhci_discover_or_reset_device()
3755 virt_dev->eps[i].ep_state &= ~EP_STOP_CMD_PENDING; in xhci_free_dev()
3756 del_timer_sync(&virt_dev->eps[i].stop_cmd_timer); in xhci_free_dev()