Lines Matching refs:dev
58 static void s3c2410_start_hc(struct platform_device *dev, struct usb_hcd *hcd)
60 struct s3c2410_hcd_info *info = dev_get_platdata(&dev->dev);
62 dev_dbg(&dev->dev, "s3c2410_start_hc:\n");
78 static void s3c2410_stop_hc(struct platform_device *dev)
80 struct s3c2410_hcd_info *info = dev_get_platdata(&dev->dev);
82 dev_dbg(&dev->dev, "s3c2410_stop_hc:\n");
324 * @dev: USB Host Controller being removed
333 ohci_hcd_s3c2410_remove(struct platform_device *dev)
335 struct usb_hcd *hcd = platform_get_drvdata(dev);
338 s3c2410_stop_hc(dev);
344 * @dev: USB Host Controller to be probed
352 static int ohci_hcd_s3c2410_probe(struct platform_device *dev)
355 struct s3c2410_hcd_info *info = dev_get_platdata(&dev->dev);
361 hcd = usb_create_hcd(&ohci_s3c2410_hc_driver, &dev->dev, "s3c24xx");
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]);
374 clk = devm_clk_get(&dev->dev, "usb-host");
376 dev_err(&dev->dev, "cannot get usb-host clock\n");
381 usb_clk = devm_clk_get(&dev->dev, "usb-bus-host");
383 dev_err(&dev->dev, "cannot get usb-bus-host clock\n");
388 irq = platform_get_irq(dev, 0);
394 s3c2410_start_hc(dev, hcd);
404 s3c2410_stop_hc(dev);
414 static int ohci_hcd_s3c2410_drv_suspend(struct device *dev)
416 struct usb_hcd *hcd = dev_get_drvdata(dev);
417 struct platform_device *pdev = to_platform_device(dev);
418 bool do_wakeup = device_may_wakeup(dev);
430 static int ohci_hcd_s3c2410_drv_resume(struct device *dev)
432 struct usb_hcd *hcd = dev_get_drvdata(dev);
433 struct platform_device *pdev = to_platform_device(dev);