Lines Matching refs:hcd

53 static struct s3c2410_hcd_info *to_s3c2410_info(struct usb_hcd *hcd)  in to_s3c2410_info()  argument
55 return dev_get_platdata(hcd->self.controller); in to_s3c2410_info()
58 static void s3c2410_start_hc(struct platform_device *dev, struct usb_hcd *hcd) in s3c2410_start_hc() argument
70 info->hcd = hcd; in s3c2410_start_hc()
86 info->hcd = NULL; in s3c2410_stop_hc()
103 ohci_s3c2410_hub_status_data(struct usb_hcd *hcd, char *buf) in ohci_s3c2410_hub_status_data() argument
105 struct s3c2410_hcd_info *info = to_s3c2410_info(hcd); in ohci_s3c2410_hub_status_data()
110 orig = ohci_hub_status_data(hcd, buf); in ohci_s3c2410_hub_status_data()
122 dev_dbg(hcd->self.controller, in ohci_s3c2410_hub_status_data()
161 struct usb_hcd *hcd, in ohci_s3c2410_hub_control() argument
168 struct s3c2410_hcd_info *info = to_s3c2410_info(hcd); in ohci_s3c2410_hub_control()
173 dev_dbg(hcd->self.controller, in ohci_s3c2410_hub_control()
175 hcd, typeReq, wValue, wIndex, buf, wLength); in ohci_s3c2410_hub_control()
181 ret = ohci_hub_control(hcd, typeReq, wValue, in ohci_s3c2410_hub_control()
191 dev_dbg(hcd->self.controller, "SetPortFeat: POWER\n"); in ohci_s3c2410_hub_control()
200 dev_dbg(hcd->self.controller, in ohci_s3c2410_hub_control()
211 dev_dbg(hcd->self.controller, in ohci_s3c2410_hub_control()
220 dev_dbg(hcd->self.controller, in ohci_s3c2410_hub_control()
231 ret = ohci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in ohci_s3c2410_hub_control()
245 dev_dbg(hcd->self.controller, "wHubCharacteristics 0x%04x\n", in ohci_s3c2410_hub_control()
263 dev_dbg(hcd->self.controller, "wHubCharacteristics after 0x%04x\n", in ohci_s3c2410_hub_control()
271 dev_dbg(hcd->self.controller, "GetPortStatus(%d)\n", wIndex); in ohci_s3c2410_hub_control()
335 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_hcd_s3c2410_remove() local
337 usb_remove_hcd(hcd); in ohci_hcd_s3c2410_remove()
339 usb_put_hcd(hcd); in ohci_hcd_s3c2410_remove()
355 struct usb_hcd *hcd = NULL; in ohci_hcd_s3c2410_probe() local
362 hcd = usb_create_hcd(&ohci_s3c2410_hc_driver, &dev->dev, "s3c24xx"); in ohci_hcd_s3c2410_probe()
363 if (hcd == NULL) in ohci_hcd_s3c2410_probe()
366 hcd->rsrc_start = dev->resource[0].start; in ohci_hcd_s3c2410_probe()
367 hcd->rsrc_len = resource_size(&dev->resource[0]); in ohci_hcd_s3c2410_probe()
369 hcd->regs = devm_ioremap_resource(&dev->dev, &dev->resource[0]); in ohci_hcd_s3c2410_probe()
370 if (IS_ERR(hcd->regs)) { in ohci_hcd_s3c2410_probe()
371 retval = PTR_ERR(hcd->regs); in ohci_hcd_s3c2410_probe()
395 s3c2410_start_hc(dev, hcd); in ohci_hcd_s3c2410_probe()
397 retval = usb_add_hcd(hcd, irq, 0); in ohci_hcd_s3c2410_probe()
401 device_wakeup_enable(hcd->self.controller); in ohci_hcd_s3c2410_probe()
408 usb_put_hcd(hcd); in ohci_hcd_s3c2410_probe()
417 struct usb_hcd *hcd = dev_get_drvdata(dev); in ohci_hcd_s3c2410_drv_suspend() local
422 rc = ohci_suspend(hcd, do_wakeup); in ohci_hcd_s3c2410_drv_suspend()
433 struct usb_hcd *hcd = dev_get_drvdata(dev); in ohci_hcd_s3c2410_drv_resume() local
436 s3c2410_start_hc(pdev, hcd); in ohci_hcd_s3c2410_drv_resume()
438 ohci_resume(hcd, false); in ohci_hcd_s3c2410_drv_resume()