Home
last modified time | relevance | path

Searched refs:aper_base (Results 1 – 25 of 52) sorted by relevance

123

/linux-6.1.9/arch/x86/kernel/
Daperture_64.c87 static void __init exclude_from_core(u64 aper_base, u32 aper_order) in exclude_from_core() argument
89 aperture_pfn_start = aper_base >> PAGE_SHIFT; in exclude_from_core()
99 static void exclude_from_core(u64 aper_base, u32 aper_order) in exclude_from_core() argument
304 u64 aper_base = 0, last_aper_base = 0; in early_gart_iommu_check() local
333 aper_base = read_pci_config(bus, slot, 3, AMD64_GARTAPERTUREBASE) & 0x7fff; in early_gart_iommu_check()
334 aper_base <<= 25; in early_gart_iommu_check()
338 (aper_base != last_aper_base) || in early_gart_iommu_check()
346 last_aper_base = aper_base; 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 …]
Damd_gart_64.c521 u64 aper_base; in read_aperture() local
527 aper_base = aper_base_32 & 0x7fff; in read_aperture()
528 aper_base <<= 25; in read_aperture()
531 if (aper_base + aper_size > 0x100000000UL || !aper_size) in read_aperture()
532 aper_base = 0; in read_aperture()
535 return aper_base; in read_aperture()
615 unsigned aper_base, new_aper_base; in init_amd_gatt() local
622 aper_size = aper_base = info->aper_size = 0; in init_amd_gatt()
630 if (!aper_base) { in init_amd_gatt()
632 aper_base = new_aper_base; in init_amd_gatt()
[all …]
/linux-6.1.9/arch/x86/include/asm/
Dgart.h91 static inline int aperture_valid(u64 aper_base, u32 aper_size, u32 min_size) in aperture_valid() argument
93 if (!aper_base) in aperture_valid()
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()
/linux-6.1.9/drivers/gpu/drm/radeon/
Dradeon_agp.c157 head->base = head->agp_info.aper_base; in radeon_agp_head_init()
209 info->aperture_base = kern->aper_base; in radeon_agp_head_info()
337 rdev->mc.agp_base = rdev->agp->agp_info.aper_base; in radeon_agp_init()
Dradeon_fb.c271 info->fix.smem_start = rdev->mc.aper_base + tmp; in radeonfb_create()
290 DRM_INFO("vram apper at 0x%lX\n", (unsigned long)rdev->mc.aper_base); in radeonfb_create()
Dradeon_object.c393 arch_io_reserve_memtype_wc(rdev->mc.aper_base, in radeon_bo_init()
398 rdev->mc.vram_mtrr = arch_phys_wc_add(rdev->mc.aper_base, in radeon_bo_init()
413 arch_io_free_memtype_wc(rdev->mc.aper_base, rdev->mc.aper_size); in radeon_bo_fini()
Drs690.c161 rdev->mc.aper_base = pci_resource_start(rdev->pdev, 0); in rs690_mc_init()
192 (unsigned long long)rdev->mc.aper_base, k8_addr); in rs690_mc_init()
193 rdev->mc.aper_base = (resource_size_t)k8_addr; in rs690_mc_init()
/linux-6.1.9/include/linux/
Dagp_backend.h50 unsigned long aper_base; member
Dagpgart.h37 unsigned long aper_base;/* base of aperture */ member
/linux-6.1.9/drivers/char/agp/
Dcompat_ioctl.c50 userinfo.aper_base = (compat_long_t)kerninfo.aper_base; in compat_agpioc_info_wrap()
Dcompat_ioctl.h48 compat_long_t aper_base; /* base of aperture */ member
Damd64-agp.c156 u64 aper_base; in amd64_configure() local
161 aper_base = (aperturebase & PCI_BASE_ADDRESS_MEM_MASK); in amd64_configure()
165 return aper_base; in amd64_configure()
Dfrontend.c604 (kerninfo.aper_base + offset) >> PAGE_SHIFT, in agp_mmap()
621 kerninfo.aper_base >> PAGE_SHIFT, in agp_mmap()
726 userinfo.aper_base = kerninfo.aper_base; in agpioc_info_wrap()
/linux-6.1.9/include/uapi/linux/
Dagpgart.h65 unsigned long aper_base;/* base of aperture */ member
/linux-6.1.9/drivers/video/fbdev/aty/
Dradeon_base.c2022 u32 aper_base, aper_size; in fixup_memory_mappings() local
2037 aper_base = INREG(CNFG_APER_0_BASE); in fixup_memory_mappings()
2043 ((aper_base + aper_size - 1) & 0xffff0000) | (aper_base >> 16)); in fixup_memory_mappings()
2044 rinfo->fb_local_base = aper_base; in fixup_memory_mappings()
2049 agp_base = aper_base + aper_size; in fixup_memory_mappings()
2051 agp_base = (aper_base | 0x0fffffff) + 1; in fixup_memory_mappings()
2067 OUTREG(DISPLAY_BASE_ADDR, aper_base); in fixup_memory_mappings()
2069 OUTREG(CRTC2_DISPLAY_BASE_ADDR, aper_base); in fixup_memory_mappings()
2070 OUTREG(OV0_BASE_ADDR, aper_base); in fixup_memory_mappings()
2086 aper_base, in fixup_memory_mappings()
[all …]
/linux-6.1.9/drivers/gpu/drm/
Ddrm_agpsupport.c70 info->aperture_base = kern->aper_base; in drm_legacy_agp_info()
411 head->base = head->agp_info.aper_base; in drm_legacy_agp_init()
Ddrm_pci.c140 dev->agp->agp_info.aper_base, in drm_legacy_pci_agp_init()
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/subdev/pci/
Dagp.c133 pci->agp.base = info.aper_base; in nvkm_agp_ctor()
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_object.c1046 int r = arch_io_reserve_memtype_wc(adev->gmc.aper_base, in amdgpu_bo_init()
1055 adev->gmc.vram_mtrr = arch_phys_wc_add(adev->gmc.aper_base, in amdgpu_bo_init()
1083 arch_io_free_memtype_wc(adev->gmc.aper_base, adev->gmc.aper_size); in amdgpu_bo_fini()
Damdgpu_gmc.h171 resource_size_t aper_base; member
Dgmc_v11_0.c685 adev->gmc.aper_base = pci_resource_start(adev->pdev, 0); in gmc_v11_0_mc_init()
690 adev->gmc.aper_base = adev->mmhub.funcs->get_mc_fb_offset(adev); in gmc_v11_0_mc_init()
Damdgpu_ttm.c594 mem->bus.offset += adev->gmc.aper_base; in amdgpu_ttm_io_mem_reserve()
611 return (adev->gmc.aper_base + cursor.start) >> PAGE_SHIFT; in amdgpu_ttm_io_mem_pfn()
1715 adev->mman.aper_base_kaddr = ioremap_cache(adev->gmc.aper_base, in amdgpu_ttm_init()
1720 adev->mman.aper_base_kaddr = ioremap_wc(adev->gmc.aper_base, in amdgpu_ttm_init()
Dgmc_v10_0.c825 adev->gmc.aper_base = pci_resource_start(adev->pdev, 0); in gmc_v10_0_mc_init()
830 adev->gmc.aper_base = adev->gfxhub.funcs->get_mc_fb_offset(adev); in gmc_v10_0_mc_init()
Damdgpu_vkms.c501 adev_to_drm(adev)->mode_config.fb_base = adev->gmc.aper_base; in amdgpu_vkms_sw_init()
/linux-6.1.9/drivers/gpu/drm/amd/amdkfd/
Dkfd_migrate.c1011 pgmap->range.start = adev->gmc.aper_base; in svm_migrate_init()
1012 pgmap->range.end = adev->gmc.aper_base + adev->gmc.aper_size - 1; in svm_migrate_init()

123