Home
last modified time | relevance | path

Searched refs:mc_vram_size (Results 1 – 23 of 23) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Drv770.c1610 if (mc->mc_vram_size > 0xE0000000) { in r700_vram_gtt_location()
1614 mc->mc_vram_size = 0xE0000000; in r700_vram_gtt_location()
1620 if (mc->mc_vram_size > size_bf) { in r700_vram_gtt_location()
1623 mc->mc_vram_size = size_bf; in r700_vram_gtt_location()
1625 mc->vram_start = mc->gtt_start - mc->mc_vram_size; in r700_vram_gtt_location()
1627 if (mc->mc_vram_size > size_af) { in r700_vram_gtt_location()
1630 mc->mc_vram_size = size_af; in r700_vram_gtt_location()
1634 mc->vram_end = mc->vram_start + mc->mc_vram_size - 1; in r700_vram_gtt_location()
1636 mc->mc_vram_size >> 20, mc->vram_start, in r700_vram_gtt_location()
1681 rdev->mc.mc_vram_size = RREG32(CONFIG_MEMSIZE); in rv770_mc_init()
Dradeon_device.c571 if (mc->mc_vram_size > (rdev->mc.mc_mask - base + 1)) { in radeon_vram_location()
574 mc->mc_vram_size = mc->aper_size; in radeon_vram_location()
576 mc->vram_end = mc->vram_start + mc->mc_vram_size - 1; in radeon_vram_location()
580 mc->mc_vram_size = mc->aper_size; in radeon_vram_location()
582 mc->vram_end = mc->vram_start + mc->mc_vram_size - 1; in radeon_vram_location()
586 mc->mc_vram_size >> 20, mc->vram_start, in radeon_vram_location()
Dr600.c1394 if (mc->mc_vram_size > 0xE0000000) { in r600_vram_gtt_location()
1398 mc->mc_vram_size = 0xE0000000; in r600_vram_gtt_location()
1404 if (mc->mc_vram_size > size_bf) { in r600_vram_gtt_location()
1407 mc->mc_vram_size = size_bf; in r600_vram_gtt_location()
1409 mc->vram_start = mc->gtt_start - mc->mc_vram_size; in r600_vram_gtt_location()
1411 if (mc->mc_vram_size > size_af) { in r600_vram_gtt_location()
1414 mc->mc_vram_size = size_af; in r600_vram_gtt_location()
1418 mc->vram_end = mc->vram_start + mc->mc_vram_size - 1; in r600_vram_gtt_location()
1420 mc->mc_vram_size >> 20, mc->vram_start, in r600_vram_gtt_location()
1472 rdev->mc.mc_vram_size = RREG32(CONFIG_MEMSIZE); in r600_mc_init()
Dradeon_ttm.c980 i_size_write(inode, rdev->mc.mc_vram_size); in radeon_ttm_vram_open()
999 if (*pos >= rdev->mc.mc_vram_size) in radeon_ttm_vram_read()
Drs690.c160 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()
Dradeon_object.c467 rdev->mc.mc_vram_size >> 20, in radeon_bo_init()
Drs600.c882 rdev->mc.mc_vram_size = rdev->mc.real_vram_size; in rs600_mc_init()
Dr100.c2790 rdev->mc.mc_vram_size = rdev->mc.real_vram_size; in r100_vram_init_sizes()
2807 rdev->mc.mc_vram_size = config_aper_size; in r100_vram_init_sizes()
2809 rdev->mc.mc_vram_size = rdev->mc.real_vram_size; in r100_vram_init_sizes()
Dsi.c4195 if (mc->mc_vram_size > 0xFFC0000000ULL) { in si_vram_gtt_location()
4199 mc->mc_vram_size = 0xFFC0000000ULL; in si_vram_gtt_location()
4264 rdev->mc.mc_vram_size = tmp * 1024ULL * 1024ULL; in si_mc_init()
4265 rdev->mc.real_vram_size = rdev->mc.mc_vram_size; in si_mc_init()
Devergreen.c3755 rdev->mc.mc_vram_size = RREG32(CONFIG_MEMSIZE); in evergreen_mc_init()
3759 rdev->mc.mc_vram_size = RREG32(CONFIG_MEMSIZE) * 1024ULL * 1024ULL; in evergreen_mc_init()
Dradeon.h687 u64 mc_vram_size; member
Dcik.c5387 rdev->mc.mc_vram_size = RREG32(CONFIG_MEMSIZE) * 1024ULL * 1024ULL; in cik_mc_init()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_gmc.c153 mc->vram_end = mc->vram_start + mc->mc_vram_size - 1; in amdgpu_gmc_vram_location()
162 mc->mc_vram_size >> 20, mc->vram_start, in amdgpu_gmc_vram_location()
Damdgpu_ttm.c1655 while (len && pos < adev->gmc.mc_vram_size) { in amdgpu_ttm_access_memory()
1794 ALIGN((adev->gmc.mc_vram_size - adev->mman.discovery_tmr_size - SZ_1M), SZ_1M); in amdgpu_ttm_training_data_block_init()
1796 (adev->gmc.mc_vram_size - GDDR6_MEM_TRAINING_OFFSET); in amdgpu_ttm_training_data_block_init()
1970 adev->gmc.mc_vram_size), in amdgpu_ttm_init()
2314 if (*pos >= adev->gmc.mc_vram_size) in amdgpu_ttm_vram_read()
2317 size = min(size, (size_t)(adev->gmc.mc_vram_size - *pos)); in amdgpu_ttm_vram_read()
2350 if (*pos >= adev->gmc.mc_vram_size) in amdgpu_ttm_vram_write()
2357 if (*pos >= adev->gmc.mc_vram_size) in amdgpu_ttm_vram_write()
2583 i_size_write(ent->d_inode, adev->gmc.mc_vram_size); in amdgpu_ttm_debugfs_init()
Damdgpu_gmc.h164 u64 mc_vram_size; member
Dgmc_v10_0.c724 adev->gmc.mc_vram_size = in gmc_v10_0_mc_init()
726 adev->gmc.real_vram_size = adev->gmc.mc_vram_size; in gmc_v10_0_mc_init()
Damdgpu_vram_mgr.c328 max_bytes = adev->gmc.mc_vram_size; in amdgpu_vram_mgr_new()
Dgmc_v9_0.c1267 adev->gmc.mc_vram_size = in gmc_v9_0_mc_init()
1269 adev->gmc.real_vram_size = adev->gmc.mc_vram_size; in gmc_v9_0_mc_init()
Dgmc_v8_0.c581 adev->gmc.mc_vram_size = tmp * 1024ULL * 1024ULL; in gmc_v8_0_mc_init()
582 adev->gmc.real_vram_size = adev->gmc.mc_vram_size; in gmc_v8_0_mc_init()
Dgmc_v6_0.c319 adev->gmc.mc_vram_size = RREG32(mmCONFIG_MEMSIZE) * 1024ULL * 1024ULL; in gmc_v6_0_mc_init()
Damdgpu_ras.c322 if ((data.inject.address >= adev->gmc.mc_vram_size) || in amdgpu_ras_debugfs_ctrl_write()
1795 val = adev->gmc.mc_vram_size; in amdgpu_ras_validate_threshold()
Damdgpu_object.c1093 adev->gmc.mc_vram_size >> 20, in amdgpu_bo_init()
Dgmc_v7_0.c372 adev->gmc.mc_vram_size = RREG32(mmCONFIG_MEMSIZE) * 1024ULL * 1024ULL; in gmc_v7_0_mc_init()