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()
234 vm->scratch[1] = vm->alloc_pt_dma(vm, I915_GTT_PAGE_SIZE_4K); in gen6_ppgtt_init_scratch()
235 if (IS_ERR(vm->scratch[1])) { in gen6_ppgtt_init_scratch()
236 ret = PTR_ERR(vm->scratch[1]); in gen6_ppgtt_init_scratch()
240 ret = map_pt_dma(vm, vm->scratch[1]); in gen6_ppgtt_init_scratch()
244 fill32_px(vm->scratch[1], vm->scratch[0]->encode); in gen6_ppgtt_init_scratch()
249 i915_gem_object_put(vm->scratch[1]); in gen6_ppgtt_init_scratch()
251 i915_gem_object_put(vm->scratch[0]); in gen6_ppgtt_init_scratch()
252 vm->scratch[0] = NULL; in gen6_ppgtt_init_scratch()