Home
last modified time | relevance | path

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

12

/linux/drivers/gpu/drm/xe/
H A Dxe_ttm_sys_mgr.c108 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 Drs400.c46 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 Dradeon_agp.c338 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 Dradeon_device.c610 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 Dradeon_gart.c344 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 Dradeon_ttm.c79 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 Dradeon_gem.c111 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 Dradeon_test.c60 n = rdev->mc.gtt_size - rdev->gart_pin_size; in radeon_do_test_moves()
H A Drs600.c620 (unsigned)(rdev->mc.gtt_size >> 20), in rs600_gart_enable()
H A Drs690.c200 rdev->mc.gtt_base_align = rdev->mc.gtt_size - 1; in rs690_mc_init()
H A Dr300.c185 (unsigned)(rdev->mc.gtt_size >> 20), in rv370_pcie_gart_enable()
H A Drv770.c938 (unsigned)(rdev->mc.gtt_size >> 20), in rv770_pcie_gart_enable()
H A Dni.c1326 (unsigned)(rdev->mc.gtt_size >> 20), in cayman_pcie_gart_enable()
H A Dradeon_asic.c176 rdev->mc.gtt_size = radeon_gart_size * 1024 * 1024; in radeon_agp_disable()
H A Dradeon.h643 u64 gtt_size; member
H A Dr100.c687 (unsigned)(rdev->mc.gtt_size >> 20), in r100_pci_gart_enable()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_gtt_mgr.c275 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 Damdgpu_ttm.h127 int amdgpu_gtt_mgr_init(struct amdgpu_device *adev, uint64_t gtt_size);
H A Damdgpu_ttm.c1847 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 Damdgpu_kms.c739 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 Dlsdc_ttm.c560 ldev->gtt_size = 512 << 20; in lsdc_ttm_init()
562 num_gtt_pages = ldev->gtt_size >> PAGE_SHIFT; in lsdc_ttm_init()
H A Dlsdc_drv.h284 resource_size_t gtt_size; member
/linux/drivers/gpu/drm/i915/
H A Di915_gpu_error.h42 u64 gtt_size; member
H A Di915_gpu_error.c557 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 Damdgpu_drm.h1021 __u64 gtt_size; member

12