/linux-4.1.27/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.1.27/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 | 769 info->cmap.len = 256; in pm2fb_set_par() 877 if (regno >= info->cmap.len) /* no. of hw registers */ in pm2fb_setcolreg() 1301 struct fb_cmap cmap = info->cmap; in pm2vfb_cursor() local 1306 cmap.red[bg_idx] >> 8 ); in pm2vfb_cursor() 1308 cmap.green[bg_idx] >> 8 ); in pm2vfb_cursor() 1310 cmap.blue[bg_idx] >> 8 ); in pm2vfb_cursor() 1313 cmap.red[fg_idx] >> 8 ); in pm2vfb_cursor() 1315 cmap.green[fg_idx] >> 8 ); in pm2vfb_cursor() 1317 cmap.blue[fg_idx] >> 8 ); in pm2vfb_cursor() 1414 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() 278 if ((err = fb_alloc_cmap(&info->cmap, 256, 0)) < 0) { in efifb_probe() 290 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() 356 ret = fb_alloc_cmap(&fbdev->info.cmap, PALETTE_SIZE, 0); in ocfb_probe() 372 fb_dealloc_cmap(&fbdev->info.cmap); in ocfb_probe() 386 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 | 667 struct fb_cmap cmap = info->cmap; in pm3fb_cursor() local 671 cmap.red[fg_idx] >> 8 ); in pm3fb_cursor() 673 cmap.green[fg_idx] >> 8 ); in pm3fb_cursor() 675 cmap.blue[fg_idx] >> 8 ); in pm3fb_cursor() 678 cmap.red[bg_idx] >> 8 ); in pm3fb_cursor() 680 cmap.green[bg_idx] >> 8 ); in pm3fb_cursor() 682 cmap.blue[bg_idx] >> 8 ); in pm3fb_cursor() 1434 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in pm3fb_probe() 1453 fb_dealloc_cmap(&info->cmap); in pm3fb_probe() 1479 fb_dealloc_cmap(&info->cmap); in pm3fb_remove()
|
D | vesafb.c | 138 if (regno >= info->cmap.len) in vesafb_setcolreg() 178 fb_dealloc_cmap(&info->cmap); in vesafb_destroy() 483 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in vesafb_probe() 489 fb_dealloc_cmap(&info->cmap); in vesafb_probe()
|
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 | 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 | 1137 retval = fb_alloc_cmap(&info->cmap, 16, 0); in broadsheetfb_probe() 1145 info->cmap.red[i] = (((2*i)+1)*(0xFFFF))/32; in broadsheetfb_probe() 1146 memcpy(info->cmap.green, info->cmap.red, sizeof(u16)*16); in broadsheetfb_probe() 1147 memcpy(info->cmap.blue, info->cmap.red, sizeof(u16)*16); in broadsheetfb_probe() 1183 fb_dealloc_cmap(&info->cmap); in broadsheetfb_probe() 1205 fb_dealloc_cmap(&info->cmap); in broadsheetfb_remove()
|
D | tdfxfb.c | 764 if (regno >= info->cmap.len || regno > 255) in tdfxfb_setcolreg() 1088 struct fb_cmap cmap = info->cmap; in tdfxfb_cursor() local 1093 fg_color = (((u32)cmap.red[fg_idx] & 0xff00) << 8) | in tdfxfb_cursor() 1094 (((u32)cmap.green[fg_idx] & 0xff00) << 0) | in tdfxfb_cursor() 1095 (((u32)cmap.blue[fg_idx] & 0xff00) >> 8); in tdfxfb_cursor() 1096 bg_color = (((u32)cmap.red[bg_idx] & 0xff00) << 8) | in tdfxfb_cursor() 1097 (((u32)cmap.green[bg_idx] & 0xff00) << 0) | in tdfxfb_cursor() 1098 (((u32)cmap.blue[bg_idx] & 0xff00) >> 8); in tdfxfb_cursor() 1549 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in tdfxfb_probe() 1556 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 | fsl-diu-fb.c | 1083 bg = ((info->cmap.red[bg_idx] & 0xf8) << 7) | in fsl_diu_cursor() 1084 ((info->cmap.green[bg_idx] & 0xf8) << 2) | in fsl_diu_cursor() 1085 ((info->cmap.blue[bg_idx] & 0xf8) >> 3) | in fsl_diu_cursor() 1088 fg = ((info->cmap.red[fg_idx] & 0xf8) << 7) | in fsl_diu_cursor() 1089 ((info->cmap.green[fg_idx] & 0xf8) << 2) | in fsl_diu_cursor() 1090 ((info->cmap.blue[fg_idx] & 0xf8) >> 3) | in fsl_diu_cursor() 1488 rc = fb_alloc_cmap(&info->cmap, 16, 0); in install_fb() 1553 fb_dealloc_cmap(&info->cmap); in install_fb() 1560 fb_dealloc_cmap(&info->cmap); in install_fb() 1579 if (&info->cmap) in uninstall_fb() [all …]
|
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 | 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 | 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 | 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 | dnfb.c | 244 err = fb_alloc_cmap(&info->cmap, 2, 0); in dnfb_probe() 252 fb_dealloc_cmap(&info->cmap); in dnfb_probe()
|
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 | 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 | 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 | 520 retval = fb_alloc_cmap(&info->cmap, 256, 0); in vfb_probe() 533 fb_dealloc_cmap(&info->cmap); in vfb_probe() 548 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 | 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 | 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 | 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 | 736 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in pxa168fb_probe() 771 fb_dealloc_cmap(&info->cmap); in pxa168fb_probe() 807 if (info->cmap.len) in pxa168fb_remove() 808 fb_dealloc_cmap(&info->cmap); in pxa168fb_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 | ep93xx-fb.c | 509 err = fb_alloc_cmap(&info->cmap, 256, 0); in ep93xxfb_probe() 595 fb_dealloc_cmap(&info->cmap); in ep93xxfb_probe() 610 fb_dealloc_cmap(&info->cmap); in ep93xxfb_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 | 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 | 679 err = fb_alloc_cmap(&info->cmap, 256, 0); in gxt4500_probe() 706 fb_dealloc_cmap(&info->cmap); in gxt4500_probe() 730 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 | 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 | 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 | 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 | 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 | 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() 3227 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() 2244 if (fbi->fb.cmap.len) in pxafb_probe() 2245 fb_dealloc_cmap(&fbi->fb.cmap); in pxafb_probe() 2281 if (fbi->fb.cmap.len) in pxafb_remove() 2282 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 | 766 rc = fb_alloc_cmap(&info->cmap, 256, 0); in vt8623_pci_probe() 795 fb_dealloc_cmap(&info->cmap); in vt8623_pci_probe() 827 fb_dealloc_cmap(&info->cmap); in vt8623_pci_remove()
|
D | tridentfb.c | 1231 info->cmap.len = (bpp == 8) ? 256 : 16; in tridentfb_set_par() 1244 if (regno >= info->cmap.len) in tridentfb_setcolreg() 1513 err = fb_alloc_cmap(&info->cmap, 256, 0); in trident_pci_probe() 1521 fb_dealloc_cmap(&info->cmap); in trident_pci_probe() 1557 fb_dealloc_cmap(&info->cmap); in trident_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 | 1100 fb_dealloc_cmap(&info->cmap); in fb_remove() 1479 ret = fb_alloc_cmap(&da8xx_fb_info->cmap, PALETTE_SIZE, 0); in fb_probe() 1482 da8xx_fb_info->cmap.len = par->palette_sz; in fb_probe() 1533 fb_dealloc_cmap(&da8xx_fb_info->cmap); in fb_probe()
|
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 | arkfb.c | 1043 rc = fb_alloc_cmap(&info->cmap, 256, 0); in ark_pci_probe() 1072 fb_dealloc_cmap(&info->cmap); in ark_pci_probe() 1105 fb_dealloc_cmap(&info->cmap); in ark_pci_remove()
|
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 | gbefb.c | 390 gbe->cmap[i] = gbe_cmap[i]; in gbe_loadcmap() 880 gbe->cmap[regno] = gbe_cmap[regno]; in gbefb_setcolreg() 1213 fb_alloc_cmap(&info->cmap, 256, 0); in gbefb_probe()
|
D | stifb.c | 1265 if (fb_alloc_cmap(&info->cmap, NR_PALETTE, 0)) in stifb_init_fb() 1303 fb_dealloc_cmap(&info->cmap); in stifb_init_fb() 1379 fb_dealloc_cmap(&info->cmap); in stifb_cleanup()
|
D | bw2.c | 63 struct bt_regs cmap; member
|
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 | neofb.c | 1214 if (regno >= fb->cmap.len || regno > 255) in neofb_setcolreg() 2033 fb_dealloc_cmap(&info->cmap); in neo_free_fb_info() 2101 err = fb_alloc_cmap(&info->cmap, 256, 0); in neofb_probe() 2118 fb_dealloc_cmap(&info->cmap); in neofb_probe()
|
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() 1678 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 | 688 fb_alloc_cmap(&info->cmap, 256, 0); in s1d13xxxfb_fetch_hw_state() 751 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 | i740fb.c | 1133 ret = fb_alloc_cmap(&info->cmap, 256, 0); in i740fb_probe() 1157 fb_dealloc_cmap(&info->cmap); in i740fb_probe() 1188 fb_dealloc_cmap(&info->cmap); in i740fb_remove()
|
D | atmel_lcdfb.c | 964 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 | 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 | 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 | tgafb.c | 1490 if (fb_alloc_cmap(&info->cmap, 256, 0)) { 1521 fb_dealloc_cmap(&info->cmap); 1545 fb_dealloc_cmap(&info->cmap);
|
D | s3fb.c | 1342 rc = fb_alloc_cmap(&info->cmap, 256, 0); in s3_pci_probe() 1379 fb_dealloc_cmap(&info->cmap); in s3_pci_probe() 1417 fb_dealloc_cmap(&info->cmap); in s3_pci_remove()
|
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.1.27/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.1.27/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 | 1153 static int radeonfb_setcmap(struct fb_cmap *cmap, struct fb_info *info) in radeonfb_setcmap() argument 1175 red = cmap->red; in radeonfb_setcmap() 1176 green = cmap->green; in radeonfb_setcmap() 1177 blue = cmap->blue; in radeonfb_setcmap() 1178 transp = cmap->transp; in radeonfb_setcmap() 1179 start = cmap->start; in radeonfb_setcmap() 1181 for (i = 0; i < cmap->len; i++) { in radeonfb_setcmap() 1894 fb_alloc_cmap(&info->cmap, 256, 0); in radeon_set_fbinfo() 2385 fb_dealloc_cmap(&info->cmap); in radeonfb_pci_register() 2454 fb_dealloc_cmap(&info->cmap); in radeonfb_pci_unregister()
|
D | aty128fb.c | 2057 fb_alloc_cmap(&info->cmap, 256, 0); in aty128_init() 2565 fb_set_cmap(&info->cmap, info); in aty128_do_resume()
|
D | atyfb_base.c | 1834 fbtyp.fb_cmsize = info->cmap.len; in atyfb_ioctl() 2750 ret = fb_alloc_cmap(&info->cmap, 256, 0); in aty_init() 2756 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.1.27/drivers/staging/sm750fb/ |
D | sm750.c | 160 fg = ((info->cmap.red[fbcursor->image.fg_color] & 0xf800))| in lynxfb_ops_cursor() 161 ((info->cmap.green[fbcursor->image.fg_color] & 0xfc00) >> 5)| in lynxfb_ops_cursor() 162 ((info->cmap.blue[fbcursor->image.fg_color] & 0xf800) >> 11); in lynxfb_ops_cursor() 164 bg = ((info->cmap.red[fbcursor->image.bg_color] & 0xf800))| in lynxfb_ops_cursor() 165 ((info->cmap.green[fbcursor->image.bg_color] & 0xfc00) >> 5)| in lynxfb_ops_cursor() 166 ((info->cmap.blue[fbcursor->image.bg_color] & 0xf800) >> 11); in lynxfb_ops_cursor() 976 info->cmap.start, info->cmap.len, in lynxfb_set_fbinfo() 977 info->cmap.red, info->cmap.green, info->cmap.blue, in lynxfb_set_fbinfo() 978 info->cmap.transp); in lynxfb_set_fbinfo() 980 ret = fb_alloc_cmap(&info->cmap, 256, 0); in lynxfb_set_fbinfo() [all …]
|
/linux-4.1.27/drivers/gpu/drm/armada/ |
D | armada_fbdev.c | 89 ret = fb_alloc_cmap(&info->cmap, 256, 0); in armada_fb_create() 198 if (info->cmap.len) in armada_fbdev_fini() 199 fb_dealloc_cmap(&info->cmap); in armada_fbdev_fini()
|
/linux-4.1.27/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 755 extern int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp); 756 extern int fb_alloc_cmap_gfp(struct fb_cmap *cmap, int len, int transp, gfp_t flags); 757 extern void fb_dealloc_cmap(struct fb_cmap *cmap); 760 extern int fb_set_cmap(struct fb_cmap *cmap, struct fb_info *fb_info); 761 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.1.27/drivers/gpu/drm/exynos/ |
D | exynos_drm_fbdev.c | 187 ret = fb_alloc_cmap(&fbi->cmap, 256, 0); in exynos_drm_fbdev_create() 201 fb_dealloc_cmap(&fbi->cmap); in exynos_drm_fbdev_create() 328 if (info->cmap.len) in exynos_drm_fbdev_destroy() 329 fb_dealloc_cmap(&info->cmap); in exynos_drm_fbdev_destroy()
|
/linux-4.1.27/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_fbdev.c | 101 ret = fb_alloc_cmap(&fbi->cmap, 256, 0); in rockchip_drm_fbdev_create() 203 if (info->cmap.len) in rockchip_drm_fbdev_fini() 204 fb_dealloc_cmap(&info->cmap); in rockchip_drm_fbdev_fini()
|
/linux-4.1.27/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.1.27/drivers/gpu/drm/bochs/ |
D | bochs_fbdev.c | 142 ret = fb_alloc_cmap(&info->cmap, 256, 0); in bochsfb_create() 162 if (info->cmap.len) in bochs_fbdev_destroy() 163 fb_dealloc_cmap(&info->cmap); in bochs_fbdev_destroy()
|
/linux-4.1.27/drivers/gpu/drm/qxl/ |
D | qxl_fb.c | 129 image->cmap.start = 0; in qxl_fb_dirty_flush() 130 image->cmap.len = 0; in qxl_fb_dirty_flush() 131 image->cmap.red = NULL; in qxl_fb_dirty_flush() 132 image->cmap.green = NULL; in qxl_fb_dirty_flush() 133 image->cmap.blue = NULL; in qxl_fb_dirty_flush() 134 image->cmap.transp = NULL; in qxl_fb_dirty_flush() 591 ret = fb_alloc_cmap(&info->cmap, 256, 0); in qxlfb_create()
|
/linux-4.1.27/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 | 519 u_int32_t cmap[16]; member
|
D | matroxfb_base.c | 694 minfo->cmap[regno] = col | (col << 16); in matroxfb_setcolreg() 701 minfo->cmap[regno] = in matroxfb_setcolreg() 1806 minfo->fbcon.pseudo_palette = minfo->cmap; in initMatrox2() 1817 fb_alloc_cmap(&minfo->fbcon.cmap, 256, 1); in initMatrox2()
|
/linux-4.1.27/drivers/gpu/drm/mgag200/ |
D | mgag200_fb.c | 213 ret = fb_alloc_cmap(&info->cmap, 256, 0); in mgag200fb_create() 259 if (info->cmap.len) in mga_fbdev_destroy() 260 fb_dealloc_cmap(&info->cmap); in mga_fbdev_destroy()
|
/linux-4.1.27/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.1.27/drivers/gpu/drm/cirrus/ |
D | cirrus_fbdev.c | 249 ret = fb_alloc_cmap(&info->cmap, 256, 0); in cirrusfb_create() 277 if (info->cmap.len) in cirrus_fbdev_destroy() 278 fb_dealloc_cmap(&info->cmap); in cirrus_fbdev_destroy()
|
/linux-4.1.27/arch/sparc/include/asm/ |
D | fbio.h | 64 struct fbcmap32 cmap; /* color map info */ member
|
/linux-4.1.27/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.1.27/drivers/gpu/drm/ast/ |
D | ast_fb.c | 243 ret = fb_alloc_cmap(&info->cmap, 256, 0); in astfb_create() 305 if (info->cmap.len) in ast_fbdev_destroy() 306 fb_dealloc_cmap(&info->cmap); in ast_fbdev_destroy()
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
D | radeon_fb.c | 306 ret = fb_alloc_cmap(&info->cmap, 256, 0); in radeonfb_create() 349 if (info->cmap.len) in radeon_fbdev_destroy() 350 fb_dealloc_cmap(&info->cmap); in radeon_fbdev_destroy()
|
/linux-4.1.27/drivers/gpu/drm/tegra/ |
D | fb.c | 251 err = fb_alloc_cmap(&info->cmap, 256, 0); in tegra_fbdev_probe() 359 if (info->cmap.len) in tegra_fbdev_exit() 360 fb_dealloc_cmap(&info->cmap); in tegra_fbdev_exit()
|
/linux-4.1.27/drivers/gpu/drm/ |
D | drm_fb_cma_helper.c | 300 ret = fb_alloc_cmap(&fbi->cmap, 256, 0); in drm_fbdev_cma_create() 409 if (info->cmap.len) in drm_fbdev_cma_fini() 410 fb_dealloc_cmap(&info->cmap); in drm_fbdev_cma_fini()
|
D | drm_fb_helper.c | 764 int drm_fb_helper_setcmap(struct fb_cmap *cmap, struct fb_info *info) in drm_fb_helper_setcmap() argument 786 red = cmap->red; in drm_fb_helper_setcmap() 787 green = cmap->green; in drm_fb_helper_setcmap() 788 blue = cmap->blue; in drm_fb_helper_setcmap() 789 transp = cmap->transp; in drm_fb_helper_setcmap() 790 start = cmap->start; in drm_fb_helper_setcmap() 792 for (j = 0; j < cmap->len; j++) { in drm_fb_helper_setcmap()
|
/linux-4.1.27/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 | 330 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in gxfb_init_fbinfo() 447 fb_dealloc_cmap(&info->cmap); in gxfb_probe() 471 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.1.27/drivers/video/fbdev/omap/ |
D | omapfb_main.c | 306 static int omapfb_setcmap(struct fb_cmap *cmap, struct fb_info *info) in omapfb_setcmap() argument 312 red = cmap->red; in omapfb_setcmap() 313 green = cmap->green; in omapfb_setcmap() 314 blue = cmap->blue; in omapfb_setcmap() 315 transp = cmap->transp; in omapfb_setcmap() 316 index = cmap->start; in omapfb_setcmap() 318 for (count = 0; count < cmap->len; count++) { in omapfb_setcmap() 322 count == cmap->len - 1); in omapfb_setcmap() 1506 r = fb_alloc_cmap(&info->cmap, 16, 0); in fbinfo_init() 1516 fb_dealloc_cmap(&fbi->cmap); in fbinfo_cleanup()
|
/linux-4.1.27/Documentation/devicetree/bindings/video/ |
D | cirrus,clps711x-fb.txt | 14 - cmap-invert : Invert the color levels (Optional).
|
/linux-4.1.27/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() 1088 if (fb_alloc_cmap(&info->cmap, NR_PALETTE, 0) < 0) { in mb862xx_pci_probe() 1116 fb_dealloc_cmap(&info->cmap); in mb862xx_pci_probe() 1158 fb_dealloc_cmap(&fbi->cmap); in mb862xx_pci_remove()
|
/linux-4.1.27/include/drm/ |
D | drm_fb_helper.h | 144 int drm_fb_helper_setcmap(struct fb_cmap *cmap, struct fb_info *info);
|
/linux-4.1.27/drivers/video/fbdev/nvidia/ |
D | nvidia.c | 592 bg = ((info->cmap.red[bg_idx] & 0xf8) << 7) | in nvidiafb_cursor() 593 ((info->cmap.green[bg_idx] & 0xf8) << 2) | in nvidiafb_cursor() 594 ((info->cmap.blue[bg_idx] & 0xf8) >> 3) | 1 << 15; in nvidiafb_cursor() 596 fg = ((info->cmap.red[fg_idx] & 0xf8) << 7) | in nvidiafb_cursor() 597 ((info->cmap.green[fg_idx] & 0xf8) << 2) | in nvidiafb_cursor() 598 ((info->cmap.blue[fg_idx] & 0xf8) >> 3) | 1 << 15; in nvidiafb_cursor() 1157 fb_alloc_cmap(&info->cmap, 256, 0); in nvidia_set_fbinfo()
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
D | intel_fbdev.c | 232 ret = fb_alloc_cmap(&info->cmap, 256, 0); in intelfb_create() 532 if (info->cmap.len) in intel_fbdev_destroy() 533 fb_dealloc_cmap(&info->cmap); in intel_fbdev_destroy()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/ |
D | nouveau_fbcon.c | 399 ret = fb_alloc_cmap(&info->cmap, 256, 0); in nouveau_fbcon_create() 482 if (info->cmap.len) in nouveau_fbcon_destroy() 483 fb_dealloc_cmap(&info->cmap); in nouveau_fbcon_destroy()
|
/linux-4.1.27/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.1.27/drivers/gpu/drm/udl/ |
D | udl_fb.c | 536 ret = fb_alloc_cmap(&info->cmap, 256, 0); in udlfb_create() 565 if (info->cmap.len) in udl_fbdev_destroy() 566 fb_dealloc_cmap(&info->cmap); in udl_fbdev_destroy()
|
/linux-4.1.27/drivers/gpu/drm/gma500/ |
D | framebuffer.c | 443 ret = fb_alloc_cmap(&info->cmap, 256, 0); in psbfb_create() 579 if (info->cmap.len) in psb_fbdev_destroy() 580 fb_dealloc_cmap(&info->cmap); in psb_fbdev_destroy()
|
/linux-4.1.27/arch/sparc/include/uapi/asm/ |
D | fbio.h | 101 struct fbcmap cmap; /* color map info */ member
|
/linux-4.1.27/drivers/video/fbdev/riva/ |
D | fbdev.c | 1641 bg = ((info->cmap.red[bg_idx] & 0xf8) << 7) | in rivafb_cursor() 1642 ((info->cmap.green[bg_idx] & 0xf8) << 2) | in rivafb_cursor() 1643 ((info->cmap.blue[bg_idx] & 0xf8) >> 3) | in rivafb_cursor() 1646 fg = ((info->cmap.red[fg_idx] & 0xf8) << 7) | in rivafb_cursor() 1647 ((info->cmap.green[fg_idx] & 0xf8) << 2) | in rivafb_cursor() 1648 ((info->cmap.blue[fg_idx] & 0xf8) >> 3) | in rivafb_cursor() 1723 fb_alloc_cmap(&info->cmap, cmap_len, 0); in riva_set_fbinfo()
|
/linux-4.1.27/drivers/media/pci/ivtv/ |
D | ivtvfb.c | 878 if (regno >= info->cmap.len) in ivtvfb_setcolreg() 1080 if (fb_alloc_cmap(&oi->ivtvfb_info.cmap, 256, 1)) { in ivtvfb_init_vidmode() 1170 if (oi->ivtvfb_info.cmap.len) in ivtvfb_release_buffers() 1171 fb_dealloc_cmap(&oi->ivtvfb_info.cmap); in ivtvfb_release_buffers()
|
/linux-4.1.27/include/video/ |
D | gbe.h | 58 volatile uint32_t cmap[6144]; /* color map */ member
|
/linux-4.1.27/include/uapi/linux/ |
D | fb.h | 367 struct fb_cmap cmap; /* color map info */ member
|
/linux-4.1.27/include/linux/amba/ |
D | clcd.h | 185 u32 cmap[16]; member
|
/linux-4.1.27/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.1.27/drivers/gpu/drm/msm/ |
D | msm_fbdev.c | 166 ret = fb_alloc_cmap(&fbi->cmap, 256, 0); in msm_fbdev_create()
|
/linux-4.1.27/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.1.27/drivers/gpu/drm/omapdrm/ |
D | omap_fbdev.c | 201 ret = fb_alloc_cmap(&fbi->cmap, 256, 0); in omap_fbdev_create()
|
/linux-4.1.27/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.1.27/drivers/video/fbdev/intelfb/ |
D | intelfbdrv.c | 453 fb_dealloc_cmap(&dinfo->info->cmap); in cleanup() 529 if (fb_alloc_cmap(&info->cmap, 256, 1) < 0) { in intelfb_pci_register() 918 fb_dealloc_cmap(&info->cmap); in intelfb_pci_register()
|
/linux-4.1.27/drivers/video/fbdev/savage/ |
D | savagefb_driver.c | 1531 fb_set_cmap(&info->cmap, info); in savagefb_set_par() 2167 err = fb_alloc_cmap(&info->cmap, NR_PALETTE, 0); in savage_init_fb_info() 2326 fb_alloc_cmap(&info->cmap, 0, 0); in savagefb_probe() 2359 fb_alloc_cmap(&info->cmap, 0, 0); in savagefb_remove()
|
/linux-4.1.27/drivers/video/fbdev/kyro/ |
D | fbdev.c | 724 fb_alloc_cmap(&info->cmap, 256, 0); in kyrofb_probe()
|
/linux-4.1.27/drivers/video/fbdev/msm/ |
D | msm_fb.c | 499 r = fb_alloc_cmap(&fb_info->cmap, 16, 0); in setup_fb_info()
|
/linux-4.1.27/drivers/staging/xgifb/ |
D | XGI_main_26.c | 2015 fb_alloc_cmap(&fb_info->cmap, 256, 0); in xgifb_probe()
|
/linux-4.1.27/drivers/video/fbdev/i810/ |
D | i810_main.c | 2049 fb_alloc_cmap(&info->cmap, 256, 0); in i810fb_init_pci()
|
/linux-4.1.27/drivers/video/fbdev/sis/ |
D | sis_main.c | 6442 fb_alloc_cmap(&sis_fb_info->cmap, 256 , 0); in sisfb_probe()
|