Home
last modified time | relevance | path

Searched refs:vma_res (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/gpu/drm/i915/
H A Di915_vma_resource.h141 bool i915_vma_resource_hold(struct i915_vma_resource *vma_res,
144 void i915_vma_resource_unhold(struct i915_vma_resource *vma_res,
149 void i915_vma_resource_free(struct i915_vma_resource *vma_res);
151 struct dma_fence *i915_vma_resource_unbind(struct i915_vma_resource *vma_res,
154 void __i915_vma_resource_init(struct i915_vma_resource *vma_res);
163 *i915_vma_resource_get(struct i915_vma_resource *vma_res) in i915_vma_resource_get() argument
165 dma_fence_get(&vma_res->unbind_fence); in i915_vma_resource_get()
166 return vma_res; in i915_vma_resource_get()
173 static inline void i915_vma_resource_put(struct i915_vma_resource *vma_res) in i915_vma_resource_put() argument
175 dma_fence_put(&vma_res->unbind_fence); in i915_vma_resource_put()
[all …]
/linux/drivers/gpu/drm/i915/gt/
H A Dintel_ppgtt.c184 struct i915_vma_resource *vma_res, in ppgtt_bind_vma() argument
190 if (!vma_res->allocated) { in ppgtt_bind_vma()
191 vm->allocate_va_range(vm, stash, vma_res->start, in ppgtt_bind_vma()
192 vma_res->vma_size); in ppgtt_bind_vma()
193 vma_res->allocated = true; in ppgtt_bind_vma()
198 if (vma_res->bi.readonly) in ppgtt_bind_vma()
200 if (vma_res->bi.lmem) in ppgtt_bind_vma()
203 vm->insert_entries(vm, vma_res, pat_index, pte_flags); in ppgtt_bind_vma()
208 struct i915_vma_resource *vma_res) in ppgtt_unbind_vma() argument
210 if (!vma_res->allocated) in ppgtt_unbind_vma()
[all …]
H A Dgen8_ppgtt.c504 struct i915_vma_resource *vma_res, in xehp_ppgtt_insert_huge() argument
511 u64 start = vma_res->start; in xehp_ppgtt_insert_huge()
512 u64 end = start + vma_res->vma_size; in xehp_ppgtt_insert_huge()
531 if (vma_res->bi.page_sizes.sg & I915_GTT_PAGE_SIZE_2M && in xehp_ppgtt_insert_huge()
544 if (vma_res->bi.page_sizes.sg & I915_GTT_PAGE_SIZE_64K) { in xehp_ppgtt_insert_huge()
607 vma_res->page_sizes_gtt |= page_size; in xehp_ppgtt_insert_huge()
612 struct i915_vma_resource *vma_res, in gen8_ppgtt_insert_huge() argument
619 u64 start = vma_res->start; in gen8_ppgtt_insert_huge()
634 if (vma_res->bi.page_sizes.sg & I915_GTT_PAGE_SIZE_2M && in gen8_ppgtt_insert_huge()
651 vma_res->bi.page_sizes.sg & I915_GTT_PAGE_SIZE_64K && in gen8_ppgtt_insert_huge()
[all …]
H A Dintel_engine_cs.c2218 struct i915_vma_resource *vma_res = rq->batch_res; in print_request_ring() local
2225 vma_res ? upper_32_bits(vma_res->start) : ~0u, in print_request_ring()
2226 vma_res ? lower_32_bits(vma_res->start) : ~0u); in print_request_ring()
/linux/drivers/gpu/drm/i915/selftests/
H A Dmock_gtt.c36 struct i915_vma_resource *vma_res, in mock_insert_entries() argument
43 struct i915_vma_resource *vma_res, in mock_bind_ppgtt() argument
48 vma_res->bound_flags |= flags; in mock_bind_ppgtt()
52 struct i915_vma_resource *vma_res) in mock_unbind_ppgtt() argument
96 struct i915_vma_resource *vma_res, in mock_bind_ggtt() argument
103 struct i915_vma_resource *vma_res) in mock_unbind_ggtt() argument
H A Di915_gem_gtt.c1514 struct i915_vma_resource *vma_res; in reserve_gtt_with_resource() local
1518 vma_res = i915_vma_resource_alloc(); in reserve_gtt_with_resource()
1519 if (IS_ERR(vma_res)) in reserve_gtt_with_resource()
1520 return PTR_ERR(vma_res); in reserve_gtt_with_resource()
1528 i915_vma_resource_init_from_vma(vma_res, vma); in reserve_gtt_with_resource()
1529 vma->resource = vma_res; in reserve_gtt_with_resource()
1531 kfree(vma_res); in reserve_gtt_with_resource()
1696 struct i915_vma_resource *vma_res; in insert_gtt_with_resource() local
1700 vma_res = i915_vma_resource_alloc(); in insert_gtt_with_resource()
1701 if (IS_ERR(vma_res)) in insert_gtt_with_resource()
[all …]
/linux/drivers/gpu/drm/i915/gt/uc/
H A Dintel_uc_fw.h115 struct i915_vma_resource vma_res; member
H A Dintel_huc_fw.c61 msg_in->huc_in.huc_base_address = huc->fw.vma_res.start; in intel_huc_fw_auth_via_gsccs()
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_execbuffer.c2016 capture->vma_res = i915_vma_resource_get(vma->resource); in eb_capture_stage()