Lines Matching refs:xhci

34 #include "xhci.h"
1292 struct xhci_hcd *xhci = hcd_to_xhci(tegra->hcd);
1293 struct usb_hcd *hcd = main ? xhci->main_hcd : xhci->shared_hcd;
1345 struct xhci_hcd *xhci = hcd_to_xhci(tegra->hcd);
1372 xhci->shared_hcd, GetPortStatus,
1541 struct xhci_hcd *xhci;
1819 xhci = hcd_to_xhci(tegra->hcd);
1821 xhci->shared_hcd = usb_create_shared_hcd(&tegra_xhci_hc_driver,
1825 if (!xhci->shared_hcd) {
1831 if (HCC_MAX_PSA(xhci->hcc_params) >= 4)
1832 xhci->shared_hcd->can_do_streams = 1;
1834 err = usb_add_hcd(xhci->shared_hcd, tegra->xhci_irq, IRQF_SHARED);
1874 device_init_wakeup(&xhci->shared_hcd->self.root_hub->dev, true);
1889 usb_remove_hcd(xhci->shared_hcd);
1891 usb_put_hcd(xhci->shared_hcd);
1927 struct xhci_hcd *xhci = hcd_to_xhci(tegra->hcd);
1932 usb_remove_hcd(xhci->shared_hcd);
1933 usb_put_hcd(xhci->shared_hcd);
1934 xhci->shared_hcd = NULL;
1984 struct xhci_hcd *xhci = hcd_to_xhci(tegra->hcd);
1985 struct xhci_bus_state *bus_state = &xhci->usb2_rhub.bus_state;
1996 spin_lock_irqsave(&xhci->lock, flags);
1998 if (!xhci_hub_ports_suspended(&xhci->usb2_rhub) ||
1999 !xhci_hub_ports_suspended(&xhci->usb3_rhub))
2002 spin_unlock_irqrestore(&xhci->lock, flags);
2061 struct xhci_hcd *xhci = hcd_to_xhci(tegra->hcd);
2071 rhub = &xhci->usb3_rhub;
2073 rhub = &xhci->usb2_rhub;
2166 struct xhci_hcd *xhci = hcd_to_xhci(tegra->hcd);
2176 usbcmd = readl(&xhci->op_regs->command);
2178 writel(usbcmd, &xhci->op_regs->command);
2187 if (!xhci->usb2_rhub.ports[i])
2189 portsc = readl(xhci->usb2_rhub.ports[i]->addr);
2195 err = xhci_suspend(xhci, wakeup);
2223 usbcmd = readl(&xhci->op_regs->command);
2225 writel(usbcmd, &xhci->op_regs->command);
2236 struct xhci_hcd *xhci = hcd_to_xhci(tegra->hcd);
2289 err = xhci_resume(xhci, runtime ? PMSG_AUTO_RESUME : PMSG_RESUME);
2295 usbcmd = readl(&xhci->op_regs->command);
2297 writel(usbcmd, &xhci->op_regs->command);
2676 static void tegra_xhci_quirks(struct device *dev, struct xhci_hcd *xhci)
2681 xhci->quirks |= XHCI_LPM_SUPPORT;
2693 struct xhci_hcd *xhci = hcd_to_xhci(hcd);
2703 rhub = &xhci->usb2_rhub;