/kernel/linux/linux-5.10/drivers/gpu/drm/v3d/ |
H A D | v3d_irq.c | 39 struct v3d_dev *v3d = in v3d_overflow_mem_work() local 41 struct drm_device *dev = &v3d->drm; in v3d_overflow_mem_work() 61 spin_lock_irqsave(&v3d->job_lock, irqflags); in v3d_overflow_mem_work() 62 if (!v3d->bin_job) { in v3d_overflow_mem_work() 63 spin_unlock_irqrestore(&v3d->job_lock, irqflags); in v3d_overflow_mem_work() 68 list_add_tail(&bo->unref_head, &v3d->bin_job->render->unref_list); in v3d_overflow_mem_work() 69 spin_unlock_irqrestore(&v3d->job_lock, irqflags); in v3d_overflow_mem_work() 81 struct v3d_dev *v3d = arg; in v3d_irq() local 96 schedule_work(&v3d->overflow_mem_work); in v3d_irq() 102 to_v3d_fence(v3d in v3d_irq() 145 struct v3d_dev *v3d = arg; v3d_hub_irq() local 207 v3d_irq_init(struct v3d_dev *v3d) v3d_irq_init() argument 256 v3d_irq_enable(struct v3d_dev *v3d) v3d_irq_enable() argument 271 v3d_irq_disable(struct v3d_dev *v3d) v3d_irq_disable() argument 289 v3d_irq_reset(struct v3d_dev *v3d) v3d_irq_reset() argument [all...] |
H A D | v3d_drv.c | 34 #define DRIVER_NAME "v3d" 45 struct v3d_dev *v3d = to_v3d_dev(drm); in v3d_runtime_suspend() local 47 v3d_irq_disable(v3d); in v3d_runtime_suspend() 49 clk_disable_unprepare(v3d->clk); in v3d_runtime_suspend() 57 struct v3d_dev *v3d = to_v3d_dev(drm); in v3d_runtime_resume() local 60 ret = clk_prepare_enable(v3d->clk); in v3d_runtime_resume() 66 v3d_mmu_set_page_table(v3d); in v3d_runtime_resume() 67 v3d_irq_enable(v3d); in v3d_runtime_resume() 80 struct v3d_dev *v3d = to_v3d_dev(dev); in v3d_get_param_ioctl() local 108 ret = pm_runtime_get_sync(v3d in v3d_get_param_ioctl() 142 struct v3d_dev *v3d = to_v3d_dev(dev); v3d_open() local 235 map_regs(struct v3d_dev *v3d, void __iomem **regs, const char *name) map_regs() argument 248 struct v3d_dev *v3d; v3d_platform_drm_probe() local 340 struct v3d_dev *v3d = to_v3d_dev(drm); v3d_platform_drm_remove() local [all...] |
H A D | v3d_sched.c | 91 struct v3d_dev *v3d = job->base.v3d; in v3d_bin_job_run() local 92 struct drm_device *dev = &v3d->drm; in v3d_bin_job_run() 102 spin_lock_irqsave(&v3d->job_lock, irqflags); in v3d_bin_job_run() 103 v3d->bin_job = job; in v3d_bin_job_run() 108 spin_unlock_irqrestore(&v3d->job_lock, irqflags); in v3d_bin_job_run() 110 v3d_invalidate_caches(v3d); in v3d_bin_job_run() 112 fence = v3d_fence_create(v3d, V3D_BIN); in v3d_bin_job_run() 144 struct v3d_dev *v3d = job->base.v3d; in v3d_render_job_run() local 187 struct v3d_dev *v3d = job->base.v3d; v3d_tfu_job_run() local 224 struct v3d_dev *v3d = job->base.v3d; v3d_csd_job_run() local 255 struct v3d_dev *v3d = job->v3d; v3d_cache_clean_job_run() local 263 v3d_gpu_reset_for_timeout(struct v3d_dev *v3d, struct drm_sched_job *sched_job) v3d_gpu_reset_for_timeout() argument 300 struct v3d_dev *v3d = job->v3d; v3d_cl_job_timedout() local 343 struct v3d_dev *v3d = job->base.v3d; v3d_csd_job_timedout() local 393 v3d_sched_init(struct v3d_dev *v3d) v3d_sched_init() argument 464 v3d_sched_fini(struct v3d_dev *v3d) v3d_sched_fini() argument [all...] |
H A D | v3d_gem.c | 22 v3d_init_core(struct v3d_dev *v3d, int core) in v3d_init_core() argument 30 if (v3d->ver < 40) in v3d_init_core() 42 v3d_init_hw_state(struct v3d_dev *v3d) in v3d_init_hw_state() argument 44 v3d_init_core(v3d, 0); in v3d_init_hw_state() 48 v3d_idle_axi(struct v3d_dev *v3d, int core) in v3d_idle_axi() argument 61 v3d_idle_gca(struct v3d_dev *v3d) in v3d_idle_gca() argument 63 if (v3d->ver >= 41) in v3d_idle_gca() 76 v3d_reset_by_bridge(struct v3d_dev *v3d) in v3d_reset_by_bridge() argument 99 v3d_reset_v3d(struct v3d_dev *v3d) in v3d_reset_v3d() argument 101 if (v3d in v3d_reset_v3d() 110 v3d_reset(struct v3d_dev *v3d) v3d_reset() argument 133 v3d_flush_l3(struct v3d_dev *v3d) v3d_flush_l3() argument 152 v3d_invalidate_l2c(struct v3d_dev *v3d, int core) v3d_invalidate_l2c() argument 164 v3d_flush_l2t(struct v3d_dev *v3d, int core) v3d_flush_l2t() argument 189 v3d_clean_caches(struct v3d_dev *v3d) v3d_clean_caches() argument 219 v3d_invalidate_slices(struct v3d_dev *v3d, int core) v3d_invalidate_slices() argument 229 v3d_invalidate_caches(struct v3d_dev *v3d) v3d_invalidate_caches() argument 432 v3d_job_init(struct v3d_dev *v3d, struct drm_file *file_priv, struct v3d_job *job, void (*free)(struct kref *ref), u32 in_sync) v3d_job_init() argument 528 struct v3d_dev *v3d = to_v3d_dev(dev); v3d_submit_cl_ioctl() local 682 struct v3d_dev *v3d = to_v3d_dev(dev); v3d_submit_tfu_ioctl() local 777 struct v3d_dev *v3d = to_v3d_dev(dev); v3d_submit_csd_ioctl() local 868 struct v3d_dev *v3d = to_v3d_dev(dev); v3d_gem_init() local 915 struct v3d_dev *v3d = to_v3d_dev(dev); v3d_gem_destroy() local [all...] |
H A D | v3d_mmu.c | 33 static int v3d_mmu_flush_all(struct v3d_dev *v3d) in v3d_mmu_flush_all() argument 43 dev_err(v3d->drm.dev, "TLB clear wait idle pre-wait failed\n"); in v3d_mmu_flush_all() 55 dev_err(v3d->drm.dev, "TLB clear wait idle failed\n"); in v3d_mmu_flush_all() 62 dev_err(v3d->drm.dev, "MMUC flush wait idle failed\n"); in v3d_mmu_flush_all() 67 int v3d_mmu_set_page_table(struct v3d_dev *v3d) in v3d_mmu_set_page_table() argument 69 V3D_WRITE(V3D_MMU_PT_PA_BASE, v3d->pt_paddr >> V3D_MMU_PAGE_SHIFT); in v3d_mmu_set_page_table() 80 (v3d->mmu_scratch_paddr >> V3D_MMU_PAGE_SHIFT) | in v3d_mmu_set_page_table() 84 return v3d_mmu_flush_all(v3d); in v3d_mmu_set_page_table() 90 struct v3d_dev *v3d = to_v3d_dev(shmem_obj->base.dev); in v3d_mmu_insert_ptes() local 104 v3d in v3d_mmu_insert_ptes() 116 struct v3d_dev *v3d = to_v3d_dev(bo->base.base.dev); v3d_mmu_remove_ptes() local [all...] |
H A D | v3d_drv.h | 125 v3d_has_csd(struct v3d_dev *v3d) in v3d_has_csd() argument 127 return v3d->ver >= 41; in v3d_has_csd() 130 #define v3d_to_pdev(v3d) to_platform_device((v3d)->drm.dev) 134 struct v3d_dev *v3d; member 159 /* v3d seqno for signaled() test */ 170 #define V3D_READ(offset) readl(v3d->hub_regs + offset) 171 #define V3D_WRITE(offset, val) writel(val, v3d->hub_regs + offset) 173 #define V3D_BRIDGE_READ(offset) readl(v3d->bridge_regs + offset) 174 #define V3D_BRIDGE_WRITE(offset, val) writel(val, v3d 187 struct v3d_dev *v3d; global() member [all...] |
H A D | v3d_bo.c | 33 struct v3d_dev *v3d = to_v3d_dev(obj->dev); in v3d_free_object() local 38 mutex_lock(&v3d->bo_lock); in v3d_free_object() 39 v3d->bo_stats.num_allocated--; in v3d_free_object() 40 v3d->bo_stats.pages_allocated -= obj->size >> PAGE_SHIFT; in v3d_free_object() 41 mutex_unlock(&v3d->bo_lock); in v3d_free_object() 43 spin_lock(&v3d->mm_lock); in v3d_free_object() 45 spin_unlock(&v3d->mm_lock); in v3d_free_object() 90 struct v3d_dev *v3d = to_v3d_dev(obj->dev); in v3d_bo_create_finish() local 102 spin_lock(&v3d->mm_lock); in v3d_bo_create_finish() 107 ret = drm_mm_insert_node_generic(&v3d in v3d_bo_create_finish() [all...] |
H A D | v3d_debugfs.c | 84 struct v3d_dev *v3d = to_v3d_dev(dev); in v3d_v3d_debugfs_regs() local 93 if (v3d->ver < 41) { in v3d_v3d_debugfs_regs() 102 for (core = 0; core < v3d->cores; core++) { in v3d_v3d_debugfs_regs() 112 if (v3d_has_csd(v3d)) { in v3d_v3d_debugfs_regs() 131 struct v3d_dev *v3d = to_v3d_dev(dev); in v3d_v3d_debugfs_ident() local 135 ret = pm_runtime_get_sync(v3d->drm.dev); in v3d_v3d_debugfs_ident() 190 pm_runtime_mark_last_busy(v3d->drm.dev); in v3d_v3d_debugfs_ident() 191 pm_runtime_put_autosuspend(v3d->drm.dev); in v3d_v3d_debugfs_ident() 200 struct v3d_dev *v3d = to_v3d_dev(dev); in v3d_debugfs_bo_stats() local 202 mutex_lock(&v3d in v3d_debugfs_bo_stats() 216 struct v3d_dev *v3d = to_v3d_dev(dev); v3d_measure_clock() local [all...] |
H A D | v3d_fence.c | 6 struct dma_fence *v3d_fence_create(struct v3d_dev *v3d, enum v3d_queue queue) in v3d_fence_create() argument 14 fence->dev = &v3d->drm; in v3d_fence_create() 16 fence->seqno = ++v3d->queue[queue].emit_seqno; in v3d_fence_create() 17 dma_fence_init(&fence->base, &v3d_fence_ops, &v3d->job_lock, in v3d_fence_create() 18 v3d->queue[queue].fence_context, fence->seqno); in v3d_fence_create() 25 return "v3d"; in v3d_fence_get_driver_name() 34 return "v3d-bin"; in v3d_fence_get_timeline_name() 36 return "v3d-render"; in v3d_fence_get_timeline_name() 38 return "v3d-tfu"; in v3d_fence_get_timeline_name() 40 return "v3d in v3d_fence_get_timeline_name() [all...] |
H A D | Makefile | 5 v3d-y := \ 15 v3d-$(CONFIG_DEBUG_FS) += v3d_debugfs.o 17 obj-$(CONFIG_DRM_V3D) += v3d.o
|
/kernel/linux/linux-6.6/drivers/gpu/drm/v3d/ |
H A D | v3d_irq.c | 39 struct v3d_dev *v3d = in v3d_overflow_mem_work() local 41 struct drm_device *dev = &v3d->drm; in v3d_overflow_mem_work() 61 spin_lock_irqsave(&v3d->job_lock, irqflags); in v3d_overflow_mem_work() 62 if (!v3d->bin_job) { in v3d_overflow_mem_work() 63 spin_unlock_irqrestore(&v3d->job_lock, irqflags); in v3d_overflow_mem_work() 68 list_add_tail(&bo->unref_head, &v3d->bin_job->render->unref_list); in v3d_overflow_mem_work() 69 spin_unlock_irqrestore(&v3d->job_lock, irqflags); in v3d_overflow_mem_work() 81 struct v3d_dev *v3d = arg; in v3d_irq() local 96 schedule_work(&v3d->overflow_mem_work); in v3d_irq() 102 to_v3d_fence(v3d in v3d_irq() 145 struct v3d_dev *v3d = arg; v3d_hub_irq() local 204 v3d_irq_init(struct v3d_dev *v3d) v3d_irq_init() argument 253 v3d_irq_enable(struct v3d_dev *v3d) v3d_irq_enable() argument 268 v3d_irq_disable(struct v3d_dev *v3d) v3d_irq_disable() argument 286 v3d_irq_reset(struct v3d_dev *v3d) v3d_irq_reset() argument [all...] |
H A D | v3d_sched.c | 66 v3d_switch_perfmon(struct v3d_dev *v3d, struct v3d_job *job) in v3d_switch_perfmon() argument 68 if (job->perfmon != v3d->active_perfmon) in v3d_switch_perfmon() 69 v3d_perfmon_stop(v3d, v3d->active_perfmon, true); in v3d_switch_perfmon() 71 if (job->perfmon && v3d->active_perfmon != job->perfmon) in v3d_switch_perfmon() 72 v3d_perfmon_start(v3d, job->perfmon); in v3d_switch_perfmon() 78 struct v3d_dev *v3d = job->base.v3d; in v3d_bin_job_run() local 79 struct drm_device *dev = &v3d->drm; in v3d_bin_job_run() 89 spin_lock_irqsave(&v3d in v3d_bin_job_run() 133 struct v3d_dev *v3d = job->base.v3d; v3d_render_job_run() local 178 struct v3d_dev *v3d = job->base.v3d; v3d_tfu_job_run() local 215 struct v3d_dev *v3d = job->base.v3d; v3d_csd_job_run() local 248 struct v3d_dev *v3d = job->v3d; v3d_cache_clean_job_run() local 256 v3d_gpu_reset_for_timeout(struct v3d_dev *v3d, struct drm_sched_job *sched_job) v3d_gpu_reset_for_timeout() argument 295 struct v3d_dev *v3d = job->v3d; v3d_cl_job_timedout() local 338 struct v3d_dev *v3d = job->base.v3d; v3d_csd_job_timedout() local 383 v3d_sched_init(struct v3d_dev *v3d) v3d_sched_init() argument 440 v3d_sched_fini(struct v3d_dev *v3d) v3d_sched_fini() argument [all...] |
H A D | v3d_drv.c | 31 #define DRIVER_NAME "v3d" 41 struct v3d_dev *v3d = to_v3d_dev(dev); in v3d_get_param_ioctl() local 82 args->value = v3d_has_csd(v3d); in v3d_get_param_ioctl() 88 args->value = (v3d->ver >= 40); in v3d_get_param_ioctl() 102 struct v3d_dev *v3d = to_v3d_dev(dev); in v3d_open() local 111 v3d_priv->v3d = v3d; in v3d_open() 114 sched = &v3d->queue[i].sched; in v3d_open() 189 { .compatible = "brcm,2711-v3d" }, 190 { .compatible = "brcm,7268-v3d" }, 197 map_regs(struct v3d_dev *v3d, void __iomem **regs, const char *name) map_regs() argument 207 struct v3d_dev *v3d; v3d_platform_drm_probe() local 298 struct v3d_dev *v3d = to_v3d_dev(drm); v3d_platform_drm_remove() local [all...] |
H A D | v3d_gem.c | 22 v3d_init_core(struct v3d_dev *v3d, int core) in v3d_init_core() argument 30 if (v3d->ver < 40) in v3d_init_core() 42 v3d_init_hw_state(struct v3d_dev *v3d) in v3d_init_hw_state() argument 44 v3d_init_core(v3d, 0); in v3d_init_hw_state() 48 v3d_idle_axi(struct v3d_dev *v3d, int core) in v3d_idle_axi() argument 61 v3d_idle_gca(struct v3d_dev *v3d) in v3d_idle_gca() argument 63 if (v3d->ver >= 41) in v3d_idle_gca() 76 v3d_reset_by_bridge(struct v3d_dev *v3d) in v3d_reset_by_bridge() argument 99 v3d_reset_v3d(struct v3d_dev *v3d) in v3d_reset_v3d() argument 101 if (v3d in v3d_reset_v3d() 110 v3d_reset(struct v3d_dev *v3d) v3d_reset() argument 135 v3d_flush_l3(struct v3d_dev *v3d) v3d_flush_l3() argument 154 v3d_invalidate_l2c(struct v3d_dev *v3d, int core) v3d_invalidate_l2c() argument 166 v3d_flush_l2t(struct v3d_dev *v3d, int core) v3d_flush_l2t() argument 191 v3d_clean_caches(struct v3d_dev *v3d) v3d_clean_caches() argument 221 v3d_invalidate_slices(struct v3d_dev *v3d, int core) v3d_invalidate_slices() argument 231 v3d_invalidate_caches(struct v3d_dev *v3d) v3d_invalidate_caches() argument 400 v3d_job_init(struct v3d_dev *v3d, struct drm_file *file_priv, void **container, size_t size, void (*free)(struct kref *ref), u32 in_sync, struct v3d_submit_ext *se, enum v3d_queue queue) v3d_job_init() argument 664 struct v3d_dev *v3d = to_v3d_dev(dev); v3d_submit_cl_ioctl() local 818 struct v3d_dev *v3d = to_v3d_dev(dev); v3d_submit_tfu_ioctl() local 911 struct v3d_dev *v3d = to_v3d_dev(dev); v3d_submit_csd_ioctl() local 1012 struct v3d_dev *v3d = to_v3d_dev(dev); v3d_gem_init() local 1066 struct v3d_dev *v3d = to_v3d_dev(dev); v3d_gem_destroy() local [all...] |
H A D | v3d_mmu.c | 33 static int v3d_mmu_flush_all(struct v3d_dev *v3d) in v3d_mmu_flush_all() argument 43 dev_err(v3d->drm.dev, "TLB clear wait idle pre-wait failed\n"); in v3d_mmu_flush_all() 55 dev_err(v3d->drm.dev, "TLB clear wait idle failed\n"); in v3d_mmu_flush_all() 62 dev_err(v3d->drm.dev, "MMUC flush wait idle failed\n"); in v3d_mmu_flush_all() 67 int v3d_mmu_set_page_table(struct v3d_dev *v3d) in v3d_mmu_set_page_table() argument 69 V3D_WRITE(V3D_MMU_PT_PA_BASE, v3d->pt_paddr >> V3D_MMU_PAGE_SHIFT); in v3d_mmu_set_page_table() 80 (v3d->mmu_scratch_paddr >> V3D_MMU_PAGE_SHIFT) | in v3d_mmu_set_page_table() 84 return v3d_mmu_flush_all(v3d); in v3d_mmu_set_page_table() 90 struct v3d_dev *v3d = to_v3d_dev(shmem_obj->base.dev); in v3d_mmu_insert_ptes() local 104 v3d in v3d_mmu_insert_ptes() 116 struct v3d_dev *v3d = to_v3d_dev(bo->base.base.dev); v3d_mmu_remove_ptes() local [all...] |
H A D | v3d_drv.h | 153 v3d_has_csd(struct v3d_dev *v3d) in v3d_has_csd() argument 155 return v3d->ver >= 41; in v3d_has_csd() 158 #define v3d_to_pdev(v3d) to_platform_device((v3d)->drm.dev) 162 struct v3d_dev *v3d; member 192 /* v3d seqno for signaled() test */ 203 #define V3D_READ(offset) readl(v3d->hub_regs + offset) 204 #define V3D_WRITE(offset, val) writel(val, v3d->hub_regs + offset) 206 #define V3D_BRIDGE_READ(offset) readl(v3d->bridge_regs + offset) 207 #define V3D_BRIDGE_WRITE(offset, val) writel(val, v3d 220 struct v3d_dev *v3d; global() member [all...] |
H A D | v3d_bo.c | 33 struct v3d_dev *v3d = to_v3d_dev(obj->dev); in v3d_free_object() local 38 mutex_lock(&v3d->bo_lock); in v3d_free_object() 39 v3d->bo_stats.num_allocated--; in v3d_free_object() 40 v3d->bo_stats.pages_allocated -= obj->size >> PAGE_SHIFT; in v3d_free_object() 41 mutex_unlock(&v3d->bo_lock); in v3d_free_object() 43 spin_lock(&v3d->mm_lock); in v3d_free_object() 45 spin_unlock(&v3d->mm_lock); in v3d_free_object() 91 struct v3d_dev *v3d = to_v3d_dev(obj->dev); in v3d_bo_create_finish() local 103 spin_lock(&v3d->mm_lock); in v3d_bo_create_finish() 108 ret = drm_mm_insert_node_generic(&v3d in v3d_bo_create_finish() [all...] |
H A D | v3d_fence.c | 6 struct dma_fence *v3d_fence_create(struct v3d_dev *v3d, enum v3d_queue queue) in v3d_fence_create() argument 14 fence->dev = &v3d->drm; in v3d_fence_create() 16 fence->seqno = ++v3d->queue[queue].emit_seqno; in v3d_fence_create() 17 dma_fence_init(&fence->base, &v3d_fence_ops, &v3d->job_lock, in v3d_fence_create() 18 v3d->queue[queue].fence_context, fence->seqno); in v3d_fence_create() 25 return "v3d"; in v3d_fence_get_driver_name() 34 return "v3d-bin"; in v3d_fence_get_timeline_name() 36 return "v3d-render"; in v3d_fence_get_timeline_name() 38 return "v3d-tfu"; in v3d_fence_get_timeline_name() 40 return "v3d in v3d_fence_get_timeline_name() [all...] |
H A D | v3d_debugfs.c | 84 struct v3d_dev *v3d = to_v3d_dev(dev); in v3d_v3d_debugfs_regs() local 93 if (v3d->ver < 41) { in v3d_v3d_debugfs_regs() 102 for (core = 0; core < v3d->cores; core++) { in v3d_v3d_debugfs_regs() 112 if (v3d_has_csd(v3d)) { in v3d_v3d_debugfs_regs() 131 struct v3d_dev *v3d = to_v3d_dev(dev); in v3d_v3d_debugfs_ident() local 193 struct v3d_dev *v3d = to_v3d_dev(dev); in v3d_debugfs_bo_stats() local 195 mutex_lock(&v3d->bo_lock); in v3d_debugfs_bo_stats() 197 v3d->bo_stats.num_allocated); in v3d_debugfs_bo_stats() 199 (long)v3d->bo_stats.pages_allocated << (PAGE_SHIFT - 10)); in v3d_debugfs_bo_stats() 200 mutex_unlock(&v3d in v3d_debugfs_bo_stats() 209 struct v3d_dev *v3d = to_v3d_dev(dev); v3d_measure_clock() local [all...] |
H A D | v3d_perfmon.c | 26 void v3d_perfmon_start(struct v3d_dev *v3d, struct v3d_perfmon *perfmon) in v3d_perfmon_start() argument 32 if (WARN_ON_ONCE(!perfmon || v3d->active_perfmon)) in v3d_perfmon_start() 58 v3d->active_perfmon = perfmon; in v3d_perfmon_start() 61 void v3d_perfmon_stop(struct v3d_dev *v3d, struct v3d_perfmon *perfmon, in v3d_perfmon_stop() argument 66 if (!perfmon || !v3d->active_perfmon) in v3d_perfmon_stop() 70 if (perfmon != v3d->active_perfmon) { in v3d_perfmon_stop() 81 v3d->active_perfmon = NULL; in v3d_perfmon_stop() 192 struct v3d_dev *v3d = to_v3d_dev(dev); in v3d_perfmon_get_values_ioctl() local 209 v3d_perfmon_stop(v3d, perfmon, true); in v3d_perfmon_get_values_ioctl()
|
H A D | Makefile | 5 v3d-y := \ 16 v3d-$(CONFIG_DEBUG_FS) += v3d_debugfs.o 18 obj-$(CONFIG_DRM_V3D) += v3d.o
|
/kernel/linux/linux-6.6/drivers/gpu/drm/vc4/ |
H A D | vc4_v3d.c | 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 in vc4_v3d_runtime_suspend() 386 struct vc4_v3d *v3d = dev_get_drvdata(dev); vc4_v3d_runtime_resume() local 406 struct vc4_v3d *v3d = vc4->v3d; vc4_v3d_debugfs_init() local 423 struct vc4_v3d *v3d = NULL; vc4_v3d_bind() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/vc4/ |
H A D | vc4_v3d.c | 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() 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 in vc4_v3d_runtime_suspend() 373 struct vc4_v3d *v3d = dev_get_drvdata(dev); vc4_v3d_runtime_resume() local 396 struct vc4_v3d *v3d = NULL; vc4_v3d_bind() local [all...] |
H A D | vc4_irq.c | 242 if (!vc4->v3d) in vc4_irq_preinstall() 259 if (!vc4->v3d) in vc4_irq_postinstall() 275 if (!vc4->v3d) in vc4_irq_uninstall()
|
H A D | vc4_perfmon.c | 110 if (!vc4->v3d) { in vc4_perfmon_create_ioctl() 160 if (!vc4->v3d) { in vc4_perfmon_destroy_ioctl() 185 if (!vc4->v3d) { in vc4_perfmon_get_values_ioctl()
|