vc4file 796 drivers/gpu/drm/vc4/vc4_bo.c static int vc4_grab_bin_bo(struct vc4_dev *vc4, struct vc4_file *vc4file) vc4file 803 drivers/gpu/drm/vc4/vc4_bo.c if (vc4file->bin_bo_used) vc4file 806 drivers/gpu/drm/vc4/vc4_bo.c ret = vc4_v3d_bin_bo_get(vc4, &vc4file->bin_bo_used); vc4file 817 drivers/gpu/drm/vc4/vc4_bo.c struct vc4_file *vc4file = file_priv->driver_priv; vc4file 822 drivers/gpu/drm/vc4/vc4_bo.c ret = vc4_grab_bin_bo(vc4, vc4file); vc4file 866 drivers/gpu/drm/vc4/vc4_bo.c struct vc4_file *vc4file = file_priv->driver_priv; vc4file 887 drivers/gpu/drm/vc4/vc4_bo.c ret = vc4_grab_bin_bo(vc4, vc4file); vc4file 120 drivers/gpu/drm/vc4/vc4_drv.c struct vc4_file *vc4file; vc4file 122 drivers/gpu/drm/vc4/vc4_drv.c vc4file = kzalloc(sizeof(*vc4file), GFP_KERNEL); vc4file 123 drivers/gpu/drm/vc4/vc4_drv.c if (!vc4file) vc4file 126 drivers/gpu/drm/vc4/vc4_drv.c vc4_perfmon_open_file(vc4file); vc4file 127 drivers/gpu/drm/vc4/vc4_drv.c file->driver_priv = vc4file; vc4file 134 drivers/gpu/drm/vc4/vc4_drv.c struct vc4_file *vc4file = file->driver_priv; vc4file 136 drivers/gpu/drm/vc4/vc4_drv.c if (vc4file->bin_bo_used) vc4file 139 drivers/gpu/drm/vc4/vc4_drv.c vc4_perfmon_close_file(vc4file); vc4file 140 drivers/gpu/drm/vc4/vc4_drv.c kfree(vc4file); vc4file 886 drivers/gpu/drm/vc4/vc4_drv.h struct vc4_perfmon *vc4_perfmon_find(struct vc4_file *vc4file, int id); vc4file 887 drivers/gpu/drm/vc4/vc4_drv.h void vc4_perfmon_open_file(struct vc4_file *vc4file); vc4file 888 drivers/gpu/drm/vc4/vc4_drv.h void vc4_perfmon_close_file(struct vc4_file *vc4file); vc4file 1132 drivers/gpu/drm/vc4/vc4_gem.c struct vc4_file *vc4file = file_priv->driver_priv; vc4file 1178 drivers/gpu/drm/vc4/vc4_gem.c exec->perfmon = vc4_perfmon_find(vc4file, vc4file 65 drivers/gpu/drm/vc4/vc4_perfmon.c struct vc4_perfmon *vc4_perfmon_find(struct vc4_file *vc4file, int id) vc4file 69 drivers/gpu/drm/vc4/vc4_perfmon.c mutex_lock(&vc4file->perfmon.lock); vc4file 70 drivers/gpu/drm/vc4/vc4_perfmon.c perfmon = idr_find(&vc4file->perfmon.idr, id); vc4file 72 drivers/gpu/drm/vc4/vc4_perfmon.c mutex_unlock(&vc4file->perfmon.lock); vc4file 77 drivers/gpu/drm/vc4/vc4_perfmon.c void vc4_perfmon_open_file(struct vc4_file *vc4file) vc4file 79 drivers/gpu/drm/vc4/vc4_perfmon.c mutex_init(&vc4file->perfmon.lock); vc4file 80 drivers/gpu/drm/vc4/vc4_perfmon.c idr_init(&vc4file->perfmon.idr); vc4file 92 drivers/gpu/drm/vc4/vc4_perfmon.c void vc4_perfmon_close_file(struct vc4_file *vc4file) vc4file 94 drivers/gpu/drm/vc4/vc4_perfmon.c mutex_lock(&vc4file->perfmon.lock); vc4file 95 drivers/gpu/drm/vc4/vc4_perfmon.c idr_for_each(&vc4file->perfmon.idr, vc4_perfmon_idr_del, NULL); vc4file 96 drivers/gpu/drm/vc4/vc4_perfmon.c idr_destroy(&vc4file->perfmon.idr); vc4file 97 drivers/gpu/drm/vc4/vc4_perfmon.c mutex_unlock(&vc4file->perfmon.lock); vc4file 104 drivers/gpu/drm/vc4/vc4_perfmon.c struct vc4_file *vc4file = file_priv->driver_priv; vc4file 138 drivers/gpu/drm/vc4/vc4_perfmon.c mutex_lock(&vc4file->perfmon.lock); vc4file 139 drivers/gpu/drm/vc4/vc4_perfmon.c ret = idr_alloc(&vc4file->perfmon.idr, perfmon, VC4_PERFMONID_MIN, vc4file 141 drivers/gpu/drm/vc4/vc4_perfmon.c mutex_unlock(&vc4file->perfmon.lock); vc4file 156 drivers/gpu/drm/vc4/vc4_perfmon.c struct vc4_file *vc4file = file_priv->driver_priv; vc4file 165 drivers/gpu/drm/vc4/vc4_perfmon.c mutex_lock(&vc4file->perfmon.lock); vc4file 166 drivers/gpu/drm/vc4/vc4_perfmon.c perfmon = idr_remove(&vc4file->perfmon.idr, req->id); vc4file 167 drivers/gpu/drm/vc4/vc4_perfmon.c mutex_unlock(&vc4file->perfmon.lock); vc4file 180 drivers/gpu/drm/vc4/vc4_perfmon.c struct vc4_file *vc4file = file_priv->driver_priv; vc4file 190 drivers/gpu/drm/vc4/vc4_perfmon.c mutex_lock(&vc4file->perfmon.lock); vc4file 191 drivers/gpu/drm/vc4/vc4_perfmon.c perfmon = idr_find(&vc4file->perfmon.idr, req->id); vc4file 193 drivers/gpu/drm/vc4/vc4_perfmon.c mutex_unlock(&vc4file->perfmon.lock);