/drivers/video/fbdev/core/ |
D | fbcmap.c | 92 int fb_alloc_cmap_gfp(struct fb_cmap *cmap, int len, int transp, gfp_t flags) in fb_alloc_cmap_gfp() argument 113 if (transp) { in fb_alloc_cmap_gfp() 114 cmap->transp = kmalloc(size, flags); in fb_alloc_cmap_gfp() 115 if (!cmap->transp) in fb_alloc_cmap_gfp() 118 cmap->transp = NULL; in fb_alloc_cmap_gfp() 133 int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp) in fb_alloc_cmap() argument 135 return fb_alloc_cmap_gfp(cmap, len, transp, GFP_ATOMIC); in fb_alloc_cmap() 152 kfree(cmap->transp); in fb_dealloc_cmap() 154 cmap->red = cmap->green = cmap->blue = cmap->transp = NULL; in fb_dealloc_cmap() 186 if (from->transp && to->transp) in fb_copy_cmap() [all …]
|
/drivers/video/fbdev/ |
D | 68328fb.c | 94 u_int transp, struct fb_info *info); 198 var->transp.offset = 0; in mc68x328fb_check_var() 199 var->transp.length = 0; in mc68x328fb_check_var() 208 var->transp.offset = 0; in mc68x328fb_check_var() 209 var->transp.length = 0; in mc68x328fb_check_var() 212 if (var->transp.length) { in mc68x328fb_check_var() 219 var->transp.offset = 15; in mc68x328fb_check_var() 220 var->transp.length = 1; in mc68x328fb_check_var() 228 var->transp.offset = 0; in mc68x328fb_check_var() 229 var->transp.length = 0; in mc68x328fb_check_var() [all …]
|
D | vfb.c | 75 u_int transp, struct fb_info *info); 183 var->transp.offset = 0; in vfb_check_var() 184 var->transp.length = 0; in vfb_check_var() 187 if (var->transp.length) { in vfb_check_var() 194 var->transp.offset = 15; in vfb_check_var() 195 var->transp.length = 1; in vfb_check_var() 203 var->transp.offset = 0; in vfb_check_var() 204 var->transp.length = 0; in vfb_check_var() 214 var->transp.offset = 0; in vfb_check_var() 215 var->transp.length = 0; in vfb_check_var() [all …]
|
D | ocfb.c | 175 unsigned blue, unsigned transp, in ocfb_setcolreg() argument 194 transp >>= (16 - info->var.transp.length); in ocfb_setcolreg() 205 (transp << info->var.transp.offset); in ocfb_setcolreg() 241 var->transp.offset = 0; in ocfb_init_var() 242 var->transp.length = 0; in ocfb_init_var() 252 var->transp.offset = 0; in ocfb_init_var() 253 var->transp.length = 0; in ocfb_init_var() 263 var->transp.offset = 0; in ocfb_init_var() 264 var->transp.length = 0; in ocfb_init_var() 274 var->transp.offset = 24; in ocfb_init_var() [all …]
|
D | pxa168fb.c | 50 if (var->transp.length == 0) { in determine_best_pix_fmt() 57 if (var->transp.length == 1 && var->green.length <= 5) { 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() 105 var->transp.offset = 0; var->transp.length = 0; in set_pix_fmt() 112 var->transp.offset = 0; var->transp.length = 0; in set_pix_fmt() 119 var->transp.offset = 15; var->transp.length = 1; in set_pix_fmt() 126 var->transp.offset = 15; var->transp.length = 1; in set_pix_fmt() 133 var->transp.offset = 0; var->transp.length = 0; in set_pix_fmt() 140 var->transp.offset = 0; var->transp.length = 0; in set_pix_fmt() [all …]
|
D | fb-puv3.c | 407 var->transp.offset = 0; in unifb_check_var() 408 var->transp.length = 0; in unifb_check_var() 411 if (var->transp.length) { in unifb_check_var() 418 var->transp.offset = 15; in unifb_check_var() 419 var->transp.length = 1; in unifb_check_var() 427 var->transp.offset = 0; in unifb_check_var() 428 var->transp.length = 0; in unifb_check_var() 438 var->transp.offset = 0; in unifb_check_var() 439 var->transp.length = 0; in unifb_check_var() 448 var->transp.offset = 24; in unifb_check_var() [all …]
|
D | skeletonfb.c | 285 unsigned blue, unsigned transp, in xxxfb_setcolreg() argument 366 transp = CNVT_TOHW(transp, info->var.transp.length); in xxxfb_setcolreg() 378 write_{red|green|blue|transp}_to_clut(); in xxxfb_setcolreg() 405 (transp << info->var.transp.offset); in xxxfb_setcolreg()
|
D | offb.c | 97 u_int transp, struct fb_info *info) in offb_setcolreg() argument 114 if (info->var.transp.length > 0) { in offb_setcolreg() 115 u32 mask = (1 << info->var.transp.length) - 1; in offb_setcolreg() 116 mask <<= info->var.transp.offset; in offb_setcolreg() 457 var->transp.offset = 0; in offb_init_fb() 458 var->transp.length = 0; in offb_init_fb() 468 var->transp.offset = 0; in offb_init_fb() 469 var->transp.length = 0; in offb_init_fb() 479 var->transp.offset = 0; in offb_init_fb() 480 var->transp.length = 0; in offb_init_fb() [all …]
|
D | hitfb.c | 208 unsigned blue, unsigned transp, struct fb_info *info) in hitfb_setcolreg() argument 271 var->transp.offset = 0; in hitfb_check_var() 272 var->transp.length = 0; in hitfb_check_var() 281 var->transp.offset = 0; in hitfb_check_var() 282 var->transp.length = 0; in hitfb_check_var() 370 hitfb_var.transp.offset = 0; in hitfb_probe() 371 hitfb_var.transp.length = 0; in hitfb_probe() 380 hitfb_var.transp.offset = 0; in hitfb_probe() 381 hitfb_var.transp.length = 0; in hitfb_probe()
|
D | grvga.c | 122 var->transp = (struct fb_bitfield) {0, 0, 0}; in grvga_check_var() 128 var->transp = (struct fb_bitfield) {0, 0, 0}; in grvga_check_var() 135 var->transp = (struct fb_bitfield) {24, 8, 0}; in grvga_check_var() 188 …eg(unsigned regno, unsigned red, unsigned green, unsigned blue, unsigned transp, struct fb_info *i… in grvga_setcolreg() argument 208 transp = CNVT_TOHW(transp, info->var.transp.length); in grvga_setcolreg() 227 (transp << info->var.transp.offset); in grvga_setcolreg()
|
D | ep93xx-fb.c | 163 info->var.transp.offset = 0; in ep93xxfb_set_pixelmode() 164 info->var.transp.length = 0; in ep93xxfb_set_pixelmode() 351 unsigned int transp, struct fb_info *info) in ep93xxfb_setcolreg() argument 389 transp = ep93xxfb_convert_color(transp, in ep93xxfb_setcolreg() 390 info->var.transp.length); in ep93xxfb_setcolreg() 395 (transp << info->var.transp.offset); in ep93xxfb_setcolreg()
|
D | sh7760fb.c | 99 u_int transp, struct fb_info *info) in sh7760_setcolreg() argument 111 transp >>= 16 - info->var.transp.length; in sh7760_setcolreg() 116 (transp << info->var.transp.offset); in sh7760_setcolreg() 508 info->var.transp.offset = 0; in sh7760fb_probe() 509 info->var.transp.length = 0; in sh7760fb_probe() 510 info->var.transp.msb_right = 0; in sh7760fb_probe()
|
D | vt8500lcdfb.c | 63 info->var.transp.offset = 0; in vt8500lcd_set_par() 64 info->var.transp.length = 0; in vt8500lcd_set_par() 65 info->var.transp.msb_right = 0; in vt8500lcd_set_par() 72 info->var.transp.offset = 0; in vt8500lcd_set_par() 73 info->var.transp.length = 0; in vt8500lcd_set_par() 74 info->var.transp.msb_right = 0; in vt8500lcd_set_par() 140 unsigned blue, unsigned transp, in vt8500lcd_setcolreg() argument
|
D | s3c-fb.c | 257 var->transp.offset = 0; in s3c_fb_check_var() 258 var->transp.length = 0; in s3c_fb_check_var() 273 var->transp.offset = 7; in s3c_fb_check_var() 274 var->transp.length = 1; in s3c_fb_check_var() 285 var->transp.offset = 18; in s3c_fb_check_var() 286 var->transp.length = 1; in s3c_fb_check_var() 313 var->transp.length = var->bits_per_pixel - 24; in s3c_fb_check_var() 314 var->transp.offset = 24; in s3c_fb_check_var() 607 if (var->transp.length != 0) in s3c_fb_set_par() 615 if (var->transp.length != 0) in s3c_fb_set_par() [all …]
|
D | gxt4500.c | 298 if (var->transp.length) in gxt4500_var_to_par() 332 var->transp = nobits; in gxt4500_unpack_pixfmt() 344 var->transp.length = 1; in gxt4500_unpack_pixfmt() 347 var->transp.length = 8; in gxt4500_unpack_pixfmt() 354 if (var->transp.length) in gxt4500_unpack_pixfmt() 355 var->transp.offset = in gxt4500_unpack_pixfmt() 514 unsigned int transp, struct fb_info *info) in gxt4500_setcolreg() argument 521 cmap_entry = ((transp & 0xff00) << 16) | ((red & 0xff00) << 8) | in gxt4500_setcolreg()
|
D | sunxvr1000.c | 46 unsigned transp, struct fb_info *info) in gfb_setcolreg() argument 104 var->transp.offset = 0; in gfb_set_fbinfo() 105 var->transp.length = 0; in gfb_set_fbinfo()
|
D | simplefb.c | 45 u_int transp, struct fb_info *info) in simplefb_setcolreg() argument 59 if (info->var.transp.length > 0) { in simplefb_setcolreg() 60 u32 mask = (1 << info->var.transp.length) - 1; in simplefb_setcolreg() 61 mask <<= info->var.transp.offset; in simplefb_setcolreg() 449 info->var.transp = params.format->transp; in simplefb_probe()
|
/drivers/video/fbdev/mmp/fb/ |
D | mmpfb.c | 62 if (var->transp.length == 0) { 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() 108 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var() 115 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var() 122 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var() 129 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var() 136 var->transp.offset = 24; var->transp.length = 8; in pixfmt_to_var() 143 var->transp.offset = 24; var->transp.length = 8; in pixfmt_to_var() 150 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var() [all …]
|
/drivers/gpu/ipu-v3/ |
D | ipu-cpmem.c | 375 to = rgb->bits_per_pixel - rgb->transp.length - rgb->transp.offset; in ipu_cpmem_set_format_rgb() 384 if (rgb->transp.length) { in ipu_cpmem_set_format_rgb() 386 rgb->transp.length - 1); in ipu_cpmem_set_format_rgb() 488 .transp = { .offset = 24, .length = 8, }, 496 .transp = { .offset = 24, .length = 8, }, 504 .transp = { .offset = 0, .length = 8, }, 512 .transp = { .offset = 0, .length = 8, }, 520 .transp = { .offset = 0, .length = 0, }, 528 .transp = { .offset = 0, .length = 0, }, 536 .transp = { .offset = 0, .length = 0, }, [all …]
|
/drivers/video/fbdev/vermilion/ |
D | vermilion.c | 413 var->transp.offset = 15; in vmlfb_set_pref_pixel_format() 414 var->transp.length = 1; in vmlfb_set_pref_pixel_format() 423 var->transp.offset = 24; in vmlfb_set_pref_pixel_format() 424 var->transp.length = 0; in vmlfb_set_pref_pixel_format() 431 var->red.msb_right = var->transp.msb_right = 0; in vmlfb_set_pref_pixel_format() 653 var->transp.offset != 15 || var->transp.length != 1) { in vmlfb_check_var_locked() 664 (var->transp.length != 0 && var->transp.length != 8) || in vmlfb_check_var_locked() 665 (var->transp.length == 8 && var->transp.offset != 24)) { in vmlfb_check_var_locked() 812 if (var->transp.length == 8) in vmlfb_set_par_locked() 951 u_int transp, struct fb_info *info) in vmlfb_setcolreg() argument [all …]
|
/drivers/media/platform/vivid/ |
D | vivid-osd.c | 141 var->transp.offset = 15; in _vivid_fb_check_var() 142 var->transp.length = 1; in _vivid_fb_check_var() 150 var->transp.offset = 0; in _vivid_fb_check_var() 151 var->transp.length = 0; in _vivid_fb_check_var() 195 unsigned blue, unsigned transp, in vivid_fb_setcolreg() argument 203 color = ((transp & 0xFF00) << 16) | ((red & 0xFF00) << 8) | in vivid_fb_setcolreg() 220 (transp ? 0x8000 : 0); in vivid_fb_setcolreg()
|
/drivers/video/fbdev/matrox/ |
D | matroxfb_crtc2.c | 32 unsigned blue, unsigned transp, struct fb_info* info) { in matroxfb_dh_setcolreg() argument 45 transp = CNVT_TOHW(transp, m2info->fbcon.var.transp.length); in matroxfb_dh_setcolreg() 50 (transp << m2info->fbcon.var.transp.offset); in matroxfb_dh_setcolreg() 235 var->transp.offset = 15; in matroxfb_dh_decode_var() 236 var->transp.length = 1; in matroxfb_dh_decode_var() 245 var->transp.offset = 0; in matroxfb_dh_decode_var() 246 var->transp.length = 0; in matroxfb_dh_decode_var() 255 var->transp.offset = 24; in matroxfb_dh_decode_var() 256 var->transp.length = 8; in matroxfb_dh_decode_var()
|
/drivers/gpu/drm/ |
D | drm_fb_helper.c | 941 if (info->var.transp.length > 0) { in setcmap_pseudo_palette() 942 u32 mask = (1 << info->var.transp.length) - 1; in setcmap_pseudo_palette() 944 mask <<= info->var.transp.offset; in setcmap_pseudo_palette() 1233 var_1->transp.offset == var_2->transp.offset && in drm_fb_pixel_format_equal() 1234 var_1->transp.length == var_2->transp.length && in drm_fb_pixel_format_equal() 1235 var_1->transp.msb_right == var_2->transp.msb_right; in drm_fb_pixel_format_equal() 1249 var->transp.offset = 0; in drm_fb_helper_fill_pixel_fmt() 1250 var->transp.length = 0; in drm_fb_helper_fill_pixel_fmt() 1259 var->transp.offset = 15; in drm_fb_helper_fill_pixel_fmt() 1260 var->transp.length = 1; in drm_fb_helper_fill_pixel_fmt() [all …]
|
/drivers/video/fbdev/intelfb/ |
D | intelfbdrv.c | 140 unsigned blue, unsigned transp, 997 var->transp.offset = screen_info.rsvd_pos; in get_initial_mode() 998 var->transp.length = screen_info.rsvd_size; in get_initial_mode() 1268 v.transp.offset = v.transp.length = 0; in intelfb_check_var() 1275 v.transp.offset = v.transp.length = 0; in intelfb_check_var() 1284 v.transp.offset = v.transp.length = 0; in intelfb_check_var() 1291 v.transp.offset = v.transp.length = 0; in intelfb_check_var() 1298 v.transp.offset = 24; in intelfb_check_var() 1299 v.transp.length = 8; in intelfb_check_var() 1309 v.transp.msb_right = 0; in intelfb_check_var() [all …]
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_fb.c | 73 unsigned blue, unsigned transp, in vmw_fb_setcolreg() argument 110 depth = (var->transp.length > 0) ? 32 : 24; in vmw_fb_check_var() 125 var->transp.length = 0; in vmw_fb_check_var() 126 var->transp.offset = 0; in vmw_fb_check_var() 135 var->transp.length = 8; in vmw_fb_check_var() 136 var->transp.offset = 24; in vmw_fb_check_var() 429 *depth = (var->transp.length > 0) ? 32 : 24; in vmw_fb_compute_depth() 721 info->var.transp.offset = 0; in vmw_fb_init() 722 info->var.transp.length = 0; in vmw_fb_init()
|