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