Lines Matching refs:count
53 int n, loop, count; in performance() local
62 for (count = 2; count < 4*num_fences; count *= 2) { in performance()
64 uint32_t handle[count]; in performance()
65 void *ptr[count]; in performance()
67 for (n = 0; n < count; n++) { in performance()
74 for (n = 0; n < count; n++) in performance()
79 linear[count != 2] = count * loop / elapsed(&start, &end); in performance()
80 igt_info("Upload rate for %d linear surfaces: %7.3fMiB/s\n", count, linear[count != 2]); in performance()
82 for (n = 0; n < count; n++) in performance()
87 for (n = 0; n < count; n++) in performance()
92 tiled[count != 2] = count * loop / elapsed(&start, &end); in performance()
93 igt_info("Upload rate for %d tiled surfaces: %7.3fMiB/s\n", count, tiled[count != 2]); in performance()
95 for (n = 0; n < count; n++) { in performance()
109 int id, count, direction, loops; member
120 uint32_t *src = t->ptr[rand() % t->count]; in read_thread_performance()
135 uint32_t *dst = t->ptr[rand() % t->count]; in write_thread_performance()
157 int n, count; in thread_performance() local
166 for (count = 2; count < 4*num_fences; count *= 2) { in thread_performance()
167 const int nthreads = (mask & READ ? count : 0) + (mask & WRITE ? count : 0); in thread_performance()
169 struct thread_performance readers[count]; in thread_performance()
170 struct thread_performance writers[count]; in thread_performance()
171 uint32_t handle[count]; in thread_performance()
172 void *ptr[count]; in thread_performance()
174 for (n = 0; n < count; n++) { in thread_performance()
182 readers[n].count = count; in thread_performance()
187 writers[n].id = count - n - 1; in thread_performance()
190 writers[n].count = count; in thread_performance()
196 for (n = 0; n < count; n++) { in thread_performance()
202 for (n = 0; n < count; n++) { in thread_performance()
210 linear[count != 2] = nthreads * loops / elapsed(&start, &end) / (OBJECT_SIZE / 4096); in thread_performance()
211 … surfaces, %d threads: %7.3fMiB/s\n", direction_string(mask), count, nthreads, linear[count != 2]); in thread_performance()
213 for (n = 0; n < count; n++) in thread_performance()
217 for (n = 0; n < count; n++) { in thread_performance()
223 for (n = 0; n < count; n++) { in thread_performance()
231 tiled[count != 2] = nthreads * loops / elapsed(&start, &end) / (OBJECT_SIZE / 4096); in thread_performance()
232 …d surfaces, %d threads: %7.3fMiB/s\n", direction_string(mask), count, nthreads, tiled[count != 2]); in thread_performance()
234 for (n = 0; n < count; n++) { in thread_performance()
281 int n, count; in thread_contention() local
290 for (count = 1; count < 4*num_fences; count *= 2) { in thread_contention()
292 struct thread_contention threads[count]; in thread_contention()
294 for (n = 0; n < count; n++) { in thread_contention()
301 for (n = 0; n < count; n++) in thread_contention()
303 for (n = 0; n < count; n++) in thread_contention()
307 linear[count != 2] = count * loops / elapsed(&start, &end) / (OBJECT_SIZE / 4096); in thread_contention()
308 igt_info("Contended upload rate for %d linear threads: %7.3fMiB/s\n", count, linear[count != 2]); in thread_contention()
310 for (n = 0; n < count; n++) in thread_contention()
314 for (n = 0; n < count; n++) in thread_contention()
316 for (n = 0; n < count; n++) in thread_contention()
320 tiled[count != 2] = count * loops / elapsed(&start, &end) / (OBJECT_SIZE / 4096); in thread_contention()
321 igt_info("Contended upload rate for %d tiled threads: %7.3fMiB/s\n", count, tiled[count != 2]); in thread_contention()
323 for (n = 0; n < count; n++) { in thread_contention()
336 int n, count; in wc_contention() local
346 for (count = 1; count < 4*num_fences; count *= 2) { in wc_contention()
348 struct thread_contention threads[count]; in wc_contention()
350 for (n = 0; n < count; n++) { in wc_contention()
357 for (n = 0; n < count; n++) in wc_contention()
359 for (n = 0; n < count; n++) in wc_contention()
363 linear[count != 2] = count * loops / elapsed(&start, &end) / (OBJECT_SIZE / 4096); in wc_contention()
364 …igt_info("Contended upload rate for %d linear threads/wc: %7.3fMiB/s\n", count, linear[count != 2]… in wc_contention()
366 for (n = 0; n < count; n++) in wc_contention()
370 for (n = 0; n < count; n++) in wc_contention()
372 for (n = 0; n < count; n++) in wc_contention()
376 tiled[count != 2] = count * loops / elapsed(&start, &end) / (OBJECT_SIZE / 4096); in wc_contention()
377 igt_info("Contended upload rate for %d tiled threads/wc: %7.3fMiB/s\n", count, tiled[count != 2]); in wc_contention()
379 for (n = 0; n < count; n++) { in wc_contention()