Home
last modified time | relevance | path

Searched refs:gtt_size (Results 1 – 25 of 31) sorted by relevance

12

/drivers/gpu/drm/radeon/
Drs400.c41 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()
Dradeon_agp.c245 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()
Dradeon_device.c617 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()
Dradeon_gart.c342 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()
Dradeon_ttm.c912 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()
Dradeon_gem.c62 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()
Dradeon_test.c59 n = rdev->mc.gtt_size - rdev->gart_pin_size; in radeon_do_test_moves()
Drs600.c605 (unsigned)(rdev->mc.gtt_size >> 20), in rs600_gart_enable()
Drs690.c199 rdev->mc.gtt_base_align = rdev->mc.gtt_size - 1; in rs690_mc_init()
Dr300.c181 (unsigned)(rdev->mc.gtt_size >> 20), in rv370_pcie_gart_enable()
Drv770.c935 (unsigned)(rdev->mc.gtt_size >> 20), in rv770_pcie_gart_enable()
Dni.c1356 (unsigned)(rdev->mc.gtt_size >> 20), in cayman_pcie_gart_enable()
Dradeon_asic.c175 rdev->mc.gtt_size = radeon_gart_size * 1024 * 1024; in radeon_agp_disable()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_device.c594 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()
Damdgpu_gart.c329 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()
Damdgpu_kms.c387 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()
Damdgpu_cgs.c66 *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()
Dgmc_v8_0.c455 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()
Dgmc_v7_0.c415 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()
Damdgpu_ttm.c909 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()
Damdgpu_test.c45 n = adev->mc.gtt_size - AMDGPU_IB_POOL_SIZE*64*1024; in amdgpu_do_test_moves()
Damdgpu_gem.c64 max_size = adev->mc.gtt_size - adev->gart_pin_size; in amdgpu_gem_object_create()
Damdgpu.h731 u64 gtt_size; member
/drivers/gpu/drm/i915/
Di915_gem_gtt.c2752 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 …]
Di915_gem.c1985 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()

12