Lines Matching refs:v3d
224 struct vc4_v3d *v3d = vc4->v3d; in vc4_allocate_bin_bo() local
244 dev_err(&v3d->pdev->dev, in vc4_allocate_bin_bo()
301 struct vc4_v3d *v3d = dev_get_drvdata(dev); in vc4_v3d_runtime_suspend() local
302 struct vc4_dev *vc4 = v3d->vc4; in vc4_v3d_runtime_suspend()
309 clk_disable_unprepare(v3d->clk); in vc4_v3d_runtime_suspend()
316 struct vc4_v3d *v3d = dev_get_drvdata(dev); in vc4_v3d_runtime_resume() local
317 struct vc4_dev *vc4 = v3d->vc4; in vc4_v3d_runtime_resume()
324 ret = clk_prepare_enable(v3d->clk); in vc4_v3d_runtime_resume()
343 struct vc4_v3d *v3d = NULL; in vc4_v3d_bind() local
346 v3d = devm_kzalloc(&pdev->dev, sizeof(*v3d), GFP_KERNEL); in vc4_v3d_bind()
347 if (!v3d) in vc4_v3d_bind()
350 dev_set_drvdata(dev, v3d); in vc4_v3d_bind()
352 v3d->pdev = pdev; in vc4_v3d_bind()
354 v3d->regs = vc4_ioremap_regs(pdev, 0); in vc4_v3d_bind()
355 if (IS_ERR(v3d->regs)) in vc4_v3d_bind()
356 return PTR_ERR(v3d->regs); in vc4_v3d_bind()
358 vc4->v3d = v3d; in vc4_v3d_bind()
359 v3d->vc4 = vc4; in vc4_v3d_bind()
361 v3d->clk = devm_clk_get(dev, NULL); in vc4_v3d_bind()
362 if (IS_ERR(v3d->clk)) { in vc4_v3d_bind()
363 int ret = PTR_ERR(v3d->clk); in vc4_v3d_bind()
368 v3d->clk = NULL; in vc4_v3d_bind()
383 ret = clk_prepare_enable(v3d->clk); in vc4_v3d_bind()
389 clk_disable_unprepare(v3d->clk); in vc4_v3d_bind()
432 vc4->v3d = NULL; in vc4_v3d_unbind()