Lines Matching refs:ehci
74 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
77 ehci->need_io_watchdog = 0;
126 struct ehci_hcd *ehci;
170 ehci = hcd_to_ehci(hcd);
171 ehci->caps = hcd->regs;
172 ehci->regs = hcd->regs + HC_LENGTH(readl(&ehci->caps->hc_capbase));
174 ehci->hcs_params = readl(&ehci->caps->hcs_params);
210 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
217 if (time_before(jiffies, ehci->next_statechange))
224 ehci_prepare_ports_for_controller_suspend(ehci, device_may_wakeup(dev));
225 spin_lock_irqsave(&ehci->lock, flags);
226 ehci_writel(ehci, 0, &ehci->regs->intr_enable);
227 (void)ehci_readl(ehci, &ehci->regs->intr_enable);
232 spin_unlock_irqrestore(&ehci->lock, flags);
243 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
249 if (time_before(jiffies, ehci->next_statechange))
258 if (ehci_readl(ehci, &ehci->regs->configured_flag) == FLAG_CF) {
261 ehci_prepare_ports_for_controller_resume(ehci);
264 ehci_writel(ehci, mask, &ehci->regs->intr_enable);
265 ehci_readl(ehci, &ehci->regs->intr_enable);
269 ehci_dbg(ehci, "lost power, restarting\n");
275 (void) ehci_halt(ehci);
276 (void) ehci_reset(ehci);
279 spin_lock_irq(&ehci->lock);
280 if (ehci->reclaim)
281 end_unlink_async(ehci);
282 ehci_work(ehci);
283 spin_unlock_irq(&ehci->lock);
285 ehci_writel(ehci, ehci->command, &ehci->regs->command);
286 ehci_writel(ehci, FLAG_CF, &ehci->regs->configured_flag);
287 ehci_readl(ehci, &ehci->regs->command); /* unblock posted writes */
290 ehci_port_power(ehci, 1);
313 .name = "au1xxx-ehci",
319 MODULE_ALIAS("platform:au1xxx-ehci");