Lines Matching refs:dev

60 static void s3c2410_start_hc(struct platform_device *dev, struct usb_hcd *hcd)
62 struct s3c2410_hcd_info *info = dev_get_platdata(&dev->dev);
64 dev_dbg(&dev->dev, "s3c2410_start_hc:\n");
80 static void s3c2410_stop_hc(struct platform_device *dev)
82 struct s3c2410_hcd_info *info = dev_get_platdata(&dev->dev);
84 dev_dbg(&dev->dev, "s3c2410_stop_hc:\n");
326 * @dev: USB Host Controller being removed
336 ohci_hcd_s3c2410_remove(struct platform_device *dev)
338 struct usb_hcd *hcd = platform_get_drvdata(dev);
341 s3c2410_stop_hc(dev);
355 static int ohci_hcd_s3c2410_probe(struct platform_device *dev)
358 struct s3c2410_hcd_info *info = dev_get_platdata(&dev->dev);
364 hcd = usb_create_hcd(&ohci_s3c2410_hc_driver, &dev->dev, "s3c24xx");
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]);
377 clk = devm_clk_get(&dev->dev, "usb-host");
379 dev_err(&dev->dev, "cannot get usb-host clock\n");
384 usb_clk = devm_clk_get(&dev->dev, "usb-bus-host");
386 dev_err(&dev->dev, "cannot get usb-bus-host clock\n");
391 s3c2410_start_hc(dev, hcd);
393 retval = usb_add_hcd(hcd, dev->resource[1].start, 0);
401 s3c2410_stop_hc(dev);
411 static int ohci_hcd_s3c2410_drv_suspend(struct device *dev)
413 struct usb_hcd *hcd = dev_get_drvdata(dev);
414 struct platform_device *pdev = to_platform_device(dev);
415 bool do_wakeup = device_may_wakeup(dev);
427 static int ohci_hcd_s3c2410_drv_resume(struct device *dev)
429 struct usb_hcd *hcd = dev_get_drvdata(dev);
430 struct platform_device *pdev = to_platform_device(dev);