Lines Matching full:scratch
23 dma_addr_t addr = pt ? px_dma(pt) : px_dma(ppgtt->base.vm.scratch[1]); in gen6_write_pde()
79 const gen6_pte_t scratch_pte = vm->scratch[0]->encode; in gen6_ppgtt_clear_range()
100 * entries back to scratch. in gen6_ppgtt_clear_range()
193 fill32_px(pt, vm->scratch[0]->encode); in gen6_alloc_va_range()
228 vm->scratch[0]->encode = in gen6_ppgtt_init_scratch()
229 vm->pte_encode(px_dma(vm->scratch[0]), in gen6_ppgtt_init_scratch()
232 vm->scratch[1] = vm->alloc_pt_dma(vm, I915_GTT_PAGE_SIZE_4K); in gen6_ppgtt_init_scratch()
233 if (IS_ERR(vm->scratch[1])) { in gen6_ppgtt_init_scratch()
234 ret = PTR_ERR(vm->scratch[1]); in gen6_ppgtt_init_scratch()
238 ret = map_pt_dma(vm, vm->scratch[1]); in gen6_ppgtt_init_scratch()
242 fill32_px(vm->scratch[1], vm->scratch[0]->encode); in gen6_ppgtt_init_scratch()
247 i915_gem_object_put(vm->scratch[1]); in gen6_ppgtt_init_scratch()
249 i915_gem_object_put(vm->scratch[0]); in gen6_ppgtt_init_scratch()
250 vm->scratch[0] = NULL; in gen6_ppgtt_init_scratch()