Home
last modified time | relevance | path

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

123456789

/kernel/linux/linux-5.10/drivers/video/fbdev/
D68328fb.c159 if (var->bits_per_pixel <= 1) in mc68x328fb_check_var()
160 var->bits_per_pixel = 1; in mc68x328fb_check_var()
161 else if (var->bits_per_pixel <= 8) in mc68x328fb_check_var()
162 var->bits_per_pixel = 8; in mc68x328fb_check_var()
163 else if (var->bits_per_pixel <= 16) in mc68x328fb_check_var()
164 var->bits_per_pixel = 16; in mc68x328fb_check_var()
165 else if (var->bits_per_pixel <= 24) in mc68x328fb_check_var()
166 var->bits_per_pixel = 24; in mc68x328fb_check_var()
167 else if (var->bits_per_pixel <= 32) in mc68x328fb_check_var()
168 var->bits_per_pixel = 32; in mc68x328fb_check_var()
[all …]
Dhitfb.c133 if (p->var.bits_per_pixel == 16) { in hitfb_fillrect()
151 hitfb_accel_bitblt(p->var.bits_per_pixel == 16, area->sx, area->sy, in hitfb_copyarea()
212 switch (info->var.bits_per_pixel) { in hitfb_setcolreg()
245 if ((var->bits_per_pixel != 8) && (var->bits_per_pixel != 16)) in hitfb_check_var()
246 var->bits_per_pixel = info->var.bits_per_pixel; in hitfb_check_var()
253 if (var->bits_per_pixel == 16) in hitfb_check_var()
262 switch (var->bits_per_pixel) { in hitfb_check_var()
292 switch (info->var.bits_per_pixel) { in hitfb_set_par()
308 ldr3 |= (info->var.bits_per_pixel == 8) ? 4 : 8; in hitfb_set_par()
347 hitfb_var.bits_per_pixel = 8; in hitfb_probe()
[all …]
Dvfb.c143 if (var->bits_per_pixel <= 1) in vfb_check_var()
144 var->bits_per_pixel = 1; in vfb_check_var()
145 else if (var->bits_per_pixel <= 8) in vfb_check_var()
146 var->bits_per_pixel = 8; in vfb_check_var()
147 else if (var->bits_per_pixel <= 16) in vfb_check_var()
148 var->bits_per_pixel = 16; in vfb_check_var()
149 else if (var->bits_per_pixel <= 24) in vfb_check_var()
150 var->bits_per_pixel = 24; in vfb_check_var()
151 else if (var->bits_per_pixel <= 32) in vfb_check_var()
152 var->bits_per_pixel = 32; in vfb_check_var()
[all …]
Dgrvga.c88 if (var->bits_per_pixel <= 8) in grvga_check_var()
89 var->bits_per_pixel = 8; in grvga_check_var()
90 else if (var->bits_per_pixel <= 16) in grvga_check_var()
91 var->bits_per_pixel = 16; in grvga_check_var()
92 else if (var->bits_per_pixel <= 24) in grvga_check_var()
93 var->bits_per_pixel = 24; in grvga_check_var()
94 else if (var->bits_per_pixel <= 32) in grvga_check_var()
95 var->bits_per_pixel = 32; in grvga_check_var()
103 if ((var->yres_virtual*var->xres_virtual*var->bits_per_pixel/8) > info->fix.smem_len) in grvga_check_var()
117 switch (info->var.bits_per_pixel) { in grvga_check_var()
[all …]
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 …]
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()
560 macfb_defined.bits_per_pixel = mac_bi_data.videodepth; in macfb_init()
583 macfb_defined.bits_per_pixel, macfb_fix.line_length); in macfb_init()
597 switch (macfb_defined.bits_per_pixel) { in macfb_init()
599 macfb_defined.red.length = macfb_defined.bits_per_pixel; in macfb_init()
[all …]
Dsm712fb.c64 .bits_per_pixel = 16,
991 if (sfb->fb->var.bits_per_pixel == 16) { in smtc_setcolreg()
1177 sfb->width, sfb->height, sfb->fb->var.bits_per_pixel, sfb->hz); in sm7xx_set_timing()
1182 vgamode[j].bpp != sfb->fb->var.bits_per_pixel || in sm7xx_set_timing()
1255 m_nscreenstride = (sfb->width * sfb->fb->var.bits_per_pixel) / 64; in sm7xx_set_timing()
1256 switch (sfb->fb->var.bits_per_pixel) { in sm7xx_set_timing()
1287 switch (sfb->fb->var.bits_per_pixel) { in smtcfb_setmode()
1347 if ((var->bits_per_pixel != 8) && (var->bits_per_pixel != 16) && in smtc_check_var()
1348 (var->bits_per_pixel != 24) && (var->bits_per_pixel != 32)) in smtc_check_var()
1349 var->bits_per_pixel = 16; in smtc_check_var()
[all …]
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 …]
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 …]
Dvesafb.c147 if (info->var.bits_per_pixel == 8) in vesafb_setcolreg()
150 switch (info->var.bits_per_pixel) { in vesafb_setcolreg()
256 vesafb_defined.bits_per_pixel = screen_info.lfb_depth; in vesafb_probe()
257 if (15 == vesafb_defined.bits_per_pixel) in vesafb_probe()
258 vesafb_defined.bits_per_pixel = 16; in vesafb_probe()
262 vesafb_fix.visual = (vesafb_defined.bits_per_pixel == 8) ? in vesafb_probe()
323 …vesafb_defined.xres, vesafb_defined.yres, vesafb_defined.bits_per_pixel, vesafb_fix.line_length, s… in vesafb_probe()
357 if (vesafb_defined.bits_per_pixel == 8 && !pmi_setpal && !vga_compat) { in vesafb_probe()
388 if (vesafb_defined.bits_per_pixel <= 8) { in vesafb_probe()
393 vesafb_defined.bits_per_pixel; in vesafb_probe()
[all …]
Dpvr2fb.c163 .bits_per_pixel =16,
256 switch (var->bits_per_pixel) { in set_color_bitfields()
295 switch (info->var.bits_per_pixel) { in pvr2fb_setcolreg()
314 pr_debug("Invalid bit depth %d?!?\n", info->var.bits_per_pixel); in pvr2fb_setcolreg()
425 line_length = get_line_length(var->xres_virtual, var->bits_per_pixel); in pvr2fb_set_par()
451 if (var->bits_per_pixel <= 16) in pvr2fb_check_var()
452 var->bits_per_pixel = 16; in pvr2fb_check_var()
453 else if (var->bits_per_pixel <= 24) in pvr2fb_check_var()
454 var->bits_per_pixel = 24; in pvr2fb_check_var()
455 else if (var->bits_per_pixel <= 32) in pvr2fb_check_var()
[all …]
Dwmt_ge_rops.c54 pat = pixel_to_pat(p->var.bits_per_pixel, fg); in wmt_ge_fillrect()
59 writel(p->var.bits_per_pixel == 32 ? 3 : in wmt_ge_fillrect()
60 (p->var.bits_per_pixel == 8 ? 0 : 1), regbase + GE_DEPTH_OFF); in wmt_ge_fillrect()
61 writel(p->var.bits_per_pixel == 15 ? 1 : 0, regbase + GE_HIGHCOLOR_OFF); in wmt_ge_fillrect()
85 writel(p->var.bits_per_pixel > 16 ? 3 : in wmt_ge_copyarea()
86 (p->var.bits_per_pixel > 8 ? 1 : 0), regbase + GE_DEPTH_OFF); in wmt_ge_copyarea()
Datafb.c595 int bpp = var->bits_per_pixel; in tt_decode_var()
697 var->bits_per_pixel = 4; in tt_encode_var()
703 var->bits_per_pixel = 2; in tt_encode_var()
709 var->bits_per_pixel = 1; in tt_encode_var()
715 var->bits_per_pixel = 8; in tt_encode_var()
721 var->bits_per_pixel = 4; in tt_encode_var()
728 var->bits_per_pixel = 1; in tt_encode_var()
735 linelen = var->xres_virtual * var->bits_per_pixel / 8; in tt_encode_var()
895 int bpp = var->bits_per_pixel; in falcon_decode_var()
968 if (bpp > myvar->bits_per_pixel || in falcon_decode_var()
[all …]
Dcirrusfb.c396 static void cirrusfb_BitBLT(u8 __iomem *regbase, int bits_per_pixel,
401 static void cirrusfb_RectFill(u8 __iomem *regbase, int bits_per_pixel,
478 unsigned maxclockidx = var->bits_per_pixel >> 3; in cirrusfb_check_pixclock()
500 if (var->bits_per_pixel == 8) { in cirrusfb_check_pixclock()
522 var->bits_per_pixel == 16) { in cirrusfb_check_pixclock()
534 unsigned pixels = info->screen_size * 8 / var->bits_per_pixel; in cirrusfb_check_var()
537 switch (var->bits_per_pixel) { in cirrusfb_check_var()
572 "Unsupported bpp size: %d\n", var->bits_per_pixel); in cirrusfb_check_var()
593 var->bits_per_pixel); in cirrusfb_check_var()
672 var->xres, var->yres, var->bits_per_pixel); in cirrusfb_set_par_foo()
[all …]
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()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/
Dsh_css_mipi.c108 unsigned int bits_per_pixel = 0; in ia_css_mipi_frame_calculate_size() local
135 bits_per_pixel = 6; in ia_css_mipi_frame_calculate_size()
138 bits_per_pixel = 7; in ia_css_mipi_frame_calculate_size()
143 bits_per_pixel = 8; in ia_css_mipi_frame_calculate_size()
152 bits_per_pixel = 10; in ia_css_mipi_frame_calculate_size()
154 bits_per_pixel = 16; in ia_css_mipi_frame_calculate_size()
159 bits_per_pixel = 12; in ia_css_mipi_frame_calculate_size()
162 bits_per_pixel = 14; in ia_css_mipi_frame_calculate_size()
168 bits_per_pixel = 16; in ia_css_mipi_frame_calculate_size()
171 bits_per_pixel = 18; in ia_css_mipi_frame_calculate_size()
[all …]
/kernel/linux/linux-5.10/drivers/video/fbdev/mmp/fb/
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 …]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/runtime/isys/src/
Dvirtual_isys.c72 s32 bits_per_pixel,
148 s32 bits_per_pixel,
329 metadata ? cfg->metadata.bits_per_pixel : in create_input_system_channel()
330 cfg->input_port_resolution.bits_per_pixel, in create_input_system_channel()
570 s32 bits_per_pixel, in calculate_stride() argument
583 bits_per_pixel = CEIL_MUL(bits_per_pixel, 8); in calculate_stride()
585 pixels_per_word = HIVE_ISP_DDR_WORD_BITS / bits_per_pixel; in calculate_stride()
593 s32 bits_per_pixel, in acquire_ib_buffer() argument
600 buf->stride = calculate_stride(bits_per_pixel, pixels_per_line, false, in acquire_ib_buffer()
715 cfg->bits_per_pixel = metadata ? isys_cfg->metadata.bits_per_pixel : in calculate_stream2mmio_cfg()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_dsc.c94 ((dsc_cfg->bits_per_pixel & DSC_PPS_BPP_HIGH_MASK) >> in drm_dsc_pps_payload_pack()
103 (dsc_cfg->bits_per_pixel & DSC_PPS_LSB_MASK); in drm_dsc_pps_payload_pack()
273 vdsc_cfg->bits_per_pixel, in drm_dsc_compute_rc_parameters()
282 vdsc_cfg->bits_per_pixel, in drm_dsc_compute_rc_parameters()
317 vdsc_cfg->bits_per_pixel + 8) / 16 + num_extra_mux_bits; in drm_dsc_compute_rc_parameters()
373 vdsc_cfg->bits_per_pixel, 16) + in drm_dsc_compute_rc_parameters()
376 hrd_delay = DIV_ROUND_UP((rbs_min * 16), vdsc_cfg->bits_per_pixel); in drm_dsc_compute_rc_parameters()
377 vdsc_cfg->rc_bits = (hrd_delay * vdsc_cfg->bits_per_pixel) / 16; in drm_dsc_compute_rc_parameters()
/kernel/linux/linux-5.10/drivers/media/pci/ivtv/
Divtvfb.c164 int bits_per_pixel; member
516 switch (var->bits_per_pixel) { in ivtvfb_set_var()
549 oi->bits_per_pixel = var->bits_per_pixel; in ivtvfb_set_var()
550 oi->bytes_per_pixel = var->bits_per_pixel / 8; in ivtvfb_set_var()
602 var->bits_per_pixel); in ivtvfb_set_var()
624 fix->visual = (oi->bits_per_pixel == 8) ? FB_VISUAL_PSEUDOCOLOR : FB_VISUAL_TRUECOLOR; in ivtvfb_get_fix()
658 if (var->bits_per_pixel == 8 || var->bits_per_pixel == 32) { in _ivtvfb_check_var()
668 else if (var->bits_per_pixel == 16) { in _ivtvfb_check_var()
704 IVTVFB_DEBUG_WARN("Invalid colour mode: %d\n", var->bits_per_pixel); in _ivtvfb_check_var()
716 if (var->xres_virtual > 4095 / (var->bits_per_pixel / 8) || in _ivtvfb_check_var()
[all …]
/kernel/linux/linux-5.10/drivers/video/fbdev/omap2/omapfb/
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 …]
/kernel/linux/linux-5.10/drivers/video/fbdev/mb862xx/
Dmb862xxfbdrv.c66 return var->xres * var->bits_per_pixel / 8; in d_pitch()
131 if (var->bits_per_pixel <= 8) in mb862xxfb_check_var()
132 var->bits_per_pixel = 8; in mb862xxfb_check_var()
133 else if (var->bits_per_pixel <= 16) in mb862xxfb_check_var()
134 var->bits_per_pixel = 16; in mb862xxfb_check_var()
135 else if (var->bits_per_pixel <= 32) in mb862xxfb_check_var()
136 var->bits_per_pixel = 32; in mb862xxfb_check_var()
145 var->bits_per_pixel = 0; in mb862xxfb_check_var()
147 var->bits_per_pixel += 8; in mb862xxfb_check_var()
149 } while (r && var->bits_per_pixel <= 32); in mb862xxfb_check_var()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/ipu-v3/
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 …]
/kernel/linux/linux-5.10/drivers/media/test-drivers/vivid/
Dvivid-osd.c100 if (var->bits_per_pixel != 16) { in vivid_fb_set_var()
133 var->bits_per_pixel = 16; in _vivid_fb_check_var()
209 if (info->var.bits_per_pixel == 16) { in vivid_fb_setcolreg()
271 dev->bits_per_pixel = 16; in vivid_fb_init_vidmode()
272 dev->bytes_per_pixel = dev->bits_per_pixel / 8; in vivid_fb_init_vidmode()
293 dev->fb_defined.bits_per_pixel = dev->bits_per_pixel; in vivid_fb_init_vidmode()
/kernel/linux/linux-5.10/drivers/hid/
Dhid-picolcd_fb.c65 .bits_per_pixel = 1,
356 __u32 bpp = var->bits_per_pixel; in picolcd_fb_check_var()
363 var->bits_per_pixel = 8; in picolcd_fb_check_var()
368 var->bits_per_pixel = 1; in picolcd_fb_check_var()
380 if (info->var.bits_per_pixel == fbdata->bpp) in picolcd_set_par()
383 if (info->var.bits_per_pixel != 1 && info->var.bits_per_pixel != 8) in picolcd_set_par()
387 tmp_fb = kmalloc_array(PICOLCDFB_SIZE, info->var.bits_per_pixel, in picolcd_set_par()
393 if (info->var.bits_per_pixel == 1) { in picolcd_set_par()
416 fbdata->bpp = info->var.bits_per_pixel; in picolcd_set_par()
535 fbdata->bpp = picolcdfb_var.bits_per_pixel; in picolcd_init_framebuffer()

123456789