Lines Matching full:hcd

3  * OHCI HCD (Host Controller Driver) for USB.
22 static int ohci_sm501_init(struct usb_hcd *hcd) in ohci_sm501_init() argument
24 return ohci_init(hcd_to_ohci(hcd)); in ohci_sm501_init()
27 static int ohci_sm501_start(struct usb_hcd *hcd) in ohci_sm501_start() argument
29 struct device *dev = hcd->self.controller; in ohci_sm501_start()
32 ret = ohci_run(hcd_to_ohci(hcd)); in ohci_sm501_start()
34 dev_err(dev, "can't start %s", hcd->self.bus_name); in ohci_sm501_start()
35 ohci_stop(hcd); in ohci_sm501_start()
94 struct usb_hcd *hcd = NULL; in ohci_hcd_sm501_drv_probe() local
121 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in ohci_hcd_sm501_drv_probe()
122 if (!hcd) { in ohci_hcd_sm501_drv_probe()
127 hcd->rsrc_start = res->start; in ohci_hcd_sm501_drv_probe()
128 hcd->rsrc_len = resource_size(res); in ohci_hcd_sm501_drv_probe()
130 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, pdev->name)) { in ohci_hcd_sm501_drv_probe()
136 hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_sm501_drv_probe()
137 if (hcd->regs == NULL) { in ohci_hcd_sm501_drv_probe()
143 ohci_hcd_init(hcd_to_ohci(hcd)); in ohci_hcd_sm501_drv_probe()
156 * regular memory. A non-null hcd->localmem_pool initialized by in ohci_hcd_sm501_drv_probe()
160 retval = usb_hcd_setup_local_mem(hcd, mem->start, in ohci_hcd_sm501_drv_probe()
165 retval = usb_add_hcd(hcd, irq, IRQF_SHARED); in ohci_hcd_sm501_drv_probe()
168 device_wakeup_enable(hcd->self.controller); in ohci_hcd_sm501_drv_probe()
177 iounmap(hcd->regs); in ohci_hcd_sm501_drv_probe()
179 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_sm501_drv_probe()
181 usb_put_hcd(hcd); in ohci_hcd_sm501_drv_probe()
190 struct usb_hcd *hcd = platform_get_drvdata(pdev); in ohci_hcd_sm501_drv_remove() local
193 usb_remove_hcd(hcd); in ohci_hcd_sm501_drv_remove()
194 iounmap(hcd->regs); in ohci_hcd_sm501_drv_remove()
195 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_sm501_drv_remove()
196 usb_put_hcd(hcd); in ohci_hcd_sm501_drv_remove()
212 struct usb_hcd *hcd = platform_get_drvdata(pdev); in ohci_sm501_suspend() local
213 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_sm501_suspend()
221 ret = ohci_suspend(hcd, do_wakeup); in ohci_sm501_suspend()
232 struct usb_hcd *hcd = platform_get_drvdata(pdev); in ohci_sm501_resume() local
233 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_sm501_resume()
240 ohci_resume(hcd, false); in ohci_sm501_resume()