Lines Matching full:hcd
3 * OHCI HCD(Host Controller Driver) for USB.
69 #define hcd_to_tmio(hcd) ((struct tmio_hcd *)(hcd_to_ohci(hcd) + 1)) argument
75 struct usb_hcd *hcd = platform_get_drvdata(dev); in tmio_write_pm() local
76 struct tmio_hcd *tmio = hcd_to_tmio(hcd); in tmio_write_pm()
91 struct usb_hcd *hcd = platform_get_drvdata(dev); in tmio_stop_hc() local
92 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in tmio_stop_hc()
93 struct tmio_hcd *tmio = hcd_to_tmio(hcd); in tmio_stop_hc()
119 struct usb_hcd *hcd = platform_get_drvdata(dev); in tmio_start_hc() local
120 struct tmio_hcd *tmio = hcd_to_tmio(hcd); in tmio_start_hc()
121 unsigned long base = hcd->rsrc_start; in tmio_start_hc()
131 (u64) hcd->rsrc_start, hcd->irq); in tmio_start_hc()
134 static int ohci_tmio_start(struct usb_hcd *hcd) in ohci_tmio_start() argument
136 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_tmio_start()
143 dev_err(hcd->self.controller, "can't start %s\n", in ohci_tmio_start()
144 hcd->self.bus_name); in ohci_tmio_start()
145 ohci_stop(hcd); in ohci_tmio_start()
196 struct usb_hcd *hcd; in ohci_hcd_tmio_drv_probe() local
205 hcd = usb_create_hcd(&ohci_tmio_hc_driver, &dev->dev, dev_name(&dev->dev)); in ohci_hcd_tmio_drv_probe()
206 if (!hcd) { in ohci_hcd_tmio_drv_probe()
211 hcd->rsrc_start = regs->start; in ohci_hcd_tmio_drv_probe()
212 hcd->rsrc_len = resource_size(regs); in ohci_hcd_tmio_drv_probe()
214 tmio = hcd_to_tmio(hcd); in ohci_hcd_tmio_drv_probe()
224 hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_tmio_drv_probe()
225 if (!hcd->regs) { in ohci_hcd_tmio_drv_probe()
237 ohci = hcd_to_ohci(hcd); in ohci_hcd_tmio_drv_probe()
240 ret = usb_hcd_setup_local_mem(hcd, sram->start, sram->start, in ohci_hcd_tmio_drv_probe()
245 ret = usb_add_hcd(hcd, irq, 0); in ohci_hcd_tmio_drv_probe()
249 device_wakeup_enable(hcd->self.controller); in ohci_hcd_tmio_drv_probe()
253 usb_remove_hcd(hcd); in ohci_hcd_tmio_drv_probe()
260 iounmap(hcd->regs); in ohci_hcd_tmio_drv_probe()
264 usb_put_hcd(hcd); in ohci_hcd_tmio_drv_probe()
272 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_hcd_tmio_drv_remove() local
273 struct tmio_hcd *tmio = hcd_to_tmio(hcd); in ohci_hcd_tmio_drv_remove()
276 usb_remove_hcd(hcd); in ohci_hcd_tmio_drv_remove()
280 iounmap(hcd->regs); in ohci_hcd_tmio_drv_remove()
282 usb_put_hcd(hcd); in ohci_hcd_tmio_drv_remove()
291 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_hcd_tmio_drv_suspend() local
292 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_hcd_tmio_drv_suspend()
293 struct tmio_hcd *tmio = hcd_to_tmio(hcd); in ohci_hcd_tmio_drv_suspend()
321 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_hcd_tmio_drv_resume() local
322 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_hcd_tmio_drv_resume()
323 struct tmio_hcd *tmio = hcd_to_tmio(hcd); in ohci_hcd_tmio_drv_resume()
348 ohci_resume(hcd, false); in ohci_hcd_tmio_drv_resume()