/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
D | radeon_ttm.c | 434 struct radeon_ttm_tt *gtt = (void *)ttm; in radeon_ttm_tt_pin_userptr() local 438 int write = !(gtt->userflags & RADEON_GEM_USERPTR_READONLY); in radeon_ttm_tt_pin_userptr() 442 if (current->mm != gtt->usermm) in radeon_ttm_tt_pin_userptr() 445 if (gtt->userflags & RADEON_GEM_USERPTR_ANONONLY) { in radeon_ttm_tt_pin_userptr() 448 unsigned long end = gtt->userptr + ttm->num_pages * PAGE_SIZE; in radeon_ttm_tt_pin_userptr() 450 vma = find_vma(gtt->usermm, gtt->userptr); in radeon_ttm_tt_pin_userptr() 457 uint64_t userptr = gtt->userptr + pinned * PAGE_SIZE; in radeon_ttm_tt_pin_userptr() 480 gtt->ttm.dma_address, ttm->num_pages); in radeon_ttm_tt_pin_userptr() 495 struct radeon_ttm_tt *gtt = (void *)ttm; in radeon_ttm_tt_unpin_userptr() local 498 int write = !(gtt->userflags & RADEON_GEM_USERPTR_READONLY); in radeon_ttm_tt_unpin_userptr() [all …]
|
D | rs400.c | 238 u32 *gtt = rdev->gart.ptr; in rs400_gart_set_page() local 239 gtt[i] = cpu_to_le32(lower_32_bits(entry)); in rs400_gart_set_page()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gvt/ |
D | gtt.c | 556 struct intel_gvt_gtt_pte_ops *pte_ops = mm->vgpu->gvt->gtt.pte_ops; in _ppgtt_get_root_entry() 583 struct intel_gvt_gtt_pte_ops *pte_ops = mm->vgpu->gvt->gtt.pte_ops; in _ppgtt_set_root_entry() 605 struct intel_gvt_gtt_pte_ops *pte_ops = mm->vgpu->gvt->gtt.pte_ops; in ggtt_get_guest_entry() 617 struct intel_gvt_gtt_pte_ops *pte_ops = mm->vgpu->gvt->gtt.pte_ops; in ggtt_set_guest_entry() 628 struct intel_gvt_gtt_pte_ops *pte_ops = mm->vgpu->gvt->gtt.pte_ops; in ggtt_get_host_entry() 638 struct intel_gvt_gtt_pte_ops *pte_ops = mm->vgpu->gvt->gtt.pte_ops; in ggtt_set_host_entry() 655 struct intel_gvt_gtt_pte_ops *ops = gvt->gtt.pte_ops; in ppgtt_spt_get_entry() 684 struct intel_gvt_gtt_pte_ops *ops = gvt->gtt.pte_ops; in ppgtt_spt_set_entry() 747 radix_tree_delete(&spt->vgpu->gtt.spt_tree, spt->shadow_page.mfn); in ppgtt_free_spt() 768 radix_tree_for_each_slot(slot, &vgpu->gtt.spt_tree, &iter, 0) { in ppgtt_free_all_spt() [all …]
|
D | Makefile | 4 interrupt.o gtt.o cfg_space.o opregion.o mmio.o display.o edid.o \
|
D | fb_decoder.c | 251 plane->base_gpa = intel_vgpu_gma_to_gpa(vgpu->gtt.ggtt_mm, plane->base); in intel_vgpu_decode_primary_plane() 374 plane->base_gpa = intel_vgpu_gma_to_gpa(vgpu->gtt.ggtt_mm, plane->base); in intel_vgpu_decode_cursor_plane() 478 plane->base_gpa = intel_vgpu_gma_to_gpa(vgpu->gtt.ggtt_mm, plane->base); in intel_vgpu_decode_sprite_plane()
|
D | gvt.h | 196 struct intel_vgpu_gtt gtt; member 306 struct intel_gvt_gtt gtt; member
|
D | mmio.c | 82 pt = vgpu->gtt.ggtt_mm->ggtt_mm.virtual_ggtt + offset; in failsafe_emulate_mmio_rw()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ttm.c | 837 struct amdgpu_ttm_tt *gtt = (void *)ttm; in amdgpu_ttm_tt_get_user_pages() local 838 unsigned long start = gtt->userptr; in amdgpu_ttm_tt_get_user_pages() 853 if (WARN_ON(gtt->range)) in amdgpu_ttm_tt_get_user_pages() 884 if (unlikely((gtt->userflags & AMDGPU_GEM_USERPTR_ANONONLY) && in amdgpu_ttm_tt_get_user_pages() 916 gtt->range = range; in amdgpu_ttm_tt_get_user_pages() 940 struct amdgpu_ttm_tt *gtt = (void *)ttm; in amdgpu_ttm_tt_get_user_pages_done() local 943 if (!gtt || !gtt->userptr) in amdgpu_ttm_tt_get_user_pages_done() 947 gtt->userptr, ttm->num_pages); in amdgpu_ttm_tt_get_user_pages_done() 949 WARN_ONCE(!gtt->range || !gtt->range->hmm_pfns, in amdgpu_ttm_tt_get_user_pages_done() 952 if (gtt->range) { in amdgpu_ttm_tt_get_user_pages_done() [all …]
|
D | amdgpu_kms.c | 661 mem.gtt.total_heap_size = gtt_man->size; in amdgpu_info_ioctl() 662 mem.gtt.total_heap_size *= PAGE_SIZE; in amdgpu_info_ioctl() 663 mem.gtt.usable_heap_size = mem.gtt.total_heap_size - in amdgpu_info_ioctl() 665 mem.gtt.heap_usage = in amdgpu_info_ioctl() 667 mem.gtt.max_allocation = mem.gtt.usable_heap_size * 3 / 4; in amdgpu_info_ioctl()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/ |
D | qxl_ttm.c | 111 struct qxl_ttm_tt *gtt = (void *)ttm; in qxl_ttm_backend_bind() local 113 gtt->offset = (unsigned long)(bo_mem->start << PAGE_SHIFT); in qxl_ttm_backend_bind() 131 struct qxl_ttm_tt *gtt = (void *)ttm; in qxl_ttm_backend_destroy() local 134 ttm_tt_fini(>t->ttm); in qxl_ttm_backend_destroy() 135 kfree(gtt); in qxl_ttm_backend_destroy() 142 struct qxl_ttm_tt *gtt; in qxl_ttm_tt_create() local 145 gtt = kzalloc(sizeof(struct qxl_ttm_tt), GFP_KERNEL); in qxl_ttm_tt_create() 146 if (gtt == NULL) in qxl_ttm_tt_create() 148 gtt->qdev = qdev; in qxl_ttm_tt_create() 149 if (ttm_tt_init(>t->ttm, bo, page_flags)) { in qxl_ttm_tt_create() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/ |
D | huge_pages.c | 353 if (!HAS_PAGE_SIZES(i915, vma->page_sizes.gtt)) { in igt_check_page_sizes() 355 vma->page_sizes.gtt & ~supported, supported); in igt_check_page_sizes() 371 if (obj->mm.page_sizes.gtt) { in igt_check_page_sizes() 373 obj->mm.page_sizes.gtt); in igt_check_page_sizes() 508 if (vma->page_sizes.gtt != page_size) { in igt_mock_memory_region_huge_pages() 510 __func__, vma->page_sizes.gtt, in igt_mock_memory_region_huge_pages() 591 if (vma->page_sizes.gtt != page_size) { in igt_mock_ppgtt_misaligned_dma() 593 vma->page_sizes.gtt, page_size); in igt_mock_ppgtt_misaligned_dma() 618 if (vma->page_sizes.gtt != I915_GTT_PAGE_SIZE_4K) { in igt_mock_ppgtt_misaligned_dma() 620 vma->page_sizes.gtt, I915_GTT_PAGE_SIZE_4K); in igt_mock_ppgtt_misaligned_dma() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/gma500/ |
D | framebuffer.c | 83 struct gtt_range *gtt = to_gtt_range(fb->obj[0]); in psbfb_pan() local 90 if (gtt->npage) { in psbfb_pan() 94 psb_gtt_roll(dev, gtt, var->yoffset * pages); in psbfb_pan() 105 struct gtt_range *gtt = to_gtt_range(fb->obj[0]); in psbfb_vm_fault() local 112 gtt->offset; in psbfb_vm_fault() 405 if (dev_priv->gtt.stolen_size) { in psbfb_create() 407 info->apertures->ranges[0].size = dev_priv->gtt.stolen_size; in psbfb_create()
|
D | gtt.c | 240 u32 gpu_base = dev_priv->gtt.gatt_start; in psb_gtt_pin() 278 u32 gpu_base = dev_priv->gtt.gatt_start; in psb_gtt_unpin() 336 end = r->start + dev_priv->gtt.stolen_size - 1; in psb_gtt_alloc_range() 339 start = r->start + dev_priv->gtt.stolen_size; in psb_gtt_alloc_range() 385 init_rwsem(&dev_priv->gtt.sem); in psb_gtt_alloc() 424 pg = &dev_priv->gtt; in psb_gtt_init()
|
D | gem.c | 23 struct gtt_range *gtt = container_of(obj, struct gtt_range, gem); in psb_gem_free_object() local 30 psb_gtt_free_range(obj->dev, gtt); in psb_gem_free_object()
|
D | Makefile | 11 gtt.o \
|
D | psb_drv.c | 110 struct psb_gtt *pg = &dev_priv->gtt; in psb_do_init() 168 struct psb_gtt *pg = &dev_priv->gtt; in psb_driver_unload() 229 pg = &dev_priv->gtt; in psb_driver_load()
|
D | gma_display.c | 57 struct gtt_range *gtt; in gma_pipe_set_base() local 73 gtt = to_gtt_range(fb->obj[0]); in gma_pipe_set_base() 77 ret = psb_gtt_pin(gtt); in gma_pipe_set_base() 80 start = gtt->offset; in gma_pipe_set_base()
|
D | accel_2d.c | 59 PSB_WSGX32(dev_priv->gtt.gatt_start, PSB_CR_BIF_TWOD_REQ_BASE); in psb_spank()
|
/kernel/linux/linux-5.10/drivers/char/agp/ |
D | intel-gtt.c | 69 u32 __iomem *gtt; /* I915G */ member 335 writel_relaxed(addr | pte_flags, intel_private.gtt + entry); in i810_write_entry() 564 iounmap(intel_private.gtt); in intel_gtt_cleanup() 631 intel_private.gtt = NULL; in intel_gtt_init() 633 intel_private.gtt = ioremap_wc(intel_private.gtt_phys_addr, in intel_gtt_init() 635 if (intel_private.gtt == NULL) in intel_gtt_init() 636 intel_private.gtt = ioremap(intel_private.gtt_phys_addr, in intel_gtt_init() 638 if (intel_private.gtt == NULL) { in intel_gtt_init() 743 writel_relaxed(addr | pte_flags, intel_private.gtt + entry); in i830_write_entry() 851 readl(intel_private.gtt + pg); in intel_gtt_insert_page() [all …]
|
D | Makefile | 17 obj-$(CONFIG_INTEL_GTT) += intel-gtt.o
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/ |
D | i915_mock_selftests.h | 33 selftest(gtt, i915_gem_gtt_mock_selftests)
|
D | i915_live_selftests.h | 35 selftest(gtt, i915_gem_gtt_live_selftests)
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
D | i915_trace.h | 605 TP_PROTO(struct drm_i915_gem_object *obj, u64 index, bool gtt, bool write), 606 TP_ARGS(obj, index, gtt, write), 611 __field(bool, gtt) 618 __entry->gtt = gtt; 624 __entry->gtt ? "GTT" : "CPU",
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/ |
D | i915_gem_object_types.h | 247 unsigned int gtt; member
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/ |
D | debug.h | 107 u32 gtt; member
|