Lines Matching refs:slot_id

796 		int slot_id)  in xhci_free_tt_info()  argument
814 if (tt_info->slot_id == slot_id) { in xhci_free_tt_info()
849 tt_info->slot_id = virt_dev->udev->slot_id; in xhci_alloc_tt_info()
859 xhci_free_tt_info(xhci, virt_dev, virt_dev->udev->slot_id); in xhci_alloc_tt_info()
869 void xhci_free_virt_device(struct xhci_hcd *xhci, int slot_id) in xhci_free_virt_device() argument
876 if (slot_id == 0 || !xhci->devs[slot_id]) in xhci_free_virt_device()
879 dev = xhci->devs[slot_id]; in xhci_free_virt_device()
881 xhci->dcbaa->dev_context_ptrs[slot_id] = 0; in xhci_free_virt_device()
904 slot_id, i); in xhci_free_virt_device()
907 xhci_free_tt_info(xhci, dev, slot_id); in xhci_free_virt_device()
916 if (dev->udev && dev->udev->slot_id) in xhci_free_virt_device()
917 dev->udev->slot_id = 0; in xhci_free_virt_device()
918 kfree(xhci->devs[slot_id]); in xhci_free_virt_device()
919 xhci->devs[slot_id] = NULL; in xhci_free_virt_device()
928 static void xhci_free_virt_devices_depth_first(struct xhci_hcd *xhci, int slot_id) in xhci_free_virt_devices_depth_first() argument
935 vdev = xhci->devs[slot_id]; in xhci_free_virt_devices_depth_first()
948 if (tt_info->slot_id == slot_id) { in xhci_free_virt_devices_depth_first()
960 xhci_debugfs_remove_slot(xhci, slot_id); in xhci_free_virt_devices_depth_first()
961 xhci_free_virt_device(xhci, slot_id); in xhci_free_virt_devices_depth_first()
964 int xhci_alloc_virt_device(struct xhci_hcd *xhci, int slot_id, in xhci_alloc_virt_device() argument
971 if (slot_id == 0 || xhci->devs[slot_id]) { in xhci_alloc_virt_device()
972 xhci_warn(xhci, "Bad Slot ID %d\n", slot_id); in xhci_alloc_virt_device()
980 dev->slot_id = slot_id; in xhci_alloc_virt_device()
987 xhci_dbg(xhci, "Slot %d output ctx = 0x%llx (dma)\n", slot_id, in xhci_alloc_virt_device()
995 xhci_dbg(xhci, "Slot %d input ctx = 0x%llx (dma)\n", slot_id, in xhci_alloc_virt_device()
1015 xhci->dcbaa->dev_context_ptrs[slot_id] = cpu_to_le64(dev->out_ctx->dma); in xhci_alloc_virt_device()
1017 slot_id, in xhci_alloc_virt_device()
1018 &xhci->dcbaa->dev_context_ptrs[slot_id], in xhci_alloc_virt_device()
1019 le64_to_cpu(xhci->dcbaa->dev_context_ptrs[slot_id])); in xhci_alloc_virt_device()
1023 xhci->devs[slot_id] = dev; in xhci_alloc_virt_device()
1044 virt_dev = xhci->devs[udev->slot_id]; in xhci_copy_ep0_dequeue_into_input_ctx()
1097 dev = xhci->devs[udev->slot_id]; in xhci_setup_addressable_virt_dev()
1099 if (udev->slot_id == 0 || !dev) { in xhci_setup_addressable_virt_dev()
1101 udev->slot_id); in xhci_setup_addressable_virt_dev()
1167 if (tt_bw->slot_id != udev->tt->hub->slot_id) in xhci_setup_addressable_virt_dev()
1184 slot_ctx->tt_info = cpu_to_le32(udev->tt->hub->slot_id | in xhci_setup_addressable_virt_dev()