Lines Matching refs:hcd
72 #define hcd_to_tmio(hcd) ((struct tmio_hcd *)(hcd_to_ohci(hcd) + 1)) argument
78 struct usb_hcd *hcd = platform_get_drvdata(dev); in tmio_write_pm() local
79 struct tmio_hcd *tmio = hcd_to_tmio(hcd); in tmio_write_pm()
94 struct usb_hcd *hcd = platform_get_drvdata(dev); in tmio_stop_hc() local
95 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in tmio_stop_hc()
96 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()
242 ohci = hcd_to_ohci(hcd); 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()
262 iounmap(hcd->regs); in ohci_hcd_tmio_drv_probe()
266 usb_put_hcd(hcd); in ohci_hcd_tmio_drv_probe()
274 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_hcd_tmio_drv_remove() local
275 struct tmio_hcd *tmio = hcd_to_tmio(hcd); in ohci_hcd_tmio_drv_remove()
278 usb_remove_hcd(hcd); in ohci_hcd_tmio_drv_remove()
283 iounmap(hcd->regs); in ohci_hcd_tmio_drv_remove()
285 usb_put_hcd(hcd); in ohci_hcd_tmio_drv_remove()
294 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_hcd_tmio_drv_suspend() local
295 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_hcd_tmio_drv_suspend()
296 struct tmio_hcd *tmio = hcd_to_tmio(hcd); in ohci_hcd_tmio_drv_suspend()
324 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_hcd_tmio_drv_resume() local
325 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_hcd_tmio_drv_resume()
326 struct tmio_hcd *tmio = hcd_to_tmio(hcd); in ohci_hcd_tmio_drv_resume()
351 ohci_resume(hcd, false); in ohci_hcd_tmio_drv_resume()