Lines Matching refs:num_ctx
93 unsigned int engines[16], num_engines, num_ctx; in single() local
122 num_ctx = get_num_contexts(fd, num_engines); in single()
124 size = ALIGN(num_ctx * sizeof(uint32_t), 4096); in single()
127 obj = calloc(num_ctx, 3 * sizeof(*obj)); in single()
128 reloc = calloc(num_ctx, 2 * sizeof(*reloc)); in single()
130 ctx = malloc(num_ctx * sizeof(uint32_t)); in single()
132 for (unsigned n = 0; n < num_ctx; n++) { in single()
159 const unsigned int count = loop * num_ctx; in single()
164 all[n] = ctx[n % num_ctx]; in single()
168 const unsigned int r = n % num_ctx; in single()
211 for (unsigned int n = count - num_ctx; n < count; n++) in single()
212 igt_assert_eq(map[n % num_ctx], all[n]); in single()
226 unsigned num_ctx; in processes() local
239 num_ctx = get_num_contexts(fd, num_engines); in processes()
243 if (rlim.rlim_cur < ALIGN(num_ctx + 1024, 1024)) { in processes()
244 rlim.rlim_cur = ALIGN(num_ctx + 1024, 1024); in processes()
250 fds = malloc(num_ctx * sizeof(int)); in processes()
252 for (unsigned n = 0; n < num_ctx; n++) { in processes()
260 igt_assert_f(0, "failed to create context %lld/%lld\n", (long long)n, (long long)num_ctx); in processes()
280 igt_permute_array(fds, num_ctx, xchg_int); in processes()
281 for (unsigned n = 0; n < num_ctx; n++) { in processes()
290 for (unsigned n = 0; n < num_ctx; n++) in processes()
299 unsigned num_ctx; member
317 ctx = malloc(t->num_ctx * sizeof(uint32_t)); in thread()
319 memcpy(ctx, t->all_ctx, t->num_ctx * sizeof(uint32_t)); in thread()
322 igt_permute_array(ctx, t->num_ctx, xchg_int); in thread()
323 for (unsigned n = 0; n < t->num_ctx; n++) { in thread()
345 data.num_ctx = get_num_contexts(data.fd, false); in threads()
346 data.all_ctx = malloc(data.num_ctx * sizeof(uint32_t)); in threads()
348 for (unsigned n = 0; n < data.num_ctx; n++) in threads()