Home
last modified time | relevance | path

Searched refs:bpp (Results 1 – 25 of 549) sorted by relevance

12345678910>>...22

/Linux-v5.15/drivers/gpu/drm/amd/display/dc/dsc/
Drc_calc.c45 enum max_min max_min, float bpp) in get_qp_set() argument
79 index = (bpp - table[0].bpp) * 2; in get_qp_set()
110 static void get_ofs_set(qp_set ofs, enum colour_mode mode, float bpp) in get_ofs_set() argument
115bpp <= 6) ? (0) : ((((bpp >= 8) && (bpp <= 12))) ? (2) : ((bpp >= 15) ? (10) : ((((bpp > 6) && ( in get_ofs_set()
116bpp <= 6) ? (-2) : ((((bpp >= 8) && (bpp <= 12))) ? (0) : ((bpp >= 15) ? (8) : ((((bpp > 6) && ( in get_ofs_set()
117bpp <= 6) ? (-2) : ((((bpp >= 8) && (bpp <= 12))) ? (0) : ((bpp >= 15) ? (6) : ((((bpp > 6) && ( in get_ofs_set()
118bpp <= 6) ? (-4) : ((((bpp >= 8) && (bpp <= 12))) ? (-2) : ((bpp >= 15) ? (4) : ((((bpp > 6) && … in get_ofs_set()
119bpp <= 6) ? (-6) : ((((bpp >= 8) && (bpp <= 12))) ? (-4) : ((bpp >= 15) ? (2) : ((((bpp > 6) && … in get_ofs_set()
120 *p++ = (bpp <= 12) ? (-6) : ((bpp >= 15) ? (0) : (-6 + dsc_roundf((bpp - 12) * (6 / 3.0)))); in get_ofs_set()
121 *p++ = (bpp <= 12) ? (-8) : ((bpp >= 15) ? (-2) : (-8 + dsc_roundf((bpp - 12) * (6 / 3.0)))); in get_ofs_set()
[all …]
/Linux-v5.15/drivers/media/platform/sunxi/sun8i-rotate/
Dsun8i_formats.c18 .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-v5.15/drivers/media/v4l2-core/
Dv4l2-common.c238 …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()
244 …32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .… in v4l2_format_info()
245 …B32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .… in v4l2_format_info()
246 …X32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .… in v4l2_format_info()
247 …32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .… in v4l2_format_info()
[all …]
/Linux-v5.15/drivers/gpu/drm/rcar-du/
Drcar_du_kms.c42 .bpp = 16,
50 .bpp = 16,
58 .bpp = 16,
65 .bpp = 32,
73 .bpp = 32,
81 .bpp = 16,
89 .bpp = 16,
97 .bpp = 12,
105 .bpp = 12,
113 .bpp = 16,
[all …]
/Linux-v5.15/drivers/media/test-drivers/vimc/
Dvimc-common.c27 .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-v5.15/drivers/video/fbdev/
Dc2p_iplan2.c48 static inline void store_iplan2(void *dst, u32 bpp, u32 d[4]) in store_iplan2() argument
52 for (i = 0; i < bpp/2; i++, dst += 4) in store_iplan2()
61 static inline void store_iplan2_masked(void *dst, u32 bpp, u32 d[4], u32 mask) in store_iplan2_masked() argument
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()
[all …]
Dc2p_planar.c48 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()
Dsh7760fb.c122 u16 lddfr, int *bpp, int *gray) in sh7760fb_get_color_info() argument
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
173 ret = sh7760fb_get_color_info(info->dev, par->pd->lddfr, &bpp, NULL); in sh7760fb_check_var()
177 var->bits_per_pixel = bpp; in sh7760fb_check_var()
204 int ret, bpp, gray; in sh7760fb_set_par() local
225 ret = sh7760fb_get_color_info(info->dev, par->pd->lddfr, &bpp, &gray); in sh7760fb_set_par()
230 vdln, bpp, gray ? "grayscale" : "color", in sh7760fb_set_par()
270 stride *= (bpp + 7) >> 3; in sh7760fb_set_par()
[all …]
Dtridentfb.c64 static int bpp = 8; variable
82 module_param(bpp, int, 0);
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()
477 static void image_init_accel(struct tridentfb_par *par, int pitch, int bpp) in image_init_accel() argument
479 int tmp = bpp == 24 ? 2: (bpp >> 4); in image_init_accel()
[all …]
/Linux-v5.15/drivers/video/fbdev/core/
Dsysimgblt.c58 int i, n, bpp = p->var.bits_per_pixel; in color_imageblit() local
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()
115 u32 shift, color = 0, bpp = p->var.bits_per_pixel; in slow_imageblit() local
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()
189 u32 fgx = fgcolor, bgx = bgcolor, bpp = p->var.bits_per_pixel; in fast_imageblit() local
[all …]
Dcfbimgblt.c83 int i, n, bpp = p->var.bits_per_pixel; in color_imageblit() local
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()
143 u32 shift, color = 0, bpp = p->var.bits_per_pixel; in slow_imageblit() local
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()
219 u32 fgx = fgcolor, bgx = bgcolor, bpp = p->var.bits_per_pixel; in fast_imageblit() local
[all …]
Dfb_draw.h26 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()
Dsysfillrect.c248 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-v5.15/drivers/gpu/drm/shmobile/
Dshmob_drm_kms.c29 .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-v5.15/drivers/gpu/drm/i915/gvt/
Dfb_decoder.c44 int bpp; /* Bits per pixel, 0 indicates invalid */ member
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()
171 gvt_dbg_core("skl: unsupported bpp:%d\n", bpp); 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()
282 u8 bpp; /* Bits per pixel; 0 indicates invalid */ member
[all …]
/Linux-v5.15/drivers/gpu/drm/nouveau/dispnv04/
Darb.c45 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-v5.15/include/linux/sunrpc/
Dcache.h80 char **bpp, int *blen);
245 extern void qword_add(char **bpp, int *lp, char *str);
246 extern void qword_addhex(char **bpp, int *lp, char *buf, int blen);
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()
[all …]
/Linux-v5.15/drivers/staging/media/imx/
Dimx-media-utils.c24 .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-v5.15/Documentation/fb/
Darkfb.rst19 * 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
Ds3fb.rst26 * 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
Dvt8623fb.rst18 * 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-v5.15/drivers/video/fbdev/omap/
Dlcdc.c49 int bpp; member
186 xelem = lcdc.xres * lcdc.bpp / 8 / esize; in setup_lcd_dma()
196 xelem = lcdc.yres * lcdc.bpp / 16; in setup_lcd_dma()
210 int bpp = lcdc.bpp; in setup_lcd_dma() local
217 bpp = 16; in setup_lcd_dma()
220 lcdc.screen_width * bpp / 8 / esize); 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()
[all …]
/Linux-v5.15/drivers/gpu/drm/fsl-dcu/
Dfsl_dcu_drm_plane.c87 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-v5.15/drivers/gpu/drm/msm/dp/
Ddp_panel.c116 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 = mode_edid_bpp; in dp_panel_get_mode_bpp() local
247 bpp = dp_link_bit_depth_to_bpp( in dp_panel_get_mode_bpp()
250 bpp = dp_panel_get_supported_bpp(dp_panel, mode_edid_bpp, in dp_panel_get_mode_bpp()
253 return bpp; in dp_panel_get_mode_bpp()
[all …]
/Linux-v5.15/arch/m68k/include/asm/
Dmac_via.h270 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()

12345678910>>...22