/drivers/gpu/drm/ast/ |
D | ast_main.c | 453 u32 vram_size; in ast_get_vram_info() local 456 vram_size = AST_VIDMEM_DEFAULT_SIZE; in ast_get_vram_info() 459 case 0: vram_size = AST_VIDMEM_SIZE_8M; break; in ast_get_vram_info() 460 case 1: vram_size = AST_VIDMEM_SIZE_16M; break; in ast_get_vram_info() 461 case 2: vram_size = AST_VIDMEM_SIZE_32M; break; in ast_get_vram_info() 462 case 3: vram_size = AST_VIDMEM_SIZE_64M; break; in ast_get_vram_info() 468 vram_size -= 0x100000; in ast_get_vram_info() 471 vram_size -= 0x200000; in ast_get_vram_info() 474 vram_size -= 0x400000; in ast_get_vram_info() 478 return vram_size; in ast_get_vram_info() [all …]
|
D | ast_post.c | 404 u32 vram_size; member 1084 switch (param->vram_size) { in get_ddr3_info() 1455 switch (param->vram_size) { in get_ddr2_info() 1647 param.vram_size = AST_VIDMEM_SIZE_8M; in ast_post_chip_2300() 1651 param.vram_size = AST_VIDMEM_SIZE_16M; in ast_post_chip_2300() 1655 param.vram_size = AST_VIDMEM_SIZE_32M; in ast_post_chip_2300() 1659 param.vram_size = AST_VIDMEM_SIZE_64M; in ast_post_chip_2300()
|
D | ast_drv.h | 100 uint32_t vram_size; member
|
D | ast_fb.c | 345 ast->fbdev->helper.fbdev->fix.smem_len = ast->vram_size - gpu_addr; in ast_fbdev_set_base()
|
D | ast_ttm.c | 265 ast->vram_size >> PAGE_SHIFT); in ast_mm_init()
|
/drivers/gpu/drm/mgag200/ |
D | mgag200_main.c | 85 unsigned int vram_size; in mga_probe_vram() local 91 vram_size = mdev->mc.vram_window; in mga_probe_vram() 93 if ((mdev->type == G200_EW3) && (vram_size >= 0x1000000)) { in mga_probe_vram() 94 vram_size = vram_size - 0x400000; in mga_probe_vram() 97 for (offset = 0x100000; offset < vram_size; offset += 0x4000) { in mga_probe_vram() 151 mdev->mc.vram_size = mga_probe_vram(mdev, mem); in mga_vram_init() 229 if (IS_G200_SE(mdev) && mdev->mc.vram_size < (2048*1024)) in mgag200_driver_load()
|
D | mgag200_fb.c | 217 info->apertures->ranges[0].size = mdev->mc.vram_size; in mgag200fb_create() 270 if (IS_G200_SE(mdev) && mdev->mc.vram_size < (2048*1024)) in mgag200_fbdev_init()
|
D | mgag200_drv.h | 172 resource_size_t vram_size; member
|
D | mgag200_ttm.c | 264 ret = ttm_bo_init_mm(bdev, TTM_PL_VRAM, mdev->mc.vram_size >> PAGE_SHIFT); in mgag200_mm_init()
|
/drivers/gpu/drm/cirrus/ |
D | cirrus_main.c | 93 release_mem_region(cdev->mc.vram_base, cdev->mc.vram_size); in cirrus_vram_fini() 101 cdev->mc.vram_size = pci_resource_len(cdev->dev->pdev, 0); in cirrus_vram_init() 103 if (!request_mem_region(cdev->mc.vram_base, cdev->mc.vram_size, in cirrus_vram_init() 322 const int max_size = cdev->mc.vram_size; in cirrus_check_framebuffer()
|
D | cirrus_fbdev.c | 226 info->apertures->ranges[0].size = cdev->mc.vram_size; in cirrusfb_create() 229 info->fix.smem_len = cdev->mc.vram_size; in cirrusfb_create()
|
D | cirrus_drv.h | 126 resource_size_t vram_size; member
|
D | cirrus_ttm.c | 265 cirrus->mc.vram_size >> PAGE_SHIFT); in cirrus_mm_init()
|
/drivers/video/fbdev/ |
D | da8xx-fb.c | 158 unsigned long vram_size; member 1025 if (line_size * var->yres_virtual > par->vram_size) in fb_check_var() 1026 var->yres_virtual = par->vram_size / line_size; in fb_check_var() 1102 dma_free_coherent(NULL, par->vram_size, par->vram_virt, in fb_remove() 1423 par->vram_size = lcdc_info->xres * lcdc_info->yres * lcd_cfg->bpp; in fb_probe() 1425 par->vram_size = roundup(par->vram_size/8, ulcm); in fb_probe() 1426 par->vram_size = par->vram_size * LCD_NUM_BUFFERS; in fb_probe() 1429 par->vram_size, in fb_probe() 1441 da8xx_fb_fix.smem_len = par->vram_size; in fb_probe() 1539 dma_free_coherent(NULL, par->vram_size, par->vram_virt, par->vram_phys); in fb_probe()
|
D | acornfb.c | 99 extern unsigned int vram_size; /* set by setup.c */ 1016 if (vram_size && !current_par.dram_size) { in acornfb_probe() 1017 size = vram_size; in acornfb_probe() 1018 current_par.vram_half_sam = vram_size / 1024; in acornfb_probe()
|
/drivers/video/fbdev/omap/ |
D | lcdc.c | 79 unsigned long vram_size; member 644 lcdc.vram_size = frame_size; in alloc_fbmem() 645 lcdc.vram_virt = dma_alloc_wc(lcdc.fbdev->dev, lcdc.vram_size, in alloc_fbmem() 656 memset(lcdc.vram_virt, 0, lcdc.vram_size); in alloc_fbmem() 663 dma_free_wc(lcdc.fbdev->dev, lcdc.vram_size, lcdc.vram_virt, in free_fbmem()
|
/drivers/video/fbdev/aty/ |
D | aty128fb.c | 448 u32 vram_size; /* onboard video ram */ member 1103 if ((u32)(vxres * vyres * bytpp) > par->vram_size) { in aty128_var_to_crtc() 1945 if (par->vram_size % (1024 * 1024) == 0) in aty128_init() 1946 printk("%dM %s\n", par->vram_size / (1024*1024), par->mem->name); in aty128_init() 1948 printk("%dk %s\n", par->vram_size / 1024, par->mem->name); in aty128_init() 2121 par->vram_size = aty_ld_le32(CNFG_MEMSIZE) & 0x03FFFFFF; in aty128_probe() 2124 info->screen_base = ioremap_wc(fb_addr, par->vram_size); in aty128_probe() 2131 info->fix.smem_len = par->vram_size; in aty128_probe() 2163 par->vram_size); in aty128_probe()
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_drv.c | 693 dev_priv->vram_size = vmw_read(dev_priv, SVGA_REG_VRAM_SIZE); in vmw_driver_load() 707 dev_priv->memory_size -= dev_priv->vram_size; in vmw_driver_load() 751 dev_priv->prim_bb_mem = dev_priv->vram_size; in vmw_driver_load() 771 dev_priv->vram_start, dev_priv->vram_size / 1024); in vmw_driver_load() 859 (dev_priv->vram_size >> PAGE_SHIFT)); in vmw_driver_load()
|
D | vmwgfx_fb.c | 804 info->apertures->ranges[0].size = vmw_priv->vram_size; in vmw_fb_init()
|
/drivers/gpu/drm/qxl/ |
D | qxl_kms.c | 51 qdev->vram_size = rom->surface0_area_size; in qxl_check_device()
|
D | qxl_fb.c | 294 info->apertures->ranges[0].size = qdev->vram_size; in qxlfb_create()
|
D | qxl_ttm.c | 433 (unsigned)qdev->vram_size / (1024 * 1024)); in qxl_ttm_init()
|
D | qxl_drv.h | 242 resource_size_t vram_base, vram_size; member
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_kms.c | 448 vram_gtt.vram_size = adev->mc.real_vram_size; in amdgpu_info_ioctl() 449 vram_gtt.vram_size -= adev->vram_pin_size; in amdgpu_info_ioctl()
|
/drivers/gpu/drm/radeon/ |
D | radeon_gem.c | 225 args->vram_size = (u64)man->size << PAGE_SHIFT; in radeon_gem_info_ioctl()
|