Lines Matching defs:hcd
26 static int uhci_grlib_init(struct usb_hcd *hcd)
28 struct uhci_hcd *uhci = hcd_to_uhci(hcd);
44 uhci->rh_numports = uhci_count_ports(hcd);
93 struct usb_hcd *hcd;
110 hcd = usb_create_hcd(&uhci_grlib_hc_driver, &op->dev,
112 if (!hcd)
115 hcd->rsrc_start = res.start;
116 hcd->rsrc_len = resource_size(&res);
125 hcd->regs = devm_ioremap_resource(&op->dev, &res);
126 if (IS_ERR(hcd->regs)) {
127 rv = PTR_ERR(hcd->regs);
131 uhci = hcd_to_uhci(hcd);
133 uhci->regs = hcd->regs;
135 rv = usb_add_hcd(hcd, irq, 0);
139 device_wakeup_enable(hcd->self.controller);
145 usb_put_hcd(hcd);
152 struct usb_hcd *hcd = platform_get_drvdata(op);
156 usb_remove_hcd(hcd);
158 irq_dispose_mapping(hcd->irq);
159 usb_put_hcd(hcd);
173 struct usb_hcd *hcd = platform_get_drvdata(op);
175 uhci_hc_died(hcd_to_uhci(hcd));