Lines Matching defs:batch
97 if (!spin->batch) {
105 spin->batch = vaddr;
131 u32 *batch;
139 if (!spin->batch) {
160 batch = spin->batch;
163 *batch++ = MI_STORE_DWORD_IMM_GEN4;
164 *batch++ = lower_32_bits(hws_address(hws, rq));
165 *batch++ = upper_32_bits(hws_address(hws, rq));
167 *batch++ = MI_STORE_DWORD_IMM_GEN4;
168 *batch++ = 0;
169 *batch++ = hws_address(hws, rq);
171 *batch++ = MI_STORE_DWORD_IMM_GEN4 | MI_USE_GGTT;
172 *batch++ = 0;
173 *batch++ = hws_address(hws, rq);
175 *batch++ = MI_STORE_DWORD_IMM | MI_MEM_VIRTUAL;
176 *batch++ = hws_address(hws, rq);
178 *batch++ = rq->fence.seqno;
180 *batch++ = arbitration_command;
182 memset32(batch, MI_NOOP, 128);
183 batch += 128;
186 *batch++ = MI_BATCH_BUFFER_START | BIT(8) | 1;
188 *batch++ = MI_BATCH_BUFFER_START | MI_BATCH_PPGTT_HSW;
190 *batch++ = MI_BATCH_BUFFER_START;
192 *batch++ = MI_BATCH_BUFFER_START | MI_BATCH_GTT;
193 *batch++ = lower_32_bits(i915_vma_offset(vma));
194 *batch++ = upper_32_bits(i915_vma_offset(vma));
196 *batch++ = MI_BATCH_BUFFER_END; /* not reached */
229 if (!spin->batch)
232 *spin->batch = MI_BATCH_BUFFER_END;
240 if (spin->batch) {