Lines Matching refs:hcd
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()
178 struct usb_hcd *hcd; in ohci_hcd_sa1111_probe() local
190 hcd = usb_create_hcd(&ohci_sa1111_hc_driver, &dev->dev, "sa1111"); in ohci_hcd_sa1111_probe()
191 if (!hcd) in ohci_hcd_sa1111_probe()
194 hcd->rsrc_start = dev->res.start; in ohci_hcd_sa1111_probe()
195 hcd->rsrc_len = resource_size(&dev->res); in ohci_hcd_sa1111_probe()
224 ret = usb_hcd_setup_local_mem(hcd, 0, 0, SZ_64K); in ohci_hcd_sa1111_probe()
228 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { in ohci_hcd_sa1111_probe()
234 hcd->regs = dev->mapbase; in ohci_hcd_sa1111_probe()
240 ret = usb_add_hcd(hcd, irq, 0); in ohci_hcd_sa1111_probe()
242 device_wakeup_enable(hcd->self.controller); in ohci_hcd_sa1111_probe()
248 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_sa1111_probe()
250 usb_put_hcd(hcd); in ohci_hcd_sa1111_probe()
263 struct usb_hcd *hcd = sa1111_get_drvdata(dev); in ohci_hcd_sa1111_remove() local
265 usb_remove_hcd(hcd); in ohci_hcd_sa1111_remove()
267 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_sa1111_remove()
268 usb_put_hcd(hcd); in ohci_hcd_sa1111_remove()
274 struct usb_hcd *hcd = sa1111_get_drvdata(dev); in ohci_hcd_sa1111_shutdown() local
276 if (test_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags)) { in ohci_hcd_sa1111_shutdown()
277 hcd->driver->shutdown(hcd); in ohci_hcd_sa1111_shutdown()