/drivers/gpu/drm/radeon/ |
D | rs400.c | 41 switch (rdev->mc.gtt_size/(1024*1024)) { in rs400_gart_adjust_size() 52 (unsigned)(rdev->mc.gtt_size >> 20)); in rs400_gart_adjust_size() 55 rdev->mc.gtt_size = 32 * 1024 * 1024; in rs400_gart_adjust_size() 85 switch(rdev->mc.gtt_size / (1024 * 1024)) { in rs400_gart_init() 116 switch(rdev->mc.gtt_size / (1024 * 1024)) { in rs400_gart_enable() 188 (unsigned)(rdev->mc.gtt_size >> 20), in rs400_gart_enable() 275 rdev->mc.gtt_base_align = rdev->mc.gtt_size - 1; in rs400_mc_init()
|
D | radeon_agp.c | 245 rdev->mc.gtt_size = rdev->ddev->agp->agp_info.aper_size << 20; in radeon_agp_init() 247 rdev->mc.gtt_end = rdev->mc.gtt_start + rdev->mc.gtt_size - 1; in radeon_agp_init() 249 rdev->mc.gtt_size >> 20, rdev->mc.gtt_start, rdev->mc.gtt_end); in radeon_agp_init()
|
D | radeon_device.c | 617 if (mc->gtt_size > size_bf) { in radeon_gtt_location() 619 mc->gtt_size = size_bf; in radeon_gtt_location() 621 mc->gtt_start = (mc->vram_start & ~mc->gtt_base_align) - mc->gtt_size; in radeon_gtt_location() 623 if (mc->gtt_size > size_af) { in radeon_gtt_location() 625 mc->gtt_size = size_af; in radeon_gtt_location() 629 mc->gtt_end = mc->gtt_start + mc->gtt_size - 1; in radeon_gtt_location() 631 mc->gtt_size >> 20, mc->gtt_start, mc->gtt_end); in radeon_gtt_location() 1154 rdev->mc.gtt_size = (uint64_t)radeon_gart_size << 20; in radeon_check_arguments() 1320 rdev->mc.gtt_size = 512 * 1024 * 1024; in radeon_device_init()
|
D | radeon_gart.c | 342 rdev->gart.num_cpu_pages = rdev->mc.gtt_size / PAGE_SIZE; in radeon_gart_init() 343 rdev->gart.num_gpu_pages = rdev->mc.gtt_size / RADEON_GPU_PAGE_SIZE; in radeon_gart_init()
|
D | radeon_ttm.c | 912 rdev->mc.gtt_size >> PAGE_SHIFT); in radeon_ttm_init() 918 (unsigned)(rdev->mc.gtt_size / (1024 * 1024))); in radeon_ttm_init() 1099 i_size_write(inode, rdev->mc.gtt_size); in radeon_ttm_gtt_open()
|
D | radeon_gem.c | 62 max_size = rdev->mc.gtt_size - rdev->gart_pin_size; in radeon_gem_object_create() 226 args->gart_size = rdev->mc.gtt_size; in radeon_gem_info_ioctl()
|
D | radeon_test.c | 59 n = rdev->mc.gtt_size - rdev->gart_pin_size; in radeon_do_test_moves()
|
D | rs600.c | 605 (unsigned)(rdev->mc.gtt_size >> 20), in rs600_gart_enable()
|
D | rs690.c | 199 rdev->mc.gtt_base_align = rdev->mc.gtt_size - 1; in rs690_mc_init()
|
D | r300.c | 181 (unsigned)(rdev->mc.gtt_size >> 20), in rv370_pcie_gart_enable()
|
D | rv770.c | 935 (unsigned)(rdev->mc.gtt_size >> 20), in rv770_pcie_gart_enable()
|
D | ni.c | 1356 (unsigned)(rdev->mc.gtt_size >> 20), in cayman_pcie_gart_enable()
|
D | radeon_asic.c | 175 rdev->mc.gtt_size = radeon_gart_size * 1024 * 1024; in radeon_agp_disable()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_device.c | 594 if (mc->gtt_size > size_bf) { in amdgpu_gtt_location() 596 mc->gtt_size = size_bf; in amdgpu_gtt_location() 598 mc->gtt_start = (mc->vram_start & ~mc->gtt_base_align) - mc->gtt_size; in amdgpu_gtt_location() 600 if (mc->gtt_size > size_af) { in amdgpu_gtt_location() 602 mc->gtt_size = size_af; in amdgpu_gtt_location() 606 mc->gtt_end = mc->gtt_start + mc->gtt_size - 1; in amdgpu_gtt_location() 608 mc->gtt_size >> 20, mc->gtt_start, mc->gtt_end); in amdgpu_gtt_location() 1389 adev->mc.gtt_size = 512 * 1024 * 1024; in amdgpu_device_init()
|
D | amdgpu_gart.c | 329 adev->gart.num_cpu_pages = adev->mc.gtt_size / PAGE_SIZE; in amdgpu_gart_init() 330 adev->gart.num_gpu_pages = adev->mc.gtt_size / AMDGPU_GPU_PAGE_SIZE; in amdgpu_gart_init()
|
D | amdgpu_kms.c | 387 vram_gtt.gtt_size = adev->mc.gtt_size; in amdgpu_info_ioctl() 388 vram_gtt.gtt_size -= adev->gart_pin_size; in amdgpu_info_ioctl()
|
D | amdgpu_cgs.c | 66 *mc_size = adev->mc.gtt_size; in amdgpu_cgs_gpu_mem_info() 67 *mem_size = adev->mc.gtt_size - adev->gart_pin_size; in amdgpu_cgs_gpu_mem_info()
|
D | gmc_v8_0.c | 455 adev->mc.gtt_size = max((1024ULL << 20), adev->mc.mc_vram_size); in gmc_v8_0_mc_init() 457 adev->mc.gtt_size = (uint64_t)amdgpu_gart_size << 20; in gmc_v8_0_mc_init() 687 (unsigned)(adev->mc.gtt_size >> 20), in gmc_v8_0_gart_enable()
|
D | gmc_v7_0.c | 415 adev->mc.gtt_size = max((1024ULL << 20), adev->mc.mc_vram_size); in gmc_v7_0_mc_init() 417 adev->mc.gtt_size = (uint64_t)amdgpu_gart_size << 20; in gmc_v7_0_mc_init() 608 (unsigned)(adev->mc.gtt_size >> 20), in gmc_v7_0_gart_enable()
|
D | amdgpu_ttm.c | 909 adev->mc.gtt_size >> PAGE_SHIFT); in amdgpu_ttm_init() 915 (unsigned)(adev->mc.gtt_size / (1024 * 1024))); in amdgpu_ttm_init() 1235 i_size_write(ent->d_inode, adev->mc.gtt_size); in amdgpu_ttm_debugfs_init()
|
D | amdgpu_test.c | 45 n = adev->mc.gtt_size - AMDGPU_IB_POOL_SIZE*64*1024; in amdgpu_do_test_moves()
|
D | amdgpu_gem.c | 64 max_size = adev->mc.gtt_size - adev->gart_pin_size; in amdgpu_gem_object_create()
|
D | amdgpu.h | 731 u64 gtt_size; member
|
/drivers/gpu/drm/i915/ |
D | i915_gem_gtt.c | 2752 u64 gtt_size, mappable_size; in i915_gem_init_global_gtt() local 2754 gtt_size = dev_priv->gtt.base.total; in i915_gem_init_global_gtt() 2757 i915_gem_setup_global_gtt(dev, 0, mappable_size, gtt_size); in i915_gem_init_global_gtt() 2862 size_t gtt_size) in ggtt_probe_common() argument 2880 dev_priv->gtt.gsm = ioremap_nocache(gtt_phys_addr, gtt_size); in ggtt_probe_common() 2882 dev_priv->gtt.gsm = ioremap_wc(gtt_phys_addr, gtt_size); in ggtt_probe_common() 2981 u64 gtt_size; in gen8_gmch_probe() local 2996 gtt_size = gen8_get_total_gtt_size(snb_gmch_ctl); in gen8_gmch_probe() 2999 gtt_size = chv_get_total_gtt_size(snb_gmch_ctl); in gen8_gmch_probe() 3002 gtt_size = gen8_get_total_gtt_size(snb_gmch_ctl); in gen8_gmch_probe() [all …]
|
D | i915_gem.c | 1985 uint32_t gtt_size; in i915_gem_get_gtt_size() local 1993 gtt_size = 1024*1024; in i915_gem_get_gtt_size() 1995 gtt_size = 512*1024; in i915_gem_get_gtt_size() 1997 while (gtt_size < size) in i915_gem_get_gtt_size() 1998 gtt_size <<= 1; in i915_gem_get_gtt_size() 2000 return gtt_size; in i915_gem_get_gtt_size()
|