Home
last modified time | relevance | path

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

/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()
Dgrvga.c203 #define CNVT_TOHW(val, width) ((((val)<<(width))+0x7FFF-(val))>>16) in grvga_setcolreg() macro
205 red = CNVT_TOHW(red, info->var.red.length); in grvga_setcolreg()
206 green = CNVT_TOHW(green, info->var.green.length); in grvga_setcolreg()
207 blue = CNVT_TOHW(blue, info->var.blue.length); in grvga_setcolreg()
208 transp = CNVT_TOHW(transp, info->var.transp.length); in grvga_setcolreg()
210 #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.c912 #define CNVT_TOHW(val, width) ((((val) << (width)) + 0x7FFF -(val)) >> 16) in pm2fb_setcolreg() macro
916 red = CNVT_TOHW(red, info->var.red.length); in pm2fb_setcolreg()
917 green = CNVT_TOHW(green, info->var.green.length); in pm2fb_setcolreg()
918 blue = CNVT_TOHW(blue, info->var.blue.length); in pm2fb_setcolreg()
919 transp = CNVT_TOHW(transp, info->var.transp.length); in pm2fb_setcolreg()
924 red = CNVT_TOHW(red, 8); in pm2fb_setcolreg()
925 green = CNVT_TOHW(green, 8); in pm2fb_setcolreg()
926 blue = CNVT_TOHW(blue, 8); in pm2fb_setcolreg()
928 transp = CNVT_TOHW(transp, 8); in pm2fb_setcolreg()
931 #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.c265 #define CNVT_TOHW(val,width) ((((val)<<(width))+0x7FFF-(val))>>16) in imxfb_setpalettereg() macro
267 val = (CNVT_TOHW(red, 4) << 8) | in imxfb_setpalettereg()
268 (CNVT_TOHW(green,4) << 4) | in imxfb_setpalettereg()
269 CNVT_TOHW(blue, 4); in imxfb_setpalettereg()
Dda8xx-fb.c591 #define CNVT_TOHW(val, width) ((((val) << (width)) + 0x7FFF - (val)) >> 16) macro
612 red = CNVT_TOHW(red, info->var.red.length); in fb_setcolreg()
613 green = CNVT_TOHW(green, info->var.green.length); in fb_setcolreg()
614 blue = CNVT_TOHW(blue, info->var.blue.length); in fb_setcolreg()
680 #undef CNVT_TOHW
Dfsl-diu-fb.c1181 static inline __u32 CNVT_TOHW(__u32 val, __u32 width) in CNVT_TOHW() function
1218 red = CNVT_TOHW(red, info->var.red.length); in fsl_diu_setcolreg()
1219 green = CNVT_TOHW(green, info->var.green.length); in fsl_diu_setcolreg()
1220 blue = CNVT_TOHW(blue, info->var.blue.length); in fsl_diu_setcolreg()
1221 transp = CNVT_TOHW(transp, info->var.transp.length); in fsl_diu_setcolreg()
Dtdfxfb.c736 #define CNVT_TOHW(val, width) ((((val) << (width)) + 0x7FFF - (val)) >> 16) macro
766 rgbcol = (CNVT_TOHW(red, info->var.red.length) << in tdfxfb_setcolreg()
768 (CNVT_TOHW(green, info->var.green.length) << in tdfxfb_setcolreg()
770 (CNVT_TOHW(blue, info->var.blue.length) << in tdfxfb_setcolreg()
772 (CNVT_TOHW(transp, info->var.transp.length) << in tdfxfb_setcolreg()
/drivers/video/fbdev/matrox/
Dmatroxfb_crtc2.c42 red = CNVT_TOHW(red, m2info->fbcon.var.red.length); in matroxfb_dh_setcolreg()
43 green = CNVT_TOHW(green, m2info->fbcon.var.green.length); in matroxfb_dh_setcolreg()
44 blue = CNVT_TOHW(blue, m2info->fbcon.var.blue.length); in matroxfb_dh_setcolreg()
45 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.c666 red = CNVT_TOHW(red, minfo->fbcon.var.red.length); in matroxfb_setcolreg()
667 green = CNVT_TOHW(green, minfo->fbcon.var.green.length); in matroxfb_setcolreg()
668 blue = CNVT_TOHW(blue, minfo->fbcon.var.blue.length); in matroxfb_setcolreg()
669 transp = CNVT_TOHW(transp, minfo->fbcon.var.transp.length); in matroxfb_setcolreg()