Lines Matching refs:hcd

38 static int ehci_xilinx_port_handed_over(struct usb_hcd *hcd, int portnum)  in ehci_xilinx_port_handed_over()  argument
40 dev_warn(hcd->self.controller, "port %d cannot be enabled\n", portnum); in ehci_xilinx_port_handed_over()
41 if (hcd->has_tt) { in ehci_xilinx_port_handed_over()
42 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over()
45 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over()
48 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over()
50 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over()
52 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over()
121 struct usb_hcd *hcd; in ehci_hcd_xilinx_of_probe() local
137 hcd = usb_create_hcd(&ehci_xilinx_of_hc_driver, &op->dev, in ehci_hcd_xilinx_of_probe()
139 if (!hcd) in ehci_hcd_xilinx_of_probe()
142 hcd->rsrc_start = res.start; in ehci_hcd_xilinx_of_probe()
143 hcd->rsrc_len = resource_size(&res); in ehci_hcd_xilinx_of_probe()
153 hcd->regs = devm_ioremap_resource(&op->dev, &res); in ehci_hcd_xilinx_of_probe()
154 if (IS_ERR(hcd->regs)) { in ehci_hcd_xilinx_of_probe()
155 rv = PTR_ERR(hcd->regs); in ehci_hcd_xilinx_of_probe()
159 ehci = hcd_to_ehci(hcd); in ehci_hcd_xilinx_of_probe()
172 hcd->has_tt = 1; in ehci_hcd_xilinx_of_probe()
176 hcd->has_tt = 0; in ehci_hcd_xilinx_of_probe()
181 ehci->caps = hcd->regs + 0x100; in ehci_hcd_xilinx_of_probe()
183 rv = usb_add_hcd(hcd, irq, 0); in ehci_hcd_xilinx_of_probe()
185 device_wakeup_enable(hcd->self.controller); in ehci_hcd_xilinx_of_probe()
190 usb_put_hcd(hcd); in ehci_hcd_xilinx_of_probe()
206 struct usb_hcd *hcd = platform_get_drvdata(op); in ehci_hcd_xilinx_of_remove() local
210 usb_remove_hcd(hcd); in ehci_hcd_xilinx_of_remove()
212 usb_put_hcd(hcd); in ehci_hcd_xilinx_of_remove()