Lines Matching defs:slot_id
774 int slot_id)
792 if (tt_info->slot_id == slot_id) {
827 tt_info->slot_id = virt_dev->udev->slot_id;
837 xhci_free_tt_info(xhci, virt_dev, virt_dev->udev->slot_id);
847 void xhci_free_virt_device(struct xhci_hcd *xhci, int slot_id)
854 if (slot_id == 0 || !xhci->devs[slot_id])
857 dev = xhci->devs[slot_id];
859 xhci->dcbaa->dev_context_ptrs[slot_id] = 0;
885 slot_id, i);
889 xhci_free_tt_info(xhci, dev, slot_id);
898 if (dev->udev && dev->udev->slot_id)
899 dev->udev->slot_id = 0;
900 kfree(xhci->devs[slot_id]);
901 xhci->devs[slot_id] = NULL;
910 static void xhci_free_virt_devices_depth_first(struct xhci_hcd *xhci, int slot_id)
917 vdev = xhci->devs[slot_id];
930 if (tt_info->slot_id == slot_id) {
942 xhci_debugfs_remove_slot(xhci, slot_id);
943 xhci_free_virt_device(xhci, slot_id);
946 int xhci_alloc_virt_device(struct xhci_hcd *xhci, int slot_id,
953 if (slot_id == 0 || xhci->devs[slot_id]) {
954 xhci_warn(xhci, "Bad Slot ID %d\n", slot_id);
962 dev->slot_id = slot_id;
969 xhci_dbg(xhci, "Slot %d output ctx = 0x%pad (dma)\n", slot_id, &dev->out_ctx->dma);
976 xhci_dbg(xhci, "Slot %d input ctx = 0x%pad (dma)\n", slot_id, &dev->in_ctx->dma);
995 xhci->dcbaa->dev_context_ptrs[slot_id] = cpu_to_le64(dev->out_ctx->dma);
997 slot_id,
998 &xhci->dcbaa->dev_context_ptrs[slot_id],
999 le64_to_cpu(xhci->dcbaa->dev_context_ptrs[slot_id]));
1003 xhci->devs[slot_id] = dev;
1024 virt_dev = xhci->devs[udev->slot_id];
1077 dev = xhci->devs[udev->slot_id];
1079 if (udev->slot_id == 0 || !dev) {
1081 udev->slot_id);
1144 if (tt_bw->slot_id != udev->tt->hub->slot_id)
1161 slot_ctx->tt_info = cpu_to_le32(udev->tt->hub->slot_id |