• Home
  • Raw
  • Download

Lines Matching refs:slot_id

799 		int slot_id)  in xhci_free_tt_info()  argument
817 if (tt_info->slot_id == slot_id) { in xhci_free_tt_info()
850 tt_info->slot_id = virt_dev->udev->slot_id; in xhci_alloc_tt_info()
860 xhci_free_tt_info(xhci, virt_dev, virt_dev->udev->slot_id); in xhci_alloc_tt_info()
870 void xhci_free_virt_device(struct xhci_hcd *xhci, int slot_id) in xhci_free_virt_device() argument
877 if (slot_id == 0 || !xhci->devs[slot_id]) in xhci_free_virt_device()
880 dev = xhci->devs[slot_id]; in xhci_free_virt_device()
881 xhci->dcbaa->dev_context_ptrs[slot_id] = 0; in xhci_free_virt_device()
902 slot_id, i); in xhci_free_virt_device()
905 xhci_free_tt_info(xhci, dev, slot_id); in xhci_free_virt_device()
920 kfree(xhci->devs[slot_id]); in xhci_free_virt_device()
921 xhci->devs[slot_id] = NULL; in xhci_free_virt_device()
924 int xhci_alloc_virt_device(struct xhci_hcd *xhci, int slot_id, in xhci_alloc_virt_device() argument
931 if (slot_id == 0 || xhci->devs[slot_id]) { in xhci_alloc_virt_device()
932 xhci_warn(xhci, "Bad Slot ID %d\n", slot_id); in xhci_alloc_virt_device()
936 xhci->devs[slot_id] = kzalloc(sizeof(*xhci->devs[slot_id]), flags); in xhci_alloc_virt_device()
937 if (!xhci->devs[slot_id]) in xhci_alloc_virt_device()
939 dev = xhci->devs[slot_id]; in xhci_alloc_virt_device()
946 xhci_dbg(xhci, "Slot %d output ctx = 0x%llx (dma)\n", slot_id, in xhci_alloc_virt_device()
954 xhci_dbg(xhci, "Slot %d input ctx = 0x%llx (dma)\n", slot_id, in xhci_alloc_virt_device()
982 xhci->dcbaa->dev_context_ptrs[slot_id] = cpu_to_le64(dev->out_ctx->dma); in xhci_alloc_virt_device()
984 slot_id, in xhci_alloc_virt_device()
985 &xhci->dcbaa->dev_context_ptrs[slot_id], in xhci_alloc_virt_device()
986 le64_to_cpu(xhci->dcbaa->dev_context_ptrs[slot_id])); in xhci_alloc_virt_device()
990 xhci_free_virt_device(xhci, slot_id); in xhci_alloc_virt_device()
1001 virt_dev = xhci->devs[udev->slot_id]; in xhci_copy_ep0_dequeue_into_input_ctx()
1054 dev = xhci->devs[udev->slot_id]; in xhci_setup_addressable_virt_dev()
1056 if (udev->slot_id == 0 || !dev) { in xhci_setup_addressable_virt_dev()
1058 udev->slot_id); in xhci_setup_addressable_virt_dev()
1116 if (tt_bw->slot_id != udev->tt->hub->slot_id) in xhci_setup_addressable_virt_dev()
1133 slot_ctx->tt_info = cpu_to_le32(udev->tt->hub->slot_id | in xhci_setup_addressable_virt_dev()