Lines Matching refs:count
34 const int count) in check_rbtree() argument
45 n = find_first_bit(bitmap, count); in check_rbtree()
62 n = find_next_bit(bitmap, count, n + 1); in check_rbtree()
71 const int count) in check_completion() argument
75 for (n = 0; n < count; n++) { in check_completion()
112 const int count = 4096; in igt_random_insert_remove() local
120 waiters = kvmalloc_array(count, sizeof(*waiters), GFP_KERNEL); in igt_random_insert_remove()
124 bitmap = kcalloc(DIV_ROUND_UP(count, BITS_PER_LONG), sizeof(*bitmap), in igt_random_insert_remove()
129 order = i915_random_order(count, &prng); in igt_random_insert_remove()
133 for (n = 0; n < count; n++) in igt_random_insert_remove()
136 err = check_rbtree(engine, bitmap, waiters, count); in igt_random_insert_remove()
143 for (n = 0; n < count; n++) { in igt_random_insert_remove()
149 err = check_rbtree(engine, bitmap, waiters, count); in igt_random_insert_remove()
154 i915_random_reorder(order, count, &prng); in igt_random_insert_remove()
155 for (n = 0; n < count; n++) { in igt_random_insert_remove()
161 err = check_rbtree(engine, bitmap, waiters, count); in igt_random_insert_remove()
183 const int count = 4096; in igt_insert_complete() local
190 waiters = kvmalloc_array(count, sizeof(*waiters), GFP_KERNEL); in igt_insert_complete()
194 bitmap = kcalloc(DIV_ROUND_UP(count, BITS_PER_LONG), sizeof(*bitmap), in igt_insert_complete()
199 for (n = 0; n < count; n++) { in igt_insert_complete()
204 err = check_rbtree(engine, bitmap, waiters, count); in igt_insert_complete()
213 for (n = 0; n < count; n = m) { in igt_insert_complete()
216 GEM_BUG_ON(find_first_bit(bitmap, count) != n); in igt_insert_complete()
228 if (m == count) in igt_insert_complete()
238 err = check_rbtree(engine, bitmap, waiters, count); in igt_insert_complete()
245 err = check_completion(engine, bitmap, waiters, count); in igt_insert_complete()
345 int count) in igt_wake_all_sync() argument
347 atomic_set(set, count); in igt_wake_all_sync()
352 atomic_set(ready, count); in igt_wake_all_sync()
353 atomic_set(done, count); in igt_wake_all_sync()
363 const int count = 4096; in igt_wakeup() local
364 const u32 max_seqno = count / 4; in igt_wakeup()
371 waiters = kvmalloc_array(count, sizeof(*waiters), GFP_KERNEL); in igt_wakeup()
378 atomic_set(&ready, count); in igt_wakeup()
379 for (n = 0; n < count; n++) { in igt_wakeup()
403 for (n = 0; n < count; n++) { in igt_wakeup()
409 igt_wake_all_sync(&ready, &set, &done, &wq, count); in igt_wakeup()
440 for (n = 0; n < count; n++) { in igt_wakeup()
449 for (n = 0; n < count; n++) { in igt_wakeup()