Lines Matching refs:batch

38 	u32 *batch;  member
81 h->batch = vaddr; in hang_init()
113 u32 *batch; in hang_create_request() local
133 h->batch = vaddr; in hang_create_request()
171 batch = h->batch; in hang_create_request()
173 *batch++ = MI_STORE_DWORD_IMM_GEN4; in hang_create_request()
174 *batch++ = lower_32_bits(hws_address(hws, rq)); in hang_create_request()
175 *batch++ = upper_32_bits(hws_address(hws, rq)); in hang_create_request()
176 *batch++ = rq->fence.seqno; in hang_create_request()
177 *batch++ = MI_NOOP; in hang_create_request()
179 memset(batch, 0, 1024); in hang_create_request()
180 batch += 1024 / sizeof(*batch); in hang_create_request()
182 *batch++ = MI_NOOP; in hang_create_request()
183 *batch++ = MI_BATCH_BUFFER_START | 1 << 8 | 1; in hang_create_request()
184 *batch++ = lower_32_bits(i915_vma_offset(vma)); in hang_create_request()
185 *batch++ = upper_32_bits(i915_vma_offset(vma)); in hang_create_request()
187 *batch++ = MI_STORE_DWORD_IMM_GEN4; in hang_create_request()
188 *batch++ = 0; in hang_create_request()
189 *batch++ = lower_32_bits(hws_address(hws, rq)); in hang_create_request()
190 *batch++ = rq->fence.seqno; in hang_create_request()
191 *batch++ = MI_NOOP; in hang_create_request()
193 memset(batch, 0, 1024); in hang_create_request()
194 batch += 1024 / sizeof(*batch); in hang_create_request()
196 *batch++ = MI_NOOP; in hang_create_request()
197 *batch++ = MI_BATCH_BUFFER_START | 1 << 8; in hang_create_request()
198 *batch++ = lower_32_bits(i915_vma_offset(vma)); in hang_create_request()
200 *batch++ = MI_STORE_DWORD_IMM_GEN4 | MI_USE_GGTT; in hang_create_request()
201 *batch++ = 0; in hang_create_request()
202 *batch++ = lower_32_bits(hws_address(hws, rq)); in hang_create_request()
203 *batch++ = rq->fence.seqno; in hang_create_request()
204 *batch++ = MI_NOOP; in hang_create_request()
206 memset(batch, 0, 1024); in hang_create_request()
207 batch += 1024 / sizeof(*batch); in hang_create_request()
209 *batch++ = MI_NOOP; in hang_create_request()
210 *batch++ = MI_BATCH_BUFFER_START | 2 << 6; in hang_create_request()
211 *batch++ = lower_32_bits(i915_vma_offset(vma)); in hang_create_request()
213 *batch++ = MI_STORE_DWORD_IMM | MI_MEM_VIRTUAL; in hang_create_request()
214 *batch++ = lower_32_bits(hws_address(hws, rq)); in hang_create_request()
215 *batch++ = rq->fence.seqno; in hang_create_request()
216 *batch++ = MI_NOOP; in hang_create_request()
218 memset(batch, 0, 1024); in hang_create_request()
219 batch += 1024 / sizeof(*batch); in hang_create_request()
221 *batch++ = MI_NOOP; in hang_create_request()
222 *batch++ = MI_BATCH_BUFFER_START | 2 << 6; in hang_create_request()
223 *batch++ = lower_32_bits(i915_vma_offset(vma)); in hang_create_request()
225 *batch++ = MI_BATCH_BUFFER_END; /* not reached */ in hang_create_request()
260 *h->batch = MI_BATCH_BUFFER_END; in hang_fini()
316 *h.batch = MI_BATCH_BUFFER_END; in igt_hang_sanitycheck()
1771 *h.batch = MI_BATCH_BUFFER_END; in igt_reset_queue()