/linux-6.6.21/drivers/gpu/drm/radeon/ |
D | rv770.c | 1607 if (mc->mc_vram_size > 0xE0000000) { in r700_vram_gtt_location() 1611 mc->mc_vram_size = 0xE0000000; in r700_vram_gtt_location() 1617 if (mc->mc_vram_size > size_bf) { in r700_vram_gtt_location() 1620 mc->mc_vram_size = size_bf; in r700_vram_gtt_location() 1622 mc->vram_start = mc->gtt_start - mc->mc_vram_size; in r700_vram_gtt_location() 1624 if (mc->mc_vram_size > size_af) { in r700_vram_gtt_location() 1627 mc->mc_vram_size = size_af; in r700_vram_gtt_location() 1631 mc->vram_end = mc->vram_start + mc->mc_vram_size - 1; in r700_vram_gtt_location() 1633 mc->mc_vram_size >> 20, mc->vram_start, in r700_vram_gtt_location() 1678 rdev->mc.mc_vram_size = RREG32(CONFIG_MEMSIZE); in rv770_mc_init()
|
D | radeon_device.c | 572 if (mc->mc_vram_size > (rdev->mc.mc_mask - base + 1)) { in radeon_vram_location() 575 mc->mc_vram_size = mc->aper_size; in radeon_vram_location() 577 mc->vram_end = mc->vram_start + mc->mc_vram_size - 1; in radeon_vram_location() 581 mc->mc_vram_size = mc->aper_size; in radeon_vram_location() 583 mc->vram_end = mc->vram_start + mc->mc_vram_size - 1; in radeon_vram_location() 587 mc->mc_vram_size >> 20, mc->vram_start, in radeon_vram_location()
|
D | r600.c | 1393 if (mc->mc_vram_size > 0xE0000000) { in r600_vram_gtt_location() 1397 mc->mc_vram_size = 0xE0000000; in r600_vram_gtt_location() 1403 if (mc->mc_vram_size > size_bf) { in r600_vram_gtt_location() 1406 mc->mc_vram_size = size_bf; in r600_vram_gtt_location() 1408 mc->vram_start = mc->gtt_start - mc->mc_vram_size; in r600_vram_gtt_location() 1410 if (mc->mc_vram_size > size_af) { in r600_vram_gtt_location() 1413 mc->mc_vram_size = size_af; in r600_vram_gtt_location() 1417 mc->vram_end = mc->vram_start + mc->mc_vram_size - 1; in r600_vram_gtt_location() 1419 mc->mc_vram_size >> 20, mc->vram_start, in r600_vram_gtt_location() 1471 rdev->mc.mc_vram_size = RREG32(CONFIG_MEMSIZE); in r600_mc_init()
|
D | radeon_ttm.c | 792 i_size_write(inode, rdev->mc.mc_vram_size); in radeon_ttm_vram_open() 811 if (*pos >= rdev->mc.mc_vram_size) in radeon_ttm_vram_read()
|
D | rs690.c | 160 rdev->mc.mc_vram_size = rdev->mc.real_vram_size; in rs690_mc_init() 175 rdev->mc.mc_vram_size = rdev->mc.real_vram_size; in rs690_mc_init()
|
D | radeon_object.c | 402 rdev->mc.mc_vram_size >> 20, in radeon_bo_init()
|
D | rs600.c | 889 rdev->mc.mc_vram_size = rdev->mc.real_vram_size; in rs600_mc_init()
|
D | si.c | 4194 if (mc->mc_vram_size > 0xFFC0000000ULL) { in si_vram_gtt_location() 4198 mc->mc_vram_size = 0xFFC0000000ULL; in si_vram_gtt_location() 4263 rdev->mc.mc_vram_size = tmp * 1024ULL * 1024ULL; in si_mc_init() 4264 rdev->mc.real_vram_size = rdev->mc.mc_vram_size; in si_mc_init()
|
D | r100.c | 2797 rdev->mc.mc_vram_size = rdev->mc.real_vram_size; in r100_vram_init_sizes() 2814 rdev->mc.mc_vram_size = config_aper_size; in r100_vram_init_sizes() 2816 rdev->mc.mc_vram_size = rdev->mc.real_vram_size; in r100_vram_init_sizes()
|
D | evergreen.c | 3757 rdev->mc.mc_vram_size = RREG32(CONFIG_MEMSIZE); in evergreen_mc_init() 3761 rdev->mc.mc_vram_size = RREG32(CONFIG_MEMSIZE) * 1024ULL * 1024ULL; in evergreen_mc_init()
|
D | radeon.h | 642 u64 mc_vram_size; member
|
D | cik.c | 5377 rdev->mc.mc_vram_size = RREG32(CONFIG_MEMSIZE) * 1024ULL * 1024ULL; in cik_mc_init()
|
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_gmc.c | 209 mc->vram_end = mc->vram_start + mc->mc_vram_size - 1; in amdgpu_gmc_vram_location() 224 mc->mc_vram_size >> 20, mc->vram_start, in amdgpu_gmc_vram_location() 255 mc->mc_vram_size >> 20, mc->vram_start, in amdgpu_gmc_sysvm_location()
|
D | amdgpu_ttm.c | 1690 ALIGN((adev->gmc.mc_vram_size - reserve_size - SZ_1M), SZ_1M); in amdgpu_ttm_training_data_block_init() 1692 (adev->gmc.mc_vram_size - GDDR6_MEM_TRAINING_OFFSET); in amdgpu_ttm_training_data_block_init() 2330 if (*pos >= adev->gmc.mc_vram_size) in amdgpu_ttm_vram_read() 2333 size = min(size, (size_t)(adev->gmc.mc_vram_size - *pos)); in amdgpu_ttm_vram_read() 2366 if (*pos >= adev->gmc.mc_vram_size) in amdgpu_ttm_vram_write() 2372 if (*pos >= adev->gmc.mc_vram_size) in amdgpu_ttm_vram_write() 2520 &amdgpu_ttm_vram_fops, adev->gmc.mc_vram_size); in amdgpu_ttm_debugfs_init()
|
D | amdgpu_gmc.h | 210 u64 mc_vram_size; member
|
D | gmc_v11_0.c | 707 adev->gmc.mc_vram_size = in gmc_v11_0_mc_init() 709 adev->gmc.real_vram_size = adev->gmc.mc_vram_size; in gmc_v11_0_mc_init()
|
D | gmc_v10_0.c | 805 adev->gmc.mc_vram_size = in gmc_v10_0_mc_init() 807 adev->gmc.real_vram_size = adev->gmc.mc_vram_size; in gmc_v10_0_mc_init()
|
D | amdgpu_ras.c | 158 if ((address >= adev->gmc.mc_vram_size) || in amdgpu_reserve_page_direct() 493 if ((data.inject.address >= adev->gmc.mc_vram_size && in amdgpu_ras_debugfs_ctrl_write() 494 adev->gmc.mc_vram_size) || in amdgpu_ras_debugfs_ctrl_write() 2282 u64 val = adev->gmc.mc_vram_size; in amdgpu_ras_validate_threshold()
|
D | gmc_v9_0.c | 1704 adev->gmc.mc_vram_size = in gmc_v9_0_mc_init() 1708 adev->gmc.mc_vram_size = 0; in gmc_v9_0_mc_init() 1710 adev->gmc.real_vram_size = adev->gmc.mc_vram_size; in gmc_v9_0_mc_init()
|
D | gmc_v8_0.c | 557 adev->gmc.mc_vram_size = tmp * 1024ULL * 1024ULL; in gmc_v8_0_mc_init() 558 adev->gmc.real_vram_size = adev->gmc.mc_vram_size; in gmc_v8_0_mc_init()
|
D | gmc_v6_0.c | 311 adev->gmc.mc_vram_size = RREG32(mmCONFIG_MEMSIZE) * 1024ULL * 1024ULL; in gmc_v6_0_mc_init()
|
D | amdgpu_vram_mgr.c | 443 max_bytes = adev->gmc.mc_vram_size; in amdgpu_vram_mgr_new()
|
D | gmc_v7_0.c | 365 adev->gmc.mc_vram_size = RREG32(mmCONFIG_MEMSIZE) * 1024ULL * 1024ULL; in gmc_v7_0_mc_init()
|
D | amdgpu_object.c | 1087 adev->gmc.mc_vram_size >> 20, in amdgpu_bo_init()
|
D | amdgpu_psp.c | 340 db_header_pos = adev->gmc.mc_vram_size - PSP_RUNTIME_DB_OFFSET; in psp_get_runtime_db_entry()
|