/openbmc/linux/drivers/video/fbdev/core/ |
H A 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 = kzalloc(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 …]
|
/openbmc/linux/drivers/video/fbdev/ |
H A D | 68328fb.c | 91 u_int transp, struct fb_info *info); 196 var->transp.offset = 0; in mc68x328fb_check_var() 197 var->transp.length = 0; in mc68x328fb_check_var() 206 var->transp.offset = 0; in mc68x328fb_check_var() 207 var->transp.length = 0; in mc68x328fb_check_var() 210 if (var->transp.length) { in mc68x328fb_check_var() 217 var->transp.offset = 15; in mc68x328fb_check_var() 218 var->transp.length = 1; in mc68x328fb_check_var() 226 var->transp.offset = 0; in mc68x328fb_check_var() 227 var->transp.length = 0; in mc68x328fb_check_var() [all …]
|
H A D | vfb.c | 75 u_int transp, struct fb_info *info); 184 var->transp.offset = 0; in vfb_check_var() 185 var->transp.length = 0; in vfb_check_var() 188 if (var->transp.length) { in vfb_check_var() 195 var->transp.offset = 15; in vfb_check_var() 196 var->transp.length = 1; in vfb_check_var() 204 var->transp.offset = 0; in vfb_check_var() 205 var->transp.length = 0; in vfb_check_var() 215 var->transp.offset = 0; in vfb_check_var() 216 var->transp.length = 0; in vfb_check_var() [all …]
|
H A 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 …]
|
H A 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() 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() 101 var->transp.offset = 0; var->transp.length = 0; in set_pix_fmt() 108 var->transp.offset = 0; var->transp.length = 0; in set_pix_fmt() 115 var->transp.offset = 15; var->transp.length = 1; in set_pix_fmt() 122 var->transp.offset = 15; var->transp.length = 1; in set_pix_fmt() 129 var->transp.offset = 0; var->transp.length = 0; in set_pix_fmt() 136 var->transp.offset = 0; var->transp.length = 0; in set_pix_fmt() [all …]
|
H A D | skeletonfb.c | 284 unsigned blue, unsigned transp, in xxxfb_setcolreg() argument 365 transp = CNVT_TOHW(transp, info->var.transp.length); in xxxfb_setcolreg() 377 write_{red|green|blue|transp}_to_clut(); in xxxfb_setcolreg() 404 (transp << info->var.transp.offset); in xxxfb_setcolreg()
|
H A D | hitfb.c | 223 unsigned blue, unsigned transp, struct fb_info *info) in hitfb_setcolreg() argument 286 var->transp.offset = 0; in hitfb_check_var() 287 var->transp.length = 0; in hitfb_check_var() 296 var->transp.offset = 0; in hitfb_check_var() 297 var->transp.length = 0; in hitfb_check_var() 385 hitfb_var.transp.offset = 0; in hitfb_probe() 386 hitfb_var.transp.length = 0; in hitfb_probe() 395 hitfb_var.transp.offset = 0; in hitfb_probe() 396 hitfb_var.transp.length = 0; in hitfb_probe()
|
H A D | grvga.c | 121 var->transp = (struct fb_bitfield) {0, 0, 0}; in grvga_check_var() 127 var->transp = (struct fb_bitfield) {0, 0, 0}; in grvga_check_var() 134 var->transp = (struct fb_bitfield) {24, 8, 0}; in grvga_check_var() 187 …eg(unsigned regno, unsigned red, unsigned green, unsigned blue, unsigned transp, struct fb_info *i… in grvga_setcolreg() argument 207 transp = CNVT_TOHW(transp, info->var.transp.length); in grvga_setcolreg() 226 (transp << info->var.transp.offset); in grvga_setcolreg()
|
H A D | offb.c | 100 u_int transp, struct fb_info *info) in offb_setcolreg() argument 117 if (info->var.transp.length > 0) { in offb_setcolreg() 118 u32 mask = (1 << info->var.transp.length) - 1; in offb_setcolreg() 119 mask <<= info->var.transp.offset; in offb_setcolreg() 459 var->transp.offset = 0; in offb_init_fb() 460 var->transp.length = 0; in offb_init_fb() 470 var->transp.offset = 0; in offb_init_fb() 471 var->transp.length = 0; in offb_init_fb() 481 var->transp.offset = 0; in offb_init_fb() 482 var->transp.length = 0; in offb_init_fb() [all …]
|
H A 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()
|
H A 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() 507 info->var.transp.offset = 0; in sh7760fb_probe() 508 info->var.transp.length = 0; in sh7760fb_probe() 509 info->var.transp.msb_right = 0; in sh7760fb_probe()
|
H A 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
|
H A D | sunxvr1000.c | 47 unsigned transp, struct fb_info *info) in gfb_setcolreg() argument 102 var->transp.offset = 0; in gfb_set_fbinfo() 103 var->transp.length = 0; in gfb_set_fbinfo()
|
H A D | s3c-fb.c | 258 var->transp.offset = 0; in s3c_fb_check_var() 259 var->transp.length = 0; in s3c_fb_check_var() 274 var->transp.offset = 7; in s3c_fb_check_var() 275 var->transp.length = 1; in s3c_fb_check_var() 286 var->transp.offset = 18; in s3c_fb_check_var() 287 var->transp.length = 1; in s3c_fb_check_var() 314 var->transp.length = var->bits_per_pixel - 24; in s3c_fb_check_var() 315 var->transp.offset = 24; in s3c_fb_check_var() 608 if (var->transp.length != 0) in s3c_fb_set_par() 616 if (var->transp.length != 0) in s3c_fb_set_par() [all …]
|
/openbmc/linux/drivers/video/fbdev/mmp/fb/ |
H A 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() 106 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var() 113 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var() 120 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var() 127 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var() 134 var->transp.offset = 24; var->transp.length = 8; in pixfmt_to_var() 141 var->transp.offset = 24; var->transp.length = 8; in pixfmt_to_var() 148 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var() [all …]
|
/openbmc/qemu/hw/display/ |
H A D | cirrus_vga_rop.h | 34 uint8_t transp) in glue() 38 if (pixel != transp) { in glue() 53 uint16_t transp) in glue() 58 if (pixel != transp) { in glue() 135 uint8_t transp = s->vga.gr[0x34]; in glue() local 145 ROP_OP_TR(s, dstaddr, cirrus_src(s, srcaddr), transp); in glue() 164 uint8_t transp = s->vga.gr[0x34]; in glue() local 169 ROP_OP_TR(s, dstaddr, cirrus_src(s, srcaddr), transp); in glue() 188 uint16_t transp = s->vga.gr[0x34] | (uint16_t)s->vga.gr[0x35] << 8; in glue() local 198 ROP_OP_TR_16(s, dstaddr, cirrus_src16(s, srcaddr), transp); in glue() [all …]
|
/openbmc/linux/samples/vfio-mdev/ |
H A D | mdpy-fb.c | 42 .transp.offset = 24, 46 .transp.length = 8, 59 u_int transp, struct fb_info *info) in mdpy_fb_setcolreg() argument 73 if (info->var.transp.length > 0) { in mdpy_fb_setcolreg() 74 mask = (1 << info->var.transp.length) - 1; in mdpy_fb_setcolreg() 75 mask <<= info->var.transp.offset; in mdpy_fb_setcolreg()
|
/openbmc/u-boot/drivers/video/ |
H A D | mxc_ipuv3_fb.c | 322 var->transp.length = 0; in mxcfb_check_var() 323 var->transp.offset = 0; in mxcfb_check_var() 324 var->transp.msb_right = 0; in mxcfb_check_var() 339 var->transp.length = 0; in mxcfb_check_var() 340 var->transp.offset = 0; in mxcfb_check_var() 341 var->transp.msb_right = 0; in mxcfb_check_var() 356 var->transp.length = 0; in mxcfb_check_var() 357 var->transp.offset = 0; in mxcfb_check_var() 358 var->transp.msb_right = 0; in mxcfb_check_var() 373 var->transp.length = 8; in mxcfb_check_var() [all …]
|
/openbmc/linux/drivers/media/test-drivers/vivid/ |
H A 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()
|
/openbmc/linux/drivers/gpu/ipu-v3/ |
H A 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 …]
|
/openbmc/linux/drivers/video/fbdev/vermilion/ |
H A D | vermilion.c | 416 var->transp.offset = 15; in vmlfb_set_pref_pixel_format() 417 var->transp.length = 1; in vmlfb_set_pref_pixel_format() 426 var->transp.offset = 24; in vmlfb_set_pref_pixel_format() 427 var->transp.length = 0; in vmlfb_set_pref_pixel_format() 434 var->red.msb_right = var->transp.msb_right = 0; in vmlfb_set_pref_pixel_format() 660 var->transp.offset != 15 || var->transp.length != 1) { in vmlfb_check_var_locked() 671 (var->transp.length != 0 && var->transp.length != 8) || in vmlfb_check_var_locked() 672 (var->transp.length == 8 && var->transp.offset != 24)) { in vmlfb_check_var_locked() 819 if (var->transp.length == 8) in vmlfb_set_par_locked() 958 u_int transp, struct fb_info *info) in vmlfb_setcolreg() argument [all …]
|
/openbmc/linux/drivers/video/fbdev/matrox/ |
H A 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()
|
/openbmc/linux/drivers/gpu/drm/gma500/ |
H A D | fbdev.c | 58 unsigned int blue, unsigned int transp, in psb_fbdev_fb_setcolreg() argument 74 transp = CMAP_TOHW(transp, info->var.transp.length); in psb_fbdev_fb_setcolreg() 79 (transp << info->var.transp.offset); in psb_fbdev_fb_setcolreg()
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_fb_helper.c | 835 if (info->var.transp.length > 0) { in setcmap_pseudo_palette() 836 u32 mask = (1 << info->var.transp.length) - 1; in setcmap_pseudo_palette() 838 mask <<= info->var.transp.offset; in setcmap_pseudo_palette() 1137 var_1->transp.offset == var_2->transp.offset && in drm_fb_pixel_format_equal() 1138 var_1->transp.length == var_2->transp.length && in drm_fb_pixel_format_equal() 1139 var_1->transp.msb_right == var_2->transp.msb_right; in drm_fb_pixel_format_equal() 1154 var->transp.offset = 0; in drm_fb_helper_fill_pixel_fmt() 1155 var->transp.length = 0; in drm_fb_helper_fill_pixel_fmt() 1167 var->transp.offset = 15; in drm_fb_helper_fill_pixel_fmt() 1168 var->transp.length = 1; in drm_fb_helper_fill_pixel_fmt() [all …]
|
/openbmc/linux/drivers/video/fbdev/intelfb/ |
H A D | intelfbdrv.c | 141 unsigned blue, unsigned transp, 1005 var->transp.offset = screen_info.rsvd_pos; in get_initial_mode() 1006 var->transp.length = screen_info.rsvd_size; in get_initial_mode() 1278 v.transp.offset = v.transp.length = 0; in intelfb_check_var() 1285 v.transp.offset = v.transp.length = 0; in intelfb_check_var() 1294 v.transp.offset = v.transp.length = 0; in intelfb_check_var() 1301 v.transp.offset = v.transp.length = 0; in intelfb_check_var() 1308 v.transp.offset = 24; in intelfb_check_var() 1309 v.transp.length = 8; in intelfb_check_var() 1319 v.transp.msb_right = 0; in intelfb_check_var() [all …]
|