Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/v3d/
H A Dv3d_perfmon.c288 struct v3d_perfmon *v3d_perfmon_find(struct v3d_file_priv *v3d_priv, int id) in v3d_perfmon_find() argument
292 mutex_lock(&v3d_priv->perfmon.lock); in v3d_perfmon_find()
293 perfmon = idr_find(&v3d_priv->perfmon.idr, id); in v3d_perfmon_find()
295 mutex_unlock(&v3d_priv->perfmon.lock); in v3d_perfmon_find()
300 void v3d_perfmon_open_file(struct v3d_file_priv *v3d_priv) in v3d_perfmon_open_file() argument
302 mutex_init(&v3d_priv->perfmon.lock); in v3d_perfmon_open_file()
303 idr_init_base(&v3d_priv->perfmon.idr, 1); in v3d_perfmon_open_file()
320 void v3d_perfmon_close_file(struct v3d_file_priv *v3d_priv) in v3d_perfmon_close_file() argument
322 struct v3d_dev *v3d = v3d_priv->v3d; in v3d_perfmon_close_file()
324 mutex_lock(&v3d_priv->perfmon.lock); in v3d_perfmon_close_file()
[all …]
H A Dv3d_drv.c110 struct v3d_file_priv *v3d_priv; in v3d_open() local
114 v3d_priv = kzalloc(sizeof(*v3d_priv), GFP_KERNEL); in v3d_open()
115 if (!v3d_priv) in v3d_open()
118 v3d_priv->v3d = v3d; in v3d_open()
122 drm_sched_entity_init(&v3d_priv->sched_entity[i], in v3d_open()
126 memset(&v3d_priv->stats[i], 0, sizeof(v3d_priv->stats[i])); in v3d_open()
127 seqcount_init(&v3d_priv->stats[i].lock); in v3d_open()
130 v3d_perfmon_open_file(v3d_priv); in v3d_open()
131 file->driver_priv = v3d_priv; in v3d_open()
139 struct v3d_file_priv *v3d_priv = file->driver_priv; in v3d_postclose() local
[all …]
H A Dv3d_submit.c162 struct v3d_file_priv *v3d_priv = file_priv->driver_priv; in v3d_job_init() local
170 ret = drm_sched_job_init(&job->base, &v3d_priv->sched_entity[queue], in v3d_job_init()
171 1, v3d_priv); in v3d_job_init()
411 struct v3d_file_priv *v3d_priv = file_priv->driver_priv; in v3d_get_cpu_indirect_csd_params() local
412 struct v3d_dev *v3d = v3d_priv->v3d; in v3d_get_cpu_indirect_csd_params()
892 struct v3d_file_priv *v3d_priv = file_priv->driver_priv; in v3d_submit_cl_ioctl() local
984 render->base.perfmon = v3d_perfmon_find(v3d_priv, in v3d_submit_cl_ioctl()
1161 struct v3d_file_priv *v3d_priv = file_priv->driver_priv; in v3d_submit_csd_ioctl() local
1199 job->base.perfmon = v3d_perfmon_find(v3d_priv, in v3d_submit_csd_ioctl()
H A Dv3d_drv.h576 struct v3d_perfmon *v3d_perfmon_find(struct v3d_file_priv *v3d_priv, int id);
577 void v3d_perfmon_open_file(struct v3d_file_priv *v3d_priv);
578 void v3d_perfmon_close_file(struct v3d_file_priv *v3d_priv);
H A Dv3d_sched.c502 struct v3d_file_priv *v3d_priv = job->base.file->driver_priv; in v3d_reset_performance_queries() local
508 perfmon = v3d_perfmon_find(v3d_priv, in v3d_reset_performance_queries()
532 struct v3d_file_priv *v3d_priv = job->base.file->driver_priv; in v3d_write_performance_query_result() local
543 perfmon = v3d_perfmon_find(v3d_priv, in v3d_write_performance_query_result()