Lines Matching defs:hcd

30 #include <linux/usb/hcd.h>
37 /* clock device associated with the hcd */
55 static struct s3c2410_hcd_info *to_s3c2410_info(struct usb_hcd *hcd)
57 return dev_get_platdata(hcd->self.controller);
60 static void s3c2410_start_hc(struct platform_device *dev, struct usb_hcd *hcd)
72 info->hcd = hcd;
88 info->hcd = NULL;
105 ohci_s3c2410_hub_status_data(struct usb_hcd *hcd, char *buf)
107 struct s3c2410_hcd_info *info = to_s3c2410_info(hcd);
112 orig = ohci_hub_status_data(hcd, buf);
124 dev_dbg(hcd->self.controller,
163 struct usb_hcd *hcd,
170 struct s3c2410_hcd_info *info = to_s3c2410_info(hcd);
175 dev_dbg(hcd->self.controller,
177 hcd, typeReq, wValue, wIndex, buf, wLength);
183 ret = ohci_hub_control(hcd, typeReq, wValue,
193 dev_dbg(hcd->self.controller, "SetPortFeat: POWER\n");
202 dev_dbg(hcd->self.controller,
213 dev_dbg(hcd->self.controller,
222 dev_dbg(hcd->self.controller,
233 ret = ohci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength);
247 dev_dbg(hcd->self.controller, "wHubCharacteristics 0x%04x\n",
265 dev_dbg(hcd->self.controller, "wHubCharacteristics after 0x%04x\n",
273 dev_dbg(hcd->self.controller, "GetPortStatus(%d)\n", wIndex);
338 struct usb_hcd *hcd = platform_get_drvdata(dev);
340 usb_remove_hcd(hcd);
342 usb_put_hcd(hcd);
357 struct usb_hcd *hcd = NULL;
364 hcd = usb_create_hcd(&ohci_s3c2410_hc_driver, &dev->dev, "s3c24xx");
365 if (hcd == NULL)
368 hcd->rsrc_start = dev->resource[0].start;
369 hcd->rsrc_len = resource_size(&dev->resource[0]);
371 hcd->regs = devm_ioremap_resource(&dev->dev, &dev->resource[0]);
372 if (IS_ERR(hcd->regs)) {
373 retval = PTR_ERR(hcd->regs);
391 s3c2410_start_hc(dev, hcd);
393 retval = usb_add_hcd(hcd, dev->resource[1].start, 0);
397 device_wakeup_enable(hcd->self.controller);
404 usb_put_hcd(hcd);
413 struct usb_hcd *hcd = dev_get_drvdata(dev);
418 rc = ohci_suspend(hcd, do_wakeup);
429 struct usb_hcd *hcd = dev_get_drvdata(dev);
432 s3c2410_start_hc(pdev, hcd);
434 ohci_resume(hcd, false);