• Home
  • Raw
  • Download

Lines Matching refs:vc4file

65 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->perfmon.idr, vc4_perfmon_idr_del, NULL); in vc4_perfmon_close_file()
96 idr_destroy(&vc4file->perfmon.idr); in vc4_perfmon_close_file()
97 mutex_unlock(&vc4file->perfmon.lock); in vc4_perfmon_close_file()
104 struct vc4_file *vc4file = file_priv->driver_priv; in vc4_perfmon_create_ioctl() local
138 mutex_lock(&vc4file->perfmon.lock); in vc4_perfmon_create_ioctl()
139 ret = idr_alloc(&vc4file->perfmon.idr, perfmon, VC4_PERFMONID_MIN, in vc4_perfmon_create_ioctl()
141 mutex_unlock(&vc4file->perfmon.lock); in vc4_perfmon_create_ioctl()
156 struct vc4_file *vc4file = file_priv->driver_priv; in vc4_perfmon_destroy_ioctl() local
165 mutex_lock(&vc4file->perfmon.lock); in vc4_perfmon_destroy_ioctl()
166 perfmon = idr_remove(&vc4file->perfmon.idr, req->id); in vc4_perfmon_destroy_ioctl()
167 mutex_unlock(&vc4file->perfmon.lock); in vc4_perfmon_destroy_ioctl()
180 struct vc4_file *vc4file = file_priv->driver_priv; in vc4_perfmon_get_values_ioctl() local
190 mutex_lock(&vc4file->perfmon.lock); in vc4_perfmon_get_values_ioctl()
191 perfmon = idr_find(&vc4file->perfmon.idr, req->id); in vc4_perfmon_get_values_ioctl()
193 mutex_unlock(&vc4file->perfmon.lock); in vc4_perfmon_get_values_ioctl()