Lines Matching refs:hcd
45 static void dump_hci_status(struct usb_hcd *hcd, const char *label)
47 unsigned long status = sa1111_readl(hcd->regs + USB_STATUS);
58 static int ohci_sa1111_reset(struct usb_hcd *hcd) in ohci_sa1111_reset() argument
60 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_sa1111_reset()
66 static int ohci_sa1111_start(struct usb_hcd *hcd) in ohci_sa1111_start() argument
68 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_sa1111_start()
74 ohci_stop(hcd); in ohci_sa1111_start()
182 struct usb_hcd *hcd; in ohci_hcd_sa1111_probe() local
194 hcd = usb_create_hcd(&ohci_sa1111_hc_driver, &dev->dev, "sa1111"); in ohci_hcd_sa1111_probe()
195 if (!hcd) in ohci_hcd_sa1111_probe()
198 hcd->rsrc_start = dev->res.start; in ohci_hcd_sa1111_probe()
199 hcd->rsrc_len = resource_size(&dev->res); in ohci_hcd_sa1111_probe()
201 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { in ohci_hcd_sa1111_probe()
207 hcd->regs = dev->mapbase; in ohci_hcd_sa1111_probe()
213 ret = usb_add_hcd(hcd, dev->irq[1], 0); in ohci_hcd_sa1111_probe()
215 device_wakeup_enable(hcd->self.controller); in ohci_hcd_sa1111_probe()
221 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_sa1111_probe()
223 usb_put_hcd(hcd); in ohci_hcd_sa1111_probe()
236 struct usb_hcd *hcd = sa1111_get_drvdata(dev); in ohci_hcd_sa1111_remove() local
238 usb_remove_hcd(hcd); in ohci_hcd_sa1111_remove()
240 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_sa1111_remove()
241 usb_put_hcd(hcd); in ohci_hcd_sa1111_remove()
248 struct usb_hcd *hcd = sa1111_get_drvdata(dev); in ohci_hcd_sa1111_shutdown() local
250 if (test_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags)) { in ohci_hcd_sa1111_shutdown()
251 hcd->driver->shutdown(hcd); in ohci_hcd_sa1111_shutdown()