Lines Matching refs:hcd
25 ohci_ppc_of_start(struct usb_hcd *hcd) in ohci_ppc_of_start() argument
27 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_ppc_of_start()
34 dev_err(hcd->self.controller, "can't start %s\n", in ohci_ppc_of_start()
35 hcd->self.bus_name); in ohci_ppc_of_start()
36 ohci_stop(hcd); in ohci_ppc_of_start()
89 struct usb_hcd *hcd; in ohci_hcd_ppc_of_probe() local
111 hcd = usb_create_hcd(&ohci_ppc_of_hc_driver, &op->dev, "PPC-OF USB"); in ohci_hcd_ppc_of_probe()
112 if (!hcd) in ohci_hcd_ppc_of_probe()
115 hcd->rsrc_start = res.start; in ohci_hcd_ppc_of_probe()
116 hcd->rsrc_len = resource_size(&res); in ohci_hcd_ppc_of_probe()
118 hcd->regs = devm_ioremap_resource(&op->dev, &res); in ohci_hcd_ppc_of_probe()
119 if (IS_ERR(hcd->regs)) { in ohci_hcd_ppc_of_probe()
120 rv = PTR_ERR(hcd->regs); in ohci_hcd_ppc_of_probe()
132 ohci = hcd_to_ohci(hcd); in ohci_hcd_ppc_of_probe()
143 rv = usb_add_hcd(hcd, irq, 0); in ohci_hcd_ppc_of_probe()
145 device_wakeup_enable(hcd->self.controller); in ohci_hcd_ppc_of_probe()
175 usb_put_hcd(hcd); in ohci_hcd_ppc_of_probe()
182 struct usb_hcd *hcd = platform_get_drvdata(op); in ohci_hcd_ppc_of_remove() local
186 usb_remove_hcd(hcd); in ohci_hcd_ppc_of_remove()
188 irq_dispose_mapping(hcd->irq); in ohci_hcd_ppc_of_remove()
190 usb_put_hcd(hcd); in ohci_hcd_ppc_of_remove()