Home
last modified time | relevance | path

Searched refs:gtt (Results 1 – 25 of 35) sorted by relevance

12

/linux-6.1.9/drivers/gpu/drm/radeon/
Dradeon_ttm.c338 struct radeon_ttm_tt *gtt = (void *)ttm; in radeon_ttm_tt_pin_userptr() local
342 int write = !(gtt->userflags & RADEON_GEM_USERPTR_READONLY); in radeon_ttm_tt_pin_userptr()
346 if (current->mm != gtt->usermm) in radeon_ttm_tt_pin_userptr()
349 if (gtt->userflags & RADEON_GEM_USERPTR_ANONONLY) { in radeon_ttm_tt_pin_userptr()
352 unsigned long end = gtt->userptr + (u64)ttm->num_pages * PAGE_SIZE; in radeon_ttm_tt_pin_userptr()
354 vma = find_vma(gtt->usermm, gtt->userptr); in radeon_ttm_tt_pin_userptr()
361 uint64_t userptr = gtt->userptr + pinned * PAGE_SIZE; in radeon_ttm_tt_pin_userptr()
383 drm_prime_sg_to_dma_addr_array(ttm->sg, gtt->ttm.dma_address, in radeon_ttm_tt_pin_userptr()
399 struct radeon_ttm_tt *gtt = (void *)ttm; in radeon_ttm_tt_unpin_userptr() local
402 int write = !(gtt->userflags & RADEON_GEM_USERPTR_READONLY); in radeon_ttm_tt_unpin_userptr()
[all …]
Drs400.c236 u32 *gtt = rdev->gart.ptr; in rs400_gart_set_page() local
237 gtt[i] = cpu_to_le32(lower_32_bits(entry)); in rs400_gart_set_page()
/linux-6.1.9/drivers/gpu/drm/i915/gvt/
Dgtt.c574 const struct intel_gvt_gtt_pte_ops *pte_ops = mm->vgpu->gvt->gtt.pte_ops; in _ppgtt_get_root_entry()
601 const struct intel_gvt_gtt_pte_ops *pte_ops = mm->vgpu->gvt->gtt.pte_ops; in _ppgtt_set_root_entry()
617 const struct intel_gvt_gtt_pte_ops *pte_ops = mm->vgpu->gvt->gtt.pte_ops; in ggtt_get_guest_entry()
629 const struct intel_gvt_gtt_pte_ops *pte_ops = mm->vgpu->gvt->gtt.pte_ops; in ggtt_set_guest_entry()
640 const struct intel_gvt_gtt_pte_ops *pte_ops = mm->vgpu->gvt->gtt.pte_ops; in ggtt_get_host_entry()
650 const struct intel_gvt_gtt_pte_ops *pte_ops = mm->vgpu->gvt->gtt.pte_ops; in ggtt_set_host_entry()
676 const struct intel_gvt_gtt_pte_ops *ops = gvt->gtt.pte_ops; in ppgtt_spt_get_entry()
705 const struct intel_gvt_gtt_pte_ops *ops = gvt->gtt.pte_ops; in ppgtt_spt_set_entry()
768 radix_tree_delete(&spt->vgpu->gtt.spt_tree, spt->shadow_page.mfn); in ppgtt_free_spt()
789 radix_tree_for_each_slot(slot, &vgpu->gtt.spt_tree, &iter, 0) { in ppgtt_free_all_spt()
[all …]
Dfb_decoder.c252 plane->base_gpa = intel_vgpu_gma_to_gpa(vgpu->gtt.ggtt_mm, plane->base); in intel_vgpu_decode_primary_plane()
375 plane->base_gpa = intel_vgpu_gma_to_gpa(vgpu->gtt.ggtt_mm, plane->base); in intel_vgpu_decode_cursor_plane()
479 plane->base_gpa = intel_vgpu_gma_to_gpa(vgpu->gtt.ggtt_mm, plane->base); in intel_vgpu_decode_sprite_plane()
DMakefile14 gvt/gtt.o \
Dgvt.h198 struct intel_vgpu_gtt gtt; member
336 struct intel_gvt_gtt gtt; member
Dmmio.c85 pt = vgpu->gtt.ggtt_mm->ggtt_mm.virtual_ggtt + offset; in failsafe_emulate_mmio_rw()
Dscheduler.c226 context_gpa = intel_vgpu_gma_to_gpa(vgpu->gtt.ggtt_mm, in populate_shadow_context()
988 context_gpa = intel_vgpu_gma_to_gpa(vgpu->gtt.ggtt_mm, in update_guest_context()
1640 ring_context_gpa = intel_vgpu_gma_to_gpa(vgpu->gtt.ggtt_mm, in intel_vgpu_create_workload()
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ttm.c662 struct amdgpu_ttm_tt *gtt = ttm_to_amdgpu_ttm_tt(ttm); in amdgpu_ttm_tt_get_user_pages() local
663 unsigned long start = gtt->userptr; in amdgpu_ttm_tt_get_user_pages()
687 if (unlikely((gtt->userflags & AMDGPU_GEM_USERPTR_ANONONLY) && in amdgpu_ttm_tt_get_user_pages()
716 struct amdgpu_ttm_tt *gtt = ttm_to_amdgpu_ttm_tt(ttm); in amdgpu_ttm_tt_get_user_pages_done() local
718 if (!gtt || !gtt->userptr || !range) in amdgpu_ttm_tt_get_user_pages_done()
722 gtt->userptr, ttm->num_pages); in amdgpu_ttm_tt_get_user_pages_done()
758 struct amdgpu_ttm_tt *gtt = ttm_to_amdgpu_ttm_tt(ttm); in amdgpu_ttm_tt_pin_userptr() local
759 int write = !(gtt->userflags & AMDGPU_GEM_USERPTR_READONLY); in amdgpu_ttm_tt_pin_userptr()
777 drm_prime_sg_to_dma_addr_array(ttm->sg, gtt->ttm.dma_address, in amdgpu_ttm_tt_pin_userptr()
795 struct amdgpu_ttm_tt *gtt = ttm_to_amdgpu_ttm_tt(ttm); in amdgpu_ttm_tt_unpin_userptr() local
[all …]
Damdgpu_kms.c710 mem.gtt.total_heap_size = gtt_man->size; in amdgpu_info_ioctl()
711 mem.gtt.usable_heap_size = mem.gtt.total_heap_size - in amdgpu_info_ioctl()
713 mem.gtt.heap_usage = ttm_resource_manager_usage(gtt_man); in amdgpu_info_ioctl()
714 mem.gtt.max_allocation = mem.gtt.usable_heap_size * 3 / 4; in amdgpu_info_ioctl()
/linux-6.1.9/drivers/gpu/drm/gma500/
Dgtt.c29 end = root->start + pdev->gtt.stolen_size - 1; in psb_gtt_allocate_resource()
32 start = root->start + pdev->gtt.stolen_size; in psb_gtt_allocate_resource()
179 for (i = 0; i < pdev->gtt.gtt_pages; ++i) in psb_gtt_clear()
189 struct psb_gtt *pg = &dev_priv->gtt; in psb_gtt_init_ranges()
258 struct psb_gtt *pg = &dev_priv->gtt; in psb_gtt_init()
290 struct psb_gtt *pg = &dev_priv->gtt; in psb_gtt_resume()
Dgem.c33 u32 gpu_base = dev_priv->gtt.gatt_start; in psb_gem_pin()
78 u32 gpu_base = dev_priv->gtt.gatt_start; in psb_gem_unpin()
340 pg = &dev_priv->gtt; in psb_gem_mm_init()
412 pg = &dev_priv->gtt; in psb_gem_mm_resume()
Dpsb_drv.c124 PSB_WSGX32(dev_priv->gtt.gatt_start, PSB_CR_BIF_TWOD_REQ_BASE); in psb_spank()
130 struct psb_gtt *pg = &dev_priv->gtt; in psb_do_init()
187 struct psb_gtt *pg = &dev_priv->gtt; in psb_driver_unload()
248 pg = &dev_priv->gtt; in psb_driver_load()
DMakefile18 gtt.o \
Dframebuffer.c298 if (dev_priv->gtt.stolen_size) { in psbfb_create()
300 info->apertures->ranges[0].size = dev_priv->gtt.stolen_size; in psbfb_create()
/linux-6.1.9/drivers/char/agp/
Dintel-gtt.c70 u32 __iomem *gtt; /* I915G */ member
336 writel_relaxed(addr | pte_flags, intel_private.gtt + entry); in i810_write_entry()
565 iounmap(intel_private.gtt); in intel_gtt_cleanup()
629 intel_private.gtt = NULL; in intel_gtt_init()
631 intel_private.gtt = ioremap_wc(intel_private.gtt_phys_addr, in intel_gtt_init()
633 if (intel_private.gtt == NULL) in intel_gtt_init()
634 intel_private.gtt = ioremap(intel_private.gtt_phys_addr, in intel_gtt_init()
636 if (intel_private.gtt == NULL) { in intel_gtt_init()
741 writel_relaxed(addr | pte_flags, intel_private.gtt + entry); in i830_write_entry()
849 readl(intel_private.gtt + pg); in intel_gmch_gtt_insert_page()
[all …]
DMakefile21 obj-$(CONFIG_INTEL_GTT) += intel-gtt.o
/linux-6.1.9/drivers/gpu/drm/i915/gem/selftests/
Dhuge_pages.c837 unsigned int gtt; in igt_mock_ppgtt_64K() member
843 .gtt = I915_GTT_PAGE_SIZE_64K, in igt_mock_ppgtt_64K()
848 .gtt = I915_GTT_PAGE_SIZE_4K, in igt_mock_ppgtt_64K()
853 .gtt = I915_GTT_PAGE_SIZE_4K, in igt_mock_ppgtt_64K()
858 .gtt = I915_GTT_PAGE_SIZE_64K, in igt_mock_ppgtt_64K()
863 .gtt = I915_GTT_PAGE_SIZE_4K, in igt_mock_ppgtt_64K()
868 .gtt = I915_GTT_PAGE_SIZE_64K | I915_GTT_PAGE_SIZE_4K, in igt_mock_ppgtt_64K()
873 .gtt = I915_GTT_PAGE_SIZE_64K, in igt_mock_ppgtt_64K()
878 .gtt = I915_GTT_PAGE_SIZE_64K, in igt_mock_ppgtt_64K()
885 .gtt = I915_GTT_PAGE_SIZE_4K, in igt_mock_ppgtt_64K()
[all …]
/linux-6.1.9/drivers/gpu/drm/i915/
Di915_trace.h148 TP_PROTO(struct drm_i915_gem_object *obj, u64 index, bool gtt, bool write),
149 TP_ARGS(obj, index, gtt, write),
154 __field(bool, gtt)
161 __entry->gtt = gtt;
167 __entry->gtt ? "GTT" : "CPU",
/linux-6.1.9/drivers/gpu/drm/i915/selftests/
Di915_mock_selftests.h33 selftest(gtt, i915_gem_gtt_mock_selftests)
Di915_live_selftests.h36 selftest(gtt, i915_gem_gtt_live_selftests)
/linux-6.1.9/drivers/gpu/drm/i915/display/
Dintel_fb_pin.c251 &plane_state->view.gtt, in intel_plane_pin_fb()
267 vma = intel_pin_fb_obj_dpt(fb, &plane_state->view.gtt, false, in intel_plane_pin_fb()
Dintel_fb.c1372 struct intel_remapped_plane_info *remap_info = &view->gtt.remapped.plane[color_plane]; in calc_plane_remap_info()
1398 if (view->gtt.type == I915_GTT_VIEW_ROTATED) { in calc_plane_remap_info()
1400 check_array_bounds(i915, view->gtt.rotated.plane, color_plane); in calc_plane_remap_info()
1423 drm_WARN_ON(&i915->drm, view->gtt.type != I915_GTT_VIEW_REMAPPED); in calc_plane_remap_info()
1425 check_array_bounds(i915, view->gtt.remapped.plane, color_plane); in calc_plane_remap_info()
1427 if (view->gtt.remapped.plane_alignment) { in calc_plane_remap_info()
1429 view->gtt.remapped.plane_alignment); in calc_plane_remap_info()
1509 view->gtt.type = view_type; in intel_fb_view_init()
1512 view->gtt.remapped.plane_alignment = SZ_2M / PAGE_SIZE; in intel_fb_view_init()
Dintel_dpt.c250 size = intel_remapped_info_size(&fb->remapped_view.gtt.remapped); in intel_dpt_create()
/linux-6.1.9/drivers/net/wireless/ath/ath9k/
Ddebug.h108 u32 gtt; member

12