/linux/drivers/gpu/drm/ast/ |
H A D | ast_mm.c | 39 u32 vram_size; in ast_get_vram_size() local 41 vram_size = AST_VIDMEM_DEFAULT_SIZE; in ast_get_vram_size() 45 vram_size = AST_VIDMEM_SIZE_8M; in ast_get_vram_size() 48 vram_size = AST_VIDMEM_SIZE_16M; in ast_get_vram_size() 51 vram_size = AST_VIDMEM_SIZE_32M; in ast_get_vram_size() 54 vram_size = AST_VIDMEM_SIZE_64M; in ast_get_vram_size() 61 vram_size -= 0x100000; in ast_get_vram_size() 64 vram_size -= 0x200000; in ast_get_vram_size() 67 vram_size -= 0x400000; in ast_get_vram_size() 71 return vram_size; in ast_get_vram_size() [all …]
|
H A D | ast_main.c | 297 if (ast->vram_size < pci_resource_len(pdev, 0)) { in ast_device_create() 298 ast->dp501_fw_buf = pci_iomap_range(pdev, 0, ast->vram_size, 0); in ast_device_create()
|
H A D | ast_post.c | 378 u32 vram_size; member 1058 switch (param->vram_size) { in get_ddr3_info() 1429 switch (param->vram_size) { in get_ddr2_info() 1621 param.vram_size = AST_VIDMEM_SIZE_8M; in ast_post_chip_2300() 1625 param.vram_size = AST_VIDMEM_SIZE_16M; in ast_post_chip_2300() 1629 param.vram_size = AST_VIDMEM_SIZE_32M; in ast_post_chip_2300() 1633 param.vram_size = AST_VIDMEM_SIZE_64M; in ast_post_chip_2300()
|
H A D | ast_drv.h | 185 unsigned long vram_size; member
|
/linux/arch/arm/mach-rpc/ |
H A D | riscpc.c | 37 unsigned int vram_size; variable 48 vram_size += PAGE_SIZE * 256; in parse_tag_acorn() 51 vram_size += PAGE_SIZE * 256; in parse_tag_acorn() 57 if (vram_size) { in parse_tag_acorn() 59 desc->video_end = 0x02000000 + vram_size; in parse_tag_acorn()
|
/linux/drivers/gpu/drm/mgag200/ |
H A D | mgag200_g200ew3.c | 151 resource_size_t vram_size = resource_size(mdev->vram_res); in mgag200_g200ew3_device_probe_vram() local 153 if (vram_size >= 0x1000000) in mgag200_g200ew3_device_probe_vram() 154 vram_size = vram_size - 0x400000; in mgag200_g200ew3_device_probe_vram() 155 return mgag200_probe_vram(mdev->vram, vram_size); in mgag200_g200ew3_device_probe_vram()
|
H A D | mgag200_drv.c | 54 size_t vram_size; in mgag200_probe_vram() local 60 vram_size = size; in mgag200_probe_vram() 62 for (offset = 0x100000; offset < vram_size; offset += 0x4000) { in mgag200_probe_vram()
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_vram.c | 217 static int tile_vram_size(struct xe_tile *tile, u64 *vram_size, in tile_vram_size() argument 236 *vram_size = *tile_size; in tile_vram_size() 264 *vram_size = offset - *tile_offset; in tile_vram_size() 300 u64 vram_size; in xe_vram_probe() local 309 err = tile_vram_size(tile, &vram_size, &tile_size, &tile_offset); in xe_vram_probe() 324 err = tile_vram_size(tile, &vram_size, &tile_size, &tile_offset); in xe_vram_probe() 330 tile->mem.vram.io_size = min_t(u64, vram_size, io_size); in xe_vram_probe() 338 tile->mem.vram.usable_size = vram_size; in xe_vram_probe() 351 available_size += vram_size; in xe_vram_probe()
|
/linux/drivers/gpu/drm/ |
H A D | drm_gem_vram_helper.c | 971 uint64_t vram_base, size_t vram_size) in drm_vram_mm_init() argument 976 vmm->vram_size = vram_size; in drm_vram_mm_init() 986 false, vram_size >> PAGE_SHIFT); in drm_vram_mm_init() 1004 size_t vram_size) in drm_vram_helper_alloc_mm() argument 1015 ret = drm_vram_mm_init(dev->vram_mm, dev, vram_base, vram_size); in drm_vram_helper_alloc_mm() 1058 size_t vram_size) in drmm_vram_helper_init() argument 1065 vram_mm = drm_vram_helper_alloc_mm(dev, vram_base, vram_size); in drmm_vram_helper_init() 1087 max_fbpages = (vmm->vram_size / 2) >> PAGE_SHIFT; in drm_vram_helper_mode_valid_internal()
|
/linux/include/drm/ |
H A D | drm_gem_vram_helper.h | 181 size_t vram_size; member 207 size_t vram_size);
|
/linux/drivers/video/fbdev/omap/ |
H A D | lcdc.c | 68 unsigned long vram_size; member 633 lcdc.vram_size = frame_size; in alloc_fbmem() 634 lcdc.vram_virt = dma_alloc_wc(lcdc.fbdev->dev, lcdc.vram_size, in alloc_fbmem() 645 memset(lcdc.vram_virt, 0, lcdc.vram_size); in alloc_fbmem() 652 dma_free_wc(lcdc.fbdev->dev, lcdc.vram_size, lcdc.vram_virt, in free_fbmem()
|
/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_drv.c | 715 dev_priv->vram_size >> PAGE_SHIFT); in vmw_vram_manager_init() 746 dev->vram_size = pci_resource_len(pdev, 2); in vmw_setup_pci_resources() 763 dev->vram_size = pci_resource_len(pdev, 1); in vmw_setup_pci_resources() 794 &dev->vram_start, (uint64_t)dev->vram_size / 1024); in vmw_setup_pci_resources() 928 dev_priv->vram_size = vmw_read(dev_priv, SVGA_REG_VRAM_SIZE); in vmw_driver_load() 942 dev_priv->memory_size -= dev_priv->vram_size; in vmw_driver_load() 984 dev_priv->max_primary_mem = dev_priv->vram_size; in vmw_driver_load() 988 (u64)dev_priv->vram_size / 1024, in vmw_driver_load()
|
/linux/drivers/video/fbdev/aty/ |
H A D | aty128fb.c | 442 u32 vram_size; /* onboard video ram */ member 1090 if ((u32)(vxres * vyres * bytpp) > par->vram_size) { in aty128_var_to_crtc() 1919 if (par->vram_size % (1024 * 1024) == 0) in aty128_init() 1920 printk("%dM %s\n", par->vram_size / (1024*1024), par->mem->name); in aty128_init() 1922 printk("%dk %s\n", par->vram_size / 1024, par->mem->name); in aty128_init() 2097 par->vram_size = aty_ld_le32(CNFG_MEMSIZE) & 0x03FFFFFF; in aty128_probe() 2100 info->screen_base = ioremap_wc(fb_addr, par->vram_size); in aty128_probe() 2107 info->fix.smem_len = par->vram_size; in aty128_probe() 2139 par->vram_size); in aty128_probe()
|
/linux/drivers/video/fbdev/ |
H A D | acornfb.c | 95 extern unsigned int vram_size; /* set by setup.c */ 977 if (vram_size && !current_par.dram_size) { in acornfb_probe() 978 size = vram_size; in acornfb_probe() 979 current_par.vram_half_sam = vram_size / 1024; in acornfb_probe()
|
/linux/drivers/gpu/drm/loongson/ |
H A D | lsdc_drv.c | 181 ldev->vram_size = size; in lsdc_get_dedicated_vram() 217 ldev->vram_size, in lsdc_create_device()
|
H A D | lsdc_gem.c | 224 if (size > ldev->vram_size / 2) { in lsdc_dumb_create()
|
H A D | lsdc_drv.h | 281 resource_size_t vram_size; member
|
H A D | lsdc_ttm.c | 551 num_vram_pages = ldev->vram_size >> PAGE_SHIFT; in lsdc_ttm_init()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_gmc.c | 53 u64 vram_size = adev->gmc.xgmi.node_segment_size * adev->gmc.xgmi.num_physical_nodes; in amdgpu_gmc_pdb0_alloc() local 55 uint32_t npdes = (vram_size + (1ULL << pde0_page_shift) - 1) >> pde0_page_shift; in amdgpu_gmc_pdb0_alloc() 1010 u64 vram_size = adev->gmc.xgmi.node_segment_size * adev->gmc.xgmi.num_physical_nodes; in amdgpu_gmc_init_pdb0() local 1014 u64 vram_end = vram_addr + vram_size; in amdgpu_gmc_init_pdb0()
|
H A D | amdgpu_ttm.c | 1649 uint64_t vram_size = adev->gmc.visible_vram_size; in amdgpu_ttm_fw_reserve_vram_init() local 1655 adev->mman.fw_vram_usage_size > vram_size) in amdgpu_ttm_fw_reserve_vram_init() 1674 u64 vram_size = adev->gmc.visible_vram_size; in amdgpu_ttm_drv_reserve_vram_init() local 1680 adev->mman.drv_vram_usage_size > vram_size) in amdgpu_ttm_drv_reserve_vram_init()
|
H A D | amdgpu_discovery.c | 264 uint64_t vram_size; in amdgpu_discovery_read_binary_from_mem() local 285 vram_size = (uint64_t)RREG32(mmRCC_CONFIG_MEMSIZE) << 20; in amdgpu_discovery_read_binary_from_mem() 287 if (vram_size) { in amdgpu_discovery_read_binary_from_mem() 288 uint64_t pos = vram_size - DISCOVERY_TMR_OFFSET; in amdgpu_discovery_read_binary_from_mem()
|
/linux/drivers/gpu/drm/qxl/ |
H A D | qxl_ttm.c | 218 (unsigned int)qdev->vram_size / (1024 * 1024)); in qxl_ttm_init()
|
H A D | qxl_kms.c | 53 qdev->vram_size = rom->surface0_area_size; in qxl_check_device()
|
H A D | qxl_drv.h | 178 resource_size_t vram_base, vram_size; member
|
/linux/drivers/gpu/drm/nouveau/ |
H A D | nouveau_bo.c | 405 u64 vram_size = drm->client.device.info.ram_size; in set_placement_range() local 410 nvbo->bo.base.size < vram_size / 4) { in set_placement_range() 418 fpfn = (vram_size / 2) >> PAGE_SHIFT; in set_placement_range() 422 lpfn = (vram_size / 2) >> PAGE_SHIFT; in set_placement_range()
|