Lines Matching +full:16 +full:bpp
40 u32 pseudo_palette[16];
103 if (regno >= 16) in sh7760_setcolreg()
108 red >>= 16 - info->var.red.length; in sh7760_setcolreg()
109 green >>= 16 - info->var.green.length; in sh7760_setcolreg()
110 blue >>= 16 - info->var.blue.length; in sh7760_setcolreg()
111 transp >>= 16 - info->var.transp.length; in sh7760_setcolreg()
122 u16 lddfr, int *bpp, int *gray) in sh7760fb_get_color_info() argument
151 lbpp = 16; in sh7760fb_get_color_info()
159 if (bpp) in sh7760fb_get_color_info()
160 *bpp = lbpp; in sh7760fb_get_color_info()
172 int ret, bpp; in sh7760fb_check_var() local
175 ret = sh7760fb_get_color_info(info, par->pd->lddfr, &bpp, NULL); in sh7760fb_check_var()
179 var->bits_per_pixel = bpp; in sh7760fb_check_var()
206 int ret, bpp, gray; in sh7760fb_set_par() local
227 ret = sh7760fb_get_color_info(info, par->pd->lddfr, &bpp, &gray); in sh7760fb_set_par()
232 vdln, bpp, gray ? "grayscale" : "color", in sh7760fb_set_par()
272 stride *= (bpp + 7) >> 3; in sh7760fb_set_par()
274 if (bpp == 1) in sh7760fb_set_par()
276 else if (bpp == 2) in sh7760fb_set_par()
278 else if (bpp == 4) in sh7760fb_set_par()
280 /* 6 bpp == 8 bpp */ in sh7760fb_set_par()
378 int ret, bpp; in sh7760fb_alloc_mem() local
384 ret = sh7760fb_get_color_info(info, par->pd->lddfr, &bpp, NULL); in sh7760fb_alloc_mem()
390 /* min VRAM: xres_min = 16, yres_min = 1, bpp = 1: 2byte -> 1 page in sh7760fb_alloc_mem()
391 max VRAM: xres_max = 1024, yres_max = 1024, bpp = 16: 2MB */ in sh7760fb_alloc_mem()
395 if (bpp == 1) in sh7760fb_alloc_mem()
397 else if (bpp == 2) in sh7760fb_alloc_mem()
399 else if (bpp == 4) in sh7760fb_alloc_mem()
401 } else if (bpp > 8) in sh7760fb_alloc_mem()