Lines Matching refs:vram
380 unsigned long vram; in sh7760fb_alloc_mem() local
396 vram = info->var.xres * info->var.yres; in sh7760fb_alloc_mem()
399 vram >>= 3; in sh7760fb_alloc_mem()
401 vram >>= 2; in sh7760fb_alloc_mem()
403 vram >>= 1; in sh7760fb_alloc_mem()
405 vram *= 2; in sh7760fb_alloc_mem()
406 if ((vram < 1) || (vram > 1024 * 2048)) { in sh7760fb_alloc_mem()
411 if (vram < PAGE_SIZE) in sh7760fb_alloc_mem()
412 vram = PAGE_SIZE; in sh7760fb_alloc_mem()
414 fbmem = dma_alloc_coherent(info->dev, vram, &par->fbdma, GFP_KERNEL); in sh7760fb_alloc_mem()
427 info->screen_size = vram; in sh7760fb_alloc_mem()