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