Lines Matching refs:dev
34 dev_dbg(tidss->dev, "%s\n", __func__);
36 r = pm_runtime_get_sync(tidss->dev);
45 dev_dbg(tidss->dev, "%s\n", __func__);
47 r = pm_runtime_put_sync(tidss->dev);
51 static int __maybe_unused tidss_pm_runtime_suspend(struct device *dev)
53 struct tidss_device *tidss = dev_get_drvdata(dev);
55 dev_dbg(dev, "%s\n", __func__);
60 static int __maybe_unused tidss_pm_runtime_resume(struct device *dev)
62 struct tidss_device *tidss = dev_get_drvdata(dev);
65 dev_dbg(dev, "%s\n", __func__);
74 static int __maybe_unused tidss_suspend(struct device *dev)
76 struct tidss_device *tidss = dev_get_drvdata(dev);
78 dev_dbg(dev, "%s\n", __func__);
83 static int __maybe_unused tidss_resume(struct device *dev)
85 struct tidss_device *tidss = dev_get_drvdata(dev);
87 dev_dbg(dev, "%s\n", __func__);
130 struct device *dev = &pdev->dev;
136 dev_dbg(dev, "%s\n", __func__);
138 tidss = devm_drm_dev_alloc(&pdev->dev, &tidss_driver,
145 tidss->dev = dev;
146 tidss->feat = of_device_get_match_data(dev);
152 dev_err(dev, "failed to initialize dispc: %d\n", ret);
156 pm_runtime_enable(dev);
166 dev_err(dev, "failed to init DRM/KMS (%d)\n", ret);
178 dev_err(dev, "drm_irq_install failed: %d\n", ret);
188 dev_err(dev, "failed to register DRM device\n");
194 dev_dbg(dev, "%s done\n", __func__);
205 pm_runtime_disable(dev);
212 struct device *dev = &pdev->dev;
216 dev_dbg(dev, "%s\n", __func__);
228 pm_runtime_disable(dev);
230 /* devm allocated dispc goes away with the dev so mark it NULL */
233 dev_dbg(dev, "%s done\n", __func__);