Lines Matching +full:18 +full:bpp
241 /* calculate pixel depth, transparency bit included, >=16bpp formats _only_ */
248 /* calculate 4-bit BPP value for LCCR3 and OVLxC1 */
251 int bpp = -EINVAL; in pxafb_var_to_bpp() local
254 case 1: bpp = 0; break; in pxafb_var_to_bpp()
255 case 2: bpp = 1; break; in pxafb_var_to_bpp()
256 case 4: bpp = 2; break; in pxafb_var_to_bpp()
257 case 8: bpp = 3; break; in pxafb_var_to_bpp()
258 case 16: bpp = 4; break; in pxafb_var_to_bpp()
261 case 18: bpp = 6; break; /* 18-bits/pixel packed */ in pxafb_var_to_bpp()
262 case 19: bpp = 8; break; /* 19-bits/pixel packed */ in pxafb_var_to_bpp()
263 case 24: bpp = 9; break; in pxafb_var_to_bpp()
268 case 18: bpp = 5; break; /* 18-bits/pixel unpacked */ in pxafb_var_to_bpp()
269 case 19: bpp = 7; break; /* 19-bits/pixel unpacked */ in pxafb_var_to_bpp()
270 case 25: bpp = 10; break; in pxafb_var_to_bpp()
274 return bpp; in pxafb_var_to_bpp()
284 * Formats>> for the valid combination of PDFOR, PAL_FOR for various BPP.
290 int bpp = pxafb_var_to_bpp(var); in pxafb_var_to_lccr3() local
293 if (bpp < 0) in pxafb_var_to_lccr3()
296 lccr3 = LCCR3_BPP(bpp); in pxafb_var_to_lccr3()
300 case 18: lccr3 |= LCCR3_PDFOR_3; break; in pxafb_var_to_lccr3()
338 case 18: SET_PIXFMT(var, 6, 6, 6, 0); break; /* RGB666 */ in pxafb_set_pixfmt()
381 modelist[i].bpp >= var->bits_per_pixel) { in pxafb_getmode()
396 var->bits_per_pixel = mode->bpp; in pxafb_setmode()
476 /* do a test conversion to BPP fields to check the color formats */ in pxafb_check_var()
568 * 16 bpp mode does not really use the palette, so this will not
767 int xpos, ypos, pfor, bpp; in overlayfb_check_var() local
773 bpp = pxafb_var_to_bpp(var); in overlayfb_check_var()
774 if (bpp < 0) in overlayfb_check_var()
781 /* for YUV packed formats, bpp = 'minimum bpp of YUV components' */ in overlayfb_check_var()
784 bpp = pxafb_var_to_bpp(var); in overlayfb_check_var()
785 if (bpp < 0) in overlayfb_check_var()
790 case OVERLAY_FORMAT_YUV444_PACKED: bpp = 24; break; in overlayfb_check_var()
791 case OVERLAY_FORMAT_YUV444_PLANAR: bpp = 8; break; in overlayfb_check_var()
792 case OVERLAY_FORMAT_YUV422_PLANAR: bpp = 4; break; in overlayfb_check_var()
793 case OVERLAY_FORMAT_YUV420_PLANAR: bpp = 2; break; in overlayfb_check_var()
799 if ((xpos * bpp) % 32) in overlayfb_check_var()
803 var->xres = roundup(var->xres * bpp, 32) / bpp; in overlayfb_check_var()
818 int size, bpp = 0; in overlayfb_check_video_memory() local
821 case OVERLAY_FORMAT_RGB: bpp = var->bits_per_pixel; break; in overlayfb_check_video_memory()
822 case OVERLAY_FORMAT_YUV444_PACKED: bpp = 24; break; in overlayfb_check_video_memory()
823 case OVERLAY_FORMAT_YUV444_PLANAR: bpp = 24; break; in overlayfb_check_video_memory()
824 case OVERLAY_FORMAT_YUV422_PLANAR: bpp = 16; break; in overlayfb_check_video_memory()
825 case OVERLAY_FORMAT_YUV420_PLANAR: bpp = 12; break; in overlayfb_check_video_memory()
828 ofb->fb.fix.line_length = var->xres_virtual * bpp / 8; in overlayfb_check_video_memory()
843 int xpos, ypos, pfor, bpp, ret; in overlayfb_set_par() local
849 bpp = pxafb_var_to_bpp(var); in overlayfb_set_par()
855 OVLxC1_BPP(bpp); in overlayfb_set_par()
911 * anyway, it's useless to use 16bpp main plane and 24bpp overlay in pxafb_overlay_map_video_memory()
1110 int nbytes, dma, pal, bpp = var->bits_per_pixel; in setup_base_frame() local
1114 pal = (bpp >= 16) ? PAL_NONE : PAL_BASE + (branch ? PAL_MAX : 0); in setup_base_frame()
1781 m->xres * m->yres * m->bpp / 8); in pxafb_decode_mach_info()
1858 unsigned int xres = 0, yres = 0, bpp = 0; in parse_opt_mode() local
1866 bpp = simple_strtoul(&name[i+1], NULL, 0); in parse_opt_mode()
1894 switch (bpp) { in parse_opt_mode()
1900 inf->modes[0].bpp = bpp; in parse_opt_mode()
1901 dev_info(dev, "overriding bit depth: %d\n", bpp); in parse_opt_mode()
1904 dev_err(dev, "Depth %d is not valid\n", bpp); in parse_opt_mode()
2199 info->modes[i].bpp = bus_width; in of_get_pxafb_mode_info()
2271 inf->modes->bpp); in pxafb_probe()
2274 inf->modes->bpp == 0) { in pxafb_probe()