Lines Matching refs:num_dwords
227 u32 *intel_ring_begin(struct i915_request *rq, unsigned int num_dwords) in intel_ring_begin() argument
231 const unsigned int bytes = num_dwords * sizeof(u32); in intel_ring_begin()
237 GEM_BUG_ON(num_dwords & 1); in intel_ring_begin()
310 int num_dwords; in intel_ring_cacheline_align() local
313 num_dwords = (rq->ring->emit & (CACHELINE_BYTES - 1)) / sizeof(u32); in intel_ring_cacheline_align()
314 if (num_dwords == 0) in intel_ring_cacheline_align()
317 num_dwords = CACHELINE_DWORDS - num_dwords; in intel_ring_cacheline_align()
318 GEM_BUG_ON(num_dwords & 1); in intel_ring_cacheline_align()
320 cs = intel_ring_begin(rq, num_dwords); in intel_ring_cacheline_align()
324 memset64(cs, (u64)MI_NOOP << 32 | MI_NOOP, num_dwords / 2); in intel_ring_cacheline_align()
325 intel_ring_advance(rq, cs + num_dwords); in intel_ring_cacheline_align()