Lines Matching refs:slot_id
138 int slot_id; in xhci_free_virt_devices() local
145 for (slot_id = 0; slot_id < MAX_HC_SLOTS; slot_id++) { in xhci_free_virt_devices()
146 virt_dev = ctrl->devs[slot_id]; in xhci_free_virt_devices()
150 ctrl->dcbaa->dev_context_ptrs[slot_id] = 0; in xhci_free_virt_devices()
163 ctrl->devs[slot_id] = NULL; in xhci_free_virt_devices()
443 int xhci_alloc_virt_device(struct xhci_ctrl *ctrl, unsigned int slot_id) in xhci_alloc_virt_device() argument
449 if (ctrl->devs[slot_id]) { in xhci_alloc_virt_device()
450 printf("Virt dev for slot[%d] already allocated\n", slot_id); in xhci_alloc_virt_device()
454 ctrl->devs[slot_id] = (struct xhci_virt_device *) in xhci_alloc_virt_device()
457 if (!ctrl->devs[slot_id]) { in xhci_alloc_virt_device()
462 memset(ctrl->devs[slot_id], 0, sizeof(struct xhci_virt_device)); in xhci_alloc_virt_device()
463 virt_dev = ctrl->devs[slot_id]; in xhci_alloc_virt_device()
487 ctrl->dcbaa->dev_context_ptrs[slot_id] = byte_64; in xhci_alloc_virt_device()
489 xhci_flush_cache((uintptr_t)&ctrl->dcbaa->dev_context_ptrs[slot_id], in xhci_alloc_virt_device()
727 int slot_id = udev->slot_id; in xhci_setup_addressable_virt_dev() local
735 virt_dev = ctrl->devs[slot_id]; in xhci_setup_addressable_virt_dev()
808 slot_ctx->tt_info |= cpu_to_le32(TT_SLOT(dev->slot_id)); in xhci_setup_addressable_virt_dev()