Lines Matching defs:hcd
30 #include <linux/usb/hcd.h>
37 /* clock device associated with the hcd */
53 static struct s3c2410_hcd_info *to_s3c2410_info(struct usb_hcd *hcd)
55 return dev_get_platdata(hcd->self.controller);
58 static void s3c2410_start_hc(struct platform_device *dev, struct usb_hcd *hcd)
70 info->hcd = hcd;
86 info->hcd = NULL;
103 ohci_s3c2410_hub_status_data(struct usb_hcd *hcd, char *buf)
105 struct s3c2410_hcd_info *info = to_s3c2410_info(hcd);
110 orig = ohci_hub_status_data(hcd, buf);
122 dev_dbg(hcd->self.controller,
161 struct usb_hcd *hcd,
168 struct s3c2410_hcd_info *info = to_s3c2410_info(hcd);
173 dev_dbg(hcd->self.controller,
175 hcd, typeReq, wValue, wIndex, buf, wLength);
181 ret = ohci_hub_control(hcd, typeReq, wValue,
191 dev_dbg(hcd->self.controller, "SetPortFeat: POWER\n");
200 dev_dbg(hcd->self.controller,
211 dev_dbg(hcd->self.controller,
220 dev_dbg(hcd->self.controller,
231 ret = ohci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength);
245 dev_dbg(hcd->self.controller, "wHubCharacteristics 0x%04x\n",
263 dev_dbg(hcd->self.controller, "wHubCharacteristics after 0x%04x\n",
271 dev_dbg(hcd->self.controller, "GetPortStatus(%d)\n", wIndex);
335 struct usb_hcd *hcd = platform_get_drvdata(dev);
337 usb_remove_hcd(hcd);
339 usb_put_hcd(hcd);
354 struct usb_hcd *hcd = NULL;
361 hcd = usb_create_hcd(&ohci_s3c2410_hc_driver, &dev->dev, "s3c24xx");
362 if (hcd == NULL)
365 hcd->rsrc_start = dev->resource[0].start;
366 hcd->rsrc_len = resource_size(&dev->resource[0]);
368 hcd->regs = devm_ioremap_resource(&dev->dev, &dev->resource[0]);
369 if (IS_ERR(hcd->regs)) {
370 retval = PTR_ERR(hcd->regs);
394 s3c2410_start_hc(dev, hcd);
396 retval = usb_add_hcd(hcd, irq, 0);
400 device_wakeup_enable(hcd->self.controller);
407 usb_put_hcd(hcd);
416 struct usb_hcd *hcd = dev_get_drvdata(dev);
421 rc = ohci_suspend(hcd, do_wakeup);
432 struct usb_hcd *hcd = dev_get_drvdata(dev);
435 s3c2410_start_hc(pdev, hcd);
437 ohci_resume(hcd, false);