Lines Matching refs:virt_dev
128 struct xhci_virt_device *virt_dev; in get_bw_info() local
131 virt_dev = xhci->devs[udev->slot_id]; in get_bw_info()
135 bw_index = (virt_dev->real_port - 1) * 2; in get_bw_info()
137 bw_index = (virt_dev->real_port - 1) * 2 + 1; in get_bw_info()
140 bw_index = virt_dev->real_port + xhci->usb3_rhub.num_ports - 1; in get_bw_info()
720 struct xhci_virt_device *virt_dev; in add_ep_quirk() local
724 virt_dev = xhci->devs[udev->slot_id]; in add_ep_quirk()
726 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in add_ep_quirk()
730 if (!need_bw_sch(ep, udev->speed, !!virt_dev->tt_info)) { in add_ep_quirk()
758 struct xhci_virt_device *virt_dev; in drop_ep_quirk() local
762 virt_dev = xhci->devs[udev->slot_id]; in drop_ep_quirk()
766 if (!need_bw_sch(ep, udev->speed, !!virt_dev->tt_info)) in drop_ep_quirk()
783 struct xhci_virt_device *virt_dev = xhci->devs[udev->slot_id]; in xhci_mtk_check_bandwidth() local
809 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_mtk_check_bandwidth()