Home
last modified time | relevance | path

Searched refs:gart_size (Results 1 – 16 of 16) sorted by relevance

/linux-6.1.9/drivers/char/agp/
Dhp-agp.c65 u64 gart_size; member
105 hp->gart_size = HP_ZX1_GART_SIZE; in hp_zx1_ioc_shared()
106 hp->gatt_entries = hp->gart_size / hp->io_page_size; in hp_zx1_ioc_shared()
150 hp->gart_size = HP_ZX1_GART_SIZE; in hp_zx1_ioc_owner()
151 hp->gart_base = hp->iova_base + HP_ZX1_IOVA_SIZE - hp->gart_size; in hp_zx1_ioc_owner()
153 hp->gatt_entries = hp->gart_size / hp->io_page_size; in hp_zx1_ioc_owner()
231 size = hp_private.gart_size / MB(1); in hp_zx1_fetch_size()
283 writeq(hp->gart_base | ilog2(hp->gart_size), hp->ioc_regs+HP_ZX1_PCOM); in hp_zx1_tlbflush()
Dparisc-agp.c45 u64 gart_size; member
69 size = parisc_agp_info.gart_size / MB(1); in parisc_agp_fetch_size()
93 writeq(info->gart_base | ilog2(info->gart_size), info->ioc_regs+IOC_PCOM); in parisc_agp_tlbflush()
267 info->gart_size = PLUTO_GART_SIZE; in agp_ioc_init()
268 info->gatt_entries = info->gart_size / info->io_page_size; in agp_ioc_init()
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_gmc.c243 mc->gart_end = mc->gart_start + mc->gart_size - 1; in amdgpu_gmc_sysvm_location()
250 mc->gart_size >> 20, mc->gart_start, mc->gart_end); in amdgpu_gmc_sysvm_location()
276 if (mc->gart_size > max(size_bf, size_af)) { in amdgpu_gmc_gart_location()
278 mc->gart_size = max(size_bf, size_af); in amdgpu_gmc_gart_location()
281 if ((size_bf >= mc->gart_size && size_bf < size_af) || in amdgpu_gmc_gart_location()
282 (size_af < mc->gart_size)) in amdgpu_gmc_gart_location()
285 mc->gart_start = max_mc_address - mc->gart_size + 1; in amdgpu_gmc_gart_location()
288 mc->gart_end = mc->gart_start + mc->gart_size - 1; in amdgpu_gmc_gart_location()
290 mc->gart_size >> 20, mc->gart_start, mc->gart_end); in amdgpu_gmc_gart_location()
Damdgpu_gart.c295 adev->gart.num_cpu_pages = adev->gmc.gart_size / PAGE_SIZE; in amdgpu_gart_init()
296 adev->gart.num_gpu_pages = adev->gmc.gart_size / AMDGPU_GPU_PAGE_SIZE; in amdgpu_gart_init()
Dgmc_v6_0.c336 adev->gmc.gart_size = 256ULL << 20; in gmc_v6_0_mc_init()
342 adev->gmc.gart_size = 1024ULL << 20; in gmc_v6_0_mc_init()
346 adev->gmc.gart_size = (u64)amdgpu_gart_size << 20; in gmc_v6_0_mc_init()
349 adev->gmc.gart_size += adev->pm.smu_prv_buffer_size; in gmc_v6_0_mc_init()
557 (unsigned)(adev->gmc.gart_size >> 20), in gmc_v6_0_gart_enable()
Dgmc_v7_0.c402 adev->gmc.gart_size = 256ULL << 20; in gmc_v7_0_mc_init()
410 adev->gmc.gart_size = 1024ULL << 20; in gmc_v7_0_mc_init()
415 adev->gmc.gart_size = (u64)amdgpu_gart_size << 20; in gmc_v7_0_mc_init()
418 adev->gmc.gart_size += adev->pm.smu_prv_buffer_size; in gmc_v7_0_mc_init()
711 (unsigned)(adev->gmc.gart_size >> 20), in gmc_v7_0_gart_enable()
Dgmc_v10_0.c844 adev->gmc.gart_size = 512ULL << 20; in gmc_v10_0_mc_init()
850 adev->gmc.gart_size = 1024ULL << 20; in gmc_v10_0_mc_init()
854 adev->gmc.gart_size = (u64)amdgpu_gart_size << 20; in gmc_v10_0_mc_init()
1083 (unsigned)(adev->gmc.gart_size >> 20), in gmc_v10_0_gart_enable()
Dgmc_v11_0.c701 adev->gmc.gart_size = 512ULL << 20; in gmc_v11_0_mc_init()
703 adev->gmc.gart_size = (u64)amdgpu_gart_size << 20; in gmc_v11_0_mc_init()
888 (unsigned)(adev->gmc.gart_size >> 20), in gmc_v11_0_gart_enable()
Dgmc_v9_0.c1488 adev->gmc.gart_size = 512ULL << 20; in gmc_v9_0_mc_init()
1493 adev->gmc.gart_size = 1024ULL << 20; in gmc_v9_0_mc_init()
1497 adev->gmc.gart_size = (u64)amdgpu_gart_size << 20; in gmc_v9_0_mc_init()
1500 adev->gmc.gart_size += adev->pm.smu_prv_buffer_size; in gmc_v9_0_mc_init()
1809 (unsigned)(adev->gmc.gart_size >> 20)); in gmc_v9_0_gart_enable()
Dgmc_v8_0.c603 adev->gmc.gart_size = 256ULL << 20; in gmc_v8_0_mc_init()
609 adev->gmc.gart_size = 1024ULL << 20; in gmc_v8_0_mc_init()
613 adev->gmc.gart_size = (u64)amdgpu_gart_size << 20; in gmc_v8_0_mc_init()
616 adev->gmc.gart_size += adev->pm.smu_prv_buffer_size; in gmc_v8_0_mc_init()
951 (unsigned)(adev->gmc.gart_size >> 20), in gmc_v8_0_gart_enable()
Damdgpu_gtt_mgr.c289 size = (adev->gmc.gart_size >> PAGE_SHIFT) - start; in amdgpu_gtt_mgr_init()
Damdgpu_gmc.h197 u64 gart_size; member
Damdgpu_ttm.c942 placements.lpfn = adev->gmc.gart_size >> PAGE_SHIFT; in amdgpu_ttm_alloc_gart()
Damdgpu_device.c3538 adev->gmc.gart_size = 512 * 1024 * 1024; in amdgpu_device_init()
/linux-6.1.9/include/uapi/drm/
Dradeon_drm.h575 int gart_size; member
800 __u64 gart_size; member
/linux-6.1.9/drivers/gpu/drm/radeon/
Dradeon_gem.c308 args->gart_size = rdev->mc.gtt_size; in radeon_gem_info_ioctl()
309 args->gart_size -= rdev->gart_pin_size; in radeon_gem_info_ioctl()