cmap              105 arch/m68k/include/asm/fbio.h         struct fbcmap cmap;     /* color map info */
cmap              321 arch/m68k/include/asm/fbio.h 	struct fbcmap32 cmap;	/* color map info */
cmap               65 arch/sparc/include/asm/fbio.h 	struct fbcmap32 cmap;	/* color map info */
cmap              102 arch/sparc/include/uapi/asm/fbio.h         struct fbcmap cmap;     /* color map info */
cmap              522 drivers/gpu/drm/drm_fb_helper.c 	ret = fb_alloc_cmap(&info->cmap, 256, 0);
cmap              538 drivers/gpu/drm/drm_fb_helper.c 	fb_dealloc_cmap(&info->cmap);
cmap              584 drivers/gpu/drm/drm_fb_helper.c 		if (info->cmap.len)
cmap              585 drivers/gpu/drm/drm_fb_helper.c 			fb_dealloc_cmap(&info->cmap);
cmap              921 drivers/gpu/drm/drm_fb_helper.c static int setcmap_pseudo_palette(struct fb_cmap *cmap, struct fb_info *info)
cmap              926 drivers/gpu/drm/drm_fb_helper.c 	if (cmap->start + cmap->len > 16)
cmap              929 drivers/gpu/drm/drm_fb_helper.c 	for (i = 0; i < cmap->len; ++i) {
cmap              930 drivers/gpu/drm/drm_fb_helper.c 		u16 red = cmap->red[i];
cmap              931 drivers/gpu/drm/drm_fb_helper.c 		u16 green = cmap->green[i];
cmap              932 drivers/gpu/drm/drm_fb_helper.c 		u16 blue = cmap->blue[i];
cmap              947 drivers/gpu/drm/drm_fb_helper.c 		palette[cmap->start + i] = value;
cmap              953 drivers/gpu/drm/drm_fb_helper.c static int setcmap_legacy(struct fb_cmap *cmap, struct fb_info *info)
cmap              967 drivers/gpu/drm/drm_fb_helper.c 		if (cmap->start + cmap->len > crtc->gamma_size)
cmap              974 drivers/gpu/drm/drm_fb_helper.c 		memcpy(r + cmap->start, cmap->red, cmap->len * sizeof(*r));
cmap              975 drivers/gpu/drm/drm_fb_helper.c 		memcpy(g + cmap->start, cmap->green, cmap->len * sizeof(*g));
cmap              976 drivers/gpu/drm/drm_fb_helper.c 		memcpy(b + cmap->start, cmap->blue, cmap->len * sizeof(*b));
cmap              989 drivers/gpu/drm/drm_fb_helper.c 						       struct fb_cmap *cmap)
cmap              997 drivers/gpu/drm/drm_fb_helper.c 	if (!size || cmap->start + cmap->len > size)
cmap             1005 drivers/gpu/drm/drm_fb_helper.c 	if (cmap->start || cmap->len != size) {
cmap             1010 drivers/gpu/drm/drm_fb_helper.c 		for (i = 0; i < cmap->start; i++) {
cmap             1015 drivers/gpu/drm/drm_fb_helper.c 		for (i = cmap->start + cmap->len; i < size; i++) {
cmap             1022 drivers/gpu/drm/drm_fb_helper.c 	for (i = 0; i < cmap->len; i++) {
cmap             1023 drivers/gpu/drm/drm_fb_helper.c 		lut[cmap->start + i].red = cmap->red[i];
cmap             1024 drivers/gpu/drm/drm_fb_helper.c 		lut[cmap->start + i].green = cmap->green[i];
cmap             1025 drivers/gpu/drm/drm_fb_helper.c 		lut[cmap->start + i].blue = cmap->blue[i];
cmap             1031 drivers/gpu/drm/drm_fb_helper.c static int setcmap_atomic(struct fb_cmap *cmap, struct fb_info *info)
cmap             1059 drivers/gpu/drm/drm_fb_helper.c 			gamma_lut = setcmap_new_gamma_lut(crtc, cmap);
cmap             1091 drivers/gpu/drm/drm_fb_helper.c 		memcpy(r + cmap->start, cmap->red, cmap->len * sizeof(*r));
cmap             1092 drivers/gpu/drm/drm_fb_helper.c 		memcpy(g + cmap->start, cmap->green, cmap->len * sizeof(*g));
cmap             1093 drivers/gpu/drm/drm_fb_helper.c 		memcpy(b + cmap->start, cmap->blue, cmap->len * sizeof(*b));
cmap             1119 drivers/gpu/drm/drm_fb_helper.c int drm_fb_helper_setcmap(struct fb_cmap *cmap, struct fb_info *info)
cmap             1137 drivers/gpu/drm/drm_fb_helper.c 		ret = setcmap_pseudo_palette(cmap, info);
cmap             1139 drivers/gpu/drm/drm_fb_helper.c 		ret = setcmap_atomic(cmap, info);
cmap             1141 drivers/gpu/drm/drm_fb_helper.c 		ret = setcmap_legacy(cmap, info);
cmap              864 drivers/media/pci/ivtv/ivtvfb.c 	if (regno >= info->cmap.len)
cmap             1066 drivers/media/pci/ivtv/ivtvfb.c 	if (fb_alloc_cmap(&oi->ivtvfb_info.cmap, 256, 1)) {
cmap             1145 drivers/media/pci/ivtv/ivtvfb.c 	if (oi->ivtvfb_info.cmap.len)
cmap             1146 drivers/media/pci/ivtv/ivtvfb.c 		fb_dealloc_cmap(&oi->ivtvfb_info.cmap);
cmap              200 drivers/media/platform/vivid/vivid-osd.c 	if (regno >= info->cmap.len)
cmap              328 drivers/media/platform/vivid/vivid-osd.c 	if (fb_alloc_cmap(&dev->fb_info.cmap, 256, 1)) {
cmap              346 drivers/media/platform/vivid/vivid-osd.c 	if (dev->fb_info.cmap.len)
cmap              347 drivers/media/platform/vivid/vivid-osd.c 		fb_dealloc_cmap(&dev->fb_info.cmap);
cmap              136 drivers/staging/sm750fb/sm750.c 		fg = ((info->cmap.red[fbcursor->image.fg_color] & 0xf800)) |
cmap              137 drivers/staging/sm750fb/sm750.c 		     ((info->cmap.green[fbcursor->image.fg_color] & 0xfc00) >> 5) |
cmap              138 drivers/staging/sm750fb/sm750.c 		     ((info->cmap.blue[fbcursor->image.fg_color] & 0xf800) >> 11);
cmap              140 drivers/staging/sm750fb/sm750.c 		bg = ((info->cmap.red[fbcursor->image.bg_color] & 0xf800)) |
cmap              141 drivers/staging/sm750fb/sm750.c 		     ((info->cmap.green[fbcursor->image.bg_color] & 0xfc00) >> 5) |
cmap              142 drivers/staging/sm750fb/sm750.c 		     ((info->cmap.blue[fbcursor->image.bg_color] & 0xf800) >> 11);
cmap              912 drivers/staging/sm750fb/sm750.c 		 info->cmap.start, info->cmap.len,
cmap              913 drivers/staging/sm750fb/sm750.c 		 info->cmap.red, info->cmap.green, info->cmap.blue,
cmap              914 drivers/staging/sm750fb/sm750.c 		 info->cmap.transp);
cmap              916 drivers/staging/sm750fb/sm750.c 	ret = fb_alloc_cmap(&info->cmap, 256, 0);
cmap              923 drivers/staging/sm750fb/sm750.c 		 info->cmap.start, info->cmap.len,
cmap              924 drivers/staging/sm750fb/sm750.c 		 info->cmap.red, info->cmap.green, info->cmap.blue,
cmap              925 drivers/staging/sm750fb/sm750.c 		 info->cmap.transp);
cmap              467 drivers/video/fbdev/68328fb.c 	if (fb_alloc_cmap(&fb_info.cmap, 256, 0))
cmap              471 drivers/video/fbdev/68328fb.c 		fb_dealloc_cmap(&fb_info.cmap);
cmap              491 drivers/video/fbdev/68328fb.c 	fb_dealloc_cmap(&fb_info.cmap);
cmap              354 drivers/video/fbdev/amba-clcd.c 		fb->cmap[regno] = convert_bitfield(transp, &fb->fb.var.transp) |
cmap              478 drivers/video/fbdev/amba-clcd.c 	fb->fb.pseudo_palette	= fb->cmap;
cmap              524 drivers/video/fbdev/amba-clcd.c 	ret = fb_alloc_cmap(&fb->fb.cmap, 256, 0);
cmap              544 drivers/video/fbdev/amba-clcd.c 	fb_dealloc_cmap(&fb->fb.cmap);
cmap              937 drivers/video/fbdev/amba-clcd.c 	if (fb->fb.cmap.len)
cmap              938 drivers/video/fbdev/amba-clcd.c 		fb_dealloc_cmap(&fb->fb.cmap);
cmap             3731 drivers/video/fbdev/amifb.c 	err = fb_alloc_cmap(&info->cmap, 1 << info->var.bits_per_pixel, 0);
cmap             3747 drivers/video/fbdev/amifb.c 	fb_dealloc_cmap(&info->cmap);
cmap             3766 drivers/video/fbdev/amifb.c 	fb_dealloc_cmap(&info->cmap);
cmap             1028 drivers/video/fbdev/arkfb.c 	rc = fb_alloc_cmap(&info->cmap, 256, 0);
cmap             1051 drivers/video/fbdev/arkfb.c 	fb_dealloc_cmap(&info->cmap);
cmap             1077 drivers/video/fbdev/arkfb.c 		fb_dealloc_cmap(&info->cmap);
cmap              517 drivers/video/fbdev/asiliantfb.c 	err = fb_alloc_cmap(&p->cmap, 256, 0);
cmap              526 drivers/video/fbdev/asiliantfb.c 		fb_dealloc_cmap(&p->cmap);
cmap              589 drivers/video/fbdev/asiliantfb.c 	fb_dealloc_cmap(&p->cmap);
cmap             2673 drivers/video/fbdev/atafb.c 	struct fb_cmap cmap;
cmap             2678 drivers/video/fbdev/atafb.c 		cmap.red = black;
cmap             2679 drivers/video/fbdev/atafb.c 		cmap.green = black;
cmap             2680 drivers/video/fbdev/atafb.c 		cmap.blue = black;
cmap             2681 drivers/video/fbdev/atafb.c 		cmap.transp = NULL;
cmap             2682 drivers/video/fbdev/atafb.c 		cmap.start = 0;
cmap             2683 drivers/video/fbdev/atafb.c 		cmap.len = 16;
cmap             2684 drivers/video/fbdev/atafb.c 		fb_set_cmap(&cmap, info);
cmap             3197 drivers/video/fbdev/atafb.c 	fb_alloc_cmap(&(fb_info.cmap), 1 << fb_info.var.bits_per_pixel, 0);
cmap              880 drivers/video/fbdev/atmel_lcdfb.c 	ret = fb_alloc_cmap(&info->cmap, 256, 0);
cmap             1218 drivers/video/fbdev/atmel_lcdfb.c 	fb_dealloc_cmap(&info->cmap);
cmap             1265 drivers/video/fbdev/atmel_lcdfb.c 	fb_dealloc_cmap(&info->cmap);
cmap             2028 drivers/video/fbdev/aty/aty128fb.c 	fb_alloc_cmap(&info->cmap, 256, 0);
cmap             2461 drivers/video/fbdev/aty/aty128fb.c 	fb_set_cmap(&info->cmap, info);
cmap             1823 drivers/video/fbdev/aty/atyfb_base.c 		fbtyp.fb_cmsize = info->cmap.len;
cmap             2709 drivers/video/fbdev/aty/atyfb_base.c 	ret = fb_alloc_cmap(&info->cmap, 256, 0);
cmap             2715 drivers/video/fbdev/aty/atyfb_base.c 		fb_dealloc_cmap(&info->cmap);
cmap              131 drivers/video/fbdev/aty/mach64_cursor.c 		fg = ((info->cmap.red[fg_idx] & 0xff) << 24) |
cmap              132 drivers/video/fbdev/aty/mach64_cursor.c 		     ((info->cmap.green[fg_idx] & 0xff) << 16) |
cmap              133 drivers/video/fbdev/aty/mach64_cursor.c 		     ((info->cmap.blue[fg_idx] & 0xff) << 8) | 0xff;
cmap              135 drivers/video/fbdev/aty/mach64_cursor.c 		bg = ((info->cmap.red[bg_idx] & 0xff) << 24) |
cmap              136 drivers/video/fbdev/aty/mach64_cursor.c 		     ((info->cmap.green[bg_idx] & 0xff) << 16) |
cmap              137 drivers/video/fbdev/aty/mach64_cursor.c 		     ((info->cmap.blue[bg_idx] & 0xff) << 8);
cmap             1271 drivers/video/fbdev/aty/radeon_base.c static int radeonfb_setcmap(struct fb_cmap *cmap, struct fb_info *info)
cmap             1293 drivers/video/fbdev/aty/radeon_base.c 	red = cmap->red;
cmap             1294 drivers/video/fbdev/aty/radeon_base.c 	green = cmap->green;
cmap             1295 drivers/video/fbdev/aty/radeon_base.c 	blue = cmap->blue;
cmap             1296 drivers/video/fbdev/aty/radeon_base.c 	transp = cmap->transp;
cmap             1297 drivers/video/fbdev/aty/radeon_base.c 	start = cmap->start;
cmap             1299 drivers/video/fbdev/aty/radeon_base.c 	for (i = 0; i < cmap->len; i++) {
cmap             2012 drivers/video/fbdev/aty/radeon_base.c 	fb_alloc_cmap(&info->cmap, 256, 0);
cmap             2516 drivers/video/fbdev/aty/radeon_base.c 	fb_dealloc_cmap(&info->cmap);
cmap             2580 drivers/video/fbdev/aty/radeon_base.c 	fb_dealloc_cmap(&info->cmap);
cmap             2768 drivers/video/fbdev/aty/radeon_pm.c 	fb_set_cmap(&info->cmap, info);
cmap              492 drivers/video/fbdev/au1100fb.c 	if (fb_alloc_cmap(&fbdev->info.cmap, AU1100_LCD_NBR_PALETTE_ENTRIES, 0) < 0) {
cmap              516 drivers/video/fbdev/au1100fb.c 	if (fbdev->info.cmap.len != 0) {
cmap              517 drivers/video/fbdev/au1100fb.c 		fb_dealloc_cmap(&fbdev->info.cmap);
cmap              540 drivers/video/fbdev/au1100fb.c 	fb_dealloc_cmap(&fbdev->info.cmap);
cmap             1551 drivers/video/fbdev/au1200fb.c 	ret = fb_alloc_cmap(&fbi->cmap, AU1200_LCD_NBR_PALETTE_ENTRIES, 0);
cmap             1724 drivers/video/fbdev/au1200fb.c 				fb_set_cmap(&fbi->cmap, fbi);
cmap             1755 drivers/video/fbdev/au1200fb.c 		if (fbi->cmap.len != 0)
cmap             1756 drivers/video/fbdev/au1200fb.c 			fb_dealloc_cmap(&fbi->cmap);
cmap             1779 drivers/video/fbdev/au1200fb.c 		if (fbi->cmap.len != 0)
cmap             1780 drivers/video/fbdev/au1200fb.c 			fb_dealloc_cmap(&fbi->cmap);
cmap             1139 drivers/video/fbdev/broadsheetfb.c 	retval = fb_alloc_cmap(&info->cmap, 16, 0);
cmap             1147 drivers/video/fbdev/broadsheetfb.c 		info->cmap.red[i] = (((2*i)+1)*(0xFFFF))/32;
cmap             1148 drivers/video/fbdev/broadsheetfb.c 	memcpy(info->cmap.green, info->cmap.red, sizeof(u16)*16);
cmap             1149 drivers/video/fbdev/broadsheetfb.c 	memcpy(info->cmap.blue, info->cmap.red, sizeof(u16)*16);
cmap             1185 drivers/video/fbdev/broadsheetfb.c 	fb_dealloc_cmap(&info->cmap);
cmap             1207 drivers/video/fbdev/broadsheetfb.c 		fb_dealloc_cmap(&info->cmap);
cmap               64 drivers/video/fbdev/bw2.c 	struct bt_regs	cmap;
cmap              565 drivers/video/fbdev/carminefb.c 	ret = fb_alloc_cmap(&info->cmap, 256, 1);
cmap              595 drivers/video/fbdev/carminefb.c 	fb_dealloc_cmap(&info->cmap);
cmap              605 drivers/video/fbdev/carminefb.c 		fb_dealloc_cmap(&info->cmap);
cmap              542 drivers/video/fbdev/cg14.c 	if (fb_alloc_cmap(&info->cmap, 256, 0))
cmap              545 drivers/video/fbdev/cg14.c 	fb_set_cmap(&info->cmap, info);
cmap              563 drivers/video/fbdev/cg14.c 	fb_dealloc_cmap(&info->cmap);
cmap              579 drivers/video/fbdev/cg14.c 	fb_dealloc_cmap(&info->cmap);
cmap               89 drivers/video/fbdev/cg3.c 	struct bt_regs	cmap;
cmap              143 drivers/video/fbdev/cg3.c 	struct bt_regs __iomem *bt = &par->regs->cmap;
cmap              342 drivers/video/fbdev/cg3.c 		regp = (u8 __iomem *)&par->regs->cmap.addr;
cmap              344 drivers/video/fbdev/cg3.c 		regp = (u8 __iomem *)&par->regs->cmap.control;
cmap              402 drivers/video/fbdev/cg3.c 	err = fb_alloc_cmap(&info->cmap, 256, 0);
cmap              406 drivers/video/fbdev/cg3.c 	fb_set_cmap(&info->cmap, info);
cmap              422 drivers/video/fbdev/cg3.c 	fb_dealloc_cmap(&info->cmap);
cmap              443 drivers/video/fbdev/cg3.c 	fb_dealloc_cmap(&info->cmap);
cmap              802 drivers/video/fbdev/cg6.c 	if (fb_alloc_cmap(&info->cmap, 256, 0))
cmap              805 drivers/video/fbdev/cg6.c 	fb_set_cmap(&info->cmap, info);
cmap              821 drivers/video/fbdev/cg6.c 	fb_dealloc_cmap(&info->cmap);
cmap              837 drivers/video/fbdev/cg6.c 	fb_dealloc_cmap(&info->cmap);
cmap              344 drivers/video/fbdev/chipsfb.c 	fb_alloc_cmap(&p->cmap, 256, 0);
cmap             2018 drivers/video/fbdev/cirrusfb.c 	fb_alloc_cmap(&info->cmap, 256, 0);
cmap             2063 drivers/video/fbdev/cirrusfb.c 	fb_dealloc_cmap(&info->cmap);
cmap             2073 drivers/video/fbdev/cirrusfb.c 	fb_dealloc_cmap(&info->cmap);
cmap              333 drivers/video/fbdev/clps711x-fb.c 	ret = fb_alloc_cmap(&info->cmap, BIT(CLPS711X_FB_BPP_MAX), 0);
cmap              355 drivers/video/fbdev/clps711x-fb.c 	fb_dealloc_cmap(&info->cmap);
cmap              371 drivers/video/fbdev/clps711x-fb.c 	fb_dealloc_cmap(&info->cmap);
cmap             1034 drivers/video/fbdev/controlfb.c 	fb_alloc_cmap(&info->cmap, 256, 0);
cmap               92 drivers/video/fbdev/core/fbcmap.c int fb_alloc_cmap_gfp(struct fb_cmap *cmap, int len, int transp, gfp_t flags)
cmap               99 drivers/video/fbdev/core/fbcmap.c 	if (cmap->len != len) {
cmap              100 drivers/video/fbdev/core/fbcmap.c 		fb_dealloc_cmap(cmap);
cmap              104 drivers/video/fbdev/core/fbcmap.c 		cmap->red = kmalloc(size, flags);
cmap              105 drivers/video/fbdev/core/fbcmap.c 		if (!cmap->red)
cmap              107 drivers/video/fbdev/core/fbcmap.c 		cmap->green = kmalloc(size, flags);
cmap              108 drivers/video/fbdev/core/fbcmap.c 		if (!cmap->green)
cmap              110 drivers/video/fbdev/core/fbcmap.c 		cmap->blue = kmalloc(size, flags);
cmap              111 drivers/video/fbdev/core/fbcmap.c 		if (!cmap->blue)
cmap              114 drivers/video/fbdev/core/fbcmap.c 			cmap->transp = kmalloc(size, flags);
cmap              115 drivers/video/fbdev/core/fbcmap.c 			if (!cmap->transp)
cmap              118 drivers/video/fbdev/core/fbcmap.c 			cmap->transp = NULL;
cmap              121 drivers/video/fbdev/core/fbcmap.c 	cmap->start = 0;
cmap              122 drivers/video/fbdev/core/fbcmap.c 	cmap->len = len;
cmap              123 drivers/video/fbdev/core/fbcmap.c 	ret = fb_copy_cmap(fb_default_cmap(len), cmap);
cmap              129 drivers/video/fbdev/core/fbcmap.c 	fb_dealloc_cmap(cmap);
cmap              133 drivers/video/fbdev/core/fbcmap.c int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp)
cmap              135 drivers/video/fbdev/core/fbcmap.c 	return fb_alloc_cmap_gfp(cmap, len, transp, GFP_ATOMIC);
cmap              147 drivers/video/fbdev/core/fbcmap.c void fb_dealloc_cmap(struct fb_cmap *cmap)
cmap              149 drivers/video/fbdev/core/fbcmap.c 	kfree(cmap->red);
cmap              150 drivers/video/fbdev/core/fbcmap.c 	kfree(cmap->green);
cmap              151 drivers/video/fbdev/core/fbcmap.c 	kfree(cmap->blue);
cmap              152 drivers/video/fbdev/core/fbcmap.c 	kfree(cmap->transp);
cmap              154 drivers/video/fbdev/core/fbcmap.c 	cmap->red = cmap->green = cmap->blue = cmap->transp = NULL;
cmap              155 drivers/video/fbdev/core/fbcmap.c 	cmap->len = 0;
cmap              231 drivers/video/fbdev/core/fbcmap.c int fb_set_cmap(struct fb_cmap *cmap, struct fb_info *info)
cmap              237 drivers/video/fbdev/core/fbcmap.c 	red = cmap->red;
cmap              238 drivers/video/fbdev/core/fbcmap.c 	green = cmap->green;
cmap              239 drivers/video/fbdev/core/fbcmap.c 	blue = cmap->blue;
cmap              240 drivers/video/fbdev/core/fbcmap.c 	transp = cmap->transp;
cmap              241 drivers/video/fbdev/core/fbcmap.c 	start = cmap->start;
cmap              247 drivers/video/fbdev/core/fbcmap.c 		rc = info->fbops->fb_setcmap(cmap, info);
cmap              249 drivers/video/fbdev/core/fbcmap.c 		for (i = 0; i < cmap->len; i++) {
cmap              262 drivers/video/fbdev/core/fbcmap.c 		fb_copy_cmap(cmap, &info->cmap);
cmap              267 drivers/video/fbdev/core/fbcmap.c int fb_set_user_cmap(struct fb_cmap_user *cmap, struct fb_info *info)
cmap              269 drivers/video/fbdev/core/fbcmap.c 	int rc, size = cmap->len * sizeof(u16);
cmap              272 drivers/video/fbdev/core/fbcmap.c 	if (size < 0 || size < cmap->len)
cmap              276 drivers/video/fbdev/core/fbcmap.c 	rc = fb_alloc_cmap_gfp(&umap, cmap->len, cmap->transp != NULL,
cmap              280 drivers/video/fbdev/core/fbcmap.c 	if (copy_from_user(umap.red, cmap->red, size) ||
cmap              281 drivers/video/fbdev/core/fbcmap.c 	    copy_from_user(umap.green, cmap->green, size) ||
cmap              282 drivers/video/fbdev/core/fbcmap.c 	    copy_from_user(umap.blue, cmap->blue, size) ||
cmap              283 drivers/video/fbdev/core/fbcmap.c 	    (cmap->transp && copy_from_user(umap.transp, cmap->transp, size))) {
cmap              287 drivers/video/fbdev/core/fbcmap.c 	umap.start = cmap->start;
cmap             1036 drivers/video/fbdev/core/fbmem.c 	fb_set_cmap(&info->cmap, info);
cmap             1086 drivers/video/fbdev/core/fbmem.c 	struct fb_cmap_user cmap;
cmap             1121 drivers/video/fbdev/core/fbmem.c 		if (copy_from_user(&cmap, argp, sizeof(cmap)))
cmap             1123 drivers/video/fbdev/core/fbmem.c 		ret = fb_set_user_cmap(&cmap, info);
cmap             1126 drivers/video/fbdev/core/fbmem.c 		if (copy_from_user(&cmap, argp, sizeof(cmap)))
cmap             1129 drivers/video/fbdev/core/fbmem.c 		cmap_from = info->cmap;
cmap             1131 drivers/video/fbdev/core/fbmem.c 		ret = fb_cmap_to_user(&cmap_from, &cmap);
cmap             1213 drivers/video/fbdev/core/fbmem.c 	struct fb_cmap_user __user *cmap;
cmap             1218 drivers/video/fbdev/core/fbmem.c 	cmap = compat_alloc_user_space(sizeof(*cmap));
cmap             1221 drivers/video/fbdev/core/fbmem.c 	if (copy_in_user(&cmap->start, &cmap32->start, 2 * sizeof(__u32)))
cmap             1225 drivers/video/fbdev/core/fbmem.c 	    put_user(compat_ptr(data), &cmap->red) ||
cmap             1227 drivers/video/fbdev/core/fbmem.c 	    put_user(compat_ptr(data), &cmap->green) ||
cmap             1229 drivers/video/fbdev/core/fbmem.c 	    put_user(compat_ptr(data), &cmap->blue) ||
cmap             1231 drivers/video/fbdev/core/fbmem.c 	    put_user(compat_ptr(data), &cmap->transp))
cmap             1234 drivers/video/fbdev/core/fbmem.c 	err = do_fb_ioctl(info, cmd, (unsigned long) cmap);
cmap             1238 drivers/video/fbdev/core/fbmem.c 				 &cmap->start,
cmap             1466 drivers/video/fbdev/cyber2000fb.c 	fb_alloc_cmap(&cfb->fb.cmap, NR_PALETTE, 0);
cmap             1477 drivers/video/fbdev/cyber2000fb.c 		fb_alloc_cmap(&cfb->fb.cmap, 0, 0);
cmap             1089 drivers/video/fbdev/da8xx-fb.c 	fb_dealloc_cmap(&info->cmap);
cmap             1476 drivers/video/fbdev/da8xx-fb.c 	ret = fb_alloc_cmap(&da8xx_fb_info->cmap, PALETTE_SIZE, 0);
cmap             1479 drivers/video/fbdev/da8xx-fb.c 	da8xx_fb_info->cmap.len = par->palette_sz;
cmap             1530 drivers/video/fbdev/da8xx-fb.c 	fb_dealloc_cmap(&da8xx_fb_info->cmap);
cmap              245 drivers/video/fbdev/dnfb.c 	err = fb_alloc_cmap(&info->cmap, 2, 0);
cmap              251 drivers/video/fbdev/dnfb.c 		fb_dealloc_cmap(&info->cmap);
cmap               78 drivers/video/fbdev/efifb.c 	if (regno >= info->cmap.len)
cmap              255 drivers/video/fbdev/efifb.c 	fb_dealloc_cmap(&info->cmap);
cmap              567 drivers/video/fbdev/efifb.c 	err = fb_alloc_cmap(&info->cmap, 256, 0);
cmap              581 drivers/video/fbdev/efifb.c 	fb_dealloc_cmap(&info->cmap);
cmap              482 drivers/video/fbdev/ep93xx-fb.c 	err = fb_alloc_cmap(&info->cmap, 256, 0);
cmap              567 drivers/video/fbdev/ep93xx-fb.c 	fb_dealloc_cmap(&info->cmap);
cmap              582 drivers/video/fbdev/ep93xx-fb.c 	fb_dealloc_cmap(&info->cmap);
cmap              705 drivers/video/fbdev/fb-puv3.c 	retval = fb_alloc_cmap(&info->cmap, 256, 0);
cmap              719 drivers/video/fbdev/fb-puv3.c 	fb_dealloc_cmap(&info->cmap);
cmap              732 drivers/video/fbdev/fb-puv3.c 		fb_dealloc_cmap(&info->cmap);
cmap              990 drivers/video/fbdev/ffb.c 	if (fb_alloc_cmap(&info->cmap, 256, 0))
cmap             1011 drivers/video/fbdev/ffb.c 	fb_dealloc_cmap(&info->cmap);
cmap             1032 drivers/video/fbdev/ffb.c 	fb_dealloc_cmap(&info->cmap);
cmap              247 drivers/video/fbdev/fm2fb.c 	if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) {
cmap              286 drivers/video/fbdev/fm2fb.c 		fb_dealloc_cmap(&info->cmap);
cmap             1078 drivers/video/fbdev/fsl-diu-fb.c 		bg = ((info->cmap.red[bg_idx] & 0xf8) << 7) |
cmap             1079 drivers/video/fbdev/fsl-diu-fb.c 		     ((info->cmap.green[bg_idx] & 0xf8) << 2) |
cmap             1080 drivers/video/fbdev/fsl-diu-fb.c 		     ((info->cmap.blue[bg_idx] & 0xf8) >> 3) |
cmap             1083 drivers/video/fbdev/fsl-diu-fb.c 		fg = ((info->cmap.red[fg_idx] & 0xf8) << 7) |
cmap             1084 drivers/video/fbdev/fsl-diu-fb.c 		     ((info->cmap.green[fg_idx] & 0xf8) << 2) |
cmap             1085 drivers/video/fbdev/fsl-diu-fb.c 		     ((info->cmap.blue[fg_idx] & 0xf8) >> 3) |
cmap             1482 drivers/video/fbdev/fsl-diu-fb.c 	rc = fb_alloc_cmap(&info->cmap, 16, 0);
cmap             1547 drivers/video/fbdev/fsl-diu-fb.c 		fb_dealloc_cmap(&info->cmap);
cmap             1554 drivers/video/fbdev/fsl-diu-fb.c 		fb_dealloc_cmap(&info->cmap);
cmap             1573 drivers/video/fbdev/fsl-diu-fb.c 	fb_dealloc_cmap(&info->cmap);
cmap              247 drivers/video/fbdev/g364fb.c 	fb_alloc_cmap(&fb_info.cmap, 255, 0);
cmap              382 drivers/video/fbdev/gbefb.c 		gbe->cmap[i] = gbe_cmap[i];
cmap              872 drivers/video/fbdev/gbefb.c 			gbe->cmap[regno] = gbe_cmap[regno];
cmap             1206 drivers/video/fbdev/gbefb.c 	fb_alloc_cmap(&info->cmap, 256, 0);
cmap              310 drivers/video/fbdev/geode/gx1fb_core.c 	if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) {
cmap              373 drivers/video/fbdev/geode/gx1fb_core.c 	fb_dealloc_cmap(&info->cmap);
cmap              395 drivers/video/fbdev/geode/gx1fb_core.c 	fb_dealloc_cmap(&info->cmap);
cmap              317 drivers/video/fbdev/geode/gxfb_core.c 	if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) {
cmap              434 drivers/video/fbdev/geode/gxfb_core.c 	fb_dealloc_cmap(&info->cmap);
cmap              458 drivers/video/fbdev/geode/gxfb_core.c 	fb_dealloc_cmap(&info->cmap);
cmap              436 drivers/video/fbdev/geode/lxfb_core.c 	if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) {
cmap              567 drivers/video/fbdev/geode/lxfb_core.c 	fb_dealloc_cmap(&info->cmap);
cmap              592 drivers/video/fbdev/geode/lxfb_core.c 	fb_dealloc_cmap(&info->cmap);
cmap               45 drivers/video/fbdev/goldfishfb.c 	u32 cmap[16];
cmap               78 drivers/video/fbdev/goldfishfb.c 		fb->cmap[regno] = convert_bitfield(transp, &fb->fb.var.transp) |
cmap              216 drivers/video/fbdev/goldfishfb.c 	fb->fb.pseudo_palette	= fb->cmap;
cmap              400 drivers/video/fbdev/grvga.c 	retval = fb_alloc_cmap(&info->cmap, 256, 0);
cmap              497 drivers/video/fbdev/grvga.c 	fb_dealloc_cmap(&info->cmap);
cmap              515 drivers/video/fbdev/grvga.c 		fb_dealloc_cmap(&info->cmap);
cmap              691 drivers/video/fbdev/gxt4500.c 	err = fb_alloc_cmap(&info->cmap, 256, 0);
cmap              718 drivers/video/fbdev/gxt4500.c 	fb_dealloc_cmap(&info->cmap);
cmap              743 drivers/video/fbdev/gxt4500.c 	fb_dealloc_cmap(&info->cmap);
cmap              398 drivers/video/fbdev/hitfb.c 	ret = fb_alloc_cmap(&info->cmap, 256, 0);
cmap              413 drivers/video/fbdev/hitfb.c 	fb_dealloc_cmap(&info->cmap);
cmap              424 drivers/video/fbdev/hitfb.c 	fb_dealloc_cmap(&info->cmap);
cmap               93 drivers/video/fbdev/hpfb.c 	if (regno >= info->cmap.len)
cmap              294 drivers/video/fbdev/hpfb.c 	ret = fb_alloc_cmap(&fb_info.cmap, 1 << hpfb_defined.bits_per_pixel, 0);
cmap              307 drivers/video/fbdev/hpfb.c 	fb_dealloc_cmap(&fb_info.cmap);
cmap              358 drivers/video/fbdev/hpfb.c 	fb_dealloc_cmap(&fb_info.cmap);
cmap             1122 drivers/video/fbdev/i740fb.c 	ret = fb_alloc_cmap(&info->cmap, 256, 0);
cmap             1142 drivers/video/fbdev/i740fb.c 	fb_dealloc_cmap(&info->cmap);
cmap             1167 drivers/video/fbdev/i740fb.c 		fb_dealloc_cmap(&info->cmap);
cmap             2052 drivers/video/fbdev/i810/i810_main.c 	fb_alloc_cmap(&info->cmap, 256, 0);
cmap             1246 drivers/video/fbdev/imsttfb.c 		fg = ((info->cmap.red[fg_idx] & 0xf8) << 7) |
cmap             1247 drivers/video/fbdev/imsttfb.c                      ((info->cmap.green[fg_idx] & 0xf8) << 2) |
cmap             1248 drivers/video/fbdev/imsttfb.c                      ((info->cmap.blue[fg_idx] & 0xf8) >> 3) | 1 << 15;
cmap             1454 drivers/video/fbdev/imsttfb.c 	fb_alloc_cmap(&info->cmap, 0, 0);
cmap             1008 drivers/video/fbdev/imxfb.c 	ret = fb_alloc_cmap(&info->cmap, 256, 0);
cmap             1043 drivers/video/fbdev/imxfb.c 	fb_dealloc_cmap(&info->cmap);
cmap             1075 drivers/video/fbdev/imxfb.c 	fb_dealloc_cmap(&info->cmap);
cmap              422 drivers/video/fbdev/intelfb/intelfbdrv.c 	fb_dealloc_cmap(&dinfo->info->cmap);
cmap              497 drivers/video/fbdev/intelfb/intelfbdrv.c 	if (fb_alloc_cmap(&info->cmap, 256, 1) < 0) {
cmap              887 drivers/video/fbdev/intelfb/intelfbdrv.c 	fb_dealloc_cmap(&info->cmap);
cmap              716 drivers/video/fbdev/kyro/fbdev.c 	fb_alloc_cmap(&info->cmap, 256, 0);
cmap              612 drivers/video/fbdev/leo.c 	if (fb_alloc_cmap(&info->cmap, 256, 0))
cmap              630 drivers/video/fbdev/leo.c 	fb_dealloc_cmap(&info->cmap);
cmap              646 drivers/video/fbdev/leo.c 	fb_dealloc_cmap(&info->cmap);
cmap              166 drivers/video/fbdev/macfb.c 			nubus_writeb(info->cmap.red[i] >> 8,
cmap              169 drivers/video/fbdev/macfb.c 			nubus_writeb(info->cmap.green[i] >> 8,
cmap              172 drivers/video/fbdev/macfb.c 			nubus_writeb(info->cmap.blue[i] >> 8,
cmap              443 drivers/video/fbdev/macfb.c 	if (regno >= fb_info->cmap.len)
cmap              881 drivers/video/fbdev/macfb.c 	err = fb_alloc_cmap(&fb_info.cmap, video_cmap_len, 0);
cmap              894 drivers/video/fbdev/macfb.c 	fb_dealloc_cmap(&fb_info.cmap);
cmap              133 drivers/video/fbdev/matrox/matroxfb_accel.c 				matrox_cfb4_pal(minfo->cmap);
cmap              141 drivers/video/fbdev/matrox/matroxfb_accel.c 				matrox_cfb8_pal(minfo->cmap);
cmap              688 drivers/video/fbdev/matrox/matroxfb_base.c 			minfo->cmap[regno] = col | (col << 16);
cmap              695 drivers/video/fbdev/matrox/matroxfb_base.c 		minfo->cmap[regno] =
cmap             1797 drivers/video/fbdev/matrox/matroxfb_base.c 	minfo->fbcon.pseudo_palette = minfo->cmap;
cmap             1806 drivers/video/fbdev/matrox/matroxfb_base.c 	fb_alloc_cmap(&minfo->fbcon.cmap, 256, 1);
cmap              494 drivers/video/fbdev/matrox/matroxfb_base.h 	u_int32_t cmap[16];
cmap               54 drivers/video/fbdev/matrox/matroxfb_crtc2.c 			m2info->cmap[regno] = col | (col << 16);
cmap               57 drivers/video/fbdev/matrox/matroxfb_crtc2.c 			m2info->cmap[regno] = col;
cmap              609 drivers/video/fbdev/matrox/matroxfb_crtc2.c 	m2info->fbcon.pseudo_palette = m2info->cmap;
cmap              610 drivers/video/fbdev/matrox/matroxfb_crtc2.c 	fb_alloc_cmap(&m2info->fbcon.cmap, 256, 1);
cmap               32 drivers/video/fbdev/matrox/matroxfb_crtc2.h 	u_int32_t cmap[16];
cmap              160 drivers/video/fbdev/maxinefb.c 	fb_alloc_cmap(&fb_info.cmap, 256, 0);
cmap              745 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c 	if (fb_alloc_cmap(&info->cmap, NR_PALETTE, 0) < 0) {
cmap              765 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c 	fb_dealloc_cmap(&info->cmap);
cmap              805 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c 	fb_dealloc_cmap(&fbi->cmap);
cmap             1082 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c 	if (fb_alloc_cmap(&info->cmap, NR_PALETTE, 0) < 0) {
cmap             1110 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c 	fb_dealloc_cmap(&info->cmap);
cmap             1152 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c 	fb_dealloc_cmap(&fbi->cmap);
cmap              250 drivers/video/fbdev/mbx/mbxfb.c 		fb_dealloc_cmap(&info->cmap);
cmap              970 drivers/video/fbdev/mbx/mbxfb.c 	ret = fb_alloc_cmap(&fbi->cmap, 256, 0);
cmap              998 drivers/video/fbdev/mbx/mbxfb.c 	fb_dealloc_cmap(&fbi->cmap);
cmap              708 drivers/video/fbdev/metronomefb.c 	retval = fb_alloc_cmap(&info->cmap, 8, 0);
cmap              716 drivers/video/fbdev/metronomefb.c 		info->cmap.red[i] = (((2*i)+1)*(0xFFFF))/16;
cmap              717 drivers/video/fbdev/metronomefb.c 	memcpy(info->cmap.green, info->cmap.red, sizeof(u16)*8);
cmap              718 drivers/video/fbdev/metronomefb.c 	memcpy(info->cmap.blue, info->cmap.red, sizeof(u16)*8);
cmap              733 drivers/video/fbdev/metronomefb.c 	fb_dealloc_cmap(&info->cmap);
cmap              756 drivers/video/fbdev/metronomefb.c 		fb_dealloc_cmap(&info->cmap);
cmap              529 drivers/video/fbdev/mmp/fb/mmpfb.c 	if (fb_alloc_cmap(&info->cmap, 256, 0) < 0)
cmap              537 drivers/video/fbdev/mmp/fb/mmpfb.c 	fb_dealloc_cmap(&info->cmap);
cmap             1416 drivers/video/fbdev/mx3fb.c 	ret = fb_alloc_cmap(&fbi->cmap, 16, 0);
cmap             1517 drivers/video/fbdev/mx3fb.c 	fb_dealloc_cmap(&fbi->cmap);
cmap             1546 drivers/video/fbdev/mx3fb.c 	fb_dealloc_cmap(&fbi->cmap);
cmap             1209 drivers/video/fbdev/neofb.c 	if (regno >= fb->cmap.len || regno > 255)
cmap             2021 drivers/video/fbdev/neofb.c 		fb_dealloc_cmap(&info->cmap);
cmap             2089 drivers/video/fbdev/neofb.c 	err = fb_alloc_cmap(&info->cmap, 256, 0);
cmap             2106 drivers/video/fbdev/neofb.c 	fb_dealloc_cmap(&info->cmap);
cmap              587 drivers/video/fbdev/nvidia/nvidia.c 			bg = ((info->cmap.red[bg_idx] & 0xf8) << 7) |
cmap              588 drivers/video/fbdev/nvidia/nvidia.c 			    ((info->cmap.green[bg_idx] & 0xf8) << 2) |
cmap              589 drivers/video/fbdev/nvidia/nvidia.c 			    ((info->cmap.blue[bg_idx] & 0xf8) >> 3) | 1 << 15;
cmap              591 drivers/video/fbdev/nvidia/nvidia.c 			fg = ((info->cmap.red[fg_idx] & 0xf8) << 7) |
cmap              592 drivers/video/fbdev/nvidia/nvidia.c 			    ((info->cmap.green[fg_idx] & 0xf8) << 2) |
cmap              593 drivers/video/fbdev/nvidia/nvidia.c 			    ((info->cmap.blue[fg_idx] & 0xf8) >> 3) | 1 << 15;
cmap             1152 drivers/video/fbdev/nvidia/nvidia.c 	fb_alloc_cmap(&info->cmap, 256, 0);
cmap              181 drivers/video/fbdev/ocfb.c 	if (regno >= info->cmap.len) {
cmap              355 drivers/video/fbdev/ocfb.c 	ret = fb_alloc_cmap(&fbdev->info.cmap, PALETTE_SIZE, 0);
cmap              371 drivers/video/fbdev/ocfb.c 	fb_dealloc_cmap(&fbdev->info.cmap);
cmap              385 drivers/video/fbdev/ocfb.c 	fb_dealloc_cmap(&fbdev->info.cmap);
cmap              246 drivers/video/fbdev/offb.c 		fb_set_cmap(&info->cmap, info);
cmap              285 drivers/video/fbdev/offb.c 	fb_dealloc_cmap(&info->cmap);
cmap              519 drivers/video/fbdev/offb.c 	fb_alloc_cmap(&info->cmap, 256, 0);
cmap              528 drivers/video/fbdev/offb.c 	fb_dealloc_cmap(&info->cmap);
cmap              288 drivers/video/fbdev/omap/omapfb_main.c static int omapfb_setcmap(struct fb_cmap *cmap, struct fb_info *info)
cmap              294 drivers/video/fbdev/omap/omapfb_main.c 	red     = cmap->red;
cmap              295 drivers/video/fbdev/omap/omapfb_main.c 	green   = cmap->green;
cmap              296 drivers/video/fbdev/omap/omapfb_main.c 	blue    = cmap->blue;
cmap              297 drivers/video/fbdev/omap/omapfb_main.c 	transp  = cmap->transp;
cmap              298 drivers/video/fbdev/omap/omapfb_main.c 	index   = cmap->start;
cmap              300 drivers/video/fbdev/omap/omapfb_main.c 	for (count = 0; count < cmap->len; count++) {
cmap              304 drivers/video/fbdev/omap/omapfb_main.c 				count == cmap->len - 1);
cmap             1470 drivers/video/fbdev/omap/omapfb_main.c 	r = fb_alloc_cmap(&info->cmap, 16, 0);
cmap             1480 drivers/video/fbdev/omap/omapfb_main.c 	fb_dealloc_cmap(&fbi->cmap);
cmap             1191 drivers/video/fbdev/omap2/omapfb/omapfb-main.c static int omapfb_setcmap(struct fb_cmap *cmap, struct fb_info *info)
cmap             1199 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	red     = cmap->red;
cmap             1200 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	green   = cmap->green;
cmap             1201 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	blue    = cmap->blue;
cmap             1202 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	transp  = cmap->transp;
cmap             1203 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	index   = cmap->start;
cmap             1205 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	for (count = 0; count < cmap->len; count++) {
cmap             1209 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 				count == cmap->len - 1);
cmap             1803 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = fb_alloc_cmap(&fbi->cmap, 256, 0);
cmap             1813 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	fb_dealloc_cmap(&fbi->cmap);
cmap              295 drivers/video/fbdev/p9100.c 	if (fb_alloc_cmap(&info->cmap, 256, 0))
cmap              304 drivers/video/fbdev/p9100.c 	fb_set_cmap(&info->cmap, info);
cmap              315 drivers/video/fbdev/p9100.c 	fb_dealloc_cmap(&info->cmap);
cmap              336 drivers/video/fbdev/p9100.c 	fb_dealloc_cmap(&info->cmap);
cmap              323 drivers/video/fbdev/platinumfb.c 	fb_alloc_cmap(&info->cmap, 256, 0);
cmap              764 drivers/video/fbdev/pm2fb.c 	info->cmap.len = 256;
cmap              872 drivers/video/fbdev/pm2fb.c 	if (regno >= info->cmap.len)  /* no. of hw registers */
cmap             1296 drivers/video/fbdev/pm2fb.c 		struct fb_cmap cmap = info->cmap;
cmap             1301 drivers/video/fbdev/pm2fb.c 			     cmap.red[bg_idx] >> 8 );
cmap             1303 drivers/video/fbdev/pm2fb.c 			     cmap.green[bg_idx] >> 8 );
cmap             1305 drivers/video/fbdev/pm2fb.c 			     cmap.blue[bg_idx] >> 8 );
cmap             1308 drivers/video/fbdev/pm2fb.c 			     cmap.red[fg_idx] >> 8 );
cmap             1310 drivers/video/fbdev/pm2fb.c 			     cmap.green[fg_idx] >> 8 );
cmap             1312 drivers/video/fbdev/pm2fb.c 			     cmap.blue[fg_idx] >> 8 );
cmap             1409 drivers/video/fbdev/pm2fb.c 			info->cmap.red[bg_idx] >> 8);
cmap             1411 drivers/video/fbdev/pm2fb.c 			info->cmap.green[bg_idx] >> 8);
cmap             1413 drivers/video/fbdev/pm2fb.c 			info->cmap.blue[bg_idx] >> 8);
cmap             1416 drivers/video/fbdev/pm2fb.c 			info->cmap.red[fg_idx] >> 8);
cmap             1418 drivers/video/fbdev/pm2fb.c 			info->cmap.green[fg_idx] >> 8);
cmap             1420 drivers/video/fbdev/pm2fb.c 			info->cmap.blue[fg_idx] >> 8);
cmap             1679 drivers/video/fbdev/pm2fb.c 	retval = fb_alloc_cmap(&info->cmap, 256, 0);
cmap             1698 drivers/video/fbdev/pm2fb.c 	fb_dealloc_cmap(&info->cmap);
cmap             1732 drivers/video/fbdev/pm2fb.c 	fb_dealloc_cmap(&info->cmap);
cmap              660 drivers/video/fbdev/pm3fb.c 		struct fb_cmap cmap = info->cmap;
cmap              664 drivers/video/fbdev/pm3fb.c 				  cmap.red[fg_idx] >> 8 );
cmap              666 drivers/video/fbdev/pm3fb.c 				  cmap.green[fg_idx] >> 8 );
cmap              668 drivers/video/fbdev/pm3fb.c 				  cmap.blue[fg_idx] >> 8 );
cmap              671 drivers/video/fbdev/pm3fb.c 				  cmap.red[bg_idx] >> 8 );
cmap              673 drivers/video/fbdev/pm3fb.c 				  cmap.green[bg_idx] >> 8 );
cmap              675 drivers/video/fbdev/pm3fb.c 				  cmap.blue[bg_idx] >> 8 );
cmap             1424 drivers/video/fbdev/pm3fb.c 	if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) {
cmap             1443 drivers/video/fbdev/pm3fb.c 	fb_dealloc_cmap(&info->cmap);
cmap             1469 drivers/video/fbdev/pm3fb.c 		fb_dealloc_cmap(&info->cmap);
cmap              100 drivers/video/fbdev/pmag-ba-fb.c 	if (regno >= info->cmap.len)
cmap              159 drivers/video/fbdev/pmag-ba-fb.c 	if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) {
cmap              229 drivers/video/fbdev/pmag-ba-fb.c 	fb_dealloc_cmap(&info->cmap);
cmap              250 drivers/video/fbdev/pmag-ba-fb.c 	fb_dealloc_cmap(&info->cmap);
cmap              104 drivers/video/fbdev/pmagb-b-fb.c 	if (regno >= info->cmap.len)
cmap              266 drivers/video/fbdev/pmagb-b-fb.c 	if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) {
cmap              347 drivers/video/fbdev/pmagb-b-fb.c 	fb_dealloc_cmap(&info->cmap);
cmap              368 drivers/video/fbdev/pmagb-b-fb.c 	fb_dealloc_cmap(&info->cmap);
cmap             1149 drivers/video/fbdev/ps3fb.c 	retval = fb_alloc_cmap(&info->cmap, 256, 0);
cmap             1186 drivers/video/fbdev/ps3fb.c 	fb_dealloc_cmap(&info->cmap);
cmap             1231 drivers/video/fbdev/ps3fb.c 		fb_dealloc_cmap(&info->cmap);
cmap              287 drivers/video/fbdev/pvr2fb.c 	if (regno > info->cmap.len)
cmap              809 drivers/video/fbdev/pvr2fb.c 	fb_alloc_cmap(&fb_info->cmap, 256, 0);
cmap              730 drivers/video/fbdev/pxa168fb.c 	if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) {
cmap              765 drivers/video/fbdev/pxa168fb.c 	fb_dealloc_cmap(&info->cmap);
cmap              799 drivers/video/fbdev/pxa168fb.c 	if (info->cmap.len)
cmap              800 drivers/video/fbdev/pxa168fb.c 		fb_dealloc_cmap(&info->cmap);
cmap              528 drivers/video/fbdev/pxafb.c 		fb_dealloc_cmap(&fbi->fb.cmap);
cmap              530 drivers/video/fbdev/pxafb.c 		fb_alloc_cmap(&fbi->fb.cmap, 1<<fbi->fb.var.bits_per_pixel, 0);
cmap              594 drivers/video/fbdev/pxafb.c 			fb_set_cmap(&fbi->fb.cmap, info);
cmap             2397 drivers/video/fbdev/pxafb.c 	if (fbi->fb.cmap.len)
cmap             2398 drivers/video/fbdev/pxafb.c 		fb_dealloc_cmap(&fbi->fb.cmap);
cmap             2423 drivers/video/fbdev/pxafb.c 	if (fbi->fb.cmap.len)
cmap             2424 drivers/video/fbdev/pxafb.c 		fb_dealloc_cmap(&fbi->fb.cmap);
cmap              108 drivers/video/fbdev/q40fb.c 	if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) {
cmap              117 drivers/video/fbdev/q40fb.c 		fb_dealloc_cmap(&info->cmap);
cmap             1636 drivers/video/fbdev/riva/fbdev.c 			bg = ((info->cmap.red[bg_idx] & 0xf8) << 7) |
cmap             1637 drivers/video/fbdev/riva/fbdev.c 				((info->cmap.green[bg_idx] & 0xf8) << 2) |
cmap             1638 drivers/video/fbdev/riva/fbdev.c 				((info->cmap.blue[bg_idx] & 0xf8) >> 3) |
cmap             1641 drivers/video/fbdev/riva/fbdev.c 			fg = ((info->cmap.red[fg_idx] & 0xf8) << 7) |
cmap             1642 drivers/video/fbdev/riva/fbdev.c 				((info->cmap.green[fg_idx] & 0xf8) << 2) |
cmap             1643 drivers/video/fbdev/riva/fbdev.c 				((info->cmap.blue[fg_idx] & 0xf8) >> 3) |
cmap             1718 drivers/video/fbdev/riva/fbdev.c 	fb_alloc_cmap(&info->cmap, cmap_len, 0);	
cmap              677 drivers/video/fbdev/s1d13xxxfb.c 	fb_alloc_cmap(&info->cmap, 256, 0);
cmap              740 drivers/video/fbdev/s1d13xxxfb.c 		fb_dealloc_cmap(&info->cmap);
cmap             1153 drivers/video/fbdev/s3c-fb.c 		if (win->fbinfo->cmap.len)
cmap             1154 drivers/video/fbdev/s3c-fb.c 			fb_dealloc_cmap(&win->fbinfo->cmap);
cmap             1259 drivers/video/fbdev/s3c-fb.c 	ret = fb_alloc_cmap(&fbinfo->cmap, win->variant.palette_sz, 1);
cmap             1261 drivers/video/fbdev/s3c-fb.c 		fb_set_cmap(&fbinfo->cmap, fbinfo);
cmap             1329 drivers/video/fbdev/s3fb.c 	rc = fb_alloc_cmap(&info->cmap, 256, 0);
cmap             1363 drivers/video/fbdev/s3fb.c 	fb_dealloc_cmap(&info->cmap);
cmap             1394 drivers/video/fbdev/s3fb.c 		fb_dealloc_cmap(&info->cmap);
cmap              480 drivers/video/fbdev/sa1100fb.c sa1100fb_set_cmap(struct fb_cmap *cmap, int kspc, int con,
cmap              491 drivers/video/fbdev/sa1100fb.c 	return gen_set_cmap(cmap, kspc, con, info);
cmap              553 drivers/video/fbdev/sa1100fb.c 			fb_set_cmap(&fbi->fb.cmap, info);
cmap             1527 drivers/video/fbdev/savage/savagefb_driver.c 	fb_set_cmap(&info->cmap, info);
cmap             2156 drivers/video/fbdev/savage/savagefb_driver.c 		err = fb_alloc_cmap(&info->cmap, NR_PALETTE, 0);
cmap             2315 drivers/video/fbdev/savage/savagefb_driver.c 	fb_alloc_cmap(&info->cmap, 0, 0);
cmap             2341 drivers/video/fbdev/savage/savagefb_driver.c 		fb_alloc_cmap(&info->cmap, 0, 0);
cmap              119 drivers/video/fbdev/sbuslib.c 		struct fb_cmap cmap;
cmap              134 drivers/video/fbdev/sbuslib.c 		cmap.len = 1;
cmap              135 drivers/video/fbdev/sbuslib.c 		cmap.red = &red;
cmap              136 drivers/video/fbdev/sbuslib.c 		cmap.green = &green;
cmap              137 drivers/video/fbdev/sbuslib.c 		cmap.blue = &blue;
cmap              138 drivers/video/fbdev/sbuslib.c 		cmap.transp = NULL;
cmap              151 drivers/video/fbdev/sbuslib.c 			cmap.start = index + i;
cmap              152 drivers/video/fbdev/sbuslib.c 			err = fb_set_cmap(&cmap, info);
cmap              163 drivers/video/fbdev/sbuslib.c 		struct fb_cmap *cmap = &info->cmap;
cmap              174 drivers/video/fbdev/sbuslib.c 		if (index > cmap->len || count > cmap->len - index)
cmap              178 drivers/video/fbdev/sbuslib.c 			red = cmap->red[index + i] >> 8;
cmap              179 drivers/video/fbdev/sbuslib.c 			green = cmap->green[index + i] >> 8;
cmap              180 drivers/video/fbdev/sbuslib.c 			blue = cmap->blue[index + i] >> 8;
cmap              227 drivers/video/fbdev/sbuslib.c 	ret |= copy_in_user(&p->cmap, &argp->cmap, 2 * sizeof(int));
cmap              228 drivers/video/fbdev/sbuslib.c 	ret |= get_user(addr, &argp->cmap.red);
cmap              229 drivers/video/fbdev/sbuslib.c 	ret |= put_user(compat_ptr(addr), &p->cmap.red);
cmap              230 drivers/video/fbdev/sbuslib.c 	ret |= get_user(addr, &argp->cmap.green);
cmap              231 drivers/video/fbdev/sbuslib.c 	ret |= put_user(compat_ptr(addr), &p->cmap.green);
cmap              232 drivers/video/fbdev/sbuslib.c 	ret |= get_user(addr, &argp->cmap.blue);
cmap              233 drivers/video/fbdev/sbuslib.c 	ret |= put_user(compat_ptr(addr), &p->cmap.blue);
cmap              520 drivers/video/fbdev/sh7760fb.c 	ret = fb_alloc_cmap(&info->cmap, 256, 0);
cmap              543 drivers/video/fbdev/sh7760fb.c 	fb_dealloc_cmap(&info->cmap);
cmap              564 drivers/video/fbdev/sh7760fb.c 	fb_dealloc_cmap(&info->cmap);
cmap             2033 drivers/video/fbdev/sh_mobile_lcdcfb.c 	fb_dealloc_cmap(&info->cmap);
cmap             2065 drivers/video/fbdev/sh_mobile_lcdcfb.c 	ret = fb_alloc_cmap(&info->cmap, PALETTE_NR, 0);
cmap             6478 drivers/video/fbdev/sis/sis_main.c 		fb_alloc_cmap(&sis_fb_info->cmap, 256 , 0);
cmap              781 drivers/video/fbdev/skeletonfb.c     if (fb_alloc_cmap(&info->cmap, cmap_len, 0))
cmap              807 drivers/video/fbdev/skeletonfb.c 	fb_dealloc_cmap(&info->cmap);
cmap              826 drivers/video/fbdev/skeletonfb.c 		fb_dealloc_cmap(&info->cmap);
cmap             1095 drivers/video/fbdev/sm501fb.c 		bg = ((info->cmap.red[bg_col] & 0xF8) << 8) |
cmap             1096 drivers/video/fbdev/sm501fb.c 			((info->cmap.green[bg_col] & 0xFC) << 3) |
cmap             1097 drivers/video/fbdev/sm501fb.c 			((info->cmap.blue[bg_col] & 0xF8) >> 3);
cmap             1099 drivers/video/fbdev/sm501fb.c 		fg = ((info->cmap.red[fg_col] & 0xF8) << 8) |
cmap             1100 drivers/video/fbdev/sm501fb.c 			((info->cmap.green[fg_col] & 0xFC) << 3) |
cmap             1101 drivers/video/fbdev/sm501fb.c 			((info->cmap.blue[fg_col] & 0xF8) >> 3);
cmap             1820 drivers/video/fbdev/sm501fb.c 	if (fb_alloc_cmap(&fb->cmap, NR_PALETTE, 0)) {
cmap             1824 drivers/video/fbdev/sm501fb.c 	fb_set_cmap(&fb->cmap, fb);
cmap             1899 drivers/video/fbdev/sm501fb.c 	fb_dealloc_cmap(&fbi->cmap);
cmap             1040 drivers/video/fbdev/smscufx.c 	if (regno >= info->cmap.len)
cmap             1137 drivers/video/fbdev/smscufx.c 	if (info->cmap.len != 0)
cmap             1138 drivers/video/fbdev/smscufx.c 		fb_dealloc_cmap(&info->cmap);
cmap             1661 drivers/video/fbdev/smscufx.c 	retval = fb_alloc_cmap(&info->cmap, 256, 0);
cmap             1725 drivers/video/fbdev/smscufx.c 	fb_dealloc_cmap(&info->cmap);
cmap             1423 drivers/video/fbdev/sstfb.c 	if (fb_alloc_cmap(&info->cmap, 256, 0)) {
cmap             1447 drivers/video/fbdev/sstfb.c 	fb_dealloc_cmap(&info->cmap);
cmap             1475 drivers/video/fbdev/sstfb.c 	fb_dealloc_cmap(&info->cmap);
cmap             1304 drivers/video/fbdev/stifb.c 	if (fb_alloc_cmap(&info->cmap, NR_PALETTE, 0))
cmap             1342 drivers/video/fbdev/stifb.c 	fb_dealloc_cmap(&info->cmap);
cmap             1418 drivers/video/fbdev/stifb.c 		        fb_dealloc_cmap(&info->cmap);
cmap              107 drivers/video/fbdev/sunxvr1000.c 	if (fb_alloc_cmap(&info->cmap, 256, 0)) {
cmap              111 drivers/video/fbdev/sunxvr2500.c 	if (fb_alloc_cmap(&info->cmap, 256, 0)) {
cmap              234 drivers/video/fbdev/sunxvr500.c 	if (fb_alloc_cmap(&info->cmap, 256, 0)) {
cmap              371 drivers/video/fbdev/sunxvr500.c 	fb_dealloc_cmap(&info->cmap);
cmap              459 drivers/video/fbdev/tcx.c 	if (fb_alloc_cmap(&info->cmap, 256, 0))
cmap              462 drivers/video/fbdev/tcx.c 	fb_set_cmap(&info->cmap, info);
cmap              480 drivers/video/fbdev/tcx.c 	fb_dealloc_cmap(&info->cmap);
cmap              496 drivers/video/fbdev/tcx.c 	fb_dealloc_cmap(&info->cmap);
cmap              747 drivers/video/fbdev/tdfxfb.c 	if (regno >= info->cmap.len || regno > 255)
cmap             1071 drivers/video/fbdev/tdfxfb.c 		struct fb_cmap cmap = info->cmap;
cmap             1076 drivers/video/fbdev/tdfxfb.c 		fg_color = (((u32)cmap.red[fg_idx]   & 0xff00) << 8) |
cmap             1077 drivers/video/fbdev/tdfxfb.c 			   (((u32)cmap.green[fg_idx] & 0xff00) << 0) |
cmap             1078 drivers/video/fbdev/tdfxfb.c 			   (((u32)cmap.blue[fg_idx]  & 0xff00) >> 8);
cmap             1079 drivers/video/fbdev/tdfxfb.c 		bg_color = (((u32)cmap.red[bg_idx]   & 0xff00) << 8) |
cmap             1080 drivers/video/fbdev/tdfxfb.c 			   (((u32)cmap.green[bg_idx] & 0xff00) << 0) |
cmap             1081 drivers/video/fbdev/tdfxfb.c 			   (((u32)cmap.blue[bg_idx]  & 0xff00) >> 8);
cmap             1530 drivers/video/fbdev/tdfxfb.c 	if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) {
cmap             1537 drivers/video/fbdev/tdfxfb.c 		fb_dealloc_cmap(&info->cmap);
cmap             1624 drivers/video/fbdev/tdfxfb.c 	fb_dealloc_cmap(&info->cmap);
cmap             1488 drivers/video/fbdev/tgafb.c 	if (fb_alloc_cmap(&info->cmap, 256, 0)) {
cmap             1519 drivers/video/fbdev/tgafb.c 	fb_dealloc_cmap(&info->cmap);
cmap             1543 drivers/video/fbdev/tgafb.c 	fb_dealloc_cmap(&info->cmap);
cmap             1356 drivers/video/fbdev/tridentfb.c 	info->cmap.len = (bpp == 8) ? 256 : 16;
cmap             1369 drivers/video/fbdev/tridentfb.c 	if (regno >= info->cmap.len)
cmap             1685 drivers/video/fbdev/tridentfb.c 	err = fb_alloc_cmap(&info->cmap, 256, 0);
cmap             1693 drivers/video/fbdev/tridentfb.c 		fb_dealloc_cmap(&info->cmap);
cmap             1733 drivers/video/fbdev/tridentfb.c 	fb_dealloc_cmap(&info->cmap);
cmap              931 drivers/video/fbdev/udlfb.c 	if (regno >= info->cmap.len)
cmap             1004 drivers/video/fbdev/udlfb.c 	if (info->cmap.len != 0)
cmap             1005 drivers/video/fbdev/udlfb.c 		fb_dealloc_cmap(&info->cmap);
cmap             1713 drivers/video/fbdev/udlfb.c 	retval = fb_alloc_cmap(&info->cmap, 256, 0);
cmap              995 drivers/video/fbdev/uvesafb.c 	if (regno >= info->cmap.len)
cmap             1038 drivers/video/fbdev/uvesafb.c static int uvesafb_setcmap(struct fb_cmap *cmap, struct fb_info *info)
cmap             1045 drivers/video/fbdev/uvesafb.c 		if (cmap->start + cmap->len > info->cmap.start +
cmap             1046 drivers/video/fbdev/uvesafb.c 		    info->cmap.len || cmap->start < info->cmap.start)
cmap             1049 drivers/video/fbdev/uvesafb.c 		entries = kmalloc_array(cmap->len, sizeof(*entries),
cmap             1054 drivers/video/fbdev/uvesafb.c 		for (i = 0; i < cmap->len; i++) {
cmap             1055 drivers/video/fbdev/uvesafb.c 			entries[i].red   = cmap->red[i]   >> shift;
cmap             1056 drivers/video/fbdev/uvesafb.c 			entries[i].green = cmap->green[i] >> shift;
cmap             1057 drivers/video/fbdev/uvesafb.c 			entries[i].blue  = cmap->blue[i]  >> shift;
cmap             1060 drivers/video/fbdev/uvesafb.c 		err = uvesafb_setpalette(entries, cmap->len, cmap->start, info);
cmap             1068 drivers/video/fbdev/uvesafb.c 		for (i = 0; i < cmap->len; i++) {
cmap             1069 drivers/video/fbdev/uvesafb.c 			err |= uvesafb_setcolreg(cmap->start + i, cmap->red[i],
cmap             1070 drivers/video/fbdev/uvesafb.c 						cmap->green[i], cmap->blue[i],
cmap             1706 drivers/video/fbdev/uvesafb.c 	if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) {
cmap             1766 drivers/video/fbdev/uvesafb.c 	fb_dealloc_cmap(&info->cmap);
cmap             1788 drivers/video/fbdev/uvesafb.c 		fb_dealloc_cmap(&info->cmap);
cmap              391 drivers/video/fbdev/valkyriefb.c 	fb_dealloc_cmap(&p->info.cmap);
cmap              546 drivers/video/fbdev/valkyriefb.c 	return fb_alloc_cmap(&info->cmap, 256, 0);
cmap              393 drivers/video/fbdev/vermilion/vermilion.c 		fb_dealloc_cmap(&info->cmap);
cmap              514 drivers/video/fbdev/vermilion/vermilion.c 	if (fb_alloc_cmap(&info->cmap, 256, 1) < 0) {
cmap              530 drivers/video/fbdev/vermilion/vermilion.c 	fb_dealloc_cmap(&info->cmap);
cmap              143 drivers/video/fbdev/vesafb.c 	if (regno >= info->cmap.len)
cmap              185 drivers/video/fbdev/vesafb.c 	fb_dealloc_cmap(&info->cmap);
cmap              459 drivers/video/fbdev/vesafb.c 	if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) {
cmap              465 drivers/video/fbdev/vesafb.c 		fb_dealloc_cmap(&info->cmap);
cmap              459 drivers/video/fbdev/vfb.c 	retval = fb_alloc_cmap(&info->cmap, 256, 0);
cmap              474 drivers/video/fbdev/vfb.c 	fb_dealloc_cmap(&info->cmap);
cmap              489 drivers/video/fbdev/vfb.c 		fb_dealloc_cmap(&info->cmap);
cmap             1268 drivers/video/fbdev/vga16fb.c 	fb_dealloc_cmap(&info->cmap);
cmap             1355 drivers/video/fbdev/vga16fb.c 	ret = fb_alloc_cmap(&info->cmap, i, 0);
cmap             1385 drivers/video/fbdev/vga16fb.c 	fb_dealloc_cmap(&info->cmap);
cmap              817 drivers/video/fbdev/via/viafbdev.c 				((info->cmap.red[fg_color] & 0xFFC0) << 14) |
cmap              818 drivers/video/fbdev/via/viafbdev.c 				((info->cmap.green[fg_color] & 0xFFC0) << 4) |
cmap              819 drivers/video/fbdev/via/viafbdev.c 				((info->cmap.blue[fg_color] & 0xFFC0) >> 6);
cmap              821 drivers/video/fbdev/via/viafbdev.c 				((info->cmap.red[bg_color] & 0xFFC0) << 14) |
cmap              822 drivers/video/fbdev/via/viafbdev.c 				((info->cmap.green[bg_color] & 0xFFC0) << 4) |
cmap              823 drivers/video/fbdev/via/viafbdev.c 				((info->cmap.blue[bg_color] & 0xFFC0) >> 6);
cmap              826 drivers/video/fbdev/via/viafbdev.c 				((info->cmap.red[fg_color] & 0xFF00) << 8) |
cmap              827 drivers/video/fbdev/via/viafbdev.c 				(info->cmap.green[fg_color] & 0xFF00) |
cmap              828 drivers/video/fbdev/via/viafbdev.c 				((info->cmap.blue[fg_color] & 0xFF00) >> 8);
cmap              830 drivers/video/fbdev/via/viafbdev.c 				((info->cmap.red[bg_color] & 0xFF00) << 8) |
cmap              831 drivers/video/fbdev/via/viafbdev.c 				(info->cmap.green[bg_color] & 0xFF00) |
cmap              832 drivers/video/fbdev/via/viafbdev.c 				((info->cmap.blue[bg_color] & 0xFF00) >> 8);
cmap             1866 drivers/video/fbdev/via/viafbdev.c 	rc = fb_alloc_cmap(&viafbinfo->cmap, 256, 0);
cmap             1906 drivers/video/fbdev/via/viafbdev.c 	fb_dealloc_cmap(&viafbinfo->cmap);
cmap             1918 drivers/video/fbdev/via/viafbdev.c 	fb_dealloc_cmap(&viafbinfo->cmap);
cmap              237 drivers/video/fbdev/vt8500lcdfb.c 			fb_set_cmap(&info->cmap, info);
cmap              390 drivers/video/fbdev/vt8500lcdfb.c 	if (fb_alloc_cmap(&fbi->fb.cmap, 256, 0) < 0) {
cmap              428 drivers/video/fbdev/vt8500lcdfb.c 	if (fbi->fb.cmap.len)
cmap              429 drivers/video/fbdev/vt8500lcdfb.c 		fb_dealloc_cmap(&fbi->fb.cmap);
cmap              452 drivers/video/fbdev/vt8500lcdfb.c 	if (fbi->fb.cmap.len)
cmap              453 drivers/video/fbdev/vt8500lcdfb.c 		fb_dealloc_cmap(&fbi->fb.cmap);
cmap              754 drivers/video/fbdev/vt8623fb.c 	rc = fb_alloc_cmap(&info->cmap, 256, 0);
cmap              780 drivers/video/fbdev/vt8623fb.c 	fb_dealloc_cmap(&info->cmap);
cmap              806 drivers/video/fbdev/vt8623fb.c 		fb_dealloc_cmap(&info->cmap);
cmap              725 drivers/video/fbdev/w100fb.c 	if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) {
cmap              770 drivers/video/fbdev/w100fb.c 		fb_dealloc_cmap(&info->cmap);
cmap              795 drivers/video/fbdev/w100fb.c 	fb_dealloc_cmap(&info->cmap);
cmap              352 drivers/video/fbdev/wm8505fb.c 	if (fb_alloc_cmap(&fbi->fb.cmap, 256, 0) < 0) {
cmap              365 drivers/video/fbdev/wm8505fb.c 		if (fbi->fb.cmap.len)
cmap              366 drivers/video/fbdev/wm8505fb.c 			fb_dealloc_cmap(&fbi->fb.cmap);
cmap              385 drivers/video/fbdev/wm8505fb.c 	if (fbi->fb.cmap.len)
cmap              386 drivers/video/fbdev/wm8505fb.c 		fb_dealloc_cmap(&fbi->fb.cmap);
cmap              220 drivers/video/fbdev/xen-fbfront.c 	if (regno > info->cmap.len)
cmap              459 drivers/video/fbdev/xen-fbfront.c 	ret = fb_alloc_cmap(&fb_info->cmap, 256, 0);
cmap              489 drivers/video/fbdev/xen-fbfront.c 	fb_dealloc_cmap(&fb_info->cmap);
cmap              539 drivers/video/fbdev/xen-fbfront.c 		fb_dealloc_cmap(&info->fb_info->cmap);
cmap              336 drivers/video/fbdev/xilinxfb.c 	rc = fb_alloc_cmap(&drvdata->info.cmap, PALETTE_ENTRIES_NO, 0);
cmap              362 drivers/video/fbdev/xilinxfb.c 	fb_dealloc_cmap(&drvdata->info.cmap);
cmap              387 drivers/video/fbdev/xilinxfb.c 	fb_dealloc_cmap(&drvdata->info.cmap);
cmap              578 fs/xfs/xfs_buf.c 	struct xfs_buf_map	cmap = { .bm_bn = map[0].bm_bn };
cmap              585 fs/xfs/xfs_buf.c 		cmap.bm_len += map[i].bm_len;
cmap              588 fs/xfs/xfs_buf.c 	ASSERT(!(BBTOB(cmap.bm_len) < btp->bt_meta_sectorsize));
cmap              589 fs/xfs/xfs_buf.c 	ASSERT(!(BBTOB(cmap.bm_bn) & (xfs_off_t)btp->bt_meta_sectormask));
cmap              596 fs/xfs/xfs_buf.c 	if (cmap.bm_bn < 0 || cmap.bm_bn >= eofs) {
cmap              599 fs/xfs/xfs_buf.c 			  __func__, cmap.bm_bn, eofs);
cmap              605 fs/xfs/xfs_buf.c 			    xfs_daddr_to_agno(btp->bt_mount, cmap.bm_bn));
cmap              608 fs/xfs/xfs_buf.c 	bp = rhashtable_lookup_fast(&pag->pag_buf_hash, &cmap,
cmap              539 fs/xfs/xfs_iomap.c 	struct xfs_bmbt_irec	imap, cmap;
cmap              600 fs/xfs/xfs_iomap.c 				&ccur, &cmap);
cmap              601 fs/xfs/xfs_iomap.c 		if (!cow_eof && cmap.br_startoff <= offset_fsb) {
cmap              602 fs/xfs/xfs_iomap.c 			trace_xfs_reflink_cow_found(ip, &cmap);
cmap              687 fs/xfs/xfs_iomap.c 			whichfork == XFS_DATA_FORK ? &imap : &cmap,
cmap              712 fs/xfs/xfs_iomap.c 			whichfork == XFS_DATA_FORK ? &imap : &cmap);
cmap              716 fs/xfs/xfs_iomap.c 			xfs_trim_extent(&cmap, offset_fsb,
cmap              718 fs/xfs/xfs_iomap.c 			error = xfs_bmbt_to_iomap(ip, iomap, &cmap, true);
cmap              722 fs/xfs/xfs_iomap.c 		xfs_trim_extent(&imap, cmap.br_startoff, cmap.br_blockcount);
cmap              982 fs/xfs/xfs_iomap.c 		struct xfs_bmbt_irec	cmap;
cmap              991 fs/xfs/xfs_iomap.c 		cmap = imap;
cmap              992 fs/xfs/xfs_iomap.c 		error = xfs_reflink_allocate_cow(ip, &cmap, &shared, &lockmode,
cmap             1007 fs/xfs/xfs_iomap.c 			imap = cmap;
cmap             1156 fs/xfs/xfs_iomap.c 	struct xfs_bmbt_irec	imap, cmap;
cmap             1190 fs/xfs/xfs_iomap.c 	    xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &cmap))
cmap             1191 fs/xfs/xfs_iomap.c 		cow_fsb = cmap.br_startoff;
cmap             1193 fs/xfs/xfs_iomap.c 		if (data_fsb < cow_fsb + cmap.br_blockcount)
cmap             1195 fs/xfs/xfs_iomap.c 		xfs_trim_extent(&cmap, offset_fsb, end_fsb);
cmap             1196 fs/xfs/xfs_iomap.c 		error = xfs_bmbt_to_iomap(ip, iomap, &cmap, true);
cmap              263 include/drm/drm_fb_helper.h int drm_fb_helper_setcmap(struct fb_cmap *cmap, struct fb_info *info);
cmap              355 include/drm/drm_fb_helper.h static inline int drm_fb_helper_setcmap(struct fb_cmap *cmap,
cmap              139 include/linux/amba/clcd.h 	u32			cmap[16];
cmap              111 include/linux/fb.h 	struct fb_cmap_user cmap;	/* color map info */
cmap              254 include/linux/fb.h 	int (*fb_setcmap)(struct fb_cmap *cmap, struct fb_info *info);
cmap              456 include/linux/fb.h 	struct fb_cmap cmap;		/* Current cmap */
cmap              757 include/linux/fb.h extern int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp);
cmap              758 include/linux/fb.h extern int fb_alloc_cmap_gfp(struct fb_cmap *cmap, int len, int transp, gfp_t flags);
cmap              759 include/linux/fb.h extern void fb_dealloc_cmap(struct fb_cmap *cmap);
cmap              762 include/linux/fb.h extern int fb_set_cmap(struct fb_cmap *cmap, struct fb_info *fb_info);
cmap              763 include/linux/fb.h extern int fb_set_user_cmap(struct fb_cmap_user *cmap, struct fb_info *fb_info);
cmap               47 include/linux/vt_kern.h int con_set_cmap(unsigned char __user *cmap);
cmap               48 include/linux/vt_kern.h int con_get_cmap(unsigned char __user *cmap);
cmap               68 include/trace/events/irq_matrix.h 		 struct cpumap *cmap),
cmap               70 include/trace/events/irq_matrix.h 	TP_ARGS(bit, cpu, matrix, cmap),
cmap               88 include/trace/events/irq_matrix.h 		__entry->online			= cmap->online;
cmap               89 include/trace/events/irq_matrix.h 		__entry->available		= cmap->available;
cmap               90 include/trace/events/irq_matrix.h 		__entry->allocated		= cmap->allocated;
cmap               91 include/trace/events/irq_matrix.h 		__entry->managed		= cmap->managed;
cmap              144 include/trace/events/irq_matrix.h 		 struct irq_matrix *matrix, struct cpumap *cmap),
cmap              146 include/trace/events/irq_matrix.h 	TP_ARGS(bit, cpu, matrix, cmap)
cmap              152 include/trace/events/irq_matrix.h 		 struct irq_matrix *matrix, struct cpumap *cmap),
cmap              154 include/trace/events/irq_matrix.h 	TP_ARGS(bit, cpu, matrix, cmap)
cmap              160 include/trace/events/irq_matrix.h 		 struct irq_matrix *matrix, struct cpumap *cmap),
cmap              162 include/trace/events/irq_matrix.h 	TP_ARGS(bit, cpu, matrix, cmap)
cmap              168 include/trace/events/irq_matrix.h 		 struct irq_matrix *matrix, struct cpumap *cmap),
cmap              170 include/trace/events/irq_matrix.h 	TP_ARGS(bit, cpu, matrix, cmap)
cmap              176 include/trace/events/irq_matrix.h 		 struct irq_matrix *matrix, struct cpumap *cmap),
cmap              178 include/trace/events/irq_matrix.h 	TP_ARGS(bit, cpu, matrix, cmap)
cmap              184 include/trace/events/irq_matrix.h 		 struct irq_matrix *matrix, struct cpumap *cmap),
cmap              186 include/trace/events/irq_matrix.h 	TP_ARGS(bit, cpu, matrix, cmap)
cmap              192 include/trace/events/irq_matrix.h 		 struct irq_matrix *matrix, struct cpumap *cmap),
cmap              194 include/trace/events/irq_matrix.h 	TP_ARGS(bit, cpu, matrix, cmap)
cmap              368 include/uapi/linux/fb.h 	struct fb_cmap cmap;	/* color map info */
cmap               56 include/video/gbe.h 	volatile uint32_t cmap[6144];	/* color map */
cmap               60 kernel/bpf/cpumap.c 	struct bpf_cpu_map *cmap;
cmap               82 kernel/bpf/cpumap.c 	struct bpf_cpu_map *cmap;
cmap               95 kernel/bpf/cpumap.c 	cmap = kzalloc(sizeof(*cmap), GFP_USER);
cmap               96 kernel/bpf/cpumap.c 	if (!cmap)
cmap               99 kernel/bpf/cpumap.c 	bpf_map_init_from_attr(&cmap->map, attr);
cmap              102 kernel/bpf/cpumap.c 	if (cmap->map.max_entries > NR_CPUS) {
cmap              108 kernel/bpf/cpumap.c 	cost = (u64) cmap->map.max_entries * sizeof(struct bpf_cpu_map_entry *);
cmap              112 kernel/bpf/cpumap.c 	ret = bpf_map_charge_init(&cmap->map.memory, cost);
cmap              118 kernel/bpf/cpumap.c 	cmap->flush_list = alloc_percpu(struct list_head);
cmap              119 kernel/bpf/cpumap.c 	if (!cmap->flush_list)
cmap              123 kernel/bpf/cpumap.c 		INIT_LIST_HEAD(per_cpu_ptr(cmap->flush_list, cpu));
cmap              126 kernel/bpf/cpumap.c 	cmap->cpu_map = bpf_map_area_alloc(cmap->map.max_entries *
cmap              128 kernel/bpf/cpumap.c 					   cmap->map.numa_node);
cmap              129 kernel/bpf/cpumap.c 	if (!cmap->cpu_map)
cmap              132 kernel/bpf/cpumap.c 	return &cmap->map;
cmap              134 kernel/bpf/cpumap.c 	free_percpu(cmap->flush_list);
cmap              136 kernel/bpf/cpumap.c 	bpf_map_charge_finish(&cmap->map.memory);
cmap              138 kernel/bpf/cpumap.c 	kfree(cmap);
cmap              442 kernel/bpf/cpumap.c static void __cpu_map_entry_replace(struct bpf_cpu_map *cmap,
cmap              447 kernel/bpf/cpumap.c 	old_rcpu = xchg(&cmap->cpu_map[key_cpu], rcpu);
cmap              457 kernel/bpf/cpumap.c 	struct bpf_cpu_map *cmap = container_of(map, struct bpf_cpu_map, map);
cmap              464 kernel/bpf/cpumap.c 	__cpu_map_entry_replace(cmap, key_cpu, NULL);
cmap              471 kernel/bpf/cpumap.c 	struct bpf_cpu_map *cmap = container_of(map, struct bpf_cpu_map, map);
cmap              481 kernel/bpf/cpumap.c 	if (unlikely(key_cpu >= cmap->map.max_entries))
cmap              499 kernel/bpf/cpumap.c 		rcpu->cmap = cmap;
cmap              502 kernel/bpf/cpumap.c 	__cpu_map_entry_replace(cmap, key_cpu, rcpu);
cmap              509 kernel/bpf/cpumap.c 	struct bpf_cpu_map *cmap = container_of(map, struct bpf_cpu_map, map);
cmap              531 kernel/bpf/cpumap.c 		struct list_head *flush_list = per_cpu_ptr(cmap->flush_list, cpu);
cmap              540 kernel/bpf/cpumap.c 	for (i = 0; i < cmap->map.max_entries; i++) {
cmap              543 kernel/bpf/cpumap.c 		rcpu = READ_ONCE(cmap->cpu_map[i]);
cmap              548 kernel/bpf/cpumap.c 		__cpu_map_entry_replace(cmap, i, NULL); /* call_rcu */
cmap              550 kernel/bpf/cpumap.c 	free_percpu(cmap->flush_list);
cmap              551 kernel/bpf/cpumap.c 	bpf_map_area_free(cmap->cpu_map);
cmap              552 kernel/bpf/cpumap.c 	kfree(cmap);
cmap              557 kernel/bpf/cpumap.c 	struct bpf_cpu_map *cmap = container_of(map, struct bpf_cpu_map, map);
cmap              563 kernel/bpf/cpumap.c 	rcpu = READ_ONCE(cmap->cpu_map[key]);
cmap              577 kernel/bpf/cpumap.c 	struct bpf_cpu_map *cmap = container_of(map, struct bpf_cpu_map, map);
cmap              581 kernel/bpf/cpumap.c 	if (index >= cmap->map.max_entries) {
cmap              586 kernel/bpf/cpumap.c 	if (index == cmap->map.max_entries - 1)
cmap              645 kernel/bpf/cpumap.c 	struct list_head *flush_list = this_cpu_ptr(rcpu->cmap->flush_list);
cmap              686 kernel/bpf/cpumap.c 	struct bpf_cpu_map *cmap = container_of(map, struct bpf_cpu_map, map);
cmap              687 kernel/bpf/cpumap.c 	struct list_head *flush_list = this_cpu_ptr(cmap->flush_list);