Lines Matching refs:hcd
36 #include <linux/usb/hcd.h>
125 #define to_pxa27x_ohci(hcd) (struct pxa27x_ohci *)(hcd_to_ohci(hcd)->priv)
191 static int pxa27x_ohci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
194 struct pxa27x_ohci *pxa_ohci = to_pxa27x_ohci(hcd);
213 return ohci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength);
406 struct usb_hcd *hcd;
433 hcd = usb_create_hcd(&ohci_pxa27x_hc_driver, &pdev->dev, "pxa27x");
434 if (!hcd)
437 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &r);
438 if (IS_ERR(hcd->regs)) {
439 retval = PTR_ERR(hcd->regs);
442 hcd->rsrc_start = r->start;
443 hcd->rsrc_len = resource_size(r);
446 pxa_ohci = to_pxa27x_ohci(hcd);
448 pxa_ohci->mmio_base = (void __iomem *)hcd->regs;
470 hcd->power_budget = inf->power_budget;
473 ohci = hcd_to_ohci(hcd);
476 retval = usb_add_hcd(hcd, irq, 0);
478 device_wakeup_enable(hcd->self.controller);
484 usb_put_hcd(hcd);
504 struct usb_hcd *hcd = platform_get_drvdata(pdev);
505 struct pxa27x_ohci *pxa_ohci = to_pxa27x_ohci(hcd);
508 usb_remove_hcd(hcd);
514 usb_put_hcd(hcd);
522 struct usb_hcd *hcd = dev_get_drvdata(dev);
523 struct pxa27x_ohci *pxa_ohci = to_pxa27x_ohci(hcd);
524 struct ohci_hcd *ohci = hcd_to_ohci(hcd);
533 ret = ohci_suspend(hcd, do_wakeup);
543 struct usb_hcd *hcd = dev_get_drvdata(dev);
544 struct pxa27x_ohci *pxa_ohci = to_pxa27x_ohci(hcd);
546 struct ohci_hcd *ohci = hcd_to_ohci(hcd);
560 ohci_resume(hcd, false);