Lines Matching defs:slot_id
689 void xhci_free_virt_device(struct xhci_hcd *xhci, int slot_id)
695 if (slot_id == 0 || !xhci->devs[slot_id])
698 dev = xhci->devs[slot_id];
699 xhci->dcbaa->dev_context_ptrs[slot_id] = 0;
722 kfree(xhci->devs[slot_id]);
723 xhci->devs[slot_id] = NULL;
726 int xhci_alloc_virt_device(struct xhci_hcd *xhci, int slot_id,
733 if (slot_id == 0 || xhci->devs[slot_id]) {
734 xhci_warn(xhci, "Bad Slot ID %d\n", slot_id);
738 xhci->devs[slot_id] = kzalloc(sizeof(*xhci->devs[slot_id]), flags);
739 if (!xhci->devs[slot_id])
741 dev = xhci->devs[slot_id];
748 xhci_dbg(xhci, "Slot %d output ctx = 0x%llx (dma)\n", slot_id,
756 xhci_dbg(xhci, "Slot %d input ctx = 0x%llx (dma)\n", slot_id,
782 xhci->dcbaa->dev_context_ptrs[slot_id] = dev->out_ctx->dma;
784 slot_id,
785 &xhci->dcbaa->dev_context_ptrs[slot_id],
786 (unsigned long long) xhci->dcbaa->dev_context_ptrs[slot_id]);
790 xhci_free_virt_device(xhci, slot_id);
801 virt_dev = xhci->devs[udev->slot_id];
817 dev = xhci->devs[udev->slot_id];
819 if (udev->slot_id == 0 || !dev) {
821 udev->slot_id);
866 slot_ctx->tt_info = udev->tt->hub->slot_id;