Lines Matching full:v3d

134 		int ret = pm_runtime_get_sync(&vc4->v3d->pdev->dev);  in vc4_v3d_pm_get()
152 pm_runtime_mark_last_busy(&vc4->v3d->pdev->dev); in vc4_v3d_pm_put()
153 pm_runtime_put_autosuspend(&vc4->v3d->pdev->dev); in vc4_v3d_pm_put()
218 * To work around this, we allocate a single large buffer while V3D is
232 struct vc4_v3d *v3d = vc4->v3d; in bin_bo_alloc() local
237 if (!v3d) in bin_bo_alloc()
255 dev_err(&v3d->pdev->dev, in bin_bo_alloc()
361 struct vc4_v3d *v3d = dev_get_drvdata(dev); in vc4_v3d_runtime_suspend() local
362 struct vc4_dev *vc4 = v3d->vc4; in vc4_v3d_runtime_suspend()
366 clk_disable_unprepare(v3d->clk); in vc4_v3d_runtime_suspend()
373 struct vc4_v3d *v3d = dev_get_drvdata(dev); in vc4_v3d_runtime_resume() local
374 struct vc4_dev *vc4 = v3d->vc4; in vc4_v3d_runtime_resume()
377 ret = clk_prepare_enable(v3d->clk); in vc4_v3d_runtime_resume()
396 struct vc4_v3d *v3d = NULL; in vc4_v3d_bind() local
399 v3d = devm_kzalloc(&pdev->dev, sizeof(*v3d), GFP_KERNEL); in vc4_v3d_bind()
400 if (!v3d) in vc4_v3d_bind()
403 dev_set_drvdata(dev, v3d); in vc4_v3d_bind()
405 v3d->pdev = pdev; in vc4_v3d_bind()
407 v3d->regs = vc4_ioremap_regs(pdev, 0); in vc4_v3d_bind()
408 if (IS_ERR(v3d->regs)) in vc4_v3d_bind()
409 return PTR_ERR(v3d->regs); in vc4_v3d_bind()
410 v3d->regset.base = v3d->regs; in vc4_v3d_bind()
411 v3d->regset.regs = v3d_regs; in vc4_v3d_bind()
412 v3d->regset.nregs = ARRAY_SIZE(v3d_regs); in vc4_v3d_bind()
414 vc4->v3d = v3d; in vc4_v3d_bind()
415 v3d->vc4 = vc4; in vc4_v3d_bind()
417 v3d->clk = devm_clk_get(dev, NULL); in vc4_v3d_bind()
418 if (IS_ERR(v3d->clk)) { in vc4_v3d_bind()
419 int ret = PTR_ERR(v3d->clk); in vc4_v3d_bind()
424 v3d->clk = NULL; in vc4_v3d_bind()
427 dev_err(dev, "Failed to get V3D clock: %d\n", in vc4_v3d_bind()
439 ret = clk_prepare_enable(v3d->clk); in vc4_v3d_bind()
463 vc4_debugfs_add_regset32(drm, "v3d_regs", &v3d->regset); in vc4_v3d_bind()
485 vc4->v3d = NULL; in vc4_v3d_unbind()
509 { .compatible = "brcm,bcm2835-v3d" },
510 { .compatible = "brcm,cygnus-v3d" },
511 { .compatible = "brcm,vc4-v3d" },