Searched refs:vc4file (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/drivers/gpu/drm/vc4/ |
H A D | vc4_perfmon.c | 88 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->dev = vc4; in vc4_perfmon_open_file() [all …]
|
H A D | vc4_drv.c | 148 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() 175 kfree(vc4file); in vc4_close()
|
H A D | vc4_bo.c | 766 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 D | vc4_drv.h | 1072 struct vc4_perfmon *vc4_perfmon_find(struct vc4_file *vc4file, int id); 1073 void vc4_perfmon_open_file(struct vc4_file *vc4file); 1074 void vc4_perfmon_close_file(struct vc4_file *vc4file);
|
H A D | vc4_gem.c | 1122 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()
|