/linux/drivers/gpu/drm/amd/display/dc/dml/dsc/ |
A D | rc_calc_fpu.c | 109 index = (bpp - table[0].bpp) * 2; in get_qp_set() 125 …bpp <= 6) ? (0) : ((((bpp >= 8) && (bpp <= 12))) ? (2) : ((bpp >= 15) ? (10) : ((((bpp > 6) && (… in get_ofs_set() 126 …bpp <= 6) ? (-2) : ((((bpp >= 8) && (bpp <= 12))) ? (0) : ((bpp >= 15) ? (8) : ((((bpp > 6) && (… in get_ofs_set() 127 …bpp <= 6) ? (-2) : ((((bpp >= 8) && (bpp <= 12))) ? (0) : ((bpp >= 15) ? (6) : ((((bpp > 6) && (… in get_ofs_set() 128 …bpp <= 6) ? (-4) : ((((bpp >= 8) && (bpp <= 12))) ? (-2) : ((bpp >= 15) ? (4) : ((((bpp > 6) && … in get_ofs_set() 129 …bpp <= 6) ? (-6) : ((((bpp >= 8) && (bpp <= 12))) ? (-4) : ((bpp >= 15) ? (2) : ((((bpp > 6) && … in get_ofs_set() 142 *p++ = (bpp <= 8) ? (0) : ((bpp >= 10) ? (8) : (0 + dsc_roundf((bpp - 8) * (8 / 2.0)))); in get_ofs_set() 143 *p++ = (bpp <= 8) ? (0) : ((bpp >= 10) ? (6) : (0 + dsc_roundf((bpp - 8) * (6 / 2.0)))); in get_ofs_set() 202 bpp_group = MODE_SELECT(bpp, bpp * 2.0, bpp * 2.0); in _do_calc_rc_params() 206 …t = (bpp >= 6) ? (2048) : ((bpp <= 4) ? (6144) : ((((bpp > 4) && (bpp <= 5))) ? (6144 - dsc_ro… in _do_calc_rc_params() [all …]
|
/linux/drivers/media/v4l2-core/ |
A D | v4l2-common.c | 238 …24, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 3, 0, 0, 0 }, .… in v4l2_format_info() 239 …24, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 3, 0, 0, 0 }, .… in v4l2_format_info() 240 …24, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 3, 0, 0, 0 }, .… in v4l2_format_info() 241 …32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .… in v4l2_format_info() 242 …R32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .… in v4l2_format_info() 243 …X32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .… in v4l2_format_info() 374 plane->bytesperline = ALIGN(width, v4l2_format_block_width(info, 0)) * info->bpp[0]; in v4l2_fill_pixfmt_mp() 386 plane->sizeimage += info->bpp[i] * in v4l2_fill_pixfmt_mp() 402 info->bpp[i] * DIV_ROUND_UP(aligned_width, hdiv); in v4l2_fill_pixfmt_mp() 428 pixfmt->bytesperline = ALIGN(width, v4l2_format_block_width(info, 0)) * info->bpp[0]; in v4l2_fill_pixfmt() [all …]
|
/linux/drivers/media/platform/sunxi/sun8i-rotate/ |
A D | sun8i_formats.c | 18 .bpp = { 4, 0, 0 }, 26 .bpp = { 4, 0, 0 }, 34 .bpp = { 4, 0, 0 }, 42 .bpp = { 4, 0, 0 }, 50 .bpp = { 4, 0, 0 }, 58 .bpp = { 4, 0, 0 }, 66 .bpp = { 4, 0, 0 }, 74 .bpp = { 4, 0, 0 }, 82 .bpp = { 3, 0, 0 }, 90 .bpp = { 3, 0, 0 }, [all …]
|
/linux/drivers/gpu/drm/rcar-du/ |
A D | rcar_du_kms.c | 43 .bpp = 16, 51 .bpp = 16, 59 .bpp = 16, 66 .bpp = 32, 74 .bpp = 32, 82 .bpp = 16, 90 .bpp = 16, 98 .bpp = 12, 106 .bpp = 12, 114 .bpp = 16, [all …]
|
/linux/drivers/media/test-drivers/vimc/ |
A D | vimc-common.c | 27 .bpp = 3, 42 .bpp = 3, 48 .bpp = 4, 56 .bpp = 1, 62 .bpp = 1, 68 .bpp = 1, 74 .bpp = 1, 80 .bpp = 2, 86 .bpp = 2, 92 .bpp = 2, [all …]
|
/linux/drivers/video/fbdev/ |
A D | c2p_iplan2.c | 52 for (i = 0; i < bpp/2; i++, dst += 4) in store_iplan2() 65 for (i = 0; i < bpp/2; i++, dst += 4) in store_iplan2_masked() 86 u32 height, u32 dst_nextline, u32 src_nextline, u32 bpp) in c2p_iplan2() argument 96 dst += dy*dst_nextline+(dx & ~15)*bpp; in c2p_iplan2() 113 store_iplan2_masked(p, bpp, d.words, first); in c2p_iplan2() 114 p += bpp*2; in c2p_iplan2() 125 store_iplan2_masked(p, bpp, d.words, first); in c2p_iplan2() 126 p += bpp*2; in c2p_iplan2() 134 store_iplan2(p, bpp, d.words); in c2p_iplan2() 135 p += bpp*2; in c2p_iplan2() [all …]
|
A D | c2p_planar.c | 48 static inline void store_planar(void *dst, u32 dst_inc, u32 bpp, u32 d[8]) in store_planar() argument 52 for (i = 0; i < bpp; i++, dst += dst_inc) in store_planar() 61 static inline void store_planar_masked(void *dst, u32 dst_inc, u32 bpp, in store_planar_masked() argument 66 for (i = 0; i < bpp; i++, dst += dst_inc) in store_planar_masked() 88 u32 src_nextline, u32 bpp) in c2p_planar() argument 113 store_planar_masked(p, dst_nextplane, bpp, d.words, in c2p_planar() 126 store_planar_masked(p, dst_nextplane, bpp, in c2p_planar() 136 store_planar(p, dst_nextplane, bpp, d.words); in c2p_planar() 146 store_planar_masked(p, dst_nextplane, bpp, in c2p_planar()
|
A D | sh7760fb.c | 157 if (bpp) in sh7760fb_get_color_info() 158 *bpp = lbpp; in sh7760fb_get_color_info() 170 int ret, bpp; in sh7760fb_check_var() local 204 int ret, bpp, gray; in sh7760fb_set_par() local 272 if (bpp == 1) in sh7760fb_set_par() 274 else if (bpp == 2) in sh7760fb_set_par() 276 else if (bpp == 4) in sh7760fb_set_par() 378 int ret, bpp; in sh7760fb_alloc_mem() local 395 if (bpp == 1) in sh7760fb_alloc_mem() 397 else if (bpp == 2) in sh7760fb_alloc_mem() [all …]
|
A D | tridentfb.c | 64 static int bpp = 8; variable 308 int tmp = bpp == 24 ? 2 : (bpp >> 4); in blade_init_accel() 381 unsigned char x = bpp == 24 ? 3 : (bpp >> 4); in xp_init_accel() 479 int tmp = bpp == 24 ? 2: (bpp >> 4); in image_init_accel() 545 unsigned char x = bpp == 24 ? 3 : (bpp >> 4); in tgui_init_accel() 1000 if (bpp == 24) in tridentfb_check_var() 1002 if (bpp != 8 && bpp != 16 && bpp != 32) in tridentfb_check_var() 1048 switch (bpp) { in tridentfb_check_var() 1095 if (bpp == 32) in tridentfb_check_var() 1262 switch (bpp) { in tridentfb_set_par() [all …]
|
/linux/drivers/video/fbdev/core/ |
A D | sysimgblt.c | 59 u32 null_bits = 32 - bpp; in color_imageblit() 82 color <<= FB_LEFT_POS(p, bpp); in color_imageblit() 90 shift += bpp; in color_imageblit() 118 u32 null_bits = 32 - bpp; in slow_imageblit() 124 fgcolor <<= FB_LEFT_POS(p, bpp); in slow_imageblit() 125 bgcolor <<= FB_LEFT_POS(p, bpp); in slow_imageblit() 153 shift += bpp; in slow_imageblit() 197 switch (bpp) { in fast_imageblit() 211 fgx <<= bpp; in fast_imageblit() 212 bgx <<= bpp; in fast_imageblit() [all …]
|
A D | cfbimgblt.c | 84 u32 null_bits = 32 - bpp; in color_imageblit() 108 color <<= FB_LEFT_POS(p, bpp); in color_imageblit() 116 shift += bpp; in color_imageblit() 146 u32 null_bits = 32 - bpp; in slow_imageblit() 153 fgcolor <<= FB_LEFT_POS(p, bpp); in slow_imageblit() 154 bgcolor <<= FB_LEFT_POS(p, bpp); in slow_imageblit() 182 shift += bpp; in slow_imageblit() 227 switch (bpp) { in fast_imageblit() 241 fgx <<= bpp; in fast_imageblit() 242 bgx <<= bpp; in fast_imageblit() [all …]
|
A D | fb_draw.h | 26 pixel_to_pat( u32 bpp, u32 pixel) in pixel_to_pat() argument 28 switch (bpp) { in pixel_to_pat() 46 WARN(1, "pixel_to_pat(): unsupported pixelformat %d\n", bpp); in pixel_to_pat() 52 pixel_to_pat( u32 bpp, u32 pixel) in pixel_to_pat() argument 54 switch (bpp) { in pixel_to_pat() 72 WARN(1, "pixel_to_pat(): unsupported pixelformat %d\n", bpp); in pixel_to_pat() 148 unsigned bpp = info->var.bits_per_pixel; in fb_compute_bswapmask() local 150 if ((bpp < 8) && (info->var.nonstd & FB_NONSTD_REV_PIX_IN_B)) { in fb_compute_bswapmask() 155 bswapmask = 7 - bpp + 1; in fb_compute_bswapmask()
|
A D | sysfillrect.c | 248 u32 bpp = p->var.bits_per_pixel; in sys_fillrect() local 261 pat = pixel_to_pat( bpp, fg); in sys_fillrect() 265 dst_idx += rect->dy*p->fix.line_length*8+rect->dx*bpp; in sys_fillrect() 267 left = bits % bpp; in sys_fillrect() 291 fill_op32(p, dst, dst_idx, pat, width*bpp, bits); in sys_fillrect() 301 left = bpp - right; in sys_fillrect() 303 right = bpp - left; in sys_fillrect() 321 r = dst_idx % bpp; in sys_fillrect() 323 pat2 = le_long_to_cpu(rolx(cpu_to_le_long(pat), r, bpp)); in sys_fillrect() 325 width*bpp, bits); in sys_fillrect()
|
/linux/drivers/gpu/drm/i915/gvt/ |
A D | fb_decoder.c | 147 u32 tiled, int stride_mask, int bpp) in intel_vgpu_get_stride() argument 166 if (bpp == 8) in intel_vgpu_get_stride() 168 else if (bpp == 16 || bpp == 32 || bpp == 64) in intel_vgpu_get_stride() 231 plane->bpp = skl_pixel_formats[fmt].bpp; in intel_vgpu_decode_primary_plane() 236 plane->bpp = bdw_pixel_formats[fmt].bpp; in intel_vgpu_decode_primary_plane() 240 if (!plane->bpp) { in intel_vgpu_decode_primary_plane() 261 _PRI_PLANE_STRIDE_MASK, plane->bpp); in intel_vgpu_decode_primary_plane() 352 if (!cursor_pixel_formats[index].bpp) { in intel_vgpu_decode_cursor_plane() 357 plane->bpp = cursor_pixel_formats[index].bpp; in intel_vgpu_decode_cursor_plane() 434 if (!sprite_pixel_formats[fmt].bpp) { in intel_vgpu_decode_sprite_plane() [all …]
|
/linux/drivers/gpu/drm/shmobile/ |
A D | shmob_drm_kms.c | 29 .bpp = 16, 34 .bpp = 24, 39 .bpp = 32, 44 .bpp = 12, 49 .bpp = 12, 54 .bpp = 16, 59 .bpp = 16, 64 .bpp = 24, 69 .bpp = 24, 111 unsigned int chroma_cpp = format->bpp == 24 ? 2 : 1; in shmob_drm_fb_create()
|
/linux/drivers/staging/media/imx/ |
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, 113 .bpp = 8, [all …]
|
/linux/drivers/gpu/drm/nouveau/dispnv04/ |
A D | arb.c | 45 int bpp; member 56 int pagemiss, cas, bpp; in nv04_calc_arb() local 68 bpp = arb->bpp; in nv04_calc_arb() 84 crtc_drain_rate = pclk_freq * bpp / 8; in nv04_calc_arb() 94 p1 = p1 * bpp / 8; in nv04_calc_arb() 124 drain_rate = pclk_freq * arb->bpp / 8; /* kB/s */ in nv10_calc_arb() 161 + (arb->bpp == 32 ? 8 : 4); /* Margin of error. */ in nv10_calc_arb() 193 nv04_update_arb(struct drm_device *dev, int VClk, int bpp, in nv04_update_arb() argument 208 sim_data.bpp = bpp; in nv04_update_arb() 252 nouveau_calc_arb(struct drm_device *dev, int vclk, int bpp, int *burst, int *lwm) in nouveau_calc_arb() argument [all …]
|
/linux/include/linux/sunrpc/ |
A D | cache.h | 80 char **bpp, int *blen); 245 extern void qword_add(char **bpp, int *lp, char *str); 247 extern int qword_get(char **bpp, char *dest, int bufsize); 249 static inline int get_int(char **bpp, int *anint) in get_int() argument 254 int len = qword_get(bpp, buf, sizeof(buf)); in get_int() 269 static inline int get_uint(char **bpp, unsigned int *anint) in get_uint() argument 272 int len = qword_get(bpp, buf, sizeof(buf)); in get_uint() 285 static inline int get_time(char **bpp, time64_t *time) in get_time() argument 289 int len = qword_get(bpp, buf, sizeof(buf)); in get_time() 303 static inline time64_t get_expiry(char **bpp) in get_expiry() argument [all …]
|
/linux/drivers/video/fbdev/omap/ |
A D | lcdc.c | 49 int bpp; member 210 int bpp = lcdc.bpp; in setup_lcd_dma() local 217 bpp = 16; in setup_lcd_dma() 312 lcdc.bpp = 8; in omap_lcdc_setup_plane() 317 lcdc.bpp = 16; in omap_lcdc_setup_plane() 322 lcdc.bpp = 16; in omap_lcdc_setup_plane() 328 lcdc.bpp = 12; in omap_lcdc_setup_plane() 621 int bpp; in alloc_fbmem() local 625 bpp = panel->bpp; in alloc_fbmem() 626 if (bpp == 12) in alloc_fbmem() [all …]
|
/linux/Documentation/fb/ |
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) 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
|
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) 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
|
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) 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
|
/linux/drivers/gpu/drm/msm/dp/ |
A D | dp_panel.c | 116 u32 bpp = 0, data_rate_khz = 0; in dp_panel_get_supported_bpp() local 118 bpp = min_t(u32, mode_edid_bpp, max_supported_bpp); in dp_panel_get_supported_bpp() 123 while (bpp > min_supported_bpp) { in dp_panel_get_supported_bpp() 124 if (mode_pclk_khz * bpp <= data_rate_khz) in dp_panel_get_supported_bpp() 126 bpp -= 6; in dp_panel_get_supported_bpp() 129 return bpp; in dp_panel_get_supported_bpp() 237 u32 bpp; in dp_panel_get_mode_bpp() local 247 bpp = dp_link_bit_depth_to_bpp( in dp_panel_get_mode_bpp() 253 return bpp; in dp_panel_get_mode_bpp() 437 dp_panel->dp_mode.bpp = max_t(u32, 18, in dp_panel_init_panel_info() [all …]
|
/linux/drivers/gpu/drm/fsl-dcu/ |
A D | fsl_dcu_drm_plane.c | 87 unsigned int alpha = DCU_LAYER_AB_NONE, bpp; in fsl_dcu_drm_plane_atomic_update() local 101 bpp = FSL_DCU_RGB565; in fsl_dcu_drm_plane_atomic_update() 104 bpp = FSL_DCU_RGB888; in fsl_dcu_drm_plane_atomic_update() 110 bpp = FSL_DCU_ARGB8888; in fsl_dcu_drm_plane_atomic_update() 116 bpp = FSL_DCU_ARGB4444; in fsl_dcu_drm_plane_atomic_update() 122 bpp = FSL_DCU_ARGB1555; in fsl_dcu_drm_plane_atomic_update() 125 bpp = FSL_DCU_YUV422; in fsl_dcu_drm_plane_atomic_update() 142 DCU_LAYER_BPP(bpp) | in fsl_dcu_drm_plane_atomic_update()
|
/linux/arch/m68k/include/asm/ |
A D | mac_via.h | 270 static inline int rbv_set_video_bpp(int bpp) in rbv_set_video_bpp() argument 272 char val = (bpp==1)?0:(bpp==2)?1:(bpp==4)?2:(bpp==8)?3:-1; in rbv_set_video_bpp()
|