Lines Matching refs:dev

173 	struct device			*dev;  member
333 DRM_DEV_DEBUG_KMS(ctx->dev, "vblank wait timed out.\n"); in fimd_wait_for_vblank()
370 ret = pm_runtime_resume_and_get(ctx->dev); in fimd_clear_channels()
372 dev_err(ctx->dev, "failed to enable FIMD device.\n"); in fimd_clear_channels()
408 pm_runtime_put(ctx->dev); in fimd_clear_channels()
423 DRM_DEV_ERROR(ctx->dev, "Mode has zero clock value.\n"); in fimd_atomic_check()
439 DRM_DEV_ERROR(ctx->dev, in fimd_atomic_check()
448 DRM_DEV_ERROR(ctx->dev, "requested pixel clock(%lu) too low\n", in fimd_atomic_check()
506 DRM_DEV_ERROR(ctx->dev, in fimd_commit()
551 DRM_DEV_ERROR(ctx->dev, in fimd_commit()
564 DRM_DEV_ERROR(ctx->dev, in fimd_commit()
859 DRM_DEV_DEBUG_KMS(ctx->dev, in fimd_update_plane()
862 DRM_DEV_DEBUG_KMS(ctx->dev, "ovl_width = %d, ovl_height = %d\n", in fimd_update_plane()
893 DRM_DEV_DEBUG_KMS(ctx->dev, in fimd_update_plane()
905 DRM_DEV_DEBUG_KMS(ctx->dev, "osd size = 0x%x\n", in fimd_update_plane()
948 if (pm_runtime_resume_and_get(ctx->dev) < 0) { in fimd_atomic_enable()
949 dev_warn(ctx->dev, "failed to enable FIMD device.\n"); in fimd_atomic_enable()
982 pm_runtime_put_sync(ctx->dev); in fimd_atomic_disable()
986 static void fimd_trigger(struct device *dev) in fimd_trigger() argument
988 struct fimd_context *ctx = dev_get_drvdata(dev); in fimd_trigger()
1032 fimd_trigger(ctx->dev); in fimd_te_handler()
1099 static int fimd_bind(struct device *dev, struct device *master, void *data) in fimd_bind() argument
1101 struct fimd_context *ctx = dev_get_drvdata(dev); in fimd_bind()
1149 return exynos_drm_register_dma(drm_dev, dev, &ctx->dma_priv); in fimd_bind()
1152 static void fimd_unbind(struct device *dev, struct device *master, in fimd_unbind() argument
1155 struct fimd_context *ctx = dev_get_drvdata(dev); in fimd_unbind()
1159 exynos_drm_unregister_dma(ctx->drm_dev, ctx->dev, &ctx->dma_priv); in fimd_unbind()
1172 struct device *dev = &pdev->dev; in fimd_probe() local
1177 if (!dev->of_node) in fimd_probe()
1180 ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL); in fimd_probe()
1184 ctx->dev = dev; in fimd_probe()
1186 ctx->driver_data = of_device_get_match_data(dev); in fimd_probe()
1188 if (of_property_read_bool(dev->of_node, "samsung,invert-vden")) in fimd_probe()
1190 if (of_property_read_bool(dev->of_node, "samsung,invert-vclk")) in fimd_probe()
1193 i80_if_timings = of_get_child_by_name(dev->of_node, "i80-if-timings"); in fimd_probe()
1224 ctx->sysreg = syscon_regmap_lookup_by_phandle(dev->of_node, in fimd_probe()
1227 dev_warn(dev, "failed to get system register.\n"); in fimd_probe()
1231 ctx->bus_clk = devm_clk_get(dev, "fimd"); in fimd_probe()
1233 dev_err(dev, "failed to get bus clock\n"); in fimd_probe()
1237 ctx->lcd_clk = devm_clk_get(dev, "sclk_fimd"); in fimd_probe()
1239 dev_err(dev, "failed to get lcd clock\n"); in fimd_probe()
1251 ret = devm_request_irq(dev, ret, fimd_irq_handler, 0, "drm_fimd", ctx); in fimd_probe()
1253 dev_err(dev, "irq request failed.\n"); in fimd_probe()
1262 ctx->encoder = exynos_dpi_probe(dev); in fimd_probe()
1266 pm_runtime_enable(dev); in fimd_probe()
1268 ret = component_add(dev, &fimd_component_ops); in fimd_probe()
1275 pm_runtime_disable(dev); in fimd_probe()
1282 pm_runtime_disable(&pdev->dev); in fimd_remove()
1284 component_del(&pdev->dev, &fimd_component_ops); in fimd_remove()
1289 static int exynos_fimd_suspend(struct device *dev) in exynos_fimd_suspend() argument
1291 struct fimd_context *ctx = dev_get_drvdata(dev); in exynos_fimd_suspend()
1299 static int exynos_fimd_resume(struct device *dev) in exynos_fimd_resume() argument
1301 struct fimd_context *ctx = dev_get_drvdata(dev); in exynos_fimd_resume()
1306 DRM_DEV_ERROR(dev, in exynos_fimd_resume()
1314 DRM_DEV_ERROR(dev, in exynos_fimd_resume()