Lines Matching refs:virt_dev

399 		struct xhci_virt_device *virt_dev,  in xhci_free_or_cache_endpoint_ring()  argument
404 rings_cached = virt_dev->num_rings_cached; in xhci_free_or_cache_endpoint_ring()
406 virt_dev->ring_cache[rings_cached] = in xhci_free_or_cache_endpoint_ring()
407 virt_dev->eps[ep_index].ring; in xhci_free_or_cache_endpoint_ring()
408 virt_dev->num_rings_cached++; in xhci_free_or_cache_endpoint_ring()
411 virt_dev->num_rings_cached, in xhci_free_or_cache_endpoint_ring()
412 (virt_dev->num_rings_cached > 1) ? "s" : ""); in xhci_free_or_cache_endpoint_ring()
414 xhci_ring_free(xhci, virt_dev->eps[ep_index].ring); in xhci_free_or_cache_endpoint_ring()
417 virt_dev->num_rings_cached); in xhci_free_or_cache_endpoint_ring()
419 virt_dev->eps[ep_index].ring = NULL; in xhci_free_or_cache_endpoint_ring()
841 struct xhci_virt_device *virt_dev, in xhci_free_tt_info() argument
851 if (virt_dev->real_port == 0 || in xhci_free_tt_info()
852 virt_dev->real_port > HCS_MAX_PORTS(xhci->hcs_params1)) { in xhci_free_tt_info()
857 tt_list_head = &(xhci->rh_bw[virt_dev->real_port - 1].tts); in xhci_free_tt_info()
871 struct xhci_virt_device *virt_dev, in xhci_alloc_tt_info() argument
892 &xhci->rh_bw[virt_dev->real_port - 1].tts); in xhci_alloc_tt_info()
893 tt_info->slot_id = virt_dev->udev->slot_id; in xhci_alloc_tt_info()
903 xhci_free_tt_info(xhci, virt_dev, virt_dev->udev->slot_id); in xhci_alloc_tt_info()
1039 struct xhci_virt_device *virt_dev; in xhci_copy_ep0_dequeue_into_input_ctx() local
1043 virt_dev = xhci->devs[udev->slot_id]; in xhci_copy_ep0_dequeue_into_input_ctx()
1044 ep0_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, 0); in xhci_copy_ep0_dequeue_into_input_ctx()
1045 ep_ring = virt_dev->eps[0].ring; in xhci_copy_ep0_dequeue_into_input_ctx()
1400 struct xhci_virt_device *virt_dev, in xhci_endpoint_init() argument
1415 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_endpoint_init()
1424 virt_dev->eps[ep_index].new_ring = in xhci_endpoint_init()
1426 if (!virt_dev->eps[ep_index].new_ring) { in xhci_endpoint_init()
1428 if (virt_dev->num_rings_cached == 0) in xhci_endpoint_init()
1430 virt_dev->num_rings_cached--; in xhci_endpoint_init()
1431 virt_dev->eps[ep_index].new_ring = in xhci_endpoint_init()
1432 virt_dev->ring_cache[virt_dev->num_rings_cached]; in xhci_endpoint_init()
1433 virt_dev->ring_cache[virt_dev->num_rings_cached] = NULL; in xhci_endpoint_init()
1434 xhci_reinit_cached_ring(xhci, virt_dev->eps[ep_index].new_ring, in xhci_endpoint_init()
1437 virt_dev->eps[ep_index].skip = false; in xhci_endpoint_init()
1438 ep_ring = virt_dev->eps[ep_index].new_ring; in xhci_endpoint_init()
1515 struct xhci_virt_device *virt_dev, in xhci_endpoint_zero() argument
1522 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_endpoint_zero()
1546 struct xhci_virt_device *virt_dev) in xhci_update_bw_info() argument
1554 bw_info = &virt_dev->eps[i].bw_info; in xhci_update_bw_info()