Lines Matching refs:slot_id
818 int slot_id) in xhci_free_tt_info() argument
836 if (tt_info->slot_id == slot_id) { in xhci_free_tt_info()
871 tt_info->slot_id = virt_dev->udev->slot_id; in xhci_alloc_tt_info()
881 xhci_free_tt_info(xhci, virt_dev, virt_dev->udev->slot_id); in xhci_alloc_tt_info()
891 void xhci_free_virt_device(struct xhci_hcd *xhci, int slot_id) in xhci_free_virt_device() argument
898 if (slot_id == 0 || !xhci->devs[slot_id]) in xhci_free_virt_device()
901 dev = xhci->devs[slot_id]; in xhci_free_virt_device()
903 xhci->dcbaa->dev_context_ptrs[slot_id] = 0; in xhci_free_virt_device()
929 slot_id, i); in xhci_free_virt_device()
933 xhci_free_tt_info(xhci, dev, slot_id); in xhci_free_virt_device()
942 if (dev->udev && dev->udev->slot_id) in xhci_free_virt_device()
943 dev->udev->slot_id = 0; in xhci_free_virt_device()
944 kfree(xhci->devs[slot_id]); in xhci_free_virt_device()
945 xhci->devs[slot_id] = NULL; in xhci_free_virt_device()
954 static void xhci_free_virt_devices_depth_first(struct xhci_hcd *xhci, int slot_id) in xhci_free_virt_devices_depth_first() argument
961 vdev = xhci->devs[slot_id]; in xhci_free_virt_devices_depth_first()
974 if (tt_info->slot_id == slot_id) { in xhci_free_virt_devices_depth_first()
986 xhci_debugfs_remove_slot(xhci, slot_id); in xhci_free_virt_devices_depth_first()
987 xhci_free_virt_device(xhci, slot_id); in xhci_free_virt_devices_depth_first()
990 int xhci_alloc_virt_device(struct xhci_hcd *xhci, int slot_id, in xhci_alloc_virt_device() argument
997 if (slot_id == 0 || xhci->devs[slot_id]) { in xhci_alloc_virt_device()
998 xhci_warn(xhci, "Bad Slot ID %d\n", slot_id); in xhci_alloc_virt_device()
1006 dev->slot_id = slot_id; in xhci_alloc_virt_device()
1013 xhci_dbg(xhci, "Slot %d output ctx = 0x%llx (dma)\n", slot_id, in xhci_alloc_virt_device()
1021 xhci_dbg(xhci, "Slot %d input ctx = 0x%llx (dma)\n", slot_id, in xhci_alloc_virt_device()
1041 xhci->dcbaa->dev_context_ptrs[slot_id] = cpu_to_le64(dev->out_ctx->dma); in xhci_alloc_virt_device()
1043 slot_id, in xhci_alloc_virt_device()
1044 &xhci->dcbaa->dev_context_ptrs[slot_id], in xhci_alloc_virt_device()
1045 le64_to_cpu(xhci->dcbaa->dev_context_ptrs[slot_id])); in xhci_alloc_virt_device()
1049 xhci->devs[slot_id] = dev; in xhci_alloc_virt_device()
1070 virt_dev = xhci->devs[udev->slot_id]; in xhci_copy_ep0_dequeue_into_input_ctx()
1123 dev = xhci->devs[udev->slot_id]; in xhci_setup_addressable_virt_dev()
1125 if (udev->slot_id == 0 || !dev) { in xhci_setup_addressable_virt_dev()
1127 udev->slot_id); in xhci_setup_addressable_virt_dev()
1194 if (tt_bw->slot_id != udev->tt->hub->slot_id) in xhci_setup_addressable_virt_dev()
1211 slot_ctx->tt_info = cpu_to_le32(udev->tt->hub->slot_id | in xhci_setup_addressable_virt_dev()