Lines Matching refs:ncounters
28 u8 ncounters; in v3d_perfmon_start() local
33 ncounters = perfmon->ncounters; in v3d_perfmon_start()
34 mask = GENMASK(ncounters - 1, 0); in v3d_perfmon_start()
36 for (i = 0; i < ncounters; i++) { in v3d_perfmon_start()
41 channel |= V3D_SET_FIELD(i < ncounters ? perfmon->counters[i] : 0, in v3d_perfmon_start()
44 channel |= V3D_SET_FIELD(i < ncounters ? perfmon->counters[i] : 0, in v3d_perfmon_start()
47 channel |= V3D_SET_FIELD(i < ncounters ? perfmon->counters[i] : 0, in v3d_perfmon_start()
74 for (i = 0; i < perfmon->ncounters; i++) in v3d_perfmon_stop()
128 if (req->ncounters > DRM_V3D_MAX_PERF_COUNTERS || in v3d_perfmon_create_ioctl()
129 !req->ncounters) in v3d_perfmon_create_ioctl()
133 for (i = 0; i < req->ncounters; i++) { in v3d_perfmon_create_ioctl()
138 perfmon = kzalloc(struct_size(perfmon, values, req->ncounters), in v3d_perfmon_create_ioctl()
143 for (i = 0; i < req->ncounters; i++) in v3d_perfmon_create_ioctl()
146 perfmon->ncounters = req->ncounters; in v3d_perfmon_create_ioctl()
208 perfmon->ncounters * sizeof(u64))) in v3d_perfmon_get_values_ioctl()