Lines Matching full:vc4
7 * DOC: VC4 V3D performance monitor module
20 struct vc4_dev *vc4; in vc4_perfmon_get() local
25 vc4 = perfmon->dev; in vc4_perfmon_get()
26 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_get()
34 struct vc4_dev *vc4; in vc4_perfmon_put() local
39 vc4 = perfmon->dev; in vc4_perfmon_put()
40 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_put()
47 void vc4_perfmon_start(struct vc4_dev *vc4, struct vc4_perfmon *perfmon) in vc4_perfmon_start() argument
52 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_start()
55 if (WARN_ON_ONCE(!perfmon || vc4->active_perfmon)) in vc4_perfmon_start()
64 vc4->active_perfmon = perfmon; in vc4_perfmon_start()
67 void vc4_perfmon_stop(struct vc4_dev *vc4, struct vc4_perfmon *perfmon, in vc4_perfmon_stop() argument
72 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_stop()
75 if (WARN_ON_ONCE(!vc4->active_perfmon || in vc4_perfmon_stop()
76 perfmon != vc4->active_perfmon)) in vc4_perfmon_stop()
85 vc4->active_perfmon = NULL; in vc4_perfmon_stop()
90 struct vc4_dev *vc4 = vc4file->dev; in vc4_perfmon_find() local
93 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_find()
106 struct vc4_dev *vc4 = vc4file->dev; in vc4_perfmon_open_file() local
108 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_open_file()
113 vc4file->dev = vc4; in vc4_perfmon_open_file()
119 struct vc4_dev *vc4 = (struct vc4_dev *)data; in vc4_perfmon_idr_del() local
122 if (perfmon == vc4->active_perfmon) in vc4_perfmon_idr_del()
123 vc4_perfmon_stop(vc4, perfmon, false); in vc4_perfmon_idr_del()
132 struct vc4_dev *vc4 = vc4file->dev; in vc4_perfmon_close_file() local
134 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_close_file()
138 idr_for_each(&vc4file->perfmon.idr, vc4_perfmon_idr_del, vc4); in vc4_perfmon_close_file()
147 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_perfmon_create_ioctl() local
154 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_create_ioctl()
157 if (!vc4->v3d) { in vc4_perfmon_create_ioctl()
158 DRM_DEBUG("Creating perfmon no VC4 V3D probed\n"); in vc4_perfmon_create_ioctl()
177 perfmon->dev = vc4; in vc4_perfmon_create_ioctl()
203 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_perfmon_destroy_ioctl() local
208 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_destroy_ioctl()
211 if (!vc4->v3d) { in vc4_perfmon_destroy_ioctl()
212 DRM_DEBUG("Destroying perfmon no VC4 V3D probed\n"); in vc4_perfmon_destroy_ioctl()
230 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_perfmon_get_values_ioctl() local
236 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_get_values_ioctl()
239 if (!vc4->v3d) { in vc4_perfmon_get_values_ioctl()
240 DRM_DEBUG("Getting perfmon no VC4 V3D probed\n"); in vc4_perfmon_get_values_ioctl()