Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/gpu/drm/v3d/
Dv3d_perfmon.c85 struct v3d_perfmon *v3d_perfmon_find(struct v3d_file_priv *v3d_priv, int id) in v3d_perfmon_find() argument
89 mutex_lock(&v3d_priv->perfmon.lock); in v3d_perfmon_find()
90 perfmon = idr_find(&v3d_priv->perfmon.idr, id); in v3d_perfmon_find()
92 mutex_unlock(&v3d_priv->perfmon.lock); in v3d_perfmon_find()
97 void v3d_perfmon_open_file(struct v3d_file_priv *v3d_priv) in v3d_perfmon_open_file() argument
99 mutex_init(&v3d_priv->perfmon.lock); in v3d_perfmon_open_file()
100 idr_init_base(&v3d_priv->perfmon.idr, 1); in v3d_perfmon_open_file()
112 void v3d_perfmon_close_file(struct v3d_file_priv *v3d_priv) in v3d_perfmon_close_file() argument
114 mutex_lock(&v3d_priv->perfmon.lock); in v3d_perfmon_close_file()
115 idr_for_each(&v3d_priv->perfmon.idr, v3d_perfmon_idr_del, NULL); in v3d_perfmon_close_file()
[all …]
Dv3d_drv.c103 struct v3d_file_priv *v3d_priv; in v3d_open() local
107 v3d_priv = kzalloc(sizeof(*v3d_priv), GFP_KERNEL); in v3d_open()
108 if (!v3d_priv) in v3d_open()
111 v3d_priv->v3d = v3d; in v3d_open()
115 drm_sched_entity_init(&v3d_priv->sched_entity[i], in v3d_open()
120 v3d_perfmon_open_file(v3d_priv); in v3d_open()
121 file->driver_priv = v3d_priv; in v3d_open()
129 struct v3d_file_priv *v3d_priv = file->driver_priv; in v3d_postclose() local
133 drm_sched_entity_destroy(&v3d_priv->sched_entity[q]); in v3d_postclose()
135 v3d_perfmon_close_file(v3d_priv); in v3d_postclose()
[all …]
Dv3d_drv.h412 struct v3d_perfmon *v3d_perfmon_find(struct v3d_file_priv *v3d_priv, int id);
413 void v3d_perfmon_open_file(struct v3d_file_priv *v3d_priv);
414 void v3d_perfmon_close_file(struct v3d_file_priv *v3d_priv);
Dv3d_gem.c404 struct v3d_file_priv *v3d_priv = file_priv->driver_priv; in v3d_job_init() local
419 ret = drm_sched_job_init(&job->base, &v3d_priv->sched_entity[queue], in v3d_job_init()
420 v3d_priv); in v3d_job_init()
665 struct v3d_file_priv *v3d_priv = file_priv->driver_priv; in v3d_submit_cl_ioctl() local
739 render->base.perfmon = v3d_perfmon_find(v3d_priv, in v3d_submit_cl_ioctl()
912 struct v3d_file_priv *v3d_priv = file_priv->driver_priv; in v3d_submit_csd_ioctl() local
965 job->base.perfmon = v3d_perfmon_find(v3d_priv, in v3d_submit_csd_ioctl()