/linux-4.4.14/drivers/video/fbdev/core/ |
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 97 if (cmap->len != len) { in fb_alloc_cmap_gfp() 98 fb_dealloc_cmap(cmap); in fb_alloc_cmap_gfp() 102 cmap->red = kmalloc(size, flags); in fb_alloc_cmap_gfp() 103 if (!cmap->red) in fb_alloc_cmap_gfp() 105 cmap->green = kmalloc(size, flags); in fb_alloc_cmap_gfp() 106 if (!cmap->green) in fb_alloc_cmap_gfp() 108 cmap->blue = kmalloc(size, flags); in fb_alloc_cmap_gfp() 109 if (!cmap->blue) in fb_alloc_cmap_gfp() 112 cmap->transp = kmalloc(size, flags); in fb_alloc_cmap_gfp() [all …]
|
D | fbmem.c | 1029 fb_set_cmap(&info->cmap, info); in fb_set_var() 1095 struct fb_cmap_user cmap; in do_fb_ioctl() local 1134 if (copy_from_user(&cmap, argp, sizeof(cmap))) in do_fb_ioctl() 1136 ret = fb_set_user_cmap(&cmap, info); in do_fb_ioctl() 1139 if (copy_from_user(&cmap, argp, sizeof(cmap))) in do_fb_ioctl() 1143 cmap_from = info->cmap; in do_fb_ioctl() 1145 ret = fb_cmap_to_user(&cmap_from, &cmap); in do_fb_ioctl() 1266 struct fb_cmap_user __user *cmap; in fb_getput_cmap() local 1271 cmap = compat_alloc_user_space(sizeof(*cmap)); in fb_getput_cmap() 1274 if (copy_in_user(&cmap->start, &cmap32->start, 2 * sizeof(__u32))) in fb_getput_cmap() [all …]
|
/linux-4.4.14/drivers/video/fbdev/ |
D | sbuslib.c | 118 struct fb_cmap cmap; in sbusfb_ioctl_helper() local 133 cmap.len = 1; in sbusfb_ioctl_helper() 134 cmap.red = &red; in sbusfb_ioctl_helper() 135 cmap.green = &green; in sbusfb_ioctl_helper() 136 cmap.blue = &blue; in sbusfb_ioctl_helper() 137 cmap.transp = NULL; in sbusfb_ioctl_helper() 150 cmap.start = index + i; in sbusfb_ioctl_helper() 151 err = fb_set_cmap(&cmap, info); in sbusfb_ioctl_helper() 162 struct fb_cmap *cmap = &info->cmap; in sbusfb_ioctl_helper() local 173 if (index + count > cmap->len) in sbusfb_ioctl_helper() [all …]
|
D | cg3.c | 88 struct bt_regs cmap; member 142 struct bt_regs __iomem *bt = &par->regs->cmap; in cg3_setcolreg() 341 regp = (u8 __iomem *)&par->regs->cmap.addr; in cg3_do_default_mode() 343 regp = (u8 __iomem *)&par->regs->cmap.control; in cg3_do_default_mode() 401 err = fb_alloc_cmap(&info->cmap, 256, 0); in cg3_probe() 405 fb_set_cmap(&info->cmap, info); in cg3_probe() 421 fb_dealloc_cmap(&info->cmap); in cg3_probe() 442 fb_dealloc_cmap(&info->cmap); in cg3_remove()
|
D | pmag-aa-fb.c | 273 static int aafb_get_cmap(struct fb_cmap *cmap, int kspc, int con, in aafb_get_cmap() argument 279 fb_copy_cmap(&aafb_cmap, cmap, kspc ? 0 : 2); in aafb_get_cmap() 283 static int aafb_set_cmap(struct fb_cmap *cmap, int kspc, int con, in aafb_set_cmap() argument 288 if (cmap->start == 0 in aafb_set_cmap() 289 && cmap->len == 2 in aafb_set_cmap() 290 && memcmp(cmap->red, color, sizeof(color)) == 0 in aafb_set_cmap() 291 && memcmp(cmap->green, color, sizeof(color)) == 0 in aafb_set_cmap() 292 && memcmp(cmap->blue, color, sizeof(color)) == 0 in aafb_set_cmap() 293 && cmap->transp == NULL) in aafb_set_cmap()
|
D | pmag-ba-fb.c | 100 if (regno >= info->cmap.len) in pmagbafb_setcolreg() 161 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in pmagbafb_probe() 231 fb_dealloc_cmap(&info->cmap); in pmagbafb_probe() 252 fb_dealloc_cmap(&info->cmap); in pmagbafb_remove()
|
D | uvesafb.c | 1008 if (regno >= info->cmap.len) in uvesafb_setcolreg() 1051 static int uvesafb_setcmap(struct fb_cmap *cmap, struct fb_info *info) in uvesafb_setcmap() argument 1058 if (cmap->start + cmap->len > info->cmap.start + in uvesafb_setcmap() 1059 info->cmap.len || cmap->start < info->cmap.start) in uvesafb_setcmap() 1062 entries = kmalloc(sizeof(*entries) * cmap->len, GFP_KERNEL); in uvesafb_setcmap() 1066 for (i = 0; i < cmap->len; i++) { in uvesafb_setcmap() 1067 entries[i].red = cmap->red[i] >> shift; in uvesafb_setcmap() 1068 entries[i].green = cmap->green[i] >> shift; in uvesafb_setcmap() 1069 entries[i].blue = cmap->blue[i] >> shift; in uvesafb_setcmap() 1072 err = uvesafb_setpalette(entries, cmap->len, cmap->start, info); in uvesafb_setcmap() [all …]
|
D | metronomefb.c | 706 retval = fb_alloc_cmap(&info->cmap, 8, 0); in metronomefb_probe() 714 info->cmap.red[i] = (((2*i)+1)*(0xFFFF))/16; in metronomefb_probe() 715 memcpy(info->cmap.green, info->cmap.red, sizeof(u16)*8); in metronomefb_probe() 716 memcpy(info->cmap.blue, info->cmap.red, sizeof(u16)*8); in metronomefb_probe() 731 fb_dealloc_cmap(&info->cmap); in metronomefb_probe() 754 fb_dealloc_cmap(&info->cmap); in metronomefb_remove()
|
D | q40fb.c | 108 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in q40fb_probe() 117 fb_dealloc_cmap(&info->cmap); in q40fb_probe()
|
D | pm2fb.c | 762 info->cmap.len = 256; in pm2fb_set_par() 870 if (regno >= info->cmap.len) /* no. of hw registers */ in pm2fb_setcolreg() 1294 struct fb_cmap cmap = info->cmap; in pm2vfb_cursor() local 1299 cmap.red[bg_idx] >> 8 ); in pm2vfb_cursor() 1301 cmap.green[bg_idx] >> 8 ); in pm2vfb_cursor() 1303 cmap.blue[bg_idx] >> 8 ); in pm2vfb_cursor() 1306 cmap.red[fg_idx] >> 8 ); in pm2vfb_cursor() 1308 cmap.green[fg_idx] >> 8 ); in pm2vfb_cursor() 1310 cmap.blue[fg_idx] >> 8 ); in pm2vfb_cursor() 1407 info->cmap.red[bg_idx] >> 8); in pm2fb_cursor() [all …]
|
D | efifb.c | 51 if (regno >= info->cmap.len) in efifb_setcolreg() 73 fb_dealloc_cmap(&info->cmap); in efifb_destroy() 300 if ((err = fb_alloc_cmap(&info->cmap, 256, 0)) < 0) { in efifb_probe() 312 fb_dealloc_cmap(&info->cmap); in efifb_probe()
|
D | p9100.c | 294 if (fb_alloc_cmap(&info->cmap, 256, 0)) in p9100_probe() 303 fb_set_cmap(&info->cmap, info); in p9100_probe() 314 fb_dealloc_cmap(&info->cmap); in p9100_probe() 335 fb_dealloc_cmap(&info->cmap); in p9100_remove()
|
D | vt8500lcdfb.c | 244 fb_set_cmap(&info->cmap, info); in vt8500lcd_blank() 399 if (fb_alloc_cmap(&fbi->fb.cmap, 256, 0) < 0) { in vt8500lcd_probe() 437 if (fbi->fb.cmap.len) in vt8500lcd_probe() 438 fb_dealloc_cmap(&fbi->fb.cmap); in vt8500lcd_probe() 461 if (fbi->fb.cmap.len) in vt8500lcd_remove() 462 fb_dealloc_cmap(&fbi->fb.cmap); in vt8500lcd_remove()
|
D | wm8505fb.c | 356 if (fb_alloc_cmap(&fbi->fb.cmap, 256, 0) < 0) { in wm8505fb_probe() 369 if (fbi->fb.cmap.len) in wm8505fb_probe() 370 fb_dealloc_cmap(&fbi->fb.cmap); in wm8505fb_probe() 395 if (fbi->fb.cmap.len) in wm8505fb_remove() 396 fb_dealloc_cmap(&fbi->fb.cmap); in wm8505fb_remove()
|
D | macfb.c | 173 nubus_writeb(info->cmap.red[i] >> 8, in dafb_setpalette() 176 nubus_writeb(info->cmap.green[i] >> 8, in dafb_setpalette() 179 nubus_writeb(info->cmap.blue[i] >> 8, in dafb_setpalette() 459 if (regno >= fb_info->cmap.len) in macfb_setcolreg() 907 err = fb_alloc_cmap(&fb_info.cmap, video_cmap_len, 0); in macfb_init() 920 fb_dealloc_cmap(&fb_info.cmap); in macfb_init()
|
D | ocfb.c | 181 if (regno >= info->cmap.len) { in ocfb_setcolreg() 355 ret = fb_alloc_cmap(&fbdev->info.cmap, PALETTE_SIZE, 0); in ocfb_probe() 371 fb_dealloc_cmap(&fbdev->info.cmap); in ocfb_probe() 385 fb_dealloc_cmap(&fbdev->info.cmap); in ocfb_remove()
|
D | pmagb-b-fb.c | 104 if (regno >= info->cmap.len) in pmagbbfb_setcolreg() 268 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in pmagbbfb_probe() 349 fb_dealloc_cmap(&info->cmap); in pmagbbfb_probe() 370 fb_dealloc_cmap(&info->cmap); in pmagbbfb_remove()
|
D | hpfb.c | 92 if (regno >= info->cmap.len) in hpfb_setcolreg() 293 ret = fb_alloc_cmap(&fb_info.cmap, 1 << hpfb_defined.bits_per_pixel, 0); in hpfb_init_one() 306 fb_dealloc_cmap(&fb_info.cmap); in hpfb_init_one() 357 fb_dealloc_cmap(&fb_info.cmap); in hpfb_remove_one()
|
D | skeletonfb.c | 798 if (fb_alloc_cmap(&info->cmap, cmap_len, 0)) in xxxfb_probe() 824 fb_dealloc_cmap(&info->cmap); in xxxfb_probe() 843 fb_dealloc_cmap(&info->cmap); in xxxfb_remove()
|
D | pm3fb.c | 660 struct fb_cmap cmap = info->cmap; in pm3fb_cursor() local 664 cmap.red[fg_idx] >> 8 ); in pm3fb_cursor() 666 cmap.green[fg_idx] >> 8 ); in pm3fb_cursor() 668 cmap.blue[fg_idx] >> 8 ); in pm3fb_cursor() 671 cmap.red[bg_idx] >> 8 ); in pm3fb_cursor() 673 cmap.green[bg_idx] >> 8 ); in pm3fb_cursor() 675 cmap.blue[bg_idx] >> 8 ); in pm3fb_cursor() 1424 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in pm3fb_probe() 1443 fb_dealloc_cmap(&info->cmap); in pm3fb_probe() 1469 fb_dealloc_cmap(&info->cmap); in pm3fb_remove()
|
D | tcx.c | 458 if (fb_alloc_cmap(&info->cmap, 256, 0)) in tcx_probe() 461 fb_set_cmap(&info->cmap, info); in tcx_probe() 479 fb_dealloc_cmap(&info->cmap); in tcx_probe() 495 fb_dealloc_cmap(&info->cmap); in tcx_remove()
|
D | vesafb.c | 142 if (regno >= info->cmap.len) in vesafb_setcolreg() 184 fb_dealloc_cmap(&info->cmap); in vesafb_destroy() 458 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in vesafb_probe() 464 fb_dealloc_cmap(&info->cmap); in vesafb_probe()
|
D | fm2fb.c | 247 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in fm2fb_probe() 286 fb_dealloc_cmap(&info->cmap); in fm2fb_probe()
|
D | broadsheetfb.c | 1139 retval = fb_alloc_cmap(&info->cmap, 16, 0); in broadsheetfb_probe() 1147 info->cmap.red[i] = (((2*i)+1)*(0xFFFF))/32; in broadsheetfb_probe() 1148 memcpy(info->cmap.green, info->cmap.red, sizeof(u16)*16); in broadsheetfb_probe() 1149 memcpy(info->cmap.blue, info->cmap.red, sizeof(u16)*16); in broadsheetfb_probe() 1185 fb_dealloc_cmap(&info->cmap); in broadsheetfb_probe() 1207 fb_dealloc_cmap(&info->cmap); in broadsheetfb_remove()
|
D | tdfxfb.c | 745 if (regno >= info->cmap.len || regno > 255) in tdfxfb_setcolreg() 1069 struct fb_cmap cmap = info->cmap; in tdfxfb_cursor() local 1074 fg_color = (((u32)cmap.red[fg_idx] & 0xff00) << 8) | in tdfxfb_cursor() 1075 (((u32)cmap.green[fg_idx] & 0xff00) << 0) | in tdfxfb_cursor() 1076 (((u32)cmap.blue[fg_idx] & 0xff00) >> 8); in tdfxfb_cursor() 1077 bg_color = (((u32)cmap.red[bg_idx] & 0xff00) << 8) | in tdfxfb_cursor() 1078 (((u32)cmap.green[bg_idx] & 0xff00) << 0) | in tdfxfb_cursor() 1079 (((u32)cmap.blue[bg_idx] & 0xff00) >> 8); in tdfxfb_cursor() 1528 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in tdfxfb_probe() 1535 fb_dealloc_cmap(&info->cmap); in tdfxfb_probe() [all …]
|
D | cg14.c | 543 if (fb_alloc_cmap(&info->cmap, 256, 0)) in cg14_probe() 546 fb_set_cmap(&info->cmap, info); in cg14_probe() 564 fb_dealloc_cmap(&info->cmap); in cg14_probe() 580 fb_dealloc_cmap(&info->cmap); in cg14_remove()
|
D | goldfishfb.c | 53 u32 cmap[16]; member 86 fb->cmap[regno] = convert_bitfield(transp, &fb->fb.var.transp) | in goldfish_fb_setcolreg() 222 fb->fb.pseudo_palette = fb->cmap; in goldfish_fb_probe()
|
D | au1100fb.c | 533 if (fb_alloc_cmap(&fbdev->info.cmap, AU1100_LCD_NBR_PALETTE_ENTRIES, 0) < 0) { in au1100fb_drv_probe() 561 if (fbdev->info.cmap.len != 0) { in au1100fb_drv_probe() 562 fb_dealloc_cmap(&fbdev->info.cmap); in au1100fb_drv_probe() 585 fb_dealloc_cmap(&fbdev->info.cmap); in au1100fb_drv_remove()
|
D | xilinxfb.c | 336 rc = fb_alloc_cmap(&drvdata->info.cmap, PALETTE_ENTRIES_NO, 0); in xilinxfb_assign() 362 fb_dealloc_cmap(&drvdata->info.cmap); in xilinxfb_assign() 387 fb_dealloc_cmap(&drvdata->info.cmap); in xilinxfb_release()
|
D | clps711x-fb.c | 334 ret = fb_alloc_cmap(&info->cmap, BIT(CLPS711X_FB_BPP_MAX), 0); in clps711x_fb_probe() 356 fb_dealloc_cmap(&info->cmap); in clps711x_fb_probe() 372 fb_dealloc_cmap(&info->cmap); in clps711x_fb_remove()
|
D | sunxvr500.c | 233 if (fb_alloc_cmap(&info->cmap, 256, 0)) { in e3d_set_fbinfo() 371 fb_dealloc_cmap(&info->cmap); in e3d_pci_register() 408 fb_dealloc_cmap(&info->cmap); in e3d_pci_unregister()
|
D | fsl-diu-fb.c | 1086 bg = ((info->cmap.red[bg_idx] & 0xf8) << 7) | in fsl_diu_cursor() 1087 ((info->cmap.green[bg_idx] & 0xf8) << 2) | in fsl_diu_cursor() 1088 ((info->cmap.blue[bg_idx] & 0xf8) >> 3) | in fsl_diu_cursor() 1091 fg = ((info->cmap.red[fg_idx] & 0xf8) << 7) | in fsl_diu_cursor() 1092 ((info->cmap.green[fg_idx] & 0xf8) << 2) | in fsl_diu_cursor() 1093 ((info->cmap.blue[fg_idx] & 0xf8) >> 3) | in fsl_diu_cursor() 1491 rc = fb_alloc_cmap(&info->cmap, 16, 0); in install_fb() 1556 fb_dealloc_cmap(&info->cmap); in install_fb() 1563 fb_dealloc_cmap(&info->cmap); in install_fb() 1582 if (&info->cmap) in uninstall_fb() [all …]
|
D | dnfb.c | 244 err = fb_alloc_cmap(&info->cmap, 2, 0); in dnfb_probe() 252 fb_dealloc_cmap(&info->cmap); in dnfb_probe()
|
D | 68328fb.c | 467 if (fb_alloc_cmap(&fb_info.cmap, 256, 0)) in mc68x328fb_init() 471 fb_dealloc_cmap(&fb_info.cmap); in mc68x328fb_init() 491 fb_dealloc_cmap(&fb_info.cmap); in mc68x328fb_cleanup()
|
D | hitfb.c | 398 ret = fb_alloc_cmap(&info->cmap, 256, 0); in hitfb_probe() 413 fb_dealloc_cmap(&info->cmap); in hitfb_probe() 424 fb_dealloc_cmap(&info->cmap); in hitfb_remove()
|
D | amba-clcd.c | 347 fb->cmap[regno] = convert_bitfield(transp, &fb->fb.var.transp) | in clcdfb_setcolreg() 476 fb->fb.pseudo_palette = fb->cmap; in clcdfb_register() 522 ret = fb_alloc_cmap(&fb->fb.cmap, 256, 0); in clcdfb_register() 542 fb_dealloc_cmap(&fb->fb.cmap); in clcdfb_register() 880 if (fb->fb.cmap.len) in clcdfb_remove() 881 fb_dealloc_cmap(&fb->fb.cmap); in clcdfb_remove()
|
D | vfb.c | 519 retval = fb_alloc_cmap(&info->cmap, 256, 0); in vfb_probe() 532 fb_dealloc_cmap(&info->cmap); in vfb_probe() 547 fb_dealloc_cmap(&info->cmap); in vfb_remove()
|
D | grvga.c | 407 retval = fb_alloc_cmap(&info->cmap, 256, 0); in grvga_probe() 504 fb_dealloc_cmap(&info->cmap); in grvga_probe() 522 fb_dealloc_cmap(&info->cmap); in grvga_remove()
|
D | maxinefb.c | 160 fb_alloc_cmap(&fb_info.cmap, 256, 0); in maxinefb_init()
|
D | xen-fbfront.c | 218 if (regno > info->cmap.len) in xenfb_setcolreg() 449 ret = fb_alloc_cmap(&fb_info->cmap, 256, 0); in xenfb_probe() 479 fb_dealloc_cmap(&fb_info->cmap); in xenfb_probe() 529 fb_dealloc_cmap(&info->fb_info->cmap); in xenfb_remove()
|
D | bfin-t350mcqb-fb.c | 512 if (fb_alloc_cmap(&fbinfo->cmap, BFIN_LCD_NBR_PALETTE_ENTRIES, 0) in bfin_t350mcqb_probe() 572 fb_dealloc_cmap(&fbinfo->cmap); in bfin_t350mcqb_probe() 601 fb_dealloc_cmap(&fbinfo->cmap); in bfin_t350mcqb_remove()
|
D | sm501fb.c | 1097 bg = ((info->cmap.red[bg_col] & 0xF8) << 8) | in sm501fb_cursor() 1098 ((info->cmap.green[bg_col] & 0xFC) << 3) | in sm501fb_cursor() 1099 ((info->cmap.blue[bg_col] & 0xF8) >> 3); in sm501fb_cursor() 1101 fg = ((info->cmap.red[fg_col] & 0xF8) << 8) | in sm501fb_cursor() 1102 ((info->cmap.green[fg_col] & 0xFC) << 3) | in sm501fb_cursor() 1103 ((info->cmap.blue[fg_col] & 0xF8) >> 3); in sm501fb_cursor() 1813 if (fb_alloc_cmap(&fb->cmap, NR_PALETTE, 0)) { in sm501fb_init_fb() 1817 fb_set_cmap(&fb->cmap, fb); in sm501fb_init_fb() 1891 fb_dealloc_cmap(&fbi->cmap); in sm501_free_init_fb()
|
D | asiliantfb.c | 517 err = fb_alloc_cmap(&p->cmap, 256, 0); in init_asiliant() 526 fb_dealloc_cmap(&p->cmap); in init_asiliant() 589 fb_dealloc_cmap(&p->cmap); in asiliantfb_remove()
|
D | ep93xx-fb.c | 488 err = fb_alloc_cmap(&info->cmap, 256, 0); in ep93xxfb_probe() 573 fb_dealloc_cmap(&info->cmap); in ep93xxfb_probe() 588 fb_dealloc_cmap(&info->cmap); in ep93xxfb_remove()
|
D | bf54x-lq043fb.c | 615 if (fb_alloc_cmap(&fbinfo->cmap, BFIN_LCD_NBR_PALETTE_ENTRIES, 0) in bfin_bf54x_probe() 675 fb_dealloc_cmap(&fbinfo->cmap); in bfin_bf54x_probe() 701 fb_dealloc_cmap(&fbinfo->cmap); in bfin_bf54x_remove()
|
D | sh7760fb.c | 523 ret = fb_alloc_cmap(&info->cmap, 256, 0); in sh7760fb_probe() 546 fb_dealloc_cmap(&info->cmap); in sh7760fb_probe() 567 fb_dealloc_cmap(&info->cmap); in sh7760fb_remove()
|
D | cg6.c | 801 if (fb_alloc_cmap(&info->cmap, 256, 0)) in cg6_probe() 804 fb_set_cmap(&info->cmap, info); in cg6_probe() 820 fb_dealloc_cmap(&info->cmap); in cg6_probe() 836 fb_dealloc_cmap(&info->cmap); in cg6_remove()
|
D | pxa168fb.c | 733 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in pxa168fb_probe() 768 fb_dealloc_cmap(&info->cmap); in pxa168fb_probe() 802 if (info->cmap.len) in pxa168fb_remove() 803 fb_dealloc_cmap(&info->cmap); in pxa168fb_remove()
|
D | leo.c | 611 if (fb_alloc_cmap(&info->cmap, 256, 0)) in leo_probe() 629 fb_dealloc_cmap(&info->cmap); in leo_probe() 645 fb_dealloc_cmap(&info->cmap); in leo_remove()
|
D | bf537-lq035.c | 772 if (fb_alloc_cmap(&bfin_lq035_fb.cmap, NBR_PALETTE, 0) < 0) { in bfin_lq035_probe() 808 fb_dealloc_cmap(&bfin_lq035_fb.cmap); in bfin_lq035_probe() 836 fb_dealloc_cmap(&bfin_lq035_fb.cmap); in bfin_lq035_remove()
|
D | igafb.c | 288 if (regno >= info->cmap.len) in igafb_setcolreg() 358 fb_alloc_cmap(&info->cmap, video_cmap_len, 0); in iga_init()
|
D | gxt4500.c | 691 err = fb_alloc_cmap(&info->cmap, 256, 0); in gxt4500_probe() 718 fb_dealloc_cmap(&info->cmap); in gxt4500_probe() 743 fb_dealloc_cmap(&info->cmap); in gxt4500_remove()
|
D | g364fb.c | 247 fb_alloc_cmap(&fb_info.cmap, 255, 0); in g364fb_init()
|
D | au1200fb.c | 1552 if (fb_alloc_cmap(&fbi->cmap, AU1200_LCD_NBR_PALETTE_ENTRIES, 0) < 0) { in au1200fb_init_fbinfo() 1735 fb_set_cmap(&fbi->cmap, fbi); in au1200fb_drv_probe() 1761 if (fbi->cmap.len != 0) in au1200fb_drv_probe() 1762 fb_dealloc_cmap(&fbi->cmap); in au1200fb_drv_probe() 1786 if (fbi->cmap.len != 0) in au1200fb_drv_remove() 1787 fb_dealloc_cmap(&fbi->cmap); in au1200fb_drv_remove()
|
D | carminefb.c | 564 ret = fb_alloc_cmap(&info->cmap, 256, 1); in alloc_carmine_fb() 594 fb_dealloc_cmap(&info->cmap); in alloc_carmine_fb() 604 fb_dealloc_cmap(&info->cmap); in cleanup_fb_device()
|
D | bfin_adv7393fb.c | 468 if (fb_alloc_cmap(&fbdev->info.cmap, BFIN_LCD_NBR_PALETTE_ENTRIES, 0) < 0) { in bfin_adv7393_fb_probe() 524 fb_dealloc_cmap(&fbdev->info.cmap); in bfin_adv7393_fb_probe() 729 fb_dealloc_cmap(&fbdev->info.cmap); in bfin_adv7393_fb_remove()
|
D | bfin-lq035q1-fb.c | 687 ret = fb_alloc_cmap(&fbinfo->cmap, BFIN_LCD_NBR_PALETTE_ENTRIES, 0); in bfin_lq035q1_probe() 759 fb_dealloc_cmap(&fbinfo->cmap); in bfin_lq035q1_probe() 791 fb_dealloc_cmap(&fbinfo->cmap); in bfin_lq035q1_remove()
|
D | jz4740_fb.c | 694 fb_alloc_cmap(&fb->cmap, 256, 0); in jzfb_probe() 721 fb_dealloc_cmap(&fb->cmap); in jzfb_probe() 737 fb_dealloc_cmap(&jzfb->fb->cmap); in jzfb_remove()
|
D | smscufx.c | 1043 if (regno >= info->cmap.len) in ufx_ops_setcolreg() 1141 if (info->cmap.len != 0) in ufx_free_framebuffer_work() 1142 fb_dealloc_cmap(&info->cmap); in ufx_free_framebuffer_work() 1675 retval = fb_alloc_cmap(&info->cmap, 256, 0); in ufx_usb_probe() 1741 if (info->cmap.len != 0) in ufx_usb_probe() 1742 fb_dealloc_cmap(&info->cmap); in ufx_usb_probe()
|
D | valkyriefb.c | 401 fb_dealloc_cmap(&p->info.cmap); in valkyriefb_init() 556 return fb_alloc_cmap(&info->cmap, 256, 0); in valkyrie_init_info()
|
D | atafb.c | 2697 struct fb_cmap cmap; in atafb_blank() local 2702 cmap.red = black; in atafb_blank() 2703 cmap.green = black; in atafb_blank() 2704 cmap.blue = black; in atafb_blank() 2705 cmap.transp = NULL; in atafb_blank() 2706 cmap.start = 0; in atafb_blank() 2707 cmap.len = 16; in atafb_blank() 2708 fb_set_cmap(&cmap, info); in atafb_blank() 3226 fb_alloc_cmap(&(fb_info.cmap), 1 << fb_info.var.bits_per_pixel, 0); in atafb_init()
|
D | sunxvr1000.c | 106 if (fb_alloc_cmap(&info->cmap, 256, 0)) { in gfb_set_fbinfo()
|
D | fb-puv3.c | 708 retval = fb_alloc_cmap(&info->cmap, 256, 0); in unifb_probe() 722 fb_dealloc_cmap(&info->cmap); in unifb_probe() 735 fb_dealloc_cmap(&info->cmap); in unifb_remove()
|
D | sunxvr2500.c | 110 if (fb_alloc_cmap(&info->cmap, 256, 0)) { in s3d_set_fbinfo()
|
D | clps711xfb.c | 288 fb_alloc_cmap(&cfb->cmap, CMAP_MAX_SIZE, 0); in clps711x_fb_probe()
|
D | pxafb.c | 524 fb_dealloc_cmap(&fbi->fb.cmap); in pxafb_set_par() 526 fb_alloc_cmap(&fbi->fb.cmap, 1<<fbi->fb.var.bits_per_pixel, 0); in pxafb_set_par() 590 fb_set_cmap(&fbi->fb.cmap, info); in pxafb_blank() 2243 if (fbi->fb.cmap.len) in pxafb_probe() 2244 fb_dealloc_cmap(&fbi->fb.cmap); in pxafb_probe() 2280 if (fbi->fb.cmap.len) in pxafb_remove() 2281 fb_dealloc_cmap(&fbi->fb.cmap); in pxafb_remove()
|
D | ffb.c | 989 if (fb_alloc_cmap(&info->cmap, 256, 0)) in ffb_probe() 1010 fb_dealloc_cmap(&info->cmap); in ffb_probe() 1031 fb_dealloc_cmap(&info->cmap); in ffb_remove()
|
D | vt8623fb.c | 756 rc = fb_alloc_cmap(&info->cmap, 256, 0); in vt8623_pci_probe() 782 fb_dealloc_cmap(&info->cmap); in vt8623_pci_probe() 808 fb_dealloc_cmap(&info->cmap); in vt8623_pci_remove()
|
D | imxfb.c | 953 ret = fb_alloc_cmap(&info->cmap, 1 << info->var.bits_per_pixel, 0); in imxfb_probe() 988 fb_dealloc_cmap(&info->cmap); in imxfb_probe() 1025 fb_dealloc_cmap(&info->cmap); in imxfb_remove()
|
D | da8xx-fb.c | 1099 fb_dealloc_cmap(&info->cmap); in fb_remove() 1478 ret = fb_alloc_cmap(&da8xx_fb_info->cmap, PALETTE_SIZE, 0); in fb_probe() 1481 da8xx_fb_info->cmap.len = par->palette_sz; in fb_probe() 1532 fb_dealloc_cmap(&da8xx_fb_info->cmap); in fb_probe()
|
D | tridentfb.c | 1358 info->cmap.len = (bpp == 8) ? 256 : 16; in tridentfb_set_par() 1371 if (regno >= info->cmap.len) in tridentfb_setcolreg() 1687 err = fb_alloc_cmap(&info->cmap, 256, 0); in trident_pci_probe() 1695 fb_dealloc_cmap(&info->cmap); in trident_pci_probe() 1735 fb_dealloc_cmap(&info->cmap); in trident_pci_remove()
|
D | sa1100fb.c | 482 sa1100fb_set_cmap(struct fb_cmap *cmap, int kspc, int con, 493 return gen_set_cmap(cmap, kspc, con, info); 555 fb_set_cmap(&fbi->fb.cmap, info); in sa1100fb_blank()
|
D | auo_k190x.c | 1099 ret = fb_alloc_cmap(&info->cmap, 256, 0); in auok190x_common_probe() 1141 fb_dealloc_cmap(&info->cmap); in auok190x_common_probe() 1175 fb_dealloc_cmap(&info->cmap); in auok190x_common_remove()
|
D | offb.c | 248 fb_set_cmap(&info->cmap, info); in offb_blank() 517 fb_alloc_cmap(&info->cmap, 256, 0); in offb_init_fb()
|
D | gbefb.c | 388 gbe->cmap[i] = gbe_cmap[i]; in gbe_loadcmap() 878 gbe->cmap[regno] = gbe_cmap[regno]; in gbefb_setcolreg() 1210 fb_alloc_cmap(&info->cmap, 256, 0); in gbefb_probe()
|
D | arkfb.c | 1030 rc = fb_alloc_cmap(&info->cmap, 256, 0); in ark_pci_probe() 1053 fb_dealloc_cmap(&info->cmap); in ark_pci_probe() 1079 fb_dealloc_cmap(&info->cmap); in ark_pci_remove()
|
D | stifb.c | 1302 if (fb_alloc_cmap(&info->cmap, NR_PALETTE, 0)) in stifb_init_fb() 1340 fb_dealloc_cmap(&info->cmap); in stifb_init_fb() 1416 fb_dealloc_cmap(&info->cmap); in stifb_cleanup()
|
D | ps3fb.c | 1149 retval = fb_alloc_cmap(&info->cmap, 256, 0); in ps3fb_probe() 1186 fb_dealloc_cmap(&info->cmap); in ps3fb_probe() 1231 fb_dealloc_cmap(&info->cmap); in ps3fb_shutdown()
|
D | bw2.c | 63 struct bt_regs cmap; member
|
D | neofb.c | 1209 if (regno >= fb->cmap.len || regno > 255) in neofb_setcolreg() 2021 fb_dealloc_cmap(&info->cmap); in neo_free_fb_info() 2089 err = fb_alloc_cmap(&info->cmap, 256, 0); in neofb_probe() 2106 fb_dealloc_cmap(&info->cmap); in neofb_probe()
|
D | s3c-fb.c | 1157 if (win->fbinfo->cmap.len) in s3c_fb_release_win() 1158 fb_dealloc_cmap(&win->fbinfo->cmap); in s3c_fb_release_win() 1265 ret = fb_alloc_cmap(&fbinfo->cmap, win->variant.palette_sz, 1); in s3c_fb_probe_win() 1267 fb_set_cmap(&fbinfo->cmap, fbinfo); in s3c_fb_probe_win()
|
D | udlfb.c | 849 if (regno >= info->cmap.len) in dlfb_ops_setcolreg() 951 if (info->cmap.len != 0) in dlfb_free_framebuffer() 952 fb_dealloc_cmap(&info->cmap); in dlfb_free_framebuffer() 1676 retval = fb_alloc_cmap(&info->cmap, 256, 0); in dlfb_init_framebuffer_work()
|
D | imsttfb.c | 1249 fg = ((info->cmap.red[fg_idx] & 0xf8) << 7) | 1250 ((info->cmap.green[fg_idx] & 0xf8) << 2) | 1251 ((info->cmap.blue[fg_idx] & 0xf8) >> 3) | 1 << 15; 1456 fb_alloc_cmap(&info->cmap, 0, 0); in init_imstt()
|
D | s1d13xxxfb.c | 687 fb_alloc_cmap(&info->cmap, 256, 0); in s1d13xxxfb_fetch_hw_state() 750 fb_dealloc_cmap(&info->cmap); in s1d13xxxfb_remove()
|
D | vga16fb.c | 1269 fb_dealloc_cmap(&info->cmap); in vga16fb_destroy() 1356 ret = fb_alloc_cmap(&info->cmap, i, 0); in vga16fb_probe() 1386 fb_dealloc_cmap(&info->cmap); in vga16fb_probe()
|
D | sstfb.c | 1422 if (fb_alloc_cmap(&info->cmap, 256, 0)) { in sstfb_probe() 1446 fb_dealloc_cmap(&info->cmap); in sstfb_probe() 1474 fb_dealloc_cmap(&info->cmap); in sstfb_remove()
|
D | i740fb.c | 1124 ret = fb_alloc_cmap(&info->cmap, 256, 0); in i740fb_probe() 1144 fb_dealloc_cmap(&info->cmap); in i740fb_probe() 1169 fb_dealloc_cmap(&info->cmap); in i740fb_remove()
|
D | atmel_lcdfb.c | 963 ret = fb_alloc_cmap(&info->cmap, 256, 0); in atmel_lcdfb_init_fbinfo() 1352 fb_dealloc_cmap(&info->cmap); in atmel_lcdfb_probe() 1401 fb_dealloc_cmap(&info->cmap); in atmel_lcdfb_remove()
|
D | chipsfb.c | 345 fb_alloc_cmap(&p->cmap, 256, 0); in init_chips()
|
D | pvr2fb.c | 319 if (regno > info->cmap.len) in pvr2fb_setcolreg() 805 fb_alloc_cmap(&fb_info->cmap, 256, 0); in pvr2fb_common_init()
|
D | s3fb.c | 1331 rc = fb_alloc_cmap(&info->cmap, 256, 0); in s3_pci_probe() 1365 fb_dealloc_cmap(&info->cmap); in s3_pci_probe() 1396 fb_dealloc_cmap(&info->cmap); in s3_pci_remove()
|
D | tgafb.c | 1490 if (fb_alloc_cmap(&info->cmap, 256, 0)) { 1521 fb_dealloc_cmap(&info->cmap); 1545 fb_dealloc_cmap(&info->cmap);
|
D | mx3fb.c | 1420 ret = fb_alloc_cmap(&fbi->cmap, 16, 0); in mx3fb_init_fbinfo() 1521 fb_dealloc_cmap(&fbi->cmap); in init_fb_chan() 1550 fb_dealloc_cmap(&fbi->cmap); in release_fbi()
|
D | w100fb.c | 717 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in w100fb_probe() 770 fb_dealloc_cmap(&info->cmap); in w100fb_probe() 800 fb_dealloc_cmap(&info->cmap); in w100fb_remove()
|
D | platinumfb.c | 325 fb_alloc_cmap(&info->cmap, 256, 0); in platinum_init_info()
|
D | cirrusfb.c | 2016 fb_alloc_cmap(&info->cmap, 256, 0); in cirrusfb_set_fbinfo() 2061 fb_dealloc_cmap(&info->cmap); in cirrusfb_register() 2071 fb_dealloc_cmap(&info->cmap); in cirrusfb_cleanup()
|
D | cyber2000fb.c | 1470 fb_alloc_cmap(&cfb->fb.cmap, NR_PALETTE, 0); in cyberpro_alloc_fb_info() 1481 fb_alloc_cmap(&cfb->fb.cmap, 0, 0); in cyberpro_free_fb_info()
|
D | controlfb.c | 1049 fb_alloc_cmap(&info->cmap, 256, 0); in control_init_info()
|
D | amifb.c | 3735 err = fb_alloc_cmap(&info->cmap, 1 << info->var.bits_per_pixel, 0); in amifb_probe() 3751 fb_dealloc_cmap(&info->cmap); in amifb_probe() 3770 fb_dealloc_cmap(&info->cmap); in amifb_remove()
|
D | sh_mobile_lcdcfb.c | 2186 fb_dealloc_cmap(&info->cmap); in sh_mobile_lcdc_channel_fb_cleanup() 2220 ret = fb_alloc_cmap(&info->cmap, PALETTE_NR, 0); in sh_mobile_lcdc_channel_fb_init()
|
/linux-4.4.14/Documentation/fb/ |
D | cmap_xfbdev.txt | 1 Understanding fbdev's cmap 4 These notes explain how X's dix layer uses fbdev's cmap structures. 6 *. example of relevant structures in fbdev as used for a 3-bit grayscale cmap 18 info->cmap.red[i] = (((2*i)+1)*(0xFFFF))/16; 19 memcpy(info->cmap.green, info->cmap.red, sizeof(u16)*8); 20 memcpy(info->cmap.blue, info->cmap.red, sizeof(u16)*8); 49 directly from the info->cmap.red that was listed above. The prgb is the rgb 51 squares matching function. That's why the cmap entries can't be set to the left
|
D | 00-INDEX | 17 - an introduction to fbdev's cmap structures.
|
/linux-4.4.14/drivers/video/fbdev/aty/ |
D | mach64_cursor.c | 130 fg = ((info->cmap.red[fg_idx] & 0xff) << 24) | in atyfb_cursor() 131 ((info->cmap.green[fg_idx] & 0xff) << 16) | in atyfb_cursor() 132 ((info->cmap.blue[fg_idx] & 0xff) << 8) | 0xff; in atyfb_cursor() 134 bg = ((info->cmap.red[bg_idx] & 0xff) << 24) | in atyfb_cursor() 135 ((info->cmap.green[bg_idx] & 0xff) << 16) | in atyfb_cursor() 136 ((info->cmap.blue[bg_idx] & 0xff) << 8); in atyfb_cursor()
|
D | radeon_base.c | 1276 static int radeonfb_setcmap(struct fb_cmap *cmap, struct fb_info *info) in radeonfb_setcmap() argument 1298 red = cmap->red; in radeonfb_setcmap() 1299 green = cmap->green; in radeonfb_setcmap() 1300 blue = cmap->blue; in radeonfb_setcmap() 1301 transp = cmap->transp; in radeonfb_setcmap() 1302 start = cmap->start; in radeonfb_setcmap() 1304 for (i = 0; i < cmap->len; i++) { in radeonfb_setcmap() 2017 fb_alloc_cmap(&info->cmap, 256, 0); in radeon_set_fbinfo() 2506 fb_dealloc_cmap(&info->cmap); in radeonfb_pci_register() 2570 fb_dealloc_cmap(&info->cmap); in radeonfb_pci_unregister()
|
D | aty128fb.c | 2046 fb_alloc_cmap(&info->cmap, 256, 0); in aty128_init() 2544 fb_set_cmap(&info->cmap, info); in aty128_do_resume()
|
D | atyfb_base.c | 1843 fbtyp.fb_cmsize = info->cmap.len; in atyfb_ioctl() 2740 ret = fb_alloc_cmap(&info->cmap, 256, 0); in aty_init() 2746 fb_dealloc_cmap(&info->cmap); in aty_init()
|
D | radeon_pm.c | 2764 fb_set_cmap(&info->cmap, info); in radeonfb_pci_resume()
|
/linux-4.4.14/drivers/staging/sm750fb/ |
D | sm750.c | 140 fg = ((info->cmap.red[fbcursor->image.fg_color] & 0xf800)) | in lynxfb_ops_cursor() 141 ((info->cmap.green[fbcursor->image.fg_color] & 0xfc00) >> 5) | in lynxfb_ops_cursor() 142 ((info->cmap.blue[fbcursor->image.fg_color] & 0xf800) >> 11); in lynxfb_ops_cursor() 144 bg = ((info->cmap.red[fbcursor->image.bg_color] & 0xf800)) | in lynxfb_ops_cursor() 145 ((info->cmap.green[fbcursor->image.bg_color] & 0xfc00) >> 5) | in lynxfb_ops_cursor() 146 ((info->cmap.blue[fbcursor->image.bg_color] & 0xf800) >> 11); in lynxfb_ops_cursor() 908 info->cmap.start, info->cmap.len, in lynxfb_set_fbinfo() 909 info->cmap.red, info->cmap.green, info->cmap.blue, in lynxfb_set_fbinfo() 910 info->cmap.transp); in lynxfb_set_fbinfo() 912 ret = fb_alloc_cmap(&info->cmap, 256, 0); in lynxfb_set_fbinfo() [all …]
|
/linux-4.4.14/include/linux/ |
D | fb.h | 110 struct fb_cmap_user cmap; /* color map info */ member 263 int (*fb_setcmap)(struct fb_cmap *cmap, struct fb_info *info); 460 struct fb_cmap cmap; /* Current cmap */ member 758 extern int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp); 759 extern int fb_alloc_cmap_gfp(struct fb_cmap *cmap, int len, int transp, gfp_t flags); 760 extern void fb_dealloc_cmap(struct fb_cmap *cmap); 763 extern int fb_set_cmap(struct fb_cmap *cmap, struct fb_info *fb_info); 764 extern int fb_set_user_cmap(struct fb_cmap_user *cmap, struct fb_info *fb_info);
|
D | vt_kern.h | 46 int con_set_cmap(unsigned char __user *cmap); 47 int con_get_cmap(unsigned char __user *cmap);
|
/linux-4.4.14/drivers/media/platform/vivid/ |
D | vivid-osd.c | 212 if (regno >= info->cmap.len) in vivid_fb_setcolreg() 340 if (fb_alloc_cmap(&dev->fb_info.cmap, 256, 1)) { in vivid_fb_init_vidmode() 358 if (dev->fb_info.cmap.len) in vivid_fb_release_buffers() 359 fb_dealloc_cmap(&dev->fb_info.cmap); in vivid_fb_release_buffers()
|
/linux-4.4.14/drivers/gpu/drm/qxl/ |
D | qxl_fb.c | 123 image->cmap.start = 0; in qxl_fb_dirty_flush() 124 image->cmap.len = 0; in qxl_fb_dirty_flush() 125 image->cmap.red = NULL; in qxl_fb_dirty_flush() 126 image->cmap.green = NULL; in qxl_fb_dirty_flush() 127 image->cmap.blue = NULL; in qxl_fb_dirty_flush() 128 image->cmap.transp = NULL; in qxl_fb_dirty_flush()
|
/linux-4.4.14/drivers/video/fbdev/matrox/ |
D | matroxfb_crtc2.h | 31 u_int32_t cmap[16]; member
|
D | matroxfb_crtc2.c | 53 m2info->cmap[regno] = col | (col << 16); in matroxfb_dh_setcolreg() 56 m2info->cmap[regno] = col; in matroxfb_dh_setcolreg() 608 m2info->fbcon.pseudo_palette = m2info->cmap; in matroxfb_dh_regit() 609 fb_alloc_cmap(&m2info->fbcon.cmap, 256, 1); in matroxfb_dh_regit()
|
D | matroxfb_accel.c | 132 matrox_cfb4_pal(minfo->cmap); in matrox_cfbX_init() 140 matrox_cfb8_pal(minfo->cmap); in matrox_cfbX_init()
|
D | matroxfb_base.h | 494 u_int32_t cmap[16]; member
|
D | matroxfb_base.c | 687 minfo->cmap[regno] = col | (col << 16); in matroxfb_setcolreg() 694 minfo->cmap[regno] = in matroxfb_setcolreg() 1796 minfo->fbcon.pseudo_palette = minfo->cmap; in initMatrox2() 1807 fb_alloc_cmap(&minfo->fbcon.cmap, 256, 1); in initMatrox2()
|
/linux-4.4.14/drivers/video/fbdev/via/ |
D | viafbdev.c | 830 ((info->cmap.red[fg_color] & 0xFFC0) << 14) | in viafb_cursor() 831 ((info->cmap.green[fg_color] & 0xFFC0) << 4) | in viafb_cursor() 832 ((info->cmap.blue[fg_color] & 0xFFC0) >> 6); in viafb_cursor() 834 ((info->cmap.red[bg_color] & 0xFFC0) << 14) | in viafb_cursor() 835 ((info->cmap.green[bg_color] & 0xFFC0) << 4) | in viafb_cursor() 836 ((info->cmap.blue[bg_color] & 0xFFC0) >> 6); in viafb_cursor() 839 ((info->cmap.red[fg_color] & 0xFF00) << 8) | in viafb_cursor() 840 (info->cmap.green[fg_color] & 0xFF00) | in viafb_cursor() 841 ((info->cmap.blue[fg_color] & 0xFF00) >> 8); in viafb_cursor() 843 ((info->cmap.red[bg_color] & 0xFF00) << 8) | in viafb_cursor() [all …]
|
/linux-4.4.14/arch/sparc/include/asm/ |
D | fbio.h | 64 struct fbcmap32 cmap; /* color map info */ member
|
/linux-4.4.14/arch/m68k/include/asm/ |
D | fbio.h | 104 struct fbcmap cmap; /* color map info */ member 320 struct fbcmap32 cmap; /* color map info */ member
|
/linux-4.4.14/drivers/gpu/drm/ |
D | drm_fb_helper.c | 752 ret = fb_alloc_cmap(&info->cmap, 256, 0); in drm_fb_helper_alloc_fbi() 767 fb_dealloc_cmap(&info->cmap); in drm_fb_helper_alloc_fbi() 801 if (info->cmap.len) in drm_fb_helper_release_fbi() 802 fb_dealloc_cmap(&info->cmap); in drm_fb_helper_release_fbi() 1048 int drm_fb_helper_setcmap(struct fb_cmap *cmap, struct fb_info *info) in drm_fb_helper_setcmap() argument 1071 red = cmap->red; in drm_fb_helper_setcmap() 1072 green = cmap->green; in drm_fb_helper_setcmap() 1073 blue = cmap->blue; in drm_fb_helper_setcmap() 1074 transp = cmap->transp; in drm_fb_helper_setcmap() 1075 start = cmap->start; in drm_fb_helper_setcmap() [all …]
|
/linux-4.4.14/include/drm/ |
D | drm_fb_helper.h | 197 int drm_fb_helper_setcmap(struct fb_cmap *cmap, struct fb_info *info); 284 static inline int drm_fb_helper_setcmap(struct fb_cmap *cmap, in drm_fb_helper_setcmap() argument
|
/linux-4.4.14/drivers/video/fbdev/geode/ |
D | gx1fb_core.c | 314 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in gx1fb_init_fbinfo() 377 fb_dealloc_cmap(&info->cmap); in gx1fb_probe() 399 fb_dealloc_cmap(&info->cmap); in gx1fb_remove()
|
D | gxfb_core.c | 331 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in gxfb_init_fbinfo() 448 fb_dealloc_cmap(&info->cmap); in gxfb_probe() 472 fb_dealloc_cmap(&info->cmap); in gxfb_remove()
|
D | lxfb_core.c | 449 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in lxfb_init_fbinfo() 580 fb_dealloc_cmap(&info->cmap); in lxfb_probe() 605 fb_dealloc_cmap(&info->cmap); in lxfb_remove()
|
/linux-4.4.14/drivers/video/fbdev/omap/ |
D | omapfb_main.c | 301 static int omapfb_setcmap(struct fb_cmap *cmap, struct fb_info *info) in omapfb_setcmap() argument 307 red = cmap->red; in omapfb_setcmap() 308 green = cmap->green; in omapfb_setcmap() 309 blue = cmap->blue; in omapfb_setcmap() 310 transp = cmap->transp; in omapfb_setcmap() 311 index = cmap->start; in omapfb_setcmap() 313 for (count = 0; count < cmap->len; count++) { in omapfb_setcmap() 317 count == cmap->len - 1); in omapfb_setcmap() 1501 r = fb_alloc_cmap(&info->cmap, 16, 0); in fbinfo_init() 1511 fb_dealloc_cmap(&fbi->cmap); in fbinfo_cleanup()
|
/linux-4.4.14/Documentation/devicetree/bindings/display/ |
D | cirrus,clps711x-fb.txt | 14 - cmap-invert : Invert the color levels (Optional).
|
/linux-4.4.14/drivers/video/fbdev/mb862xx/ |
D | mb862xxfbdrv.c | 751 if (fb_alloc_cmap(&info->cmap, NR_PALETTE, 0) < 0) { in of_platform_mb862xx_probe() 771 fb_dealloc_cmap(&info->cmap); in of_platform_mb862xx_probe() 811 fb_dealloc_cmap(&fbi->cmap); in of_platform_mb862xx_remove() 1089 if (fb_alloc_cmap(&info->cmap, NR_PALETTE, 0) < 0) { in mb862xx_pci_probe() 1117 fb_dealloc_cmap(&info->cmap); in mb862xx_pci_probe() 1159 fb_dealloc_cmap(&fbi->cmap); in mb862xx_pci_remove()
|
/linux-4.4.14/drivers/video/fbdev/nvidia/ |
D | nvidia.c | 587 bg = ((info->cmap.red[bg_idx] & 0xf8) << 7) | in nvidiafb_cursor() 588 ((info->cmap.green[bg_idx] & 0xf8) << 2) | in nvidiafb_cursor() 589 ((info->cmap.blue[bg_idx] & 0xf8) >> 3) | 1 << 15; in nvidiafb_cursor() 591 fg = ((info->cmap.red[fg_idx] & 0xf8) << 7) | in nvidiafb_cursor() 592 ((info->cmap.green[fg_idx] & 0xf8) << 2) | in nvidiafb_cursor() 593 ((info->cmap.blue[fg_idx] & 0xf8) >> 3) | 1 << 15; in nvidiafb_cursor() 1152 fb_alloc_cmap(&info->cmap, 256, 0); in nvidia_set_fbinfo()
|
/linux-4.4.14/drivers/video/fbdev/omap2/omapfb/ |
D | omapfb-main.c | 1201 static int omapfb_setcmap(struct fb_cmap *cmap, struct fb_info *info) in omapfb_setcmap() argument 1209 red = cmap->red; in omapfb_setcmap() 1210 green = cmap->green; in omapfb_setcmap() 1211 blue = cmap->blue; in omapfb_setcmap() 1212 transp = cmap->transp; in omapfb_setcmap() 1213 index = cmap->start; in omapfb_setcmap() 1215 for (count = 0; count < cmap->len; count++) { in omapfb_setcmap() 1219 count == cmap->len - 1); in omapfb_setcmap() 1813 r = fb_alloc_cmap(&fbi->cmap, 256, 0); in omapfb_fb_init() 1823 fb_dealloc_cmap(&fbi->cmap); in fbinfo_cleanup()
|
/linux-4.4.14/arch/sparc/include/uapi/asm/ |
D | fbio.h | 101 struct fbcmap cmap; /* color map info */ member
|
/linux-4.4.14/drivers/video/fbdev/riva/ |
D | fbdev.c | 1636 bg = ((info->cmap.red[bg_idx] & 0xf8) << 7) | in rivafb_cursor() 1637 ((info->cmap.green[bg_idx] & 0xf8) << 2) | in rivafb_cursor() 1638 ((info->cmap.blue[bg_idx] & 0xf8) >> 3) | in rivafb_cursor() 1641 fg = ((info->cmap.red[fg_idx] & 0xf8) << 7) | in rivafb_cursor() 1642 ((info->cmap.green[fg_idx] & 0xf8) << 2) | in rivafb_cursor() 1643 ((info->cmap.blue[fg_idx] & 0xf8) >> 3) | in rivafb_cursor() 1718 fb_alloc_cmap(&info->cmap, cmap_len, 0); in riva_set_fbinfo()
|
/linux-4.4.14/drivers/media/pci/ivtv/ |
D | ivtvfb.c | 879 if (regno >= info->cmap.len) in ivtvfb_setcolreg() 1081 if (fb_alloc_cmap(&oi->ivtvfb_info.cmap, 256, 1)) { in ivtvfb_init_vidmode() 1160 if (oi->ivtvfb_info.cmap.len) in ivtvfb_release_buffers() 1161 fb_dealloc_cmap(&oi->ivtvfb_info.cmap); in ivtvfb_release_buffers()
|
/linux-4.4.14/include/video/ |
D | gbe.h | 58 volatile uint32_t cmap[6144]; /* color map */ member
|
/linux-4.4.14/include/uapi/linux/ |
D | fb.h | 367 struct fb_cmap cmap; /* color map info */ member
|
/linux-4.4.14/include/linux/amba/ |
D | clcd.h | 185 u32 cmap[16]; member
|
/linux-4.4.14/drivers/video/fbdev/mbx/ |
D | mbxfb.c | 250 fb_dealloc_cmap(&info->cmap); in mbxfb_set_par() 972 ret = fb_alloc_cmap(&fbi->cmap, 256, 0); in mbxfb_probe() 1000 fb_dealloc_cmap(&fbi->cmap); in mbxfb_probe()
|
/linux-4.4.14/drivers/video/fbdev/vermilion/ |
D | vermilion.c | 407 fb_dealloc_cmap(&info->cmap); in vml_pci_remove() 528 if (fb_alloc_cmap(&info->cmap, 256, 1) < 0) { in vml_pci_probe() 544 fb_dealloc_cmap(&info->cmap); in vml_pci_probe()
|
/linux-4.4.14/drivers/video/fbdev/mmp/fb/ |
D | mmpfb.c | 543 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) in fb_info_setup() 551 fb_dealloc_cmap(&info->cmap); in fb_info_clear()
|
/linux-4.4.14/drivers/video/fbdev/intelfb/ |
D | intelfbdrv.c | 422 fb_dealloc_cmap(&dinfo->info->cmap); in cleanup() 498 if (fb_alloc_cmap(&info->cmap, 256, 1) < 0) { in intelfb_pci_register() 888 fb_dealloc_cmap(&info->cmap); in intelfb_pci_register()
|
/linux-4.4.14/drivers/video/fbdev/savage/ |
D | savagefb_driver.c | 1527 fb_set_cmap(&info->cmap, info); in savagefb_set_par() 2156 err = fb_alloc_cmap(&info->cmap, NR_PALETTE, 0); in savage_init_fb_info() 2315 fb_alloc_cmap(&info->cmap, 0, 0); in savagefb_probe() 2348 fb_alloc_cmap(&info->cmap, 0, 0); in savagefb_remove()
|
/linux-4.4.14/drivers/video/fbdev/kyro/ |
D | fbdev.c | 716 fb_alloc_cmap(&info->cmap, 256, 0); in kyrofb_probe()
|
/linux-4.4.14/Documentation/DocBook/ |
D | device-drivers.xml.db | 959 API-fb-dealloc-cmap 960 API-fb-copy-cmap 961 API-fb-set-cmap 962 API-fb-default-cmap
|
/linux-4.4.14/drivers/staging/xgifb/ |
D | XGI_main_26.c | 2012 fb_alloc_cmap(&fb_info->cmap, 256, 0); in xgifb_probe()
|
/linux-4.4.14/drivers/video/fbdev/i810/ |
D | i810_main.c | 2052 fb_alloc_cmap(&info->cmap, 256, 0); in i810fb_init_pci()
|
/linux-4.4.14/drivers/video/fbdev/sis/ |
D | sis_main.c | 6437 fb_alloc_cmap(&sis_fb_info->cmap, 256 , 0); in sisfb_probe()
|