Lines Matching refs:batches
38 struct batch *batches = array; in xchg_batch() local
41 tmp = batches[i]; in xchg_batch()
42 batches[i] = batches[j]; in xchg_batch()
43 batches[j] = tmp; in xchg_batch()
49 struct batch *batches, unsigned int count) in submit() argument
90 obj.handle = batches[i].handle; in submit()
98 memcpy(batches[i].ptr + eb->batch_start_offset, in submit()
113 struct batch *batches; in fillgtt() local
155 batches = calloc(count, sizeof(*batches)); in fillgtt()
156 igt_assert(batches); in fillgtt()
158 batches[i].handle = gem_create(fd, BATCH_SIZE); in fillgtt()
159 batches[i].ptr = in fillgtt()
160 __gem_mmap__wc(fd, batches[i].handle, in fillgtt()
162 if (!batches[i].ptr) { in fillgtt()
163 batches[i].ptr = in fillgtt()
164 __gem_mmap__gtt(fd, batches[i].handle, in fillgtt()
167 igt_require(batches[i].ptr); in fillgtt()
171 submit(fd, gen, &execbuf, reloc, batches, count); in fillgtt()
176 igt_permute_array(batches, count, xchg_batch); in fillgtt()
180 submit(fd, gen, &execbuf, reloc, batches, count); in fillgtt()
184 offset = *(uint64_t *)(batches[i].ptr + reloc[1].offset); in fillgtt()
185 delta = *(uint64_t *)(batches[i].ptr + reloc[0].delta); in fillgtt()
196 munmap(batches[i].ptr, BATCH_SIZE); in fillgtt()
197 gem_close(fd, batches[i].handle); in fillgtt()