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()
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()
227 ret = usb_hcd_setup_local_mem(hcd, 0, 0, SZ_64K); in ohci_hcd_sa1111_probe()
231 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { in ohci_hcd_sa1111_probe()
237 hcd->regs = dev->mapbase; in ohci_hcd_sa1111_probe()
243 ret = usb_add_hcd(hcd, irq, 0); in ohci_hcd_sa1111_probe()
245 device_wakeup_enable(hcd->self.controller); in ohci_hcd_sa1111_probe()
251 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_sa1111_probe()
253 usb_put_hcd(hcd); in ohci_hcd_sa1111_probe()
266 struct usb_hcd *hcd = sa1111_get_drvdata(dev); in ohci_hcd_sa1111_remove() local
268 usb_remove_hcd(hcd); in ohci_hcd_sa1111_remove()
270 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_sa1111_remove()
271 usb_put_hcd(hcd); in ohci_hcd_sa1111_remove()
277 struct usb_hcd *hcd = sa1111_get_drvdata(dev); in ohci_hcd_sa1111_shutdown() local
279 if (test_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags)) { in ohci_hcd_sa1111_shutdown()
280 hcd->driver->shutdown(hcd); in ohci_hcd_sa1111_shutdown()