 dinfo->palette[regno].red = red; dinfo->palette[regno].green = green; dinfo->palette[regno].blue = blue; 
intelfb_setcolreg(unsigned regno, unsigned red, unsigned green,		  unsigned blue, unsigned transp, struct fb_info *info){	struct intelfb_info *dinfo = GET_DINFO(info);#if VERBOSE > 0	DBG_MSG("intelfb_setcolreg: regno %d, depth %d\n", regno, dinfo->depth);#endif	if (regno > 255)		return 1;	switch (dinfo->depth) {	case 8:		{			red >>= 8;			green >>= 8;			blue >>= 8;			dinfo->palette[regno].red = red;			dinfo->palette[regno].green = green;			dinfo->palette[regno].blue = blue;			intelfbhw_setcolreg(dinfo, regno, red, green, blue,					    transp);		}		break;	case 15:		dinfo->pseudo_palette[regno] = ((red & 0xf800) >>  1) |					       ((green & 0xf800) >>  6) |					       ((blue & 0xf800) >> 11);		break;	case 16:		dinfo->pseudo_palette[regno] = (red & 0xf800) |					       ((green & 0xfc00) >>  5) |					       ((blue  & 0xf800) >> 11);		break;	case 24:		dinfo->pseudo_palette[regno] = ((red & 0xff00) << 8) |					       (green & 0xff00) |					       ((blue  & 0xff00) >> 8);		break;	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4c7ffe0b9f7f40bd818fe3af51342f64c483908e/intelfbdrv.c/buggy/drivers/video/intelfb/intelfbdrv.c