Lines Matching refs:hcd
24 * @hcd: Pointer to the usb_hcd device to which the host controller bound
38 static int ehci_xilinx_port_handed_over(struct usb_hcd *hcd, int portnum)
40 dev_warn(hcd->self.controller, "port %d cannot be enabled\n", portnum);
41 if (hcd->has_tt) {
42 dev_warn(hcd->self.controller,
45 dev_warn(hcd->self.controller,
48 dev_warn(hcd->self.controller,
50 dev_warn(hcd->self.controller,
52 dev_warn(hcd->self.controller,
114 * entry, and sets an appropriate value for hcd->has_tt.
121 struct usb_hcd *hcd;
137 hcd = usb_create_hcd(&ehci_xilinx_of_hc_driver, &op->dev,
139 if (!hcd)
142 hcd->rsrc_start = res.start;
143 hcd->rsrc_len = resource_size(&res);
153 hcd->regs = devm_ioremap_resource(&op->dev, &res);
154 if (IS_ERR(hcd->regs)) {
155 rv = PTR_ERR(hcd->regs);
159 ehci = hcd_to_ehci(hcd);
172 hcd->has_tt = 1;
176 hcd->has_tt = 0;
181 ehci->caps = hcd->regs + 0x100;
183 rv = usb_add_hcd(hcd, irq, 0);
185 device_wakeup_enable(hcd->self.controller);
190 usb_put_hcd(hcd);
196 * ehci_hcd_xilinx_of_remove - shutdown hcd and release resources
199 * Remove the hcd structure, and release resources that has been requested
206 struct usb_hcd *hcd = platform_get_drvdata(op);
210 usb_remove_hcd(hcd);
212 usb_put_hcd(hcd);