Lines Matching refs:num_dwords
230 u32 *intel_ring_begin(struct i915_request *rq, unsigned int num_dwords) in intel_ring_begin() argument
234 const unsigned int bytes = num_dwords * sizeof(u32); in intel_ring_begin()
240 GEM_BUG_ON(num_dwords & 1); in intel_ring_begin()
314 int num_dwords; in intel_ring_cacheline_align() local
317 num_dwords = (rq->ring->emit & (CACHELINE_BYTES - 1)) / sizeof(u32); in intel_ring_cacheline_align()
318 if (num_dwords == 0) in intel_ring_cacheline_align()
321 num_dwords = CACHELINE_DWORDS - num_dwords; in intel_ring_cacheline_align()
322 GEM_BUG_ON(num_dwords & 1); in intel_ring_cacheline_align()
324 cs = intel_ring_begin(rq, num_dwords); in intel_ring_cacheline_align()
328 memset64(cs, (u64)MI_NOOP << 32 | MI_NOOP, num_dwords / 2); in intel_ring_cacheline_align()
329 intel_ring_advance(rq, cs + num_dwords); in intel_ring_cacheline_align()