/linux/drivers/gpu/drm/xe/ |
H A D | xe_ttm_sys_mgr.c | 108 u64 gtt_size; in xe_ttm_sys_mgr_init() local 111 gtt_size = (u64)si.totalram * si.mem_unit; in xe_ttm_sys_mgr_init() 113 gtt_size /= 2; in xe_ttm_sys_mgr_init() 117 ttm_resource_manager_init(man, &xe->ttm, gtt_size >> PAGE_SHIFT); in xe_ttm_sys_mgr_init()
|
/linux/drivers/gpu/drm/radeon/ |
H A D | rs400.c | 46 switch (rdev->mc.gtt_size/(1024*1024)) { in rs400_gart_adjust_size() 57 (unsigned)(rdev->mc.gtt_size >> 20)); in rs400_gart_adjust_size() 60 rdev->mc.gtt_size = 32 * 1024 * 1024; in rs400_gart_adjust_size() 90 switch (rdev->mc.gtt_size / (1024 * 1024)) { in rs400_gart_init() 120 switch (rdev->mc.gtt_size / (1024 * 1024)) { in rs400_gart_enable() 192 (unsigned)(rdev->mc.gtt_size >> 20), in rs400_gart_enable() 279 rdev->mc.gtt_base_align = rdev->mc.gtt_size - 1; in rs400_mc_init()
|
H A D | radeon_agp.c | 338 rdev->mc.gtt_size = rdev->agp->agp_info.aper_size << 20; in radeon_agp_init() 340 rdev->mc.gtt_end = rdev->mc.gtt_start + rdev->mc.gtt_size - 1; in radeon_agp_init() 342 rdev->mc.gtt_size >> 20, rdev->mc.gtt_start, rdev->mc.gtt_end); in radeon_agp_init()
|
H A D | radeon_device.c | 610 if (mc->gtt_size > size_bf) { in radeon_gtt_location() 612 mc->gtt_size = size_bf; in radeon_gtt_location() 614 mc->gtt_start = (mc->vram_start & ~mc->gtt_base_align) - mc->gtt_size; in radeon_gtt_location() 616 if (mc->gtt_size > size_af) { in radeon_gtt_location() 618 mc->gtt_size = size_af; in radeon_gtt_location() 622 mc->gtt_end = mc->gtt_start + mc->gtt_size - 1; in radeon_gtt_location() 624 mc->gtt_size >> 20, mc->gtt_start, mc->gtt_end); in radeon_gtt_location() 1137 rdev->mc.gtt_size = (uint64_t)radeon_gart_size << 20; in radeon_check_arguments() 1292 rdev->mc.gtt_size = 512 * 1024 * 1024; in radeon_device_init()
|
H A D | radeon_gart.c | 344 rdev->gart.num_cpu_pages = rdev->mc.gtt_size / PAGE_SIZE; in radeon_gart_init() 345 rdev->gart.num_gpu_pages = rdev->mc.gtt_size / RADEON_GPU_PAGE_SIZE; in radeon_gart_init()
|
H A D | radeon_ttm.c | 79 true, rdev->mc.gtt_size >> PAGE_SHIFT); in radeon_ttm_init_gtt() 727 (unsigned)(rdev->mc.gtt_size / (1024 * 1024))); in radeon_ttm_init() 837 i_size_write(inode, rdev->mc.gtt_size); in radeon_ttm_gtt_open()
|
H A D | radeon_gem.c | 111 max_size = rdev->mc.gtt_size - rdev->gart_pin_size; in radeon_gem_object_create() 306 args->gart_size = rdev->mc.gtt_size; in radeon_gem_info_ioctl()
|
H A D | radeon_test.c | 60 n = rdev->mc.gtt_size - rdev->gart_pin_size; in radeon_do_test_moves()
|
H A D | rs600.c | 620 (unsigned)(rdev->mc.gtt_size >> 20), in rs600_gart_enable()
|
H A D | rs690.c | 200 rdev->mc.gtt_base_align = rdev->mc.gtt_size - 1; in rs690_mc_init()
|
H A D | r300.c | 185 (unsigned)(rdev->mc.gtt_size >> 20), in rv370_pcie_gart_enable()
|
H A D | rv770.c | 938 (unsigned)(rdev->mc.gtt_size >> 20), in rv770_pcie_gart_enable()
|
H A D | ni.c | 1326 (unsigned)(rdev->mc.gtt_size >> 20), in cayman_pcie_gart_enable()
|
H A D | radeon_asic.c | 176 rdev->mc.gtt_size = radeon_gart_size * 1024 * 1024; in radeon_agp_disable()
|
H A D | radeon.h | 643 u64 gtt_size; member
|
H A D | r100.c | 687 (unsigned)(rdev->mc.gtt_size >> 20), in r100_pci_gart_enable()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_gtt_mgr.c | 275 int amdgpu_gtt_mgr_init(struct amdgpu_device *adev, uint64_t gtt_size) in amdgpu_gtt_mgr_init() argument 284 ttm_resource_manager_init(man, &adev->mman.bdev, gtt_size); in amdgpu_gtt_mgr_init()
|
H A D | amdgpu_ttm.h | 127 int amdgpu_gtt_mgr_init(struct amdgpu_device *adev, uint64_t gtt_size);
|
H A D | amdgpu_ttm.c | 1847 uint64_t gtt_size; in amdgpu_ttm_init() local 1960 gtt_size = ttm_tt_pages_limit() << PAGE_SHIFT; in amdgpu_ttm_init() 1962 gtt_size = (uint64_t)amdgpu_gtt_size << 20; in amdgpu_ttm_init() 1965 r = amdgpu_gtt_mgr_init(adev, gtt_size); in amdgpu_ttm_init() 1971 (unsigned int)(gtt_size / (1024 * 1024))); in amdgpu_ttm_init()
|
H A D | amdgpu_kms.c | 739 vram_gtt.gtt_size = ttm_manager_type(&adev->mman.bdev, TTM_PL_TT)->size; in amdgpu_info_ioctl() 740 vram_gtt.gtt_size -= atomic64_read(&adev->gart_pin_size); in amdgpu_info_ioctl()
|
/linux/drivers/gpu/drm/loongson/ |
H A D | lsdc_ttm.c | 560 ldev->gtt_size = 512 << 20; in lsdc_ttm_init() 562 num_gtt_pages = ldev->gtt_size >> PAGE_SHIFT; in lsdc_ttm_init()
|
H A D | lsdc_drv.h | 284 resource_size_t gtt_size; member
|
/linux/drivers/gpu/drm/i915/ |
H A D | i915_gpu_error.h | 42 u64 gtt_size; member
|
H A D | i915_gpu_error.c | 557 u64 end = start + batch->gtt_size; in error_print_engine() 1120 dst->gtt_size = vma_res->node_size; in i915_vma_coredump_create()
|
/linux/include/uapi/drm/ |
H A D | amdgpu_drm.h | 1021 __u64 gtt_size; member
|