Lines Matching defs: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);
178 static int xhci_histb_setup(struct usb_hcd *hcd)
180 struct xhci_hcd_histb *histb = hcd_to_histb(hcd);
183 if (usb_hcd_is_primary_hcd(hcd)) {
189 return xhci_gen_setup(hcd, xhci_histb_quirks);
202 struct usb_hcd *hcd;
245 hcd = usb_create_hcd(driver, dev, dev_name(dev));
246 if (!hcd) {
251 hcd->regs = histb->ctrl;
252 hcd->rsrc_start = res->start;
253 hcd->rsrc_len = resource_size(res);
255 histb->hcd = hcd;
256 dev_set_drvdata(hcd->self.controller, histb);
262 xhci = hcd_to_xhci(hcd);
264 device_wakeup_enable(hcd->self.controller);
266 xhci->main_hcd = hcd;
268 hcd);
285 ret = usb_add_hcd(hcd, irq, IRQF_SHARED);
308 usb_remove_hcd(hcd);
314 usb_put_hcd(hcd);
325 struct usb_hcd *hcd = histb->hcd;
326 struct xhci_hcd *xhci = hcd_to_xhci(hcd);
335 usb_remove_hcd(hcd);
339 usb_put_hcd(hcd);
349 struct usb_hcd *hcd = histb->hcd;
350 struct xhci_hcd *xhci = hcd_to_xhci(hcd);
364 struct usb_hcd *hcd = histb->hcd;
365 struct xhci_hcd *xhci = hcd_to_xhci(hcd);