Lines Matching refs:virt_dev

138 	struct xhci_virt_device *virt_dev;  in xhci_free_virt_devices()  local
145 virt_dev = ctrl->devs[slot_id]; in xhci_free_virt_devices()
146 if (!virt_dev) in xhci_free_virt_devices()
152 if (virt_dev->eps[i].ring) in xhci_free_virt_devices()
153 xhci_ring_free(virt_dev->eps[i].ring); in xhci_free_virt_devices()
155 if (virt_dev->in_ctx) in xhci_free_virt_devices()
156 xhci_free_container_ctx(virt_dev->in_ctx); in xhci_free_virt_devices()
157 if (virt_dev->out_ctx) in xhci_free_virt_devices()
158 xhci_free_container_ctx(virt_dev->out_ctx); in xhci_free_virt_devices()
160 free(virt_dev); in xhci_free_virt_devices()
445 struct xhci_virt_device *virt_dev; in xhci_alloc_virt_device() local
462 virt_dev = ctrl->devs[slot_id]; in xhci_alloc_virt_device()
465 virt_dev->out_ctx = xhci_alloc_container_ctx(ctrl, in xhci_alloc_virt_device()
467 if (!virt_dev->out_ctx) { in xhci_alloc_virt_device()
473 virt_dev->in_ctx = xhci_alloc_container_ctx(ctrl, in xhci_alloc_virt_device()
475 if (!virt_dev->in_ctx) { in xhci_alloc_virt_device()
481 virt_dev->eps[0].ring = xhci_ring_alloc(1, true); in xhci_alloc_virt_device()
483 byte_64 = (uintptr_t)(virt_dev->out_ctx->bytes); in xhci_alloc_virt_device()
721 struct xhci_virt_device *virt_dev; in xhci_setup_addressable_virt_dev() local
734 virt_dev = ctrl->devs[slot_id]; in xhci_setup_addressable_virt_dev()
736 BUG_ON(!virt_dev); in xhci_setup_addressable_virt_dev()
739 ep0_ctx = xhci_get_ep_ctx(ctrl, virt_dev->in_ctx, 0); in xhci_setup_addressable_virt_dev()
740 slot_ctx = xhci_get_slot_ctx(ctrl, virt_dev->in_ctx); in xhci_setup_addressable_virt_dev()
852 trb_64 = (uintptr_t)virt_dev->eps[0].ring->first_seg->trbs; in xhci_setup_addressable_virt_dev()
853 ep0_ctx->deq = cpu_to_le64(trb_64 | virt_dev->eps[0].ring->cycle_state); in xhci_setup_addressable_virt_dev()