Lines Matching refs:hcd
40 static int ps3_ehci_hc_reset(struct usb_hcd *hcd) in ps3_ehci_hc_reset() argument
43 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ps3_ehci_hc_reset()
46 ehci->caps = hcd->regs; in ps3_ehci_hc_reset()
48 result = ehci_setup(hcd); in ps3_ehci_hc_reset()
87 struct usb_hcd *hcd; in ps3_ehci_probe() local
138 hcd = usb_create_hcd(&ps3_ehci_hc_driver, &dev->core, dev_name(&dev->core)); in ps3_ehci_probe()
140 if (!hcd) { in ps3_ehci_probe()
147 hcd->rsrc_start = dev->m_region->lpar_addr; in ps3_ehci_probe()
148 hcd->rsrc_len = dev->m_region->len; in ps3_ehci_probe()
150 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) in ps3_ehci_probe()
154 hcd->regs = ioremap(dev->m_region->lpar_addr, dev->m_region->len); in ps3_ehci_probe()
156 if (!hcd->regs) { in ps3_ehci_probe()
164 (unsigned long)hcd->rsrc_start); in ps3_ehci_probe()
166 (unsigned long)hcd->rsrc_len); in ps3_ehci_probe()
168 (unsigned long)hcd->regs); in ps3_ehci_probe()
172 ps3_system_bus_set_drvdata(dev, hcd); in ps3_ehci_probe()
174 result = usb_add_hcd(hcd, virq, 0); in ps3_ehci_probe()
182 device_wakeup_enable(hcd->self.controller); in ps3_ehci_probe()
186 iounmap(hcd->regs); in ps3_ehci_probe()
188 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ps3_ehci_probe()
189 usb_put_hcd(hcd); in ps3_ehci_probe()
206 struct usb_hcd *hcd = ps3_system_bus_get_drvdata(dev); in ps3_ehci_remove() local
208 BUG_ON(!hcd); in ps3_ehci_remove()
210 dev_dbg(&dev->core, "%s:%d: regs %p\n", __func__, __LINE__, hcd->regs); in ps3_ehci_remove()
211 dev_dbg(&dev->core, "%s:%d: irq %u\n", __func__, __LINE__, hcd->irq); in ps3_ehci_remove()
213 tmp = hcd->irq; in ps3_ehci_remove()
215 usb_remove_hcd(hcd); in ps3_ehci_remove()
219 BUG_ON(!hcd->regs); in ps3_ehci_remove()
220 iounmap(hcd->regs); in ps3_ehci_remove()
222 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ps3_ehci_remove()
223 usb_put_hcd(hcd); in ps3_ehci_remove()