Lines Matching refs:format
196 const struct sh_mobile_lcdc_format_info *format; member
868 u32 format = 0; in sh_mobile_lcdc_overlay_setup() local
884 format = LDBBSIFR_EN | (ovl->alpha << LDBBSIFR_LAY_SHIFT); in sh_mobile_lcdc_overlay_setup()
888 format = LDBBSIFR_EN | LDBBSIFR_BRSEL in sh_mobile_lcdc_overlay_setup()
893 switch (ovl->format->fourcc) { in sh_mobile_lcdc_overlay_setup()
898 format |= LDBBSIFR_SWPL | LDBBSIFR_SWPW; in sh_mobile_lcdc_overlay_setup()
904 format |= LDBBSIFR_SWPL | LDBBSIFR_SWPW | LDBBSIFR_SWPB; in sh_mobile_lcdc_overlay_setup()
908 format |= LDBBSIFR_SWPL; in sh_mobile_lcdc_overlay_setup()
912 switch (ovl->format->fourcc) { in sh_mobile_lcdc_overlay_setup()
914 format |= LDBBSIFR_AL_1 | LDBBSIFR_RY | LDBBSIFR_RPKF_RGB16; in sh_mobile_lcdc_overlay_setup()
917 format |= LDBBSIFR_AL_1 | LDBBSIFR_RY | LDBBSIFR_RPKF_RGB24; in sh_mobile_lcdc_overlay_setup()
920 format |= LDBBSIFR_AL_PK | LDBBSIFR_RY | LDDFR_PKF_ARGB32; in sh_mobile_lcdc_overlay_setup()
924 format |= LDBBSIFR_AL_1 | LDBBSIFR_CHRR_420; in sh_mobile_lcdc_overlay_setup()
928 format |= LDBBSIFR_AL_1 | LDBBSIFR_CHRR_422; in sh_mobile_lcdc_overlay_setup()
932 format |= LDBBSIFR_AL_1 | LDBBSIFR_CHRR_444; in sh_mobile_lcdc_overlay_setup()
938 lcdc_write_overlay(ovl, LDBnBSIFR(ovl->index), format); in sh_mobile_lcdc_overlay_setup()
1015 tmp = ch->format->lddfr; in __sh_mobile_lcdc_start()
1017 if (ch->format->yuv) { in __sh_mobile_lcdc_start()
1031 if (ch->format->yuv) in __sh_mobile_lcdc_start()
1048 switch (priv->ch[0].format->fourcc) { in __sh_mobile_lcdc_start()
1131 switch (ch->format->fourcc) { in sh_mobile_lcdc_start()
1262 const struct sh_mobile_lcdc_format_info *format; in __sh_mobile_lcdc_check_var() local
1264 format = sh_mobile_format_info(var->grayscale); in __sh_mobile_lcdc_check_var()
1265 if (format == NULL) in __sh_mobile_lcdc_check_var()
1267 var->bits_per_pixel = format->bpp; in __sh_mobile_lcdc_check_var()
1272 if (!format->yuv) in __sh_mobile_lcdc_check_var()
1515 if (!ovl->format->yuv) { in sh_mobile_lcdc_overlay_pan()
1517 * ovl->format->bpp / 8; in sh_mobile_lcdc_overlay_pan()
1520 unsigned int xsub = ovl->format->bpp < 24 ? 2 : 1; in sh_mobile_lcdc_overlay_pan()
1521 unsigned int ysub = ovl->format->bpp < 16 ? 2 : 1; in sh_mobile_lcdc_overlay_pan()
1578 ovl->format = in sh_mobile_lcdc_overlay_set_par()
1586 if (ovl->format->yuv) in sh_mobile_lcdc_overlay_set_par()
1589 ovl->pitch = info->var.xres_virtual * ovl->format->bpp / 8; in sh_mobile_lcdc_overlay_set_par()
1726 if (ovl->format->yuv) in sh_mobile_lcdc_overlay_fb_init()
1731 switch (ovl->format->fourcc) { in sh_mobile_lcdc_overlay_fb_init()
1752 if (!ovl->format->yuv) in sh_mobile_lcdc_overlay_fb_init()
1753 var->bits_per_pixel = ovl->format->bpp; in sh_mobile_lcdc_overlay_fb_init()
1755 var->grayscale = ovl->format->fourcc; in sh_mobile_lcdc_overlay_fb_init()
1830 if (!ch->format->yuv) { in sh_mobile_lcdc_pan()
1832 * ch->format->bpp / 8; in sh_mobile_lcdc_pan()
1835 unsigned int xsub = ch->format->bpp < 24 ? 2 : 1; in sh_mobile_lcdc_pan()
1836 unsigned int ysub = ch->format->bpp < 16 ? 2 : 1; in sh_mobile_lcdc_pan()
1864 if (ch->format->yuv) in sh_mobile_lcdc_pan()
2036 ch->format = sh_mobile_format_info(sh_mobile_format_fourcc(&info->var)); in sh_mobile_lcdc_set_par()
2044 if (ch->format->yuv) in sh_mobile_lcdc_set_par()
2047 ch->pitch = info->var.xres_virtual * ch->format->bpp / 8; in sh_mobile_lcdc_set_par()
2234 if (ch->format->yuv) in sh_mobile_lcdc_channel_fb_init()
2239 switch (ch->format->fourcc) { in sh_mobile_lcdc_channel_fb_init()
2262 if (!ch->format->yuv) in sh_mobile_lcdc_channel_fb_init()
2263 var->bits_per_pixel = ch->format->bpp; in sh_mobile_lcdc_channel_fb_init()
2265 var->grayscale = ch->format->fourcc; in sh_mobile_lcdc_channel_fb_init()
2544 const struct sh_mobile_lcdc_format_info *format; in sh_mobile_lcdc_overlay_init() local
2552 format = sh_mobile_format_info(ovl->cfg->fourcc); in sh_mobile_lcdc_overlay_init()
2553 if (format == NULL) { in sh_mobile_lcdc_overlay_init()
2568 ovl->format = format; in sh_mobile_lcdc_overlay_init()
2574 if (!format->yuv) in sh_mobile_lcdc_overlay_init()
2575 ovl->pitch = ovl->xres_virtual * format->bpp / 8; in sh_mobile_lcdc_overlay_init()
2581 * format->bpp / 8 * 2; in sh_mobile_lcdc_overlay_init()
2599 const struct sh_mobile_lcdc_format_info *format; in sh_mobile_lcdc_channel_init() local
2611 format = sh_mobile_format_info(cfg->fourcc); in sh_mobile_lcdc_channel_init()
2612 if (format == NULL) { in sh_mobile_lcdc_channel_init()
2657 ch->format = format; in sh_mobile_lcdc_channel_init()
2663 if (!format->yuv) { in sh_mobile_lcdc_channel_init()
2665 ch->pitch = ch->xres_virtual * format->bpp / 8; in sh_mobile_lcdc_channel_init()
2676 ch->fb_size = max_size * format->bpp / 8 * 2; in sh_mobile_lcdc_channel_init()