Lines Matching refs:slot_id
137 int slot_id; in xhci_free_virt_devices() local
144 for (slot_id = 0; slot_id < MAX_HC_SLOTS; slot_id++) { in xhci_free_virt_devices()
145 virt_dev = ctrl->devs[slot_id]; in xhci_free_virt_devices()
149 ctrl->dcbaa->dev_context_ptrs[slot_id] = 0; in xhci_free_virt_devices()
162 ctrl->devs[slot_id] = NULL; in xhci_free_virt_devices()
439 int xhci_alloc_virt_device(struct xhci_ctrl *ctrl, unsigned int slot_id) in xhci_alloc_virt_device() argument
445 if (ctrl->devs[slot_id]) { in xhci_alloc_virt_device()
446 printf("Virt dev for slot[%d] already allocated\n", slot_id); in xhci_alloc_virt_device()
450 ctrl->devs[slot_id] = (struct xhci_virt_device *) in xhci_alloc_virt_device()
453 if (!ctrl->devs[slot_id]) { in xhci_alloc_virt_device()
458 memset(ctrl->devs[slot_id], 0, sizeof(struct xhci_virt_device)); in xhci_alloc_virt_device()
459 virt_dev = ctrl->devs[slot_id]; in xhci_alloc_virt_device()
483 ctrl->dcbaa->dev_context_ptrs[slot_id] = byte_64; in xhci_alloc_virt_device()
485 xhci_flush_cache((uintptr_t)&ctrl->dcbaa->dev_context_ptrs[slot_id], in xhci_alloc_virt_device()
723 int slot_id = udev->slot_id; in xhci_setup_addressable_virt_dev() local
731 virt_dev = ctrl->devs[slot_id]; in xhci_setup_addressable_virt_dev()
804 slot_ctx->tt_info |= cpu_to_le32(TT_SLOT(dev->slot_id)); in xhci_setup_addressable_virt_dev()