• Home
  • Raw
  • Download

Lines Matching refs:hcd

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
208 hcd = usb_create_hcd(&ohci_tmio_hc_driver, &dev->dev, dev_name(&dev->dev)); in ohci_hcd_tmio_drv_probe()
209 if (!hcd) { in ohci_hcd_tmio_drv_probe()
214 hcd->rsrc_start = regs->start; in ohci_hcd_tmio_drv_probe()
215 hcd->rsrc_len = resource_size(regs); in ohci_hcd_tmio_drv_probe()
217 tmio = hcd_to_tmio(hcd); in ohci_hcd_tmio_drv_probe()
227 hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_tmio_drv_probe()
228 if (!hcd->regs) { in ohci_hcd_tmio_drv_probe()
240 ohci = hcd_to_ohci(hcd); in ohci_hcd_tmio_drv_probe()
243 ret = usb_hcd_setup_local_mem(hcd, sram->start, sram->start, in ohci_hcd_tmio_drv_probe()
248 ret = usb_add_hcd(hcd, irq, 0); in ohci_hcd_tmio_drv_probe()
252 device_wakeup_enable(hcd->self.controller); in ohci_hcd_tmio_drv_probe()
256 usb_remove_hcd(hcd); in ohci_hcd_tmio_drv_probe()
263 iounmap(hcd->regs); in ohci_hcd_tmio_drv_probe()
267 usb_put_hcd(hcd); in ohci_hcd_tmio_drv_probe()
275 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_hcd_tmio_drv_remove() local
276 struct tmio_hcd *tmio = hcd_to_tmio(hcd); in ohci_hcd_tmio_drv_remove()
279 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()