Home
last modified time | relevance | path

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

12345678

/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 …]
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 …]
Dhitfb.c134 if (p->var.bits_per_pixel == 16) { in hitfb_fillrect()
152 hitfb_accel_bitblt(p->var.bits_per_pixel == 16, area->sx, area->sy, in hitfb_copyarea()
213 switch (info->var.bits_per_pixel) { in hitfb_setcolreg()
246 if ((var->bits_per_pixel != 8) && (var->bits_per_pixel != 16)) in hitfb_check_var()
247 var->bits_per_pixel = info->var.bits_per_pixel; in hitfb_check_var()
254 if (var->bits_per_pixel == 16) in hitfb_check_var()
263 switch (var->bits_per_pixel) { in hitfb_check_var()
293 switch (info->var.bits_per_pixel) { in hitfb_set_par()
309 ldr3 |= (info->var.bits_per_pixel == 8) ? 4 : 8; in hitfb_set_par()
348 hitfb_var.bits_per_pixel = 8; in hitfb_probe()
[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()
1188 sfb->width, sfb->height, sfb->fb->var.bits_per_pixel, sfb->hz); in sm7xx_set_timing()
1193 vgamode[j].bpp != sfb->fb->var.bits_per_pixel || in sm7xx_set_timing()
1266 m_nscreenstride = (sfb->width * sfb->fb->var.bits_per_pixel) / 64; in sm7xx_set_timing()
1267 switch (sfb->fb->var.bits_per_pixel) { in sm7xx_set_timing()
1298 switch (sfb->fb->var.bits_per_pixel) { in smtcfb_setmode()
1358 if ((var->bits_per_pixel != 8) && (var->bits_per_pixel != 16) && in smtc_check_var()
1359 (var->bits_per_pixel != 24) && (var->bits_per_pixel != 32)) in smtc_check_var()
1360 var->bits_per_pixel = 16; in smtc_check_var()
[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()
70 if (var->bits_per_pixel <= 32 && var->red.length <= 8 && in determine_best_pix_fmt()
72 if (var->bits_per_pixel == 24 && var->transp.length == 0) { in determine_best_pix_fmt()
79 if (var->bits_per_pixel == 32 && var->transp.length == 8) { in determine_best_pix_fmt()
101 var->bits_per_pixel = 16; in set_pix_fmt()
108 var->bits_per_pixel = 16; in set_pix_fmt()
115 var->bits_per_pixel = 16; in set_pix_fmt()
122 var->bits_per_pixel = 16; in set_pix_fmt()
129 var->bits_per_pixel = 24; in set_pix_fmt()
[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 …]
Dfb-puv3.c74 .bits_per_pixel = 16,
120 int m_iBpp = info->var.bits_per_pixel; in unifb_prim_fillrect()
208 int m_iBpp = info->var.bits_per_pixel; in unifb_prim_copyarea()
367 if (var->bits_per_pixel <= 1) in unifb_check_var()
368 var->bits_per_pixel = 1; in unifb_check_var()
369 else if (var->bits_per_pixel <= 8) in unifb_check_var()
370 var->bits_per_pixel = 8; in unifb_check_var()
371 else if (var->bits_per_pixel <= 16) in unifb_check_var()
372 var->bits_per_pixel = 16; in unifb_check_var()
373 else if (var->bits_per_pixel <= 24) in unifb_check_var()
[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 …]
Datafb.c596 int bpp = var->bits_per_pixel; in tt_decode_var()
698 var->bits_per_pixel = 4; in tt_encode_var()
704 var->bits_per_pixel = 2; in tt_encode_var()
710 var->bits_per_pixel = 1; in tt_encode_var()
716 var->bits_per_pixel = 8; in tt_encode_var()
722 var->bits_per_pixel = 4; in tt_encode_var()
729 var->bits_per_pixel = 1; in tt_encode_var()
736 linelen = var->xres_virtual * var->bits_per_pixel / 8; in tt_encode_var()
896 int bpp = var->bits_per_pixel; in falcon_decode_var()
969 if (bpp > myvar->bits_per_pixel || in falcon_decode_var()
[all …]
Dvesafb.c146 if (info->var.bits_per_pixel == 8) in vesafb_setcolreg()
149 switch (info->var.bits_per_pixel) { in vesafb_setcolreg()
255 vesafb_defined.bits_per_pixel = screen_info.lfb_depth; in vesafb_probe()
256 if (15 == vesafb_defined.bits_per_pixel) in vesafb_probe()
257 vesafb_defined.bits_per_pixel = 16; in vesafb_probe()
261 vesafb_fix.visual = (vesafb_defined.bits_per_pixel == 8) ? in vesafb_probe()
322 …vesafb_defined.xres, vesafb_defined.yres, vesafb_defined.bits_per_pixel, vesafb_fix.line_length, s… in vesafb_probe()
356 if (vesafb_defined.bits_per_pixel == 8 && !pmi_setpal && !vga_compat) { in vesafb_probe()
387 if (vesafb_defined.bits_per_pixel <= 8) { in vesafb_probe()
392 vesafb_defined.bits_per_pixel; in vesafb_probe()
[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()
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()
535 unsigned pixels = info->screen_size * 8 / var->bits_per_pixel; in cirrusfb_check_var()
538 switch (var->bits_per_pixel) { in cirrusfb_check_var()
573 "Unsupported bpp size: %d\n", var->bits_per_pixel); in cirrusfb_check_var()
594 var->bits_per_pixel); in cirrusfb_check_var()
673 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()
/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()
104 var->bits_per_pixel = 16; in pixfmt_to_var()
111 var->bits_per_pixel = 16; in pixfmt_to_var()
[all …]
/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()
275 vdsc_cfg->bits_per_pixel, in drm_dsc_compute_rc_parameters()
284 vdsc_cfg->bits_per_pixel, in drm_dsc_compute_rc_parameters()
319 vdsc_cfg->bits_per_pixel + 8) / 16 + num_extra_mux_bits; in drm_dsc_compute_rc_parameters()
386 vdsc_cfg->bits_per_pixel, 16) + in drm_dsc_compute_rc_parameters()
389 hrd_delay = DIV_ROUND_UP((rbs_min * 16), vdsc_cfg->bits_per_pixel); in drm_dsc_compute_rc_parameters()
390 vdsc_cfg->rc_bits = (hrd_delay * vdsc_cfg->bits_per_pixel) / 16; in drm_dsc_compute_rc_parameters()
/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 …]
/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 …]
/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 …]
/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 …]
/drivers/video/fbdev/kyro/
Dfbdev.c53 .bits_per_pixel = 16,
312 info->var.bits_per_pixel, in kyro_dev_video_mode_set()
326 info->var.bits_per_pixel; in kyro_dev_video_mode_set()
397 if (var->bits_per_pixel != 16 && var->bits_per_pixel != 32) { in kyrofb_check_var()
398 printk(KERN_WARNING "kyrofb: depth not supported: %u\n", var->bits_per_pixel); in kyrofb_check_var()
402 switch (var->bits_per_pixel) { in kyrofb_check_var()
480 par->PIXDEPTH = info->var.bits_per_pixel; in kyrofb_set_par()
535 switch (info->var.bits_per_pixel) { in kyrofb_setcolreg()
722 info->var.bits_per_pixel); in kyrofb_probe()
732 info->var.xres, info->var.yres, info->var.bits_per_pixel, in kyrofb_probe()
/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()
536 fbdata->bpp = picolcdfb_var.bits_per_pixel; in picolcd_init_framebuffer()
/drivers/media/platform/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()

12345678