perfcnt 84 drivers/gpu/drm/panfrost/panfrost_device.h struct panfrost_perfcnt *perfcnt; perfcnt 38 drivers/gpu/drm/panfrost/panfrost_perfcnt.c complete(&pfdev->perfcnt->dump_comp); perfcnt 51 drivers/gpu/drm/panfrost/panfrost_perfcnt.c reinit_completion(&pfdev->perfcnt->dump_comp); perfcnt 52 drivers/gpu/drm/panfrost/panfrost_perfcnt.c gpuva = pfdev->perfcnt->mapping->mmnode.start << PAGE_SHIFT; perfcnt 59 drivers/gpu/drm/panfrost/panfrost_perfcnt.c ret = wait_for_completion_interruptible_timeout(&pfdev->perfcnt->dump_comp, perfcnt 74 drivers/gpu/drm/panfrost/panfrost_perfcnt.c struct panfrost_perfcnt *perfcnt = pfdev->perfcnt; perfcnt 79 drivers/gpu/drm/panfrost/panfrost_perfcnt.c if (user == perfcnt->user) perfcnt 81 drivers/gpu/drm/panfrost/panfrost_perfcnt.c else if (perfcnt->user) perfcnt 88 drivers/gpu/drm/panfrost/panfrost_perfcnt.c bo = drm_gem_shmem_create(pfdev->ddev, perfcnt->bosize); perfcnt 97 drivers/gpu/drm/panfrost/panfrost_perfcnt.c perfcnt->mapping = panfrost_gem_mapping_get(to_panfrost_bo(&bo->base), perfcnt 99 drivers/gpu/drm/panfrost/panfrost_perfcnt.c if (!perfcnt->mapping) { perfcnt 104 drivers/gpu/drm/panfrost/panfrost_perfcnt.c perfcnt->buf = drm_gem_shmem_vmap(&bo->base); perfcnt 105 drivers/gpu/drm/panfrost/panfrost_perfcnt.c if (IS_ERR(perfcnt->buf)) { perfcnt 106 drivers/gpu/drm/panfrost/panfrost_perfcnt.c ret = PTR_ERR(perfcnt->buf); perfcnt 114 drivers/gpu/drm/panfrost/panfrost_perfcnt.c reinit_completion(&pfdev->perfcnt->dump_comp); perfcnt 120 drivers/gpu/drm/panfrost/panfrost_perfcnt.c ret = wait_for_completion_timeout(&pfdev->perfcnt->dump_comp, perfcnt 127 drivers/gpu/drm/panfrost/panfrost_perfcnt.c perfcnt->user = user; perfcnt 129 drivers/gpu/drm/panfrost/panfrost_perfcnt.c as = panfrost_mmu_as_get(pfdev, perfcnt->mapping->mmu); perfcnt 164 drivers/gpu/drm/panfrost/panfrost_perfcnt.c drm_gem_shmem_vunmap(&bo->base, perfcnt->buf); perfcnt 166 drivers/gpu/drm/panfrost/panfrost_perfcnt.c panfrost_gem_mapping_put(perfcnt->mapping); perfcnt 178 drivers/gpu/drm/panfrost/panfrost_perfcnt.c struct panfrost_perfcnt *perfcnt = pfdev->perfcnt; perfcnt 180 drivers/gpu/drm/panfrost/panfrost_perfcnt.c if (user != perfcnt->user) perfcnt 190 drivers/gpu/drm/panfrost/panfrost_perfcnt.c perfcnt->user = NULL; perfcnt 191 drivers/gpu/drm/panfrost/panfrost_perfcnt.c drm_gem_shmem_vunmap(&perfcnt->mapping->obj->base.base, perfcnt->buf); perfcnt 192 drivers/gpu/drm/panfrost/panfrost_perfcnt.c perfcnt->buf = NULL; perfcnt 193 drivers/gpu/drm/panfrost/panfrost_perfcnt.c panfrost_gem_close(&perfcnt->mapping->obj->base.base, file_priv); perfcnt 194 drivers/gpu/drm/panfrost/panfrost_perfcnt.c panfrost_mmu_as_put(pfdev, perfcnt->mapping->mmu); perfcnt 195 drivers/gpu/drm/panfrost/panfrost_perfcnt.c panfrost_gem_mapping_put(perfcnt->mapping); perfcnt 196 drivers/gpu/drm/panfrost/panfrost_perfcnt.c perfcnt->mapping = NULL; perfcnt 207 drivers/gpu/drm/panfrost/panfrost_perfcnt.c struct panfrost_perfcnt *perfcnt = pfdev->perfcnt; perfcnt 219 drivers/gpu/drm/panfrost/panfrost_perfcnt.c mutex_lock(&perfcnt->lock); perfcnt 225 drivers/gpu/drm/panfrost/panfrost_perfcnt.c mutex_unlock(&perfcnt->lock); perfcnt 234 drivers/gpu/drm/panfrost/panfrost_perfcnt.c struct panfrost_perfcnt *perfcnt = pfdev->perfcnt; perfcnt 243 drivers/gpu/drm/panfrost/panfrost_perfcnt.c mutex_lock(&perfcnt->lock); perfcnt 244 drivers/gpu/drm/panfrost/panfrost_perfcnt.c if (perfcnt->user != file_priv->driver_priv) { perfcnt 253 drivers/gpu/drm/panfrost/panfrost_perfcnt.c if (copy_to_user(user_ptr, perfcnt->buf, perfcnt->bosize)) perfcnt 257 drivers/gpu/drm/panfrost/panfrost_perfcnt.c mutex_unlock(&perfcnt->lock); perfcnt 266 drivers/gpu/drm/panfrost/panfrost_perfcnt.c struct panfrost_perfcnt *perfcnt = pfdev->perfcnt; perfcnt 269 drivers/gpu/drm/panfrost/panfrost_perfcnt.c mutex_lock(&perfcnt->lock); perfcnt 270 drivers/gpu/drm/panfrost/panfrost_perfcnt.c if (perfcnt->user == pfile) perfcnt 272 drivers/gpu/drm/panfrost/panfrost_perfcnt.c mutex_unlock(&perfcnt->lock); perfcnt 279 drivers/gpu/drm/panfrost/panfrost_perfcnt.c struct panfrost_perfcnt *perfcnt; perfcnt 312 drivers/gpu/drm/panfrost/panfrost_perfcnt.c perfcnt = devm_kzalloc(pfdev->dev, sizeof(*perfcnt), GFP_KERNEL); perfcnt 313 drivers/gpu/drm/panfrost/panfrost_perfcnt.c if (!perfcnt) perfcnt 316 drivers/gpu/drm/panfrost/panfrost_perfcnt.c perfcnt->bosize = size; perfcnt 326 drivers/gpu/drm/panfrost/panfrost_perfcnt.c init_completion(&perfcnt->dump_comp); perfcnt 327 drivers/gpu/drm/panfrost/panfrost_perfcnt.c mutex_init(&perfcnt->lock); perfcnt 328 drivers/gpu/drm/panfrost/panfrost_perfcnt.c pfdev->perfcnt = perfcnt;