Lines Matching refs:hcd
35 struct usb_hcd *hcd;
44 static inline struct xhci_hcd_histb *hcd_to_histb(struct usb_hcd *hcd)
46 return dev_get_drvdata(hcd->self.controller);
168 static int xhci_histb_setup(struct usb_hcd *hcd)
170 struct xhci_hcd_histb *histb = hcd_to_histb(hcd);
173 if (usb_hcd_is_primary_hcd(hcd)) {
179 return xhci_gen_setup(hcd, NULL);
192 struct usb_hcd *hcd;
235 hcd = usb_create_hcd(driver, dev, dev_name(dev));
236 if (!hcd) {
241 hcd->regs = histb->ctrl;
242 hcd->rsrc_start = res->start;
243 hcd->rsrc_len = resource_size(res);
245 histb->hcd = hcd;
246 dev_set_drvdata(hcd->self.controller, histb);
252 xhci = hcd_to_xhci(hcd);
254 device_wakeup_enable(hcd->self.controller);
256 xhci->main_hcd = hcd;
258 hcd);
275 ret = usb_add_hcd(hcd, irq, IRQF_SHARED);
298 usb_remove_hcd(hcd);
304 usb_put_hcd(hcd);
315 struct usb_hcd *hcd = histb->hcd;
316 struct xhci_hcd *xhci = hcd_to_xhci(hcd);
325 usb_remove_hcd(hcd);
329 usb_put_hcd(hcd);
337 struct usb_hcd *hcd = histb->hcd;
338 struct xhci_hcd *xhci = hcd_to_xhci(hcd);
352 struct usb_hcd *hcd = histb->hcd;
353 struct xhci_hcd *xhci = hcd_to_xhci(hcd);