Lines Matching refs:ehci

7 * Based on various ehci-*.c drivers
20 struct ehci_hcd ehci;
26 static void spear_start_ehci(struct spear_ehci *ehci)
28 clk_enable(ehci->clk);
31 static void spear_stop_ehci(struct spear_ehci *ehci)
33 clk_disable(ehci->clk);
38 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
42 ehci->caps = hcd->regs;
43 ehci->regs = hcd->regs + HC_LENGTH(ehci, ehci_readl(ehci,
44 &ehci->caps->hc_capbase));
46 ehci->hcs_params = ehci_readl(ehci, &ehci->caps->hcs_params);
47 retval = ehci_halt(ehci);
55 ehci_reset(ehci);
56 ehci_port_power(ehci, 0);
99 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
103 if (time_before(jiffies, ehci->next_statechange))
111 spin_lock_irqsave(&ehci->lock, flags);
112 ehci_prepare_ports_for_controller_suspend(ehci, device_may_wakeup(dev));
113 ehci_writel(ehci, 0, &ehci->regs->intr_enable);
114 ehci_readl(ehci, &ehci->regs->intr_enable);
115 spin_unlock_irqrestore(&ehci->lock, flags);
123 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
125 if (time_before(jiffies, ehci->next_statechange))
128 if (ehci_readl(ehci, &ehci->regs->configured_flag) == FLAG_CF) {
131 ehci_prepare_ports_for_controller_resume(ehci);
136 ehci_writel(ehci, mask, &ehci->regs->intr_enable);
137 ehci_readl(ehci, &ehci->regs->intr_enable);
147 ehci_halt(ehci);
148 ehci_reset(ehci);
151 spin_lock_irq(&ehci->lock);
152 if (ehci->reclaim)
153 end_unlink_async(ehci);
155 ehci_work(ehci);
156 spin_unlock_irq(&ehci->lock);
158 ehci_writel(ehci, ehci->command, &ehci->regs->command);
159 ehci_writel(ehci, FLAG_CF, &ehci->regs->configured_flag);
160 ehci_readl(ehci, &ehci->regs->command); /* unblock posted writes */
163 ehci_port_power(ehci, 1);
174 struct spear_ehci *ehci;
231 ehci = (struct spear_ehci *)hcd_to_ehci(hcd);
232 ehci->clk = usbh_clk;
234 spear_start_ehci(ehci);
242 spear_stop_ehci(ehci);
285 .name = "spear-ehci",
291 MODULE_ALIAS("platform:spear-ehci");