/linux-6.6.21/arch/x86/kernel/ |
D | aperture_64.c | 109 u32 aper_size; in allocate_aperture() local 115 aper_size = (32 * 1024 * 1024) << fallback_aper_order; in allocate_aperture() 123 addr = memblock_phys_alloc_range(aper_size, aper_size, in allocate_aperture() 127 addr, addr + aper_size - 1, aper_size >> 10); in allocate_aperture() 131 addr, addr + aper_size - 1, aper_size >> 10); in allocate_aperture() 133 (addr+aper_size) >> PAGE_SHIFT); in allocate_aperture() 303 u32 aper_size = 0, aper_order = 0, last_aper_order = 0; in early_gart_iommu_check() local 332 aper_size = (32 * 1024 * 1024) << aper_order; in early_gart_iommu_check() 355 if (!aper_base || !aper_size || aper_base + aper_size > 0x100000000UL) in early_gart_iommu_check() 359 if (e820__mapped_any(aper_base, aper_base + aper_size, in early_gart_iommu_check() [all …]
|
D | amd_gart_64.c | 496 static __init unsigned long check_iommu_size(unsigned long aper, u64 aper_size) in check_iommu_size() argument 501 iommu_size = aper_size; in check_iommu_size() 520 unsigned aper_size = 0, aper_base_32, aper_order; in read_aperture() local 530 aper_size = (32 * 1024 * 1024) << aper_order; in read_aperture() 531 if (aper_base + aper_size > 0x100000000UL || !aper_size) in read_aperture() 534 *size = aper_size; in read_aperture() 614 unsigned aper_size, gatt_size, new_aper_size; in init_amd_gatt() local 622 aper_size = aper_base = info->aper_size = 0; in init_amd_gatt() 631 aper_size = new_aper_size; in init_amd_gatt() 634 if (aper_size != new_aper_size || aper_base != new_aper_base) in init_amd_gatt() [all …]
|
/linux-6.6.21/arch/x86/include/asm/ |
D | gart.h | 91 static inline int aperture_valid(u64 aper_base, u32 aper_size, u32 min_size) in aperture_valid() argument 96 if (aper_base + aper_size > 0x100000000ULL) { in aperture_valid() 100 if (e820__mapped_any(aper_base, aper_base + aper_size, E820_TYPE_RAM)) { in aperture_valid() 104 if (aper_size < min_size) { in aperture_valid() 106 aper_size>>20, min_size>>20); in aperture_valid()
|
/linux-6.6.21/drivers/char/agp/ |
D | alpha-agp.c | 157 struct aper_size_info_fixed *aper_size; in alpha_core_agp_setup() local 167 aper_size = alpha_core_agp_sizes; in alpha_core_agp_setup() 168 aper_size->size = agp->aperture.size / (1024 * 1024); in alpha_core_agp_setup() 169 aper_size->num_entries = agp->aperture.size / PAGE_SIZE; in alpha_core_agp_setup() 170 aper_size->page_order = __ffs(aper_size->num_entries / 1024); in alpha_core_agp_setup() 188 alpha_bridge->current_size = aper_size; /* only 1 size */ in alpha_core_agp_setup()
|
D | compat_ioctl.c | 51 userinfo.aper_size = kerninfo.aper_size; in compat_agpioc_info_wrap()
|
D | compat_ioctl.h | 49 compat_size_t aper_size; /* size of aperture */ member
|
D | intel-gtt.c | 677 unsigned int aper_size; in intel_fake_agp_fetch_size() local 680 aper_size = (intel_private.gtt_mappable_entries << PAGE_SHIFT) / MB(1); in intel_fake_agp_fetch_size() 683 if (aper_size == intel_fake_agp_sizes[i].size) { in intel_fake_agp_fetch_size() 686 return aper_size; in intel_fake_agp_fetch_size()
|
D | frontend.c | 583 current_size = kerninfo.aper_size; in agp_mmap() 727 userinfo.aper_size = kerninfo.aper_size; in agpioc_info_wrap()
|
/linux-6.6.21/drivers/gpu/drm/radeon/ |
D | radeon_agp.c | 210 info->aperture_size = kern->aper_size * 1024 * 1024; in radeon_agp_head_info() 245 if (rdev->agp->agp_info.aper_size < 32) { in radeon_agp_init() 249 rdev->agp->agp_info.aper_size); in radeon_agp_init() 338 rdev->mc.gtt_size = rdev->agp->agp_info.aper_size << 20; in radeon_agp_init()
|
D | radeon_object.c | 394 rdev->mc.aper_size); in radeon_bo_init() 399 rdev->mc.aper_size); in radeon_bo_init() 403 (unsigned long long)rdev->mc.aper_size >> 20); in radeon_bo_init() 413 arch_io_free_memtype_wc(rdev->mc.aper_base, rdev->mc.aper_size); in radeon_bo_fini()
|
D | radeon_device.c | 574 mc->real_vram_size = mc->aper_size; in radeon_vram_location() 575 mc->mc_vram_size = mc->aper_size; in radeon_vram_location() 580 mc->real_vram_size = mc->aper_size; in radeon_vram_location() 581 mc->mc_vram_size = mc->aper_size; in radeon_vram_location()
|
D | r100.c | 2743 u32 aper_size; in r100_get_accessible_vram() local 2746 aper_size = RREG32(RADEON_CONFIG_APER_SIZE); in r100_get_accessible_vram() 2756 return aper_size * 2; in r100_get_accessible_vram() 2767 return aper_size; in r100_get_accessible_vram() 2775 return aper_size * 2; in r100_get_accessible_vram() 2776 return aper_size; in r100_get_accessible_vram() 2785 rdev->mc.aper_size = pci_resource_len(rdev->pdev, 0); in r100_vram_init_sizes() 2788 if (rdev->mc.visible_vram_size > rdev->mc.aper_size) in r100_vram_init_sizes() 2789 rdev->mc.visible_vram_size = rdev->mc.aper_size; in r100_vram_init_sizes() 2810 if (rdev->mc.aper_size > config_aper_size) in r100_vram_init_sizes() [all …]
|
/linux-6.6.21/include/linux/ |
D | agp_backend.h | 51 size_t aper_size; member
|
D | agpgart.h | 38 size_t aper_size; /* size of aperture */ member
|
/linux-6.6.21/include/uapi/linux/ |
D | agpgart.h | 66 __kernel_size_t aper_size; /* size of aperture */ member
|
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/subdev/pci/ |
D | agp.c | 134 pci->agp.size = info.aper_size * 1024 * 1024; in nvkm_agp_ctor()
|
/linux-6.6.21/drivers/gpu/drm/ |
D | drm_pci.c | 141 dev->agp->agp_info.aper_size * in drm_legacy_pci_agp_init()
|
D | drm_agpsupport.c | 71 info->aperture_size = kern->aper_size * 1024 * 1024; in drm_legacy_agp_info()
|
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/ |
D | gmc_v7_0.c | 374 adev->gmc.aper_size = pci_resource_len(adev->pdev, 0); in gmc_v7_0_mc_init() 378 adev->gmc.real_vram_size > adev->gmc.aper_size && in gmc_v7_0_mc_init() 381 adev->gmc.aper_size = adev->gmc.real_vram_size; in gmc_v7_0_mc_init() 385 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v7_0_mc_init()
|
D | gmc_v11_0.c | 717 adev->gmc.aper_size = pci_resource_len(adev->pdev, 0); in gmc_v11_0_mc_init() 722 adev->gmc.aper_size = adev->gmc.real_vram_size; in gmc_v11_0_mc_init() 726 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v11_0_mc_init()
|
D | amdgpu_object.c | 1074 adev->gmc.aper_size); in amdgpu_bo_init() 1083 adev->gmc.aper_size); in amdgpu_bo_init() 1088 (unsigned long long)adev->gmc.aper_size >> 20); in amdgpu_bo_init() 1109 arch_io_free_memtype_wc(adev->gmc.aper_base, adev->gmc.aper_size); in amdgpu_bo_fini()
|
D | gmc_v10_0.c | 815 adev->gmc.aper_size = pci_resource_len(adev->pdev, 0); in gmc_v10_0_mc_init() 820 adev->gmc.aper_size = adev->gmc.real_vram_size; in gmc_v10_0_mc_init() 824 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v10_0_mc_init()
|
D | amdgpu_gmc.h | 206 resource_size_t aper_size; member
|
D | gmc_v6_0.c | 320 adev->gmc.aper_size = pci_resource_len(adev->pdev, 0); in gmc_v6_0_mc_init() 321 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v6_0_mc_init()
|
/linux-6.6.21/drivers/video/fbdev/aty/ |
D | radeon_base.c | 2021 u32 aper_base, aper_size; in fixup_memory_mappings() local 2037 aper_size = INREG(CNFG_APER_SIZE); in fixup_memory_mappings() 2042 ((aper_base + aper_size - 1) & 0xffff0000) | (aper_base >> 16)); in fixup_memory_mappings() 2048 agp_base = aper_base + aper_size; in fixup_memory_mappings() 2086 ((aper_base + aper_size - 1) & 0xffff0000) | (aper_base >> 16), in fixup_memory_mappings()
|