Lines Matching full:vc4
115 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_v3d_debugfs_regs() local
131 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_v3d_debugfs_ident() local
151 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_v3d_init_hw() local
160 int vc4_v3d_get_bin_slot(struct vc4_dev *vc4) in vc4_v3d_get_bin_slot() argument
162 struct drm_device *dev = vc4->dev; in vc4_v3d_get_bin_slot()
169 spin_lock_irqsave(&vc4->job_lock, irqflags); in vc4_v3d_get_bin_slot()
170 slot = ffs(~vc4->bin_alloc_used); in vc4_v3d_get_bin_slot()
174 vc4->bin_alloc_used |= BIT(slot); in vc4_v3d_get_bin_slot()
175 spin_unlock_irqrestore(&vc4->job_lock, irqflags); in vc4_v3d_get_bin_slot()
182 exec = vc4_last_render_job(vc4); in vc4_v3d_get_bin_slot()
185 spin_unlock_irqrestore(&vc4->job_lock, irqflags); in vc4_v3d_get_bin_slot()
223 struct vc4_dev *vc4 = to_vc4_dev(drm); in vc4_allocate_bin_bo() local
224 struct vc4_v3d *v3d = vc4->v3d; in vc4_allocate_bin_bo()
255 vc4->bin_bo = bo; in vc4_allocate_bin_bo()
273 vc4->bin_alloc_size = 512 * 1024; in vc4_allocate_bin_bo()
274 vc4->bin_alloc_used = 0; in vc4_allocate_bin_bo()
275 vc4->bin_alloc_overflow = 0; in vc4_allocate_bin_bo()
276 WARN_ON_ONCE(sizeof(vc4->bin_alloc_used) * 8 != in vc4_allocate_bin_bo()
277 bo->base.base.size / vc4->bin_alloc_size); in vc4_allocate_bin_bo()
302 struct vc4_dev *vc4 = v3d->vc4; in vc4_v3d_runtime_suspend() local
304 vc4_irq_uninstall(vc4->dev); in vc4_v3d_runtime_suspend()
306 drm_gem_object_put_unlocked(&vc4->bin_bo->base.base); in vc4_v3d_runtime_suspend()
307 vc4->bin_bo = NULL; in vc4_v3d_runtime_suspend()
317 struct vc4_dev *vc4 = v3d->vc4; in vc4_v3d_runtime_resume() local
320 ret = vc4_allocate_bin_bo(vc4->dev); in vc4_v3d_runtime_resume()
328 vc4_v3d_init_hw(vc4->dev); in vc4_v3d_runtime_resume()
331 enable_irq(vc4->dev->irq); in vc4_v3d_runtime_resume()
332 vc4_irq_postinstall(vc4->dev); in vc4_v3d_runtime_resume()
342 struct vc4_dev *vc4 = to_vc4_dev(drm); in vc4_v3d_bind() local
358 vc4->v3d = v3d; in vc4_v3d_bind()
359 v3d->vc4 = vc4; in vc4_v3d_bind()
419 struct vc4_dev *vc4 = to_vc4_dev(drm); in vc4_v3d_unbind() local
432 vc4->v3d = NULL; in vc4_v3d_unbind()
458 { .compatible = "brcm,vc4-v3d" },