Lines Matching refs:cs
253 u32 *cs; in emit_no_arbitration() local
255 cs = intel_ring_begin(rq, 2); in emit_no_arbitration()
256 if (IS_ERR(cs)) in emit_no_arbitration()
257 return PTR_ERR(cs); in emit_no_arbitration()
260 *cs++ = MI_ARB_ON_OFF; in emit_no_arbitration()
261 *cs++ = MI_NOOP; in emit_no_arbitration()
262 intel_ring_advance(rq, cs); in emit_no_arbitration()
278 u32 *hdr, *cs; in emit_pte() local
289 cs = intel_ring_begin(rq, 6); in emit_pte()
290 if (IS_ERR(cs)) in emit_pte()
291 return PTR_ERR(cs); in emit_pte()
297 hdr = cs; in emit_pte()
298 *cs++ = MI_STORE_DATA_IMM | REG_BIT(21); /* as qword elements */ in emit_pte()
299 *cs++ = lower_32_bits(offset); in emit_pte()
300 *cs++ = upper_32_bits(offset); in emit_pte()
303 if (cs - hdr >= pkt) { in emit_pte()
304 *hdr += cs - hdr - 2; in emit_pte()
305 *cs++ = MI_NOOP; in emit_pte()
307 ring->emit = (void *)cs - ring->vaddr; in emit_pte()
308 intel_ring_advance(rq, cs); in emit_pte()
311 cs = intel_ring_begin(rq, 6); in emit_pte()
312 if (IS_ERR(cs)) in emit_pte()
313 return PTR_ERR(cs); in emit_pte()
318 hdr = cs; in emit_pte()
319 *cs++ = MI_STORE_DATA_IMM | REG_BIT(21); in emit_pte()
320 *cs++ = lower_32_bits(offset); in emit_pte()
321 *cs++ = upper_32_bits(offset); in emit_pte()
324 *cs++ = lower_32_bits(encode | it->dma); in emit_pte()
325 *cs++ = upper_32_bits(encode | it->dma); in emit_pte()
341 *hdr += cs - hdr - 2; in emit_pte()
342 *cs++ = MI_NOOP; in emit_pte()
344 ring->emit = (void *)cs - ring->vaddr; in emit_pte()
345 intel_ring_advance(rq, cs); in emit_pte()
365 u32 *cs; in emit_copy() local
367 cs = intel_ring_begin(rq, ver >= 8 ? 10 : 6); in emit_copy()
368 if (IS_ERR(cs)) in emit_copy()
369 return PTR_ERR(cs); in emit_copy()
372 *cs++ = GEN9_XY_FAST_COPY_BLT_CMD | (10 - 2); in emit_copy()
373 *cs++ = BLT_DEPTH_32 | PAGE_SIZE; in emit_copy()
374 *cs++ = 0; in emit_copy()
375 *cs++ = size >> PAGE_SHIFT << 16 | PAGE_SIZE / 4; in emit_copy()
376 *cs++ = CHUNK_SZ; /* dst offset */ in emit_copy()
377 *cs++ = instance; in emit_copy()
378 *cs++ = 0; in emit_copy()
379 *cs++ = PAGE_SIZE; in emit_copy()
380 *cs++ = 0; /* src offset */ in emit_copy()
381 *cs++ = instance; in emit_copy()
383 *cs++ = XY_SRC_COPY_BLT_CMD | BLT_WRITE_RGBA | (10 - 2); in emit_copy()
384 *cs++ = BLT_DEPTH_32 | BLT_ROP_SRC_COPY | PAGE_SIZE; in emit_copy()
385 *cs++ = 0; in emit_copy()
386 *cs++ = size >> PAGE_SHIFT << 16 | PAGE_SIZE / 4; in emit_copy()
387 *cs++ = CHUNK_SZ; /* dst offset */ in emit_copy()
388 *cs++ = instance; in emit_copy()
389 *cs++ = 0; in emit_copy()
390 *cs++ = PAGE_SIZE; in emit_copy()
391 *cs++ = 0; /* src offset */ in emit_copy()
392 *cs++ = instance; in emit_copy()
395 *cs++ = SRC_COPY_BLT_CMD | BLT_WRITE_RGBA | (6 - 2); in emit_copy()
396 *cs++ = BLT_DEPTH_32 | BLT_ROP_SRC_COPY | PAGE_SIZE; in emit_copy()
397 *cs++ = size >> PAGE_SHIFT << 16 | PAGE_SIZE; in emit_copy()
398 *cs++ = CHUNK_SZ; /* dst offset */ in emit_copy()
399 *cs++ = PAGE_SIZE; in emit_copy()
400 *cs++ = 0; /* src offset */ in emit_copy()
403 intel_ring_advance(rq, cs); in emit_copy()
497 u32 *cs; in emit_clear() local
501 cs = intel_ring_begin(rq, ver >= 8 ? 8 : 6); in emit_clear()
502 if (IS_ERR(cs)) in emit_clear()
503 return PTR_ERR(cs); in emit_clear()
506 *cs++ = XY_COLOR_BLT_CMD | BLT_WRITE_RGBA | (7 - 2); in emit_clear()
507 *cs++ = BLT_DEPTH_32 | BLT_ROP_COLOR_COPY | PAGE_SIZE; in emit_clear()
508 *cs++ = 0; in emit_clear()
509 *cs++ = size >> PAGE_SHIFT << 16 | PAGE_SIZE / 4; in emit_clear()
510 *cs++ = 0; /* offset */ in emit_clear()
511 *cs++ = instance; in emit_clear()
512 *cs++ = value; in emit_clear()
513 *cs++ = MI_NOOP; in emit_clear()
516 *cs++ = XY_COLOR_BLT_CMD | BLT_WRITE_RGBA | (6 - 2); in emit_clear()
517 *cs++ = BLT_DEPTH_32 | BLT_ROP_COLOR_COPY | PAGE_SIZE; in emit_clear()
518 *cs++ = 0; in emit_clear()
519 *cs++ = size >> PAGE_SHIFT << 16 | PAGE_SIZE / 4; in emit_clear()
520 *cs++ = 0; in emit_clear()
521 *cs++ = value; in emit_clear()
524 intel_ring_advance(rq, cs); in emit_clear()