Home
last modified time | relevance | path

Searched refs:vc4file (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-6.6/drivers/gpu/drm/vc4/
H A Dvc4_perfmon.c88 struct vc4_perfmon *vc4_perfmon_find(struct vc4_file *vc4file, int id) in vc4_perfmon_find() argument
90 struct vc4_dev *vc4 = vc4file->dev; in vc4_perfmon_find()
96 mutex_lock(&vc4file->perfmon.lock); in vc4_perfmon_find()
97 perfmon = idr_find(&vc4file->perfmon.idr, id); in vc4_perfmon_find()
99 mutex_unlock(&vc4file->perfmon.lock); in vc4_perfmon_find()
104 void vc4_perfmon_open_file(struct vc4_file *vc4file) in vc4_perfmon_open_file() argument
106 struct vc4_dev *vc4 = vc4file->dev; in vc4_perfmon_open_file()
111 mutex_init(&vc4file->perfmon.lock); in vc4_perfmon_open_file()
112 idr_init_base(&vc4file->perfmon.idr, VC4_PERFMONID_MIN); in vc4_perfmon_open_file()
113 vc4file in vc4_perfmon_open_file()
125 vc4_perfmon_close_file(struct vc4_file *vc4file) vc4_perfmon_close_file() argument
143 struct vc4_file *vc4file = file_priv->driver_priv; vc4_perfmon_create_ioctl() local
199 struct vc4_file *vc4file = file_priv->driver_priv; vc4_perfmon_destroy_ioctl() local
226 struct vc4_file *vc4file = file_priv->driver_priv; vc4_perfmon_get_values_ioctl() local
[all...]
H A Dvc4_drv.c148 struct vc4_file *vc4file; in vc4_open() local
153 vc4file = kzalloc(sizeof(*vc4file), GFP_KERNEL); in vc4_open()
154 if (!vc4file) in vc4_open()
156 vc4file->dev = vc4; in vc4_open()
158 vc4_perfmon_open_file(vc4file); in vc4_open()
159 file->driver_priv = vc4file; in vc4_open()
166 struct vc4_file *vc4file = file->driver_priv; in vc4_close() local
171 if (vc4file->bin_bo_used) in vc4_close()
174 vc4_perfmon_close_file(vc4file); in vc4_close()
[all...]
H A Dvc4_bo.c766 static int vc4_grab_bin_bo(struct vc4_dev *vc4, struct vc4_file *vc4file) in vc4_grab_bin_bo() argument
771 if (vc4file->bin_bo_used) in vc4_grab_bin_bo()
774 return vc4_v3d_bin_bo_get(vc4, &vc4file->bin_bo_used); in vc4_grab_bin_bo()
781 struct vc4_file *vc4file = file_priv->driver_priv; in vc4_create_bo_ioctl() local
789 ret = vc4_grab_bin_bo(vc4, vc4file); in vc4_create_bo_ioctl()
837 struct vc4_file *vc4file = file_priv->driver_priv; in vc4_create_shader_bo_ioctl() local
861 ret = vc4_grab_bin_bo(vc4, vc4file); in vc4_create_shader_bo_ioctl()
H A Dvc4_drv.h1071 struct vc4_perfmon *vc4_perfmon_find(struct vc4_file *vc4file, int id);
1072 void vc4_perfmon_open_file(struct vc4_file *vc4file);
1073 void vc4_perfmon_close_file(struct vc4_file *vc4file);
H A Dvc4_gem.c1122 struct vc4_file *vc4file = file_priv->driver_priv; in vc4_submit_cl_ioctl() local
1176 exec->perfmon = vc4_perfmon_find(vc4file, in vc4_submit_cl_ioctl()
/kernel/linux/linux-5.10/drivers/gpu/drm/vc4/
H A 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 in vc4_perfmon_close_file()
104 struct vc4_file *vc4file = file_priv->driver_priv; vc4_perfmon_create_ioctl() local
156 struct vc4_file *vc4file = file_priv->driver_priv; vc4_perfmon_destroy_ioctl() local
180 struct vc4_file *vc4file = file_priv->driver_priv; vc4_perfmon_get_values_ioctl() local
[all...]
H A 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()
[all...]
H A 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()
H A 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);
H A 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()

Completed in 11 milliseconds