Lines Matching refs:batch

972 	struct i915_vma *batch;  in store_context()  local
976 batch = create_user_vma(ce->vm, SZ_64K); in store_context()
977 if (IS_ERR(batch)) in store_context()
978 return batch; in store_context()
980 cs = i915_gem_object_pin_map_unlocked(batch->obj, I915_MAP_WC); in store_context()
982 i915_vma_put(batch); in store_context()
988 i915_gem_object_unpin_map(batch->obj); in store_context()
989 i915_vma_put(batch); in store_context()
1050 i915_gem_object_flush_map(batch->obj); in store_context()
1051 i915_gem_object_unpin_map(batch->obj); in store_context()
1053 return batch; in store_context()
1158 struct i915_vma *batch; in load_context() local
1162 batch = create_user_vma(ce->vm, SZ_64K); in load_context()
1163 if (IS_ERR(batch)) in load_context()
1164 return batch; in load_context()
1166 cs = i915_gem_object_pin_map_unlocked(batch->obj, I915_MAP_WC); in load_context()
1168 i915_vma_put(batch); in load_context()
1174 i915_gem_object_unpin_map(batch->obj); in load_context()
1175 i915_vma_put(batch); in load_context()
1223 i915_gem_object_flush_map(batch->obj); in load_context()
1224 i915_gem_object_unpin_map(batch->obj); in load_context()
1226 return batch; in load_context()
1232 struct i915_vma *batch; in poison_registers() local
1236 batch = load_context(ce, poison); in poison_registers()
1237 if (IS_ERR(batch)) in poison_registers()
1238 return PTR_ERR(batch); in poison_registers()
1246 err = move_to_active(rq, batch, 0); in poison_registers()
1258 *cs++ = lower_32_bits(batch->node.start); in poison_registers()
1259 *cs++ = upper_32_bits(batch->node.start); in poison_registers()
1273 i915_vma_put(batch); in poison_registers()