Lines Matching +full:16 +full:bpp
172 info->var.bits_per_pixel = 16; in s1d13xxxfb_setup_truecolour()
204 dbg("s1d13xxxfb_set_par: bpp=%d\n", info->var.bits_per_pixel); in s1d13xxxfb_set_par()
224 case 16: in s1d13xxxfb_set_par()
231 dbg("bpp not supported!\n"); in s1d13xxxfb_set_par()
255 * @red: The red value which can be up to 16 bits wide
256 * @green: The green value which can be up to 16 bits wide
257 * @blue: The blue value which can be up to 16 bits wide.
258 * @transp: If supported the alpha value which can be up to 16 bits wide.
277 red = green = blue = (19595*red + 38470*green + 7471*blue) >> 16; in s1d13xxxfb_setcolreg()
281 if (regno >= 16) in s1d13xxxfb_setcolreg()
386 s1d13xxxfb_writereg(par, S1DREG_LCD_DISP_START2, ((start >> 16) & 0x0f)); in s1d13xxxfb_pan_display()
391 s1d13xxxfb_writereg(par, S1DREG_CRT_DISP_START2, ((start >> 16) & 0x0f)); in s1d13xxxfb_pan_display()
441 u16 bpp; in s1d13xxxfb_bitblt_copyarea() local
446 bpp = (info->var.bits_per_pixel >> 3); in s1d13xxxfb_bitblt_copyarea()
447 stride = bpp * info->var.xres; in s1d13xxxfb_bitblt_copyarea()
451 dst = (((dy + height - 1) * stride) + (bpp * (dx + width - 1))); in s1d13xxxfb_bitblt_copyarea()
452 src = (((sy + height - 1) * stride) + (bpp * (sx + width - 1))); in s1d13xxxfb_bitblt_copyarea()
455 } else { /* (y * xres) + (bpp * x) */ in s1d13xxxfb_bitblt_copyarea()
456 dst = (dy * stride) + (bpp * dx); in s1d13xxxfb_bitblt_copyarea()
457 src = (sy * stride) + (bpp * sx); in s1d13xxxfb_bitblt_copyarea()
463 s1d13xxxfb_writereg(info->par, S1DREG_BBLT_SRC_START2, (src >> 16) & 0x00ff); in s1d13xxxfb_bitblt_copyarea()
468 s1d13xxxfb_writereg(info->par, S1DREG_BBLT_DST_START2, (dst >> 16) & 0x00ff); in s1d13xxxfb_bitblt_copyarea()
489 /* setup the bpp 1 = 16bpp, 0 = 8bpp*/ in s1d13xxxfb_bitblt_copyarea()
490 s1d13xxxfb_writereg(info->par, S1DREG_BBLT_CTL1, (bpp >> 1)); in s1d13xxxfb_bitblt_copyarea()
500 dbg_blit("(copyarea) bpp=%d=0x0%d, mem_offset1=%d, mem_offset2=%d\n", bpp, (bpp >> 1), in s1d13xxxfb_bitblt_copyarea()
527 u16 bpp = (info->var.bits_per_pixel >> 3); in s1d13xxxfb_bitblt_solidfill() local
533 screen_stride = (bpp * info->var.xres); in s1d13xxxfb_bitblt_solidfill()
536 dest = ((rect->dy * screen_stride) + (bpp * rect->dx)); in s1d13xxxfb_bitblt_solidfill()
543 dbg_blit("(solidfill) : xres=%d, yres=%d, bpp=%d\n", in s1d13xxxfb_bitblt_solidfill()
551 s1d13xxxfb_writereg(info->par, S1DREG_BBLT_DST_START2, ((dest >> 16) & 0x00ff)); in s1d13xxxfb_bitblt_solidfill()
581 /* set bits per pixel (1 = 16bpp, 0 = 8bpp) */ in s1d13xxxfb_bitblt_solidfill()
622 {4, 8, 16, -1},
650 int bpp, lcd_bpp; in s1d13xxxfb_fetch_hw_state() local
669 bpp = display & 0x07; in s1d13xxxfb_fetch_hw_state()
671 switch (bpp) { in s1d13xxxfb_fetch_hw_state()
672 case 2: /* 4 bpp */ in s1d13xxxfb_fetch_hw_state()
673 case 3: /* 8 bpp */ in s1d13xxxfb_fetch_hw_state()
678 case 5: /* 16 bpp */ in s1d13xxxfb_fetch_hw_state()
682 dbg("bpp: %i\n", bpp); in s1d13xxxfb_fetch_hw_state()
708 xres_virtual = offset * 16 / var->bits_per_pixel; in s1d13xxxfb_fetch_hw_state()
723 dbg(PFX "bpp=%d, lcd_bpp=%d, " in s1d13xxxfb_fetch_hw_state()