Lines Matching full:ehci

22 #include "../host/ehci.h"
77 .compatible = "nvidia,tegra20-ehci",
80 .compatible = "nvidia,tegra30-ehci",
108 dev_err(dev, "can't get ehci reset: %pe\n", rst); in tegra_usb_reset_controller()
156 struct ehci_hcd *ehci; in tegra_usb_notify_event() local
161 ehci = hcd_to_ehci(ci->hcd); in tegra_usb_notify_event()
162 ehci->has_tdi_phy_lpm = false; in tegra_usb_notify_event()
163 ehci_writel(ehci, usb->soc->txfifothresh << 16, in tegra_usb_notify_event()
164 &ehci->regs->txfill_tuning); in tegra_usb_notify_event()
172 static int tegra_usb_internal_port_reset(struct ehci_hcd *ehci, in tegra_usb_internal_port_reset() argument
180 saved_usbintr = ehci_readl(ehci, &ehci->regs->intr_enable); in tegra_usb_internal_port_reset()
182 ehci_writel(ehci, 0, &ehci->regs->intr_enable); in tegra_usb_internal_port_reset()
183 spin_unlock_irqrestore(&ehci->lock, *flags); in tegra_usb_internal_port_reset()
190 temp = ehci_readl(ehci, portsc_reg); in tegra_usb_internal_port_reset()
192 ehci_writel(ehci, temp, portsc_reg); in tegra_usb_internal_port_reset()
195 ehci_writel(ehci, temp, portsc_reg); in tegra_usb_internal_port_reset()
206 temp = ehci_readl(ehci, portsc_reg); in tegra_usb_internal_port_reset()
219 ehci_writel(ehci, PORT_CSC, portsc_reg); in tegra_usb_internal_port_reset()
225 temp = ehci_readl(ehci, &ehci->regs->status); in tegra_usb_internal_port_reset()
226 ehci_writel(ehci, temp, &ehci->regs->status); in tegra_usb_internal_port_reset()
229 spin_lock_irqsave(&ehci->lock, *flags); in tegra_usb_internal_port_reset()
230 ehci_writel(ehci, saved_usbintr, &ehci->regs->intr_enable); in tegra_usb_internal_port_reset()
240 struct ehci_hcd *ehci = hcd_to_ehci(ci->hcd); in tegra_ehci_hub_control() local
244 status_reg = &ehci->regs->port_status[(wIndex & 0xff) - 1]; in tegra_ehci_hub_control()
252 retval = tegra_usb_internal_port_reset(ehci, status_reg, flags); in tegra_ehci_hub_control()