Lines Matching refs:v3d
135 int ret = pm_runtime_get_sync(&vc4->v3d->pdev->dev); in vc4_v3d_pm_get()
156 pm_runtime_mark_last_busy(&vc4->v3d->pdev->dev); in vc4_v3d_pm_put()
157 pm_runtime_put_autosuspend(&vc4->v3d->pdev->dev); in vc4_v3d_pm_put()
239 struct vc4_v3d *v3d = vc4->v3d; in bin_bo_alloc() local
244 if (!v3d) in bin_bo_alloc()
262 dev_err(&v3d->pdev->dev, in bin_bo_alloc()
374 struct vc4_v3d *v3d = dev_get_drvdata(dev); in vc4_v3d_runtime_suspend() local
375 struct vc4_dev *vc4 = v3d->vc4; in vc4_v3d_runtime_suspend()
379 clk_disable_unprepare(v3d->clk); in vc4_v3d_runtime_suspend()
386 struct vc4_v3d *v3d = dev_get_drvdata(dev); in vc4_v3d_runtime_resume() local
387 struct vc4_dev *vc4 = v3d->vc4; in vc4_v3d_runtime_resume()
390 ret = clk_prepare_enable(v3d->clk); in vc4_v3d_runtime_resume()
406 struct vc4_v3d *v3d = vc4->v3d; in vc4_v3d_debugfs_init() local
408 if (!vc4->v3d) in vc4_v3d_debugfs_init()
413 vc4_debugfs_add_regset32(drm, "v3d_regs", &v3d->regset); in vc4_v3d_debugfs_init()
423 struct vc4_v3d *v3d = NULL; in vc4_v3d_bind() local
426 v3d = devm_kzalloc(&pdev->dev, sizeof(*v3d), GFP_KERNEL); in vc4_v3d_bind()
427 if (!v3d) in vc4_v3d_bind()
430 dev_set_drvdata(dev, v3d); in vc4_v3d_bind()
432 v3d->pdev = pdev; in vc4_v3d_bind()
434 v3d->regs = vc4_ioremap_regs(pdev, 0); in vc4_v3d_bind()
435 if (IS_ERR(v3d->regs)) in vc4_v3d_bind()
436 return PTR_ERR(v3d->regs); in vc4_v3d_bind()
437 v3d->regset.base = v3d->regs; in vc4_v3d_bind()
438 v3d->regset.regs = v3d_regs; in vc4_v3d_bind()
439 v3d->regset.nregs = ARRAY_SIZE(v3d_regs); in vc4_v3d_bind()
441 vc4->v3d = v3d; in vc4_v3d_bind()
442 v3d->vc4 = vc4; in vc4_v3d_bind()
444 v3d->clk = devm_clk_get_optional(dev, NULL); in vc4_v3d_bind()
445 if (IS_ERR(v3d->clk)) in vc4_v3d_bind()
446 return dev_err_probe(dev, PTR_ERR(v3d->clk), "Failed to get V3D clock\n"); in vc4_v3d_bind()
506 vc4->v3d = NULL; in vc4_v3d_unbind()