Lines Matching refs:vram
377 unsigned long vram; in sh7760fb_alloc_mem() local
393 vram = info->var.xres * info->var.yres; in sh7760fb_alloc_mem()
396 vram >>= 3; in sh7760fb_alloc_mem()
398 vram >>= 2; in sh7760fb_alloc_mem()
400 vram >>= 1; in sh7760fb_alloc_mem()
402 vram *= 2; in sh7760fb_alloc_mem()
403 if ((vram < 1) || (vram > 1024 * 2048)) { in sh7760fb_alloc_mem()
408 if (vram < PAGE_SIZE) in sh7760fb_alloc_mem()
409 vram = PAGE_SIZE; in sh7760fb_alloc_mem()
411 fbmem = dma_alloc_coherent(info->dev, vram, &par->fbdma, GFP_KERNEL); in sh7760fb_alloc_mem()
424 info->screen_size = vram; in sh7760fb_alloc_mem()