Lines Matching refs:hcd
27 static int uhci_grlib_init(struct usb_hcd *hcd)
29 struct uhci_hcd *uhci = hcd_to_uhci(hcd);
45 uhci->rh_numports = uhci_count_ports(hcd);
94 struct usb_hcd *hcd;
111 hcd = usb_create_hcd(&uhci_grlib_hc_driver, &op->dev,
113 if (!hcd)
116 hcd->rsrc_start = res.start;
117 hcd->rsrc_len = resource_size(&res);
126 hcd->regs = devm_ioremap_resource(&op->dev, &res);
127 if (IS_ERR(hcd->regs)) {
128 rv = PTR_ERR(hcd->regs);
132 uhci = hcd_to_uhci(hcd);
134 uhci->regs = hcd->regs;
136 rv = usb_add_hcd(hcd, irq, 0);
140 device_wakeup_enable(hcd->self.controller);
146 usb_put_hcd(hcd);
153 struct usb_hcd *hcd = platform_get_drvdata(op);
157 usb_remove_hcd(hcd);
159 irq_dispose_mapping(hcd->irq);
160 usb_put_hcd(hcd);
172 struct usb_hcd *hcd = platform_get_drvdata(op);
174 uhci_hc_died(hcd_to_uhci(hcd));