Lines Matching refs:hcd

64 #define hcd_to_tmio(hcd)	((struct tmio_hcd *)(hcd_to_ohci(hcd) + 1))  argument
70 struct usb_hcd *hcd = platform_get_drvdata(dev); in tmio_write_pm() local
71 struct tmio_hcd *tmio = hcd_to_tmio(hcd); in tmio_write_pm()
86 struct usb_hcd *hcd = platform_get_drvdata(dev); in tmio_stop_hc() local
87 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in tmio_stop_hc()
88 struct tmio_hcd *tmio = hcd_to_tmio(hcd); in tmio_stop_hc()
114 struct usb_hcd *hcd = platform_get_drvdata(dev); in tmio_start_hc() local
115 struct tmio_hcd *tmio = hcd_to_tmio(hcd); in tmio_start_hc()
116 unsigned long base = hcd->rsrc_start; in tmio_start_hc()
126 (u64) hcd->rsrc_start, hcd->irq); in tmio_start_hc()
129 static int ohci_tmio_start(struct usb_hcd *hcd) in ohci_tmio_start() argument
131 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_tmio_start()
138 dev_err(hcd->self.controller, "can't start %s\n", in ohci_tmio_start()
139 hcd->self.bus_name); in ohci_tmio_start()
140 ohci_stop(hcd); in ohci_tmio_start()
191 struct usb_hcd *hcd; in ohci_hcd_tmio_drv_probe() local
203 hcd = usb_create_hcd(&ohci_tmio_hc_driver, &dev->dev, dev_name(&dev->dev)); in ohci_hcd_tmio_drv_probe()
204 if (!hcd) { in ohci_hcd_tmio_drv_probe()
209 hcd->rsrc_start = regs->start; in ohci_hcd_tmio_drv_probe()
210 hcd->rsrc_len = resource_size(regs); in ohci_hcd_tmio_drv_probe()
212 tmio = hcd_to_tmio(hcd); in ohci_hcd_tmio_drv_probe()
222 hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_tmio_drv_probe()
223 if (!hcd->regs) { in ohci_hcd_tmio_drv_probe()
235 ohci = hcd_to_ohci(hcd); in ohci_hcd_tmio_drv_probe()
238 ret = usb_hcd_setup_local_mem(hcd, sram->start, sram->start, in ohci_hcd_tmio_drv_probe()
243 ret = usb_add_hcd(hcd, irq, 0); in ohci_hcd_tmio_drv_probe()
247 device_wakeup_enable(hcd->self.controller); in ohci_hcd_tmio_drv_probe()
251 usb_remove_hcd(hcd); in ohci_hcd_tmio_drv_probe()
258 iounmap(hcd->regs); in ohci_hcd_tmio_drv_probe()
262 usb_put_hcd(hcd); in ohci_hcd_tmio_drv_probe()
270 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_hcd_tmio_drv_remove() local
271 struct tmio_hcd *tmio = hcd_to_tmio(hcd); in ohci_hcd_tmio_drv_remove()
274 usb_remove_hcd(hcd); in ohci_hcd_tmio_drv_remove()
278 iounmap(hcd->regs); in ohci_hcd_tmio_drv_remove()
280 usb_put_hcd(hcd); in ohci_hcd_tmio_drv_remove()
289 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_hcd_tmio_drv_suspend() local
290 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_hcd_tmio_drv_suspend()
291 struct tmio_hcd *tmio = hcd_to_tmio(hcd); in ohci_hcd_tmio_drv_suspend()
319 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_hcd_tmio_drv_resume() local
320 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_hcd_tmio_drv_resume()
321 struct tmio_hcd *tmio = hcd_to_tmio(hcd); in ohci_hcd_tmio_drv_resume()
346 ohci_resume(hcd, false); in ohci_hcd_tmio_drv_resume()