Home
last modified time | relevance | path

Searched refs:CNVT_TOHW (Results 1 – 15 of 15) sorted by relevance

/Linux-v4.19/drivers/video/fbdev/
D68328fb.c315 #define CNVT_TOHW(val,width) ((((val)<<(width))+0x7FFF-(val))>>16) in mc68x328fb_setcolreg() macro
319 red = CNVT_TOHW(red, info->var.red.length); in mc68x328fb_setcolreg()
320 green = CNVT_TOHW(green, info->var.green.length); in mc68x328fb_setcolreg()
321 blue = CNVT_TOHW(blue, info->var.blue.length); in mc68x328fb_setcolreg()
322 transp = CNVT_TOHW(transp, info->var.transp.length); in mc68x328fb_setcolreg()
325 red = CNVT_TOHW(red, 8); /* expect 8 bit DAC */ in mc68x328fb_setcolreg()
326 green = CNVT_TOHW(green, 8); in mc68x328fb_setcolreg()
327 blue = CNVT_TOHW(blue, 8); in mc68x328fb_setcolreg()
329 transp = CNVT_TOHW(transp, 8); in mc68x328fb_setcolreg()
332 #undef CNVT_TOHW in mc68x328fb_setcolreg()
Dvfb.c308 #define CNVT_TOHW(val,width) ((((val)<<(width))+0x7FFF-(val))>>16) in vfb_setcolreg() macro
312 red = CNVT_TOHW(red, info->var.red.length); in vfb_setcolreg()
313 green = CNVT_TOHW(green, info->var.green.length); in vfb_setcolreg()
314 blue = CNVT_TOHW(blue, info->var.blue.length); in vfb_setcolreg()
315 transp = CNVT_TOHW(transp, info->var.transp.length); in vfb_setcolreg()
318 red = CNVT_TOHW(red, 8); /* expect 8 bit DAC */ in vfb_setcolreg()
319 green = CNVT_TOHW(green, 8); in vfb_setcolreg()
320 blue = CNVT_TOHW(blue, 8); in vfb_setcolreg()
322 transp = CNVT_TOHW(transp, 8); in vfb_setcolreg()
325 #undef CNVT_TOHW in vfb_setcolreg()
Dskeletonfb.c362 #define CNVT_TOHW(val,width) ((((val)<<(width))+0x7FFF-(val))>>16) in xxxfb_setcolreg() macro
363 red = CNVT_TOHW(red, info->var.red.length); in xxxfb_setcolreg()
364 green = CNVT_TOHW(green, info->var.green.length); in xxxfb_setcolreg()
365 blue = CNVT_TOHW(blue, info->var.blue.length); in xxxfb_setcolreg()
366 transp = CNVT_TOHW(transp, info->var.transp.length); in xxxfb_setcolreg()
367 #undef CNVT_TOHW in xxxfb_setcolreg()
Dfb-puv3.c570 #define CNVT_TOHW(val, width) ((((val)<<(width))+0x7FFF-(val))>>16) in unifb_setcolreg() macro
574 red = CNVT_TOHW(red, info->var.red.length); in unifb_setcolreg()
575 green = CNVT_TOHW(green, info->var.green.length); in unifb_setcolreg()
576 blue = CNVT_TOHW(blue, info->var.blue.length); in unifb_setcolreg()
577 transp = CNVT_TOHW(transp, info->var.transp.length); in unifb_setcolreg()
580 red = CNVT_TOHW(red, 8); /* expect 8 bit DAC */ in unifb_setcolreg()
581 green = CNVT_TOHW(green, 8); in unifb_setcolreg()
582 blue = CNVT_TOHW(blue, 8); in unifb_setcolreg()
584 transp = CNVT_TOHW(transp, 8); in unifb_setcolreg()
587 #undef CNVT_TOHW in unifb_setcolreg()
Dgrvga.c208 #define CNVT_TOHW(val, width) ((((val)<<(width))+0x7FFF-(val))>>16) in grvga_setcolreg() macro
210 red = CNVT_TOHW(red, info->var.red.length); in grvga_setcolreg()
211 green = CNVT_TOHW(green, info->var.green.length); in grvga_setcolreg()
212 blue = CNVT_TOHW(blue, info->var.blue.length); in grvga_setcolreg()
213 transp = CNVT_TOHW(transp, info->var.transp.length); in grvga_setcolreg()
215 #undef CNVT_TOHW in grvga_setcolreg()
Dxen-fbfront.c223 #define CNVT_TOHW(val, width) ((((val)<<(width))+0x7FFF-(val))>>16) in xenfb_setcolreg() macro
224 red = CNVT_TOHW(red, info->var.red.length); in xenfb_setcolreg()
225 green = CNVT_TOHW(green, info->var.green.length); in xenfb_setcolreg()
226 blue = CNVT_TOHW(blue, info->var.blue.length); in xenfb_setcolreg()
227 transp = CNVT_TOHW(transp, info->var.transp.length); in xenfb_setcolreg()
228 #undef CNVT_TOHW in xenfb_setcolreg()
Dpm2fb.c906 #define CNVT_TOHW(val, width) ((((val) << (width)) + 0x7FFF -(val)) >> 16) in pm2fb_setcolreg() macro
910 red = CNVT_TOHW(red, info->var.red.length); in pm2fb_setcolreg()
911 green = CNVT_TOHW(green, info->var.green.length); in pm2fb_setcolreg()
912 blue = CNVT_TOHW(blue, info->var.blue.length); in pm2fb_setcolreg()
913 transp = CNVT_TOHW(transp, info->var.transp.length); in pm2fb_setcolreg()
918 red = CNVT_TOHW(red, 8); in pm2fb_setcolreg()
919 green = CNVT_TOHW(green, 8); in pm2fb_setcolreg()
920 blue = CNVT_TOHW(blue, 8); in pm2fb_setcolreg()
922 transp = CNVT_TOHW(transp, 8); in pm2fb_setcolreg()
925 #undef CNVT_TOHW in pm2fb_setcolreg()
Dpm3fb.c1105 #define CNVT_TOHW(val, width) ((((val) << (width)) + 0x7FFF - (val)) >> 16) in pm3fb_setcolreg() macro
1106 red = CNVT_TOHW(red, info->var.red.length); in pm3fb_setcolreg()
1107 green = CNVT_TOHW(green, info->var.green.length); in pm3fb_setcolreg()
1108 blue = CNVT_TOHW(blue, info->var.blue.length); in pm3fb_setcolreg()
1109 transp = CNVT_TOHW(transp, info->var.transp.length); in pm3fb_setcolreg()
1110 #undef CNVT_TOHW in pm3fb_setcolreg()
Dimxfb.c264 #define CNVT_TOHW(val,width) ((((val)<<(width))+0x7FFF-(val))>>16) in imxfb_setpalettereg() macro
266 val = (CNVT_TOHW(red, 4) << 8) | in imxfb_setpalettereg()
267 (CNVT_TOHW(green,4) << 4) | in imxfb_setpalettereg()
268 CNVT_TOHW(blue, 4); in imxfb_setpalettereg()
Dda8xx-fb.c603 #define CNVT_TOHW(val, width) ((((val) << (width)) + 0x7FFF - (val)) >> 16) macro
624 red = CNVT_TOHW(red, info->var.red.length); in fb_setcolreg()
625 green = CNVT_TOHW(green, info->var.green.length); in fb_setcolreg()
626 blue = CNVT_TOHW(blue, info->var.blue.length); in fb_setcolreg()
692 #undef CNVT_TOHW
Dfsl-diu-fb.c1186 static inline __u32 CNVT_TOHW(__u32 val, __u32 width) in CNVT_TOHW() function
1223 red = CNVT_TOHW(red, info->var.red.length); in fsl_diu_setcolreg()
1224 green = CNVT_TOHW(green, info->var.green.length); in fsl_diu_setcolreg()
1225 blue = CNVT_TOHW(blue, info->var.blue.length); in fsl_diu_setcolreg()
1226 transp = CNVT_TOHW(transp, info->var.transp.length); in fsl_diu_setcolreg()
Dtdfxfb.c737 #define CNVT_TOHW(val, width) ((((val) << (width)) + 0x7FFF - (val)) >> 16) macro
767 rgbcol = (CNVT_TOHW(red, info->var.red.length) << in tdfxfb_setcolreg()
769 (CNVT_TOHW(green, info->var.green.length) << in tdfxfb_setcolreg()
771 (CNVT_TOHW(blue, info->var.blue.length) << in tdfxfb_setcolreg()
773 (CNVT_TOHW(transp, info->var.transp.length) << in tdfxfb_setcolreg()
/Linux-v4.19/drivers/video/fbdev/matrox/
Dmatroxfb_crtc2.c41 red = CNVT_TOHW(red, m2info->fbcon.var.red.length); in matroxfb_dh_setcolreg()
42 green = CNVT_TOHW(green, m2info->fbcon.var.green.length); in matroxfb_dh_setcolreg()
43 blue = CNVT_TOHW(blue, m2info->fbcon.var.blue.length); in matroxfb_dh_setcolreg()
44 transp = CNVT_TOHW(transp, m2info->fbcon.var.transp.length); in matroxfb_dh_setcolreg()
Dmatroxfb_base.h116 #define CNVT_TOHW(val,width) ((((val)<<(width))+0x7FFF-(val))>>16) macro
Dmatroxfb_base.c665 red = CNVT_TOHW(red, minfo->fbcon.var.red.length); in matroxfb_setcolreg()
666 green = CNVT_TOHW(green, minfo->fbcon.var.green.length); in matroxfb_setcolreg()
667 blue = CNVT_TOHW(blue, minfo->fbcon.var.blue.length); in matroxfb_setcolreg()
668 transp = CNVT_TOHW(transp, minfo->fbcon.var.transp.length); in matroxfb_setcolreg()