Searched refs:vc4file (Results 1 – 4 of 4) sorted by relevance
90 struct vc4_perfmon *vc4_perfmon_find(struct vc4_file *vc4file, int id) in vc4_perfmon_find() argument92 struct vc4_dev *vc4 = vc4file->dev; in vc4_perfmon_find()98 mutex_lock(&vc4file->perfmon.lock); in vc4_perfmon_find()99 perfmon = idr_find(&vc4file->perfmon.idr, id); in vc4_perfmon_find()101 mutex_unlock(&vc4file->perfmon.lock); in vc4_perfmon_find()106 void vc4_perfmon_open_file(struct vc4_file *vc4file) in vc4_perfmon_open_file() argument108 struct vc4_dev *vc4 = vc4file->dev; in vc4_perfmon_open_file()113 mutex_init(&vc4file->perfmon.lock); in vc4_perfmon_open_file()114 idr_init_base(&vc4file->perfmon.idr, VC4_PERFMONID_MIN); in vc4_perfmon_open_file()115 vc4file->dev = vc4; in vc4_perfmon_open_file()[all …]
150 struct vc4_file *vc4file; in vc4_open() local155 vc4file = kzalloc_obj(*vc4file); in vc4_open()156 if (!vc4file) in vc4_open()158 vc4file->dev = vc4; in vc4_open()160 vc4_perfmon_open_file(vc4file); in vc4_open()161 file->driver_priv = vc4file; in vc4_open()168 struct vc4_file *vc4file = file->driver_priv; in vc4_close() local173 if (vc4file->bin_bo_used) in vc4_close()176 vc4_perfmon_close_file(vc4file); in vc4_close()177 kfree(vc4file); in vc4_close()
766 static int vc4_grab_bin_bo(struct vc4_dev *vc4, struct vc4_file *vc4file) in vc4_grab_bin_bo() argument771 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() local789 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() local861 ret = vc4_grab_bin_bo(vc4, vc4file); in vc4_create_shader_bo_ioctl()
1013 struct vc4_file *vc4file = file_priv->driver_priv; in vc4_submit_cl_ioctl() local1066 exec->perfmon = vc4_perfmon_find(vc4file, in vc4_submit_cl_ioctl()