Home
last modified time | relevance | path

Searched refs:vc4file (Results 1 – 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/vc4/
Dvc4_perfmon.c65 struct vc4_perfmon *vc4_perfmon_find(struct vc4_file *vc4file, int id) in vc4_perfmon_find() argument
69 mutex_lock(&vc4file->perfmon.lock); in vc4_perfmon_find()
70 perfmon = idr_find(&vc4file->perfmon.idr, id); in vc4_perfmon_find()
72 mutex_unlock(&vc4file->perfmon.lock); in vc4_perfmon_find()
77 void vc4_perfmon_open_file(struct vc4_file *vc4file) in vc4_perfmon_open_file() argument
79 mutex_init(&vc4file->perfmon.lock); in vc4_perfmon_open_file()
80 idr_init(&vc4file->perfmon.idr); in vc4_perfmon_open_file()
92 void vc4_perfmon_close_file(struct vc4_file *vc4file) in vc4_perfmon_close_file() argument
94 mutex_lock(&vc4file->perfmon.lock); in vc4_perfmon_close_file()
95 idr_for_each(&vc4file->perfmon.idr, vc4_perfmon_idr_del, NULL); in vc4_perfmon_close_file()
[all …]
Dvc4_drv.c120 struct vc4_file *vc4file; in vc4_open() local
122 vc4file = kzalloc(sizeof(*vc4file), GFP_KERNEL); in vc4_open()
123 if (!vc4file) in vc4_open()
126 vc4_perfmon_open_file(vc4file); in vc4_open()
127 file->driver_priv = vc4file; in vc4_open()
134 struct vc4_file *vc4file = file->driver_priv; in vc4_close() local
136 if (vc4file->bin_bo_used) in vc4_close()
139 vc4_perfmon_close_file(vc4file); in vc4_close()
140 kfree(vc4file); in vc4_close()
Dvc4_bo.c796 static int vc4_grab_bin_bo(struct vc4_dev *vc4, struct vc4_file *vc4file) in vc4_grab_bin_bo() argument
803 if (vc4file->bin_bo_used) in vc4_grab_bin_bo()
806 ret = vc4_v3d_bin_bo_get(vc4, &vc4file->bin_bo_used); in vc4_grab_bin_bo()
817 struct vc4_file *vc4file = file_priv->driver_priv; in vc4_create_bo_ioctl() local
822 ret = vc4_grab_bin_bo(vc4, vc4file); in vc4_create_bo_ioctl()
866 struct vc4_file *vc4file = file_priv->driver_priv; in vc4_create_shader_bo_ioctl() local
887 ret = vc4_grab_bin_bo(vc4, vc4file); in vc4_create_shader_bo_ioctl()
Dvc4_drv.h978 struct vc4_perfmon *vc4_perfmon_find(struct vc4_file *vc4file, int id);
979 void vc4_perfmon_open_file(struct vc4_file *vc4file);
980 void vc4_perfmon_close_file(struct vc4_file *vc4file);
Dvc4_gem.c1131 struct vc4_file *vc4file = file_priv->driver_priv; in vc4_submit_cl_ioctl() local
1177 exec->perfmon = vc4_perfmon_find(vc4file, in vc4_submit_cl_ioctl()