/linux/include/video/ |
H A D | sh_mobile_lcdc.h | 9 #define LDDCKR_ICKSEL_BUS (0 << 16) 10 #define LDDCKR_ICKSEL_MIPI (1 << 16) 11 #define LDDCKR_ICKSEL_HDMI (2 << 16) 12 #define LDDCKR_ICKSEL_EXT (3 << 16) 13 #define LDDCKR_ICKSEL_MASK (7 << 16) 38 #define LDRCNTR_SRC (1 << 16) 52 #define LDMT1R_DWCNT (1 << 16) 77 #define LDDFR_CC (1 << 16) 105 RGB8 = LDMT1R_MIFTYP_RGB8, /* 24bpp, 8:8:8 */ 106 RGB9 = LDMT1R_MIFTYP_RGB9, /* 18bpp, 9:9 */ [all …]
|
/linux/drivers/gpu/drm/renesas/rcar-du/ |
H A D | rcar_du_kms.c | 45 .bpp = 16, 53 .bpp = 16, 61 .bpp = 16, 68 .bpp = 32, 76 .bpp = 32, 84 .bpp = 16, 92 .bpp = 16, 100 .bpp = 12, 108 .bpp = 12, 116 .bpp = 16, [all …]
|
/linux/Documentation/fb/ |
H A D | matroxfb.rst | 43 bpp 640x400 640x480 768x576 800x600 960x720 48 16 0x111 0x182 0x114 0x18A 58 bpp 1024x768 1152x864 1280x1024 1408x1056 1600x1200 63 16 0x117 0x192 0x11A 0x19A 0x11E 91 architectures there are some glitches for 24bpp videomodes. 8, 16 and 32bpp 166 - 4 -> 2x512Kx16 chips, 8/16MB onboard, probably sdram only 171 - 0 -> 2x512Kx16 SDRAM, 16/32MB 172 - 2x512Kx32 SGRAM, 16/32MB 173 - 1 -> 2x256Kx32 SGRAM, 8/16MB 174 - 2 -> 4x128Kx32 SGRAM, 8/16MB [all …]
|
H A D | arkfb.rst | 19 * 4 bpp pseudocolor modes (with 18bit palette, two variants) 20 * 8 bpp pseudocolor mode (with 18bit palette) 21 * 16 bpp truecolor modes (RGB 555 and RGB 565) 22 * 24 bpp truecolor mode (RGB 888) 23 * 32 bpp truecolor mode (RGB 888) 24 * text mode (activated by bpp = 0) 32 wide fonts only (hardware limitation) and 16bit tall fonts (driver 36 There are two 4 bpp modes. First mode (selected if nonstd == 0) is mode with 54 * support for fontwidths != 8 in 4 bpp modes 55 * support for fontheight != 16 in text mode
|
H A D | s3fb.rst | 26 * 4 bpp pseudocolor modes (with 18bit palette, two variants) 27 * 8 bpp pseudocolor mode (with 18bit palette) 28 * 16 bpp truecolor modes (RGB 555 and RGB 565) 29 * 24 bpp truecolor mode (RGB 888) on (only on Virge VX) 30 * 32 bpp truecolor mode (RGB 888) on (not on Virge VX) 31 * text mode (activated by bpp = 0) 42 (hardware limitation) and 16bit tall fonts (driver limitation). Text mode 45 There are two 4 bpp modes. First mode (selected if nonstd == 0) is mode with 62 * 24 bpp mode support on more cards 63 * support for fontwidths != 8 in 4 bpp modes [all …]
|
H A D | vt8623fb.rst | 18 * 4 bpp pseudocolor modes (with 18bit palette, two variants) 19 * 8 bpp pseudocolor mode (with 18bit palette) 20 * 16 bpp truecolor mode (RGB 565) 21 * 32 bpp truecolor mode (RGB 888) 22 * text mode (activated by bpp = 0) 31 16bit tall fonts (driver limitation). 33 There are two 4 bpp modes. First mode (selected if nonstd == 0) is mode with 49 * support for fontwidths != 8 in 4 bpp modes 50 * support for fontheight != 16 in text mode
|
H A D | pxafb.rst | 21 mode:XRESxYRES[-BPP] 29 BPP == The bit depth. Valid values are 1, 2, 4, 8 and 16. 104 var->xres_virtual * var->yres_virtual * bpp 106 bpp = 16 -- for RGB565 or RGBT555 108 bpp = 24 -- for YUV444 packed 110 bpp = 24 -- for YUV444 planar 112 bpp = 16 -- for YUV422 planar (1 pixel = 1 Y + 1/2 Cb + 1/2 Cr) 114 bpp = 12 -- for YUV420 planar (1 pixel = 1 Y + 1/4 Cb + 1/4 Cr) 125 should be a multiple of 16-pixels
|
H A D | intel810.rst | 37 - Supports color depths of 8, 16, 24 and 32 bits per pixel 41 - Full and optimized hardware acceleration at 8, 16 and 24 bpp 93 f. "bpp:<value>" 126 offset (16 MB for a 64 MB aperture, 8 MB for a 32 MB aperture) will 133 (default = 8 or 16 MB) 168 than 8 bpp. Useful for color tuning, such as gamma control. 173 o. <xres>x<yres>[-<bpp>][@<refresh>] 191 append="video=i810fb:vram:2,xres:1024,yres:768,bpp:8,hsync1:30,hsync2:55, \ 194 This will initialize the framebuffer to 1024x768 at 8bpp. The framebuffer 219 modprobe i810fb vram=2 xres=1024 bpp=8 hsync1=30 hsync2=55 vsync1=50 \ [all …]
|
/linux/drivers/staging/media/imx/ |
H A D | imx-media-utils.c | 24 .bpp = 16, 32 .bpp = 16, 36 .bpp = 12, 41 .bpp = 12, 46 .bpp = 16, 51 .bpp = 12, 56 .bpp = 16, 62 .bpp = 32, 70 .bpp = 16, 79 .bpp = 24, [all …]
|
/linux/drivers/video/fbdev/ |
H A D | sh7760fb.c | 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() [all …]
|
H A D | s1d13xxxfb.c | 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() [all …]
|
H A D | tridentfb.c | 35 u32 pseudo_pal[16]; 65 static int bpp = 8; variable 83 module_param(bpp, int, 0); 303 #define point(x, y) ((y) << 16 | (x)) 305 static void blade_init_accel(struct tridentfb_par *par, int pitch, int bpp) in blade_init_accel() argument 308 int tmp = bpp == 24 ? 2 : (bpp >> 4); in blade_init_accel() 379 static void xp_init_accel(struct tridentfb_par *par, int pitch, int bpp) in xp_init_accel() argument 381 unsigned char x = bpp == 24 ? 3 : (bpp >> 4); in xp_init_accel() 382 int v1 = pitch << (bpp == 24 ? 20 : (18 + x)); in xp_init_accel() 384 switch (pitch << (bpp >> 3)) { in xp_init_accel() [all …]
|
H A D | pxafb.c | 138 chan >>= 16 - bf->length; in chan_to_field() 213 7471 * blue) >> 16; in pxafb_setcolreg() 218 * 16-bit True Colour. We encode the RGB value in pxafb_setcolreg() 221 if (regno < 16) { in pxafb_setcolreg() 242 /* calculate pixel depth, transparency bit included, >=16bpp formats _only_ */ 249 /* calculate 4-bit BPP value for LCCR3 and OVLxC1 */ 252 int bpp = -EINVAL; in pxafb_var_to_bpp() local 255 case 1: bpp = 0; break; in pxafb_var_to_bpp() 256 case 2: bpp = 1; break; in pxafb_var_to_bpp() 257 case 4: bpp = 2; break; in pxafb_var_to_bpp() [all …]
|
H A D | atafb.c | 125 short bpp; member 126 u32 pseudo_palette[16]; 213 static int MV300_reg_4bit[16] = { 217 0, 128, 64, 192, 32, 160, 96, 224, 16, 144, 80, 208, 48, 176, 112, 240, 467 "st-low", 60, 320, 200, 32000, 32, 16, 31, 14, 96, 4, 471 "st-mid", 60, 640, 200, 32000, 32, 16, 31, 14, 96, 4, 479 "tt-low", 60, 320, 480, 31041, 120, 100, 8, 16, 140, 30, 483 "tt-mid", 60, 640, 480, 31041, 120, 100, 8, 16, 140, 30, 583 int bpp = var->bits_per_pixel; in tt_decode_var() local 588 if (bpp > 1 || xres > sttt_xres * 2 || yres > tt_yres * 2) in tt_decode_var() [all …]
|
H A D | i740fb.c | 8 * VGA 16-color framebuffer driver (c) 1999 Ben Pfaff <pfaffben@debian.org> 44 u32 pseudo_palette[16]; 209 static u32 i740_calc_fifo(struct i740fb_par *par, u32 freq, int bpp) in i740_calc_fifo() argument 221 switch (bpp) { in i740_calc_fifo() 233 case 16: in i740_calc_fifo() 403 u32 bpp, base, dacspeed24, mem, freq; in i740fb_decode_var() local 409 dev_dbg(info->device, " xoff: %i, yoff: %i, bpp: %i, graysc: %i\n", in i740fb_decode_var() 421 bpp = var->bits_per_pixel; in i740fb_decode_var() 422 switch (bpp) { in i740fb_decode_var() 424 bpp = 8; in i740fb_decode_var() [all …]
|
H A D | pm3fb.c | 72 u32 palette[16]; 176 if (var->bits_per_pixel == 16) in pm3fb_depth() 183 static inline int pm3fb_shift_bpp(unsigned bpp, int v) in pm3fb_shift_bpp() argument 185 switch (bpp) { in pm3fb_shift_bpp() 188 case 16: in pm3fb_shift_bpp() 193 DPRINTK("Unsupported depth %u\n", bpp); in pm3fb_shift_bpp() 298 case 16: in pm3fb_init_engine() 344 case 16: in pm3fb_init_engine() 361 PM3_WRITE_REG(par, PM3dY, 1 << 16); in pm3fb_init_engine() 414 if (info->var.bits_per_pixel <= 16) in pm3fb_fillrect() [all …]
|
H A D | au1100fb.h | 57 #define AU1100_LCD_MAX_BPP 16 78 u32 bpp; /* Maximum depth supported */ member 133 #define LCD_CONTROL_WD (1<<16) 177 #define LCD_HORZTIMING_HN1_BIT 16 191 #define LCD_VERTTIMING_VN1_BIT 16 204 #define LCD_CLKCONTROL_IH (1<<16) 266 * TFT panels: max_bpp <= 16 277 .bpp = 16, 290 .bpp = 16, 301 .bpp = 16, [all …]
|
/linux/drivers/gpu/drm/renesas/shmobile/ |
H A D | shmob_drm_kms.c | 31 .bpp = 16, 38 .bpp = 24, 45 .bpp = 32, 52 .bpp = 32, 59 .bpp = 12, 66 .bpp = 12, 73 .bpp = 16, 80 .bpp = 16, 87 .bpp = 24, 94 .bpp = 24, [all …]
|
/linux/drivers/gpu/drm/gma500/ |
H A D | oaktrail.h | 77 u16 Panel_Backlight_Inverter_Descriptor;/* 16 bits, as follows */ 81 /*16 bits, Defined as follows: */ 89 /* Bit0: 16bpp (not supported in LNC), */ 90 /* Bit1: 18bpp loosely packed, */ 91 /* Bit2: 18bpp packed, */ 92 /* Bit3: 24bpp */ 106 u16 Panel_Backlight_Inverter_Descriptor;/*16 bits, as follows*/ 107 /*Bit 0, Frequency, 16 bits, 0 - 32767Hz*/ 111 /*16 bits, Defined as follows: */ 119 /* Bit0: 16bpp (not supported in LNC), */ [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dml/dsc/ |
H A D | rc_calc_fpu.c | 31 #define table_hash(mode, bpc, max_min) ((mode << 16) | (bpc << 8) | max_min) 65 enum max_min max_min, float bpp) in get_qp_set() argument 99 index = (bpp - table[0].bpp) * 2; in get_qp_set() 103 dm_error("ERROR: Requested rc_calc to find a bpp entry that exceeds the table size\n"); in get_qp_set() 110 static void get_ofs_set(qp_set ofs, enum colour_mode mode, float bpp) in get_ofs_set() argument 115 …bpp <= 6) ? (0) : ((((bpp >= 8) && (bpp <= 12))) ? (2) : ((bpp >= 15) ? (10) : ((((bpp > 6) && (… in get_ofs_set() 116 …bpp <= 6) ? (-2) : ((((bpp >= 8) && (bpp <= 12))) ? (0) : ((bpp >= 15) ? (8) : ((((bpp > 6) && (… in get_ofs_set() 117 …bpp <= 6) ? (-2) : ((((bpp >= 8) && (bpp <= 12))) ? (0) : ((bpp >= 15) ? (6) : ((((bpp > 6) && (… in get_ofs_set() 118 …bpp <= 6) ? (-4) : ((((bpp >= 8) && (bpp <= 12))) ? (-2) : ((bpp >= 15) ? (4) : ((((bpp > 6) && … in get_ofs_set() 119 …bpp <= 6) ? (-6) : ((((bpp >= 8) && (bpp <= 12))) ? (-4) : ((bpp >= 15) ? (2) : ((((bpp > 6) && … in get_ofs_set() [all …]
|
/linux/drivers/gpu/drm/aspeed/ |
H A D | aspeed_gfx_crtc.c | 26 static int aspeed_gfx_set_pixel_fmt(struct aspeed_gfx *priv, u32 *bpp) in aspeed_gfx_set_pixel_fmt() argument 40 *bpp = 16; in aspeed_gfx_set_pixel_fmt() 45 *bpp = 32; in aspeed_gfx_set_pixel_fmt() 63 regmap_update_bits(priv->scu, priv->dac_reg, BIT(16), BIT(16)); in aspeed_gfx_enable_controller() 77 regmap_update_bits(priv->scu, priv->dac_reg, BIT(16), 0); in aspeed_gfx_disable_controller() 83 u32 ctrl1, d_offset, t_count, bpp; in aspeed_gfx_crtc_mode_set_nofb() local 86 err = aspeed_gfx_set_pixel_fmt(priv, &bpp); in aspeed_gfx_crtc_mode_set_nofb() 129 d_offset = m->hdisplay * bpp / 8; in aspeed_gfx_crtc_mode_set_nofb() 130 t_count = DIV_ROUND_UP(m->hdisplay * bpp, priv->scan_line_max); in aspeed_gfx_crtc_mode_set_nofb() 136 * Threshold: FIFO thresholds of refill and stop (16 byte chunks in aspeed_gfx_crtc_mode_set_nofb()
|
/linux/drivers/video/fbdev/matrox/ |
H A D | matroxfb_DAC1064.h | 67 #define M1064_XMULCTRL_DEPTH_8BPP 0x00 /* 8 bpp paletized */ 68 #define M1064_XMULCTRL_DEPTH_15BPP_1BPP 0x01 /* 15 bpp paletized + 1 bpp overlay */ 69 #define M1064_XMULCTRL_DEPTH_16BPP 0x02 /* 16 bpp paletized */ 70 #define M1064_XMULCTRL_DEPTH_24BPP 0x03 /* 24 bpp paletized */ 71 #define M1064_XMULCTRL_DEPTH_24BPP_8BPP 0x04 /* 24 bpp direct + 8 bpp overlay paletized */ 72 #define M1064_XMULCTRL_2G8V16 0x05 /* 15 bpp video direct, half xres, 8bpp paletized */ 73 #define M1064_XMULCTRL_G16V16 0x06 /* 15 bpp video, 15bpp graphics, one of them paletized */ 74 #define M1064_XMULCTRL_DEPTH_32BPP 0x07 /* 24 bpp paletized + 8 bpp unused */
|
/linux/drivers/video/fbdev/core/ |
H A D | fb_fillrect.h | 20 * reverse pixel order in a byte (<8 BPP), word length of 32/64 bits, 69 static unsigned long pixel_to_pat(int bpp, u32 color) in pixel_to_pat() argument 81 switch (bpp) { in pixel_to_pat() 83 pattern = mulconst[bpp] * color; in pixel_to_pat() 87 pattern = pattern | pattern << bpp; in pixel_to_pat() 88 pattern = pattern | pattern << bpp*2; in pixel_to_pat() 92 pattern = pattern | pattern << bpp; in pixel_to_pat() 98 pattern <<= (BITS_PER_LONG % bpp); in pixel_to_pat() 99 pattern |= pattern >> bpp; in pixel_to_pat() 201 /* pattern doesn't change. 1, 2, 4, 8, 16, 32, 64 bpp */ [all …]
|
/linux/drivers/staging/sm750fb/ |
H A D | readme | 6 - 16MB integrated video memory 10 Use 1280,8bpp index color and 60 hz mode: 32 2) if you put 800x600 into the parameter without bpp and 33 refresh rate, kernel driver will defaulty use 16bpp and 60hz
|
/linux/drivers/gpu/drm/tiny/ |
H A D | panel-mipi-dbi.c | 34 unsigned int bpp; member 38 { "r5g6b5", DRM_FORMAT_RGB565, 16 }, 42 static int panel_mipi_dbi_get_format(struct device *dev, u32 *formats, unsigned int *bpp) in panel_mipi_dbi_get_format() argument 54 *bpp = 16; in panel_mipi_dbi_get_format() 65 *bpp = format->bpp; in panel_mipi_dbi_get_format() 297 * width and height don't exceed the 16-bit value specified by MIPI DCS. in panel_mipi_dbi_get_mode() 324 unsigned int bpp; in panel_mipi_dbi_spi_probe() local 374 ret = panel_mipi_dbi_get_format(dev, formats, &bpp); in panel_mipi_dbi_spi_probe() 378 buf_size = DIV_ROUND_UP(mode.hdisplay * mode.vdisplay * bpp, 8); in panel_mipi_dbi_spi_probe() 393 if (bpp == 16) in panel_mipi_dbi_spi_probe()
|