Lines Matching refs:cs

33 static u32 *emit_wait(u32 *cs, u32 offset, int op, u32 value)  in emit_wait()  argument
35 *cs++ = MI_SEMAPHORE_WAIT | in emit_wait()
39 *cs++ = value; in emit_wait()
40 *cs++ = offset; in emit_wait()
41 *cs++ = 0; in emit_wait()
43 return cs; in emit_wait()
46 static u32 *emit_store(u32 *cs, u32 offset, u32 value) in emit_store() argument
48 *cs++ = MI_STORE_DWORD_IMM_GEN4 | MI_USE_GGTT; in emit_store()
49 *cs++ = offset; in emit_store()
50 *cs++ = 0; in emit_store()
51 *cs++ = value; in emit_store()
53 return cs; in emit_store()
56 static u32 *emit_srm(u32 *cs, i915_reg_t reg, u32 offset) in emit_srm() argument
58 *cs++ = MI_STORE_REGISTER_MEM_GEN8 | MI_USE_GGTT; in emit_srm()
59 *cs++ = i915_mmio_reg_offset(reg); in emit_srm()
60 *cs++ = offset; in emit_srm()
61 *cs++ = 0; in emit_srm()
63 return cs; in emit_srm()
79 u32 *cs; in __measure_timestamps() local
85 cs = intel_ring_begin(rq, 28); in __measure_timestamps()
86 if (IS_ERR(cs)) { in __measure_timestamps()
88 return PTR_ERR(cs); in __measure_timestamps()
92 cs = emit_store(cs, offset + 4008, 1); in __measure_timestamps()
93 cs = emit_wait(cs, offset + 4008, MI_SEMAPHORE_SAD_NEQ_SDD, 1); in __measure_timestamps()
95 cs = emit_srm(cs, RING_TIMESTAMP(engine->mmio_base), offset + 4000); in __measure_timestamps()
96 cs = emit_srm(cs, RING_CTX_TIMESTAMP(engine->mmio_base), offset + 4004); in __measure_timestamps()
99 cs = emit_wait(cs, offset + 4008, MI_SEMAPHORE_SAD_EQ_SDD, 1); in __measure_timestamps()
101 cs = emit_srm(cs, RING_TIMESTAMP(engine->mmio_base), offset + 4016); in __measure_timestamps()
102 cs = emit_srm(cs, RING_CTX_TIMESTAMP(engine->mmio_base), offset + 4012); in __measure_timestamps()
104 intel_ring_advance(rq, cs); in __measure_timestamps()