Lines Matching full:hcd
3 * OHCI HCD (Host Controller Driver) for USB.
44 static void dump_hci_status(struct usb_hcd *hcd, const char *label)
46 unsigned long status = readl_relaxed(hcd->regs + USB_STATUS);
57 static int ohci_sa1111_reset(struct usb_hcd *hcd) in ohci_sa1111_reset() argument
59 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_sa1111_reset()
65 static int ohci_sa1111_start(struct usb_hcd *hcd) in ohci_sa1111_start() argument
67 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_sa1111_start()
73 ohci_stop(hcd); in ohci_sa1111_start()
177 * then invokes the start() method for the HCD associated with it.
181 struct usb_hcd *hcd; in ohci_hcd_sa1111_probe() local
193 hcd = usb_create_hcd(&ohci_sa1111_hc_driver, &dev->dev, "sa1111"); in ohci_hcd_sa1111_probe()
194 if (!hcd) in ohci_hcd_sa1111_probe()
197 hcd->rsrc_start = dev->res.start; in ohci_hcd_sa1111_probe()
198 hcd->rsrc_len = resource_size(&dev->res); in ohci_hcd_sa1111_probe()
206 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { in ohci_hcd_sa1111_probe()
212 hcd->regs = dev->mapbase; in ohci_hcd_sa1111_probe()
218 ret = usb_add_hcd(hcd, irq, 0); in ohci_hcd_sa1111_probe()
220 device_wakeup_enable(hcd->self.controller); in ohci_hcd_sa1111_probe()
226 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_sa1111_probe()
228 usb_put_hcd(hcd); in ohci_hcd_sa1111_probe()
237 * the HCD's stop() method.
241 struct usb_hcd *hcd = sa1111_get_drvdata(dev); in ohci_hcd_sa1111_remove() local
243 usb_remove_hcd(hcd); in ohci_hcd_sa1111_remove()
245 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_sa1111_remove()
246 usb_put_hcd(hcd); in ohci_hcd_sa1111_remove()
254 struct usb_hcd *hcd = sa1111_get_drvdata(dev); in ohci_hcd_sa1111_shutdown() local
256 if (test_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags)) { in ohci_hcd_sa1111_shutdown()
257 hcd->driver->shutdown(hcd); in ohci_hcd_sa1111_shutdown()