Lines Matching defs:format
164 * @format: Current pixelf format
195 const struct sh_mobile_lcdc_format_info *format;
775 u32 format = 0;
791 format = LDBBSIFR_EN | (ovl->alpha << LDBBSIFR_LAY_SHIFT);
795 format = LDBBSIFR_EN | LDBBSIFR_BRSEL
800 switch (ovl->format->fourcc) {
805 format |= LDBBSIFR_SWPL | LDBBSIFR_SWPW;
811 format |= LDBBSIFR_SWPL | LDBBSIFR_SWPW | LDBBSIFR_SWPB;
815 format |= LDBBSIFR_SWPL;
819 switch (ovl->format->fourcc) {
821 format |= LDBBSIFR_AL_1 | LDBBSIFR_RY | LDBBSIFR_RPKF_RGB16;
824 format |= LDBBSIFR_AL_1 | LDBBSIFR_RY | LDBBSIFR_RPKF_RGB24;
827 format |= LDBBSIFR_AL_PK | LDBBSIFR_RY | LDBBSIFR_RPKF_ARGB32;
831 format |= LDBBSIFR_AL_1 | LDBBSIFR_CHRR_420;
835 format |= LDBBSIFR_AL_1 | LDBBSIFR_CHRR_422;
839 format |= LDBBSIFR_AL_1 | LDBBSIFR_CHRR_444;
845 lcdc_write_overlay(ovl, LDBnBSIFR(ovl->index), format);
914 /* Setup geometry, format, frame buffer memory and operation mode. */
922 tmp = ch->format->lddfr;
924 if (ch->format->yuv) {
938 if (ch->format->yuv)
955 switch (priv->ch[0].format->fourcc) {
1119 const struct sh_mobile_lcdc_format_info *format;
1121 format = sh_mobile_format_info(var->grayscale);
1122 if (format == NULL)
1124 var->bits_per_pixel = format->bpp;
1129 if (!format->yuv)
1372 if (!ovl->format->yuv) {
1374 * ovl->format->bpp / 8;
1377 unsigned int xsub = ovl->format->bpp < 24 ? 2 : 1;
1378 unsigned int ysub = ovl->format->bpp < 16 ? 2 : 1;
1435 ovl->format =
1443 if (ovl->format->yuv)
1446 ovl->pitch = info->var.xres_virtual * ovl->format->bpp / 8;
1583 if (ovl->format->yuv)
1588 switch (ovl->format->fourcc) {
1610 if (!ovl->format->yuv)
1611 var->bits_per_pixel = ovl->format->bpp;
1613 var->grayscale = ovl->format->fourcc;
1688 if (!ch->format->yuv) {
1690 * ch->format->bpp / 8;
1693 unsigned int xsub = ch->format->bpp < 24 ? 2 : 1;
1694 unsigned int ysub = ch->format->bpp < 16 ? 2 : 1;
1717 if (ch->format->yuv)
1880 ch->format = sh_mobile_format_info(sh_mobile_format_fourcc(&info->var));
1888 if (ch->format->yuv)
1891 ch->pitch = info->var.xres_virtual * ch->format->bpp / 8;
2076 if (ch->format->yuv)
2081 switch (ch->format->fourcc) {
2105 if (!ch->format->yuv)
2106 var->bits_per_pixel = ch->format->bpp;
2108 var->grayscale = ch->format->fourcc;
2351 const struct sh_mobile_lcdc_format_info *format;
2358 /* Validate the format. */
2359 format = sh_mobile_format_info(ovl->cfg->fourcc);
2360 if (format == NULL) {
2375 ovl->format = format;
2381 if (!format->yuv)
2382 ovl->pitch = ovl->xres_virtual * format->bpp / 8;
2388 * format->bpp / 8 * 2;
2406 const struct sh_mobile_lcdc_format_info *format;
2415 /* Validate the format. */
2416 format = sh_mobile_format_info(cfg->fourcc);
2417 if (format == NULL) {
2462 ch->format = format;
2468 if (!format->yuv) {
2470 ch->pitch = ch->xres_virtual * format->bpp / 8;
2481 ch->fb_size = max_size * format->bpp / 8 * 2;
2583 /* for dual channel LCDC (MAIN + SUB) force shared format setting */