Lines Matching refs:ncounters
28 u8 ncounters = perfmon->ncounters; in v3d_perfmon_start() local
33 mask = GENMASK(ncounters - 1, 0); in v3d_perfmon_start()
35 for (i = 0; i < ncounters; i++) { in v3d_perfmon_start()
40 channel |= V3D_SET_FIELD(i < ncounters ? perfmon->counters[i] : 0, in v3d_perfmon_start()
43 channel |= V3D_SET_FIELD(i < ncounters ? perfmon->counters[i] : 0, in v3d_perfmon_start()
46 channel |= V3D_SET_FIELD(i < ncounters ? perfmon->counters[i] : 0, in v3d_perfmon_start()
73 for (i = 0; i < perfmon->ncounters; i++) in v3d_perfmon_stop()
127 if (req->ncounters > DRM_V3D_MAX_PERF_COUNTERS || in v3d_perfmon_create_ioctl()
128 !req->ncounters) in v3d_perfmon_create_ioctl()
132 for (i = 0; i < req->ncounters; i++) { in v3d_perfmon_create_ioctl()
137 perfmon = kzalloc(struct_size(perfmon, values, req->ncounters), in v3d_perfmon_create_ioctl()
142 for (i = 0; i < req->ncounters; i++) in v3d_perfmon_create_ioctl()
145 perfmon->ncounters = req->ncounters; in v3d_perfmon_create_ioctl()
207 perfmon->ncounters * sizeof(u64))) in v3d_perfmon_get_values_ioctl()