Lines Matching refs:hcd
25 static int uhci_grlib_init(struct usb_hcd *hcd) in uhci_grlib_init() argument
27 struct uhci_hcd *uhci = hcd_to_uhci(hcd); in uhci_grlib_init()
43 uhci->rh_numports = uhci_count_ports(hcd); in uhci_grlib_init()
92 struct usb_hcd *hcd; in uhci_hcd_grlib_probe() local
109 hcd = usb_create_hcd(&uhci_grlib_hc_driver, &op->dev, in uhci_hcd_grlib_probe()
111 if (!hcd) in uhci_hcd_grlib_probe()
114 hcd->rsrc_start = res.start; in uhci_hcd_grlib_probe()
115 hcd->rsrc_len = resource_size(&res); in uhci_hcd_grlib_probe()
124 hcd->regs = devm_ioremap_resource(&op->dev, &res); in uhci_hcd_grlib_probe()
125 if (IS_ERR(hcd->regs)) { in uhci_hcd_grlib_probe()
126 rv = PTR_ERR(hcd->regs); in uhci_hcd_grlib_probe()
130 uhci = hcd_to_uhci(hcd); in uhci_hcd_grlib_probe()
132 uhci->regs = hcd->regs; in uhci_hcd_grlib_probe()
134 rv = usb_add_hcd(hcd, irq, 0); in uhci_hcd_grlib_probe()
138 device_wakeup_enable(hcd->self.controller); in uhci_hcd_grlib_probe()
144 usb_put_hcd(hcd); in uhci_hcd_grlib_probe()
151 struct usb_hcd *hcd = platform_get_drvdata(op); in uhci_hcd_grlib_remove() local
155 usb_remove_hcd(hcd); in uhci_hcd_grlib_remove()
157 irq_dispose_mapping(hcd->irq); in uhci_hcd_grlib_remove()
158 usb_put_hcd(hcd); in uhci_hcd_grlib_remove()
172 struct usb_hcd *hcd = platform_get_drvdata(op); in uhci_hcd_grlib_shutdown() local
174 uhci_hc_died(hcd_to_uhci(hcd)); in uhci_hcd_grlib_shutdown()