Home
last modified time | relevance | path

Searched refs:bits_per_pixel (Results 1 – 25 of 193) sorted by relevance

12345678

/linux/drivers/video/fbdev/
H A D68328fb.c156 if (var->bits_per_pixel <= 1) in mc68x328fb_check_var()
157 var->bits_per_pixel = 1; in mc68x328fb_check_var()
158 else if (var->bits_per_pixel <= 8) in mc68x328fb_check_var()
159 var->bits_per_pixel = 8; in mc68x328fb_check_var()
160 else if (var->bits_per_pixel <= 16) in mc68x328fb_check_var()
161 var->bits_per_pixel = 16; in mc68x328fb_check_var()
162 else if (var->bits_per_pixel <= 24) in mc68x328fb_check_var()
163 var->bits_per_pixel = 24; in mc68x328fb_check_var()
164 else if (var->bits_per_pixel <= 32) in mc68x328fb_check_var()
165 var->bits_per_pixel = 32; in mc68x328fb_check_var()
[all …]
H A Dvfb.c141 if (var->bits_per_pixel <= 1) in vfb_check_var()
142 var->bits_per_pixel = 1; in vfb_check_var()
143 else if (var->bits_per_pixel <= 8) in vfb_check_var()
144 var->bits_per_pixel = 8; in vfb_check_var()
145 else if (var->bits_per_pixel <= 16) in vfb_check_var()
146 var->bits_per_pixel = 16; in vfb_check_var()
147 else if (var->bits_per_pixel <= 24) in vfb_check_var()
148 var->bits_per_pixel = 24; in vfb_check_var()
149 else if (var->bits_per_pixel <= 32) in vfb_check_var()
150 var->bits_per_pixel = 32; in vfb_check_var()
[all …]
H A Dclps711x-fb.c50 if (regno >= BIT(info->var.bits_per_pixel)) in clps711x_fb_setcolreg()
72 if (var->bits_per_pixel < 1 || in clps711x_fb_check_var()
73 var->bits_per_pixel > CLPS711X_FB_BPP_MAX) in clps711x_fb_check_var()
83 val = DIV_ROUND_UP(var->yres * var->xres * var->bits_per_pixel, 128); in clps711x_fb_check_var()
93 var->red.length = var->bits_per_pixel; in clps711x_fb_check_var()
96 var->grayscale = var->bits_per_pixel > 1; in clps711x_fb_check_var()
107 size = (info->var.xres * info->var.yres * info->var.bits_per_pixel) / 8; in clps711x_fb_set_par()
111 switch (info->var.bits_per_pixel) { in clps711x_fb_set_par()
123 info->fix.line_length = info->var.xres * info->var.bits_per_pixel / 8; in clps711x_fb_set_par()
127 info->var.bits_per_pixel) / 128 - 1; in clps711x_fb_set_par()
[all …]
H A Dhitfb.c149 if (p->var.bits_per_pixel == 16) { in hitfb_fillrect()
167 hitfb_accel_bitblt(p->var.bits_per_pixel == 16, area->sx, area->sy, in hitfb_copyarea()
228 switch (info->var.bits_per_pixel) { in hitfb_setcolreg()
261 if ((var->bits_per_pixel != 8) && (var->bits_per_pixel != 16)) in hitfb_check_var()
262 var->bits_per_pixel = info->var.bits_per_pixel; in hitfb_check_var()
269 if (var->bits_per_pixel == 16) in hitfb_check_var()
278 switch (var->bits_per_pixel) { in hitfb_check_var()
308 switch (info->var.bits_per_pixel) { in hitfb_set_par()
324 ldr3 |= (info->var.bits_per_pixel == 8) ? 4 : 8; in hitfb_set_par()
365 hitfb_var.bits_per_pixel = 8; in hitfb_probe()
[all …]
H A Dgrvga.c87 if (var->bits_per_pixel <= 8) in grvga_check_var()
88 var->bits_per_pixel = 8; in grvga_check_var()
89 else if (var->bits_per_pixel <= 16) in grvga_check_var()
90 var->bits_per_pixel = 16; in grvga_check_var()
91 else if (var->bits_per_pixel <= 24) in grvga_check_var()
92 var->bits_per_pixel = 24; in grvga_check_var()
93 else if (var->bits_per_pixel <= 32) in grvga_check_var()
94 var->bits_per_pixel = 32; in grvga_check_var()
102 if ((var->yres_virtual*var->xres_virtual*var->bits_per_pixel/8) > info->fix.smem_len) in grvga_check_var()
116 switch (info->var.bits_per_pixel) { in grvga_check_var()
[all …]
H A Dmacfb.c194 unsigned int bpp = info->var.bits_per_pixel; in v8_brazil_setpalette()
233 regno += 256 - (1 << info->var.bits_per_pixel); in rbv_setpalette()
283 unsigned int bpp = info->var.bits_per_pixel; in toby_setpalette()
446 if (fb_info->var.bits_per_pixel <= 8) { in macfb_setcolreg()
447 switch (fb_info->var.bits_per_pixel) { in macfb_setcolreg()
462 switch (fb_info->var.bits_per_pixel) { in macfb_setcolreg()
558 macfb_defined.bits_per_pixel = mac_bi_data.videodepth; in macfb_init()
581 macfb_defined.bits_per_pixel, macfb_fix.line_length); in macfb_init()
595 switch (macfb_defined.bits_per_pixel) { in macfb_init()
597 macfb_defined.red.length = macfb_defined.bits_per_pixel; in macfb_init()
[all …]
H A Dsm712fb.c70 .bits_per_pixel = 16,
997 if (sfb->fb->var.bits_per_pixel == 16) { in smtc_setcolreg()
1164 sfb->width, sfb->height, sfb->fb->var.bits_per_pixel, sfb->hz); in sm7xx_set_timing()
1169 vgamode[j].bpp != sfb->fb->var.bits_per_pixel || in sm7xx_set_timing()
1242 m_nscreenstride = (sfb->width * sfb->fb->var.bits_per_pixel) / 64; in sm7xx_set_timing()
1243 switch (sfb->fb->var.bits_per_pixel) { in sm7xx_set_timing()
1274 switch (sfb->fb->var.bits_per_pixel) { in smtcfb_setmode()
1334 if ((var->bits_per_pixel != 8) && (var->bits_per_pixel != 16) && in smtc_check_var()
1335 (var->bits_per_pixel != 24) && (var->bits_per_pixel != 32)) in smtc_check_var()
1336 var->bits_per_pixel = 16; in smtc_check_var()
[all …]
H A Dvt8500lcdfb.c49 if (info->var.bits_per_pixel <= 8) { in vt8500lcd_set_par()
52 info->var.red.length = info->var.bits_per_pixel; in vt8500lcd_set_par()
56 info->var.green.length = info->var.bits_per_pixel; in vt8500lcd_set_par()
60 info->var.blue.length = info->var.bits_per_pixel; in vt8500lcd_set_par()
69 (8/info->var.bits_per_pixel); in vt8500lcd_set_par()
76 if (info->var.bits_per_pixel == 16) { in vt8500lcd_set_par()
89 info->var.red.offset = info->var.bits_per_pixel in vt8500lcd_set_par()
91 info->var.red.length = info->var.bits_per_pixel / 3; in vt8500lcd_set_par()
93 info->var.green.offset = info->var.bits_per_pixel / 3; in vt8500lcd_set_par()
94 info->var.green.length = info->var.bits_per_pixel / 3; in vt8500lcd_set_par()
[all …]
H A Dpxa168fb.c42 if (var->bits_per_pixel == 8) in determine_best_pix_fmt()
48 if (var->bits_per_pixel == 16 && var->red.length <= 5 && in determine_best_pix_fmt()
68 if (var->bits_per_pixel <= 32 && var->red.length <= 8 && in determine_best_pix_fmt()
70 if (var->bits_per_pixel == 24 && var->transp.length == 0) { in determine_best_pix_fmt()
77 if (var->bits_per_pixel == 32 && var->transp.length == 8) { in determine_best_pix_fmt()
97 var->bits_per_pixel = 16; in set_pix_fmt()
104 var->bits_per_pixel = 16; in set_pix_fmt()
111 var->bits_per_pixel = 16; in set_pix_fmt()
118 var->bits_per_pixel = 16; in set_pix_fmt()
125 var->bits_per_pixel = 24; in set_pix_fmt()
[all …]
H A Dpvr2fb.c164 .bits_per_pixel =16,
257 switch (var->bits_per_pixel) { in set_color_bitfields()
296 switch (info->var.bits_per_pixel) { in pvr2fb_setcolreg()
315 pr_debug("Invalid bit depth %d?!?\n", info->var.bits_per_pixel); in pvr2fb_setcolreg()
426 line_length = get_line_length(var->xres_virtual, var->bits_per_pixel); in pvr2fb_set_par()
452 if (var->bits_per_pixel <= 16) in pvr2fb_check_var()
453 var->bits_per_pixel = 16; in pvr2fb_check_var()
454 else if (var->bits_per_pixel <= 24) in pvr2fb_check_var()
455 var->bits_per_pixel = 24; in pvr2fb_check_var()
456 else if (var->bits_per_pixel <= 32) in pvr2fb_check_var()
[all …]
H A Dvesafb.c150 if (info->var.bits_per_pixel == 8) in vesafb_setcolreg()
153 switch (info->var.bits_per_pixel) { in vesafb_setcolreg()
276 vesafb_defined.bits_per_pixel = si->lfb_depth; in vesafb_probe()
277 if (15 == vesafb_defined.bits_per_pixel) in vesafb_probe()
278 vesafb_defined.bits_per_pixel = 16; in vesafb_probe()
282 vesafb_fix.visual = (vesafb_defined.bits_per_pixel == 8) ? in vesafb_probe()
337 vesafb_defined.xres, vesafb_defined.yres, vesafb_defined.bits_per_pixel, in vesafb_probe()
374 if (vesafb_defined.bits_per_pixel == 8 && !pmi_setpal && !vga_compat) { in vesafb_probe()
405 if (vesafb_defined.bits_per_pixel <= 8) { in vesafb_probe()
410 vesafb_defined.bits_per_pixel; in vesafb_probe()
[all …]
H A Datafb.c583 int bpp = var->bits_per_pixel; in tt_decode_var()
685 var->bits_per_pixel = 4; in tt_encode_var()
691 var->bits_per_pixel = 2; in tt_encode_var()
697 var->bits_per_pixel = 1; in tt_encode_var()
703 var->bits_per_pixel = 8; in tt_encode_var()
709 var->bits_per_pixel = 4; in tt_encode_var()
716 var->bits_per_pixel = 1; in tt_encode_var()
723 linelen = var->xres_virtual * var->bits_per_pixel / 8; in tt_encode_var()
883 int bpp = var->bits_per_pixel; in falcon_decode_var()
956 if (bpp > myvar->bits_per_pixel || in falcon_decode_var()
[all …]
H A Dwmt_ge_rops.c57 pat = pixel_to_pat(p->var.bits_per_pixel, fg); in wmt_ge_fillrect()
62 writel(p->var.bits_per_pixel == 32 ? 3 : in wmt_ge_fillrect()
63 (p->var.bits_per_pixel == 8 ? 0 : 1), regbase + GE_DEPTH_OFF); in wmt_ge_fillrect()
64 writel(p->var.bits_per_pixel == 15 ? 1 : 0, regbase + GE_HIGHCOLOR_OFF); in wmt_ge_fillrect()
88 writel(p->var.bits_per_pixel > 16 ? 3 : in wmt_ge_copyarea()
89 (p->var.bits_per_pixel > 8 ? 1 : 0), regbase + GE_DEPTH_OFF); in wmt_ge_copyarea()
H A Dcirrusfb.c397 static void cirrusfb_BitBLT(u8 __iomem *regbase, int bits_per_pixel,
402 static void cirrusfb_RectFill(u8 __iomem *regbase, int bits_per_pixel,
479 unsigned maxclockidx = var->bits_per_pixel >> 3; in cirrusfb_check_pixclock()
501 if (var->bits_per_pixel == 8) { in cirrusfb_check_pixclock()
523 var->bits_per_pixel == 16) { in cirrusfb_check_pixclock()
538 switch (var->bits_per_pixel) { in cirrusfb_check_var()
573 "Unsupported bpp size: %d\n", var->bits_per_pixel); in cirrusfb_check_var()
577 pixels = info->screen_size * 8 / var->bits_per_pixel; in cirrusfb_check_var()
595 var->bits_per_pixel); in cirrusfb_check_var()
674 var->xres, var->yres, var->bits_per_pixel); in cirrusfb_set_par_foo()
[all …]
H A Dmacmodes.c237 var->bits_per_pixel = 8; in mac_vmode_to_var()
247 var->bits_per_pixel = 16; in mac_vmode_to_var()
257 var->bits_per_pixel = 32; in mac_vmode_to_var()
308 if (var->bits_per_pixel <= 8) in mac_var_to_vmode()
310 else if (var->bits_per_pixel <= 16) in mac_var_to_vmode()
312 else if (var->bits_per_pixel <= 32) in mac_var_to_vmode()
/linux/drivers/staging/media/atomisp/pci/runtime/isys/src/
H A Dvirtual_isys.c63 s32 bits_per_pixel,
133 s32 bits_per_pixel,
303 metadata ? cfg->metadata.bits_per_pixel : in create_input_system_channel()
304 cfg->input_port_resolution.bits_per_pixel, in create_input_system_channel()
537 s32 bits_per_pixel, in calculate_stride() argument
550 bits_per_pixel = CEIL_MUL(bits_per_pixel, 8); in calculate_stride()
552 pixels_per_word = HIVE_ISP_DDR_WORD_BITS / bits_per_pixel; in calculate_stride()
560 s32 bits_per_pixel, in acquire_ib_buffer() argument
567 buf->stride = calculate_stride(bits_per_pixel, pixels_per_line, false, in acquire_ib_buffer()
671 cfg->bits_per_pixel = metadata ? isys_cfg->metadata.bits_per_pixel : in calculate_stream2mmio_cfg()
[all …]
/linux/drivers/video/fbdev/mmp/fb/
H A Dmmpfb.c19 if (var->bits_per_pixel == 8) in var_to_pixfmt()
25 if (var->bits_per_pixel == 16 && var->red.length == 8 && in var_to_pixfmt()
36 if (var->bits_per_pixel == 12 && var->red.length == 8 && in var_to_pixfmt()
47 if (var->bits_per_pixel == 16 && var->red.length == 16 && in var_to_pixfmt()
60 if (var->bits_per_pixel == 16 && var->red.length <= 5 && in var_to_pixfmt()
73 if (var->bits_per_pixel <= 32 && var->red.length <= 8 && in var_to_pixfmt()
75 if (var->bits_per_pixel == 24 && var->transp.length == 0) { in var_to_pixfmt()
82 if (var->bits_per_pixel == 32 && var->transp.offset == 24) { in var_to_pixfmt()
102 var->bits_per_pixel = 16; in pixfmt_to_var()
109 var->bits_per_pixel = 16; in pixfmt_to_var()
[all …]
/linux/drivers/firmware/
H A Dsysfb_simplefb.c31 u32 bits_per_pixel; in sysfb_parse_mode() local
60 bits_per_pixel = max(max3(si->red_size + si->red_pos, in sysfb_parse_mode()
64 bits_per_pixel = max_t(u32, bits_per_pixel, si->lfb_depth); in sysfb_parse_mode()
66 bits_per_pixel = si->lfb_depth; in sysfb_parse_mode()
75 if (bits_per_pixel == f->bits_per_pixel && in sysfb_parse_mode()
/linux/drivers/video/fbdev/omap2/omapfb/
H A Domapfb-main.c59 const unsigned bytespp = var->bits_per_pixel >> 3; in draw_pixel()
66 if (var->bits_per_pixel == 16) { in draw_pixel()
75 } else if (var->bits_per_pixel == 24) { in draw_pixel()
82 } else if (var->bits_per_pixel == 32) { in draw_pixel()
125 if (var->bits_per_pixel == 16) { in fill_fb()
207 .bits_per_pixel = 16,
211 .bits_per_pixel = 16,
215 .bits_per_pixel = 16,
222 .bits_per_pixel = 16,
229 .bits_per_pixel = 24,
[all …]
/linux/drivers/media/pci/ivtv/
H A Divtvfb.c165 int bits_per_pixel; member
517 switch (var->bits_per_pixel) { in ivtvfb_set_var()
550 oi->bits_per_pixel = var->bits_per_pixel; in ivtvfb_set_var()
551 oi->bytes_per_pixel = var->bits_per_pixel / 8; in ivtvfb_set_var()
603 var->bits_per_pixel); in ivtvfb_set_var()
625 fix->visual = (oi->bits_per_pixel == 8) ? FB_VISUAL_PSEUDOCOLOR : FB_VISUAL_TRUECOLOR; in ivtvfb_get_fix()
659 if (var->bits_per_pixel == 8 || var->bits_per_pixel == 32) { in _ivtvfb_check_var()
669 else if (var->bits_per_pixel == 16) { in _ivtvfb_check_var()
705 IVTVFB_DEBUG_WARN("Invalid colour mode: %d\n", var->bits_per_pixel); in _ivtvfb_check_var()
717 if (var->xres_virtual > 4095 / (var->bits_per_pixel / 8) || in _ivtvfb_check_var()
[all …]
/linux/drivers/video/fbdev/mb862xx/
H A Dmb862xxfbdrv.c60 return var->xres * var->bits_per_pixel / 8; in d_pitch()
124 if (var->bits_per_pixel <= 8) in mb862xxfb_check_var()
125 var->bits_per_pixel = 8; in mb862xxfb_check_var()
126 else if (var->bits_per_pixel <= 16) in mb862xxfb_check_var()
127 var->bits_per_pixel = 16; in mb862xxfb_check_var()
128 else if (var->bits_per_pixel <= 32) in mb862xxfb_check_var()
129 var->bits_per_pixel = 32; in mb862xxfb_check_var()
138 var->bits_per_pixel = 0; in mb862xxfb_check_var()
140 var->bits_per_pixel += 8; in mb862xxfb_check_var()
142 } while (r && var->bits_per_pixel <= 32); in mb862xxfb_check_var()
[all …]
/linux/drivers/gpu/ipu-v3/
H A Dipu-cpmem.c372 ro = rgb->bits_per_pixel - rgb->red.length - rgb->red.offset; in ipu_cpmem_set_format_rgb()
373 go = rgb->bits_per_pixel - rgb->green.length - rgb->green.offset; in ipu_cpmem_set_format_rgb()
374 bo = rgb->bits_per_pixel - rgb->blue.length - rgb->blue.offset; in ipu_cpmem_set_format_rgb()
375 to = rgb->bits_per_pixel - rgb->transp.length - rgb->transp.offset; in ipu_cpmem_set_format_rgb()
391 rgb->bits_per_pixel); in ipu_cpmem_set_format_rgb()
394 switch (rgb->bits_per_pixel) { in ipu_cpmem_set_format_rgb()
489 .bits_per_pixel = 32,
497 .bits_per_pixel = 32,
505 .bits_per_pixel = 32,
513 .bits_per_pixel = 32,
[all …]
/linux/drivers/gpu/drm/display/
H A Ddrm_dsc_helper.c123 ((dsc_cfg->bits_per_pixel & DSC_PPS_BPP_HIGH_MASK) >> in drm_dsc_pps_payload_pack()
132 (dsc_cfg->bits_per_pixel & DSC_PPS_LSB_MASK); in drm_dsc_pps_payload_pack()
324 if (vdsc_cfg->bits_per_pixel == 6 << 4) { in drm_dsc_set_rc_buf_thresh()
1249 if (WARN_ON_ONCE(!vdsc_cfg->bits_per_pixel || in drm_dsc_setup_rc_params()
1271 vdsc_cfg->bits_per_pixel, in drm_dsc_setup_rc_params()
1329 vdsc_cfg->bits_per_pixel, in drm_dsc_compute_rc_parameters()
1338 vdsc_cfg->bits_per_pixel, in drm_dsc_compute_rc_parameters()
1373 vdsc_cfg->bits_per_pixel + 8) / 16 + num_extra_mux_bits; in drm_dsc_compute_rc_parameters()
1429 vdsc_cfg->bits_per_pixel, 16) + in drm_dsc_compute_rc_parameters()
1432 hrd_delay = DIV_ROUND_UP((rbs_min * 16), vdsc_cfg->bits_per_pixel); in drm_dsc_compute_rc_parameters()
[all …]
/linux/drivers/hid/
H A Dhid-picolcd_fb.c65 .bits_per_pixel = 1,
308 __u32 bpp = var->bits_per_pixel; in picolcd_fb_check_var()
315 var->bits_per_pixel = 8; in picolcd_fb_check_var()
320 var->bits_per_pixel = 1; in picolcd_fb_check_var()
332 if (info->var.bits_per_pixel == fbdata->bpp) in picolcd_set_par()
335 if (info->var.bits_per_pixel != 1 && info->var.bits_per_pixel != 8) in picolcd_set_par()
339 tmp_fb = kmalloc_array(PICOLCDFB_SIZE, info->var.bits_per_pixel, in picolcd_set_par()
345 if (info->var.bits_per_pixel == 1) { in picolcd_set_par()
368 fbdata->bpp = info->var.bits_per_pixel; in picolcd_set_par()
508 fbdata->bpp = picolcdfb_var.bits_per_pixel; in picolcd_init_framebuffer()
/linux/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_audio.c405 struct fixed31_32 bits_per_pixel; in calculate_available_hblank_bw_in_symbols() local
411 bits_per_pixel = dc_fixpt_from_fraction(crtc_info->dsc_bits_per_pixel, 16); in calculate_available_hblank_bw_in_symbols()
415 bits_per_pixel = dc_fixpt_from_int(6); in calculate_available_hblank_bw_in_symbols()
418 bits_per_pixel = dc_fixpt_from_int(8); in calculate_available_hblank_bw_in_symbols()
421 bits_per_pixel = dc_fixpt_from_int(10); in calculate_available_hblank_bw_in_symbols()
424 bits_per_pixel = dc_fixpt_from_int(12); in calculate_available_hblank_bw_in_symbols()
428 bits_per_pixel = dc_fixpt_from_int(8); in calculate_available_hblank_bw_in_symbols()
432 bits_per_pixel = dc_fixpt_mul_int(bits_per_pixel, 3); in calculate_available_hblank_bw_in_symbols()
435 bits_per_pixel = dc_fixpt_div_int(bits_per_pixel, 3); in calculate_available_hblank_bw_in_symbols()
436 bits_per_pixel = dc_fixpt_mul_int(bits_per_pixel, 2); in calculate_available_hblank_bw_in_symbols()
[all …]

12345678