/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 99 if (cmap->len != len) { in fb_alloc_cmap_gfp() 100 fb_dealloc_cmap(cmap); in fb_alloc_cmap_gfp() 104 cmap->red = kzalloc(size, flags); in fb_alloc_cmap_gfp() 105 if (!cmap->red) in fb_alloc_cmap_gfp() 107 cmap->green = kzalloc(size, flags); in fb_alloc_cmap_gfp() 108 if (!cmap->green) in fb_alloc_cmap_gfp() 110 cmap->blue = kzalloc(size, flags); in fb_alloc_cmap_gfp() 111 if (!cmap->blue) in fb_alloc_cmap_gfp() 114 cmap->transp = kzalloc(size, flags); in fb_alloc_cmap_gfp() [all …]
|
D | fbmem.c | 1058 fb_set_cmap(&info->cmap, info); in fb_set_var() 1105 struct fb_cmap_user cmap; in do_fb_ioctl() local 1144 if (copy_from_user(&cmap, argp, sizeof(cmap))) in do_fb_ioctl() 1146 ret = fb_set_user_cmap(&cmap, info); in do_fb_ioctl() 1149 if (copy_from_user(&cmap, argp, sizeof(cmap))) in do_fb_ioctl() 1152 cmap_from = info->cmap; in do_fb_ioctl() 1154 ret = fb_cmap_to_user(&cmap_from, &cmap); in do_fb_ioctl() 1236 struct fb_cmap_user __user *cmap; in fb_getput_cmap() local 1241 cmap = compat_alloc_user_space(sizeof(*cmap)); in fb_getput_cmap() 1244 if (copy_in_user(&cmap->start, &cmap32->start, 2 * sizeof(__u32))) in fb_getput_cmap() [all …]
|
/drivers/video/fbdev/ |
D | sbuslib.c | 119 struct fb_cmap cmap; in sbusfb_ioctl_helper() local 134 cmap.len = 1; in sbusfb_ioctl_helper() 135 cmap.red = &red; in sbusfb_ioctl_helper() 136 cmap.green = &green; in sbusfb_ioctl_helper() 137 cmap.blue = &blue; in sbusfb_ioctl_helper() 138 cmap.transp = NULL; in sbusfb_ioctl_helper() 151 cmap.start = index + i; in sbusfb_ioctl_helper() 152 err = fb_set_cmap(&cmap, info); in sbusfb_ioctl_helper() 163 struct fb_cmap *cmap = &info->cmap; in sbusfb_ioctl_helper() local 174 if (index > cmap->len || count > cmap->len - index) in sbusfb_ioctl_helper() [all …]
|
D | cg3.c | 89 struct bt_regs cmap; member 143 struct bt_regs __iomem *bt = &par->regs->cmap; in cg3_setcolreg() 342 regp = (u8 __iomem *)&par->regs->cmap.addr; in cg3_do_default_mode() 344 regp = (u8 __iomem *)&par->regs->cmap.control; in cg3_do_default_mode() 402 err = fb_alloc_cmap(&info->cmap, 256, 0); in cg3_probe() 406 fb_set_cmap(&info->cmap, info); in cg3_probe() 422 fb_dealloc_cmap(&info->cmap); in cg3_probe() 443 fb_dealloc_cmap(&info->cmap); in cg3_remove()
|
D | uvesafb.c | 995 if (regno >= info->cmap.len) in uvesafb_setcolreg() 1038 static int uvesafb_setcmap(struct fb_cmap *cmap, struct fb_info *info) in uvesafb_setcmap() argument 1045 if (cmap->start + cmap->len > info->cmap.start + in uvesafb_setcmap() 1046 info->cmap.len || cmap->start < info->cmap.start) in uvesafb_setcmap() 1049 entries = kmalloc_array(cmap->len, sizeof(*entries), in uvesafb_setcmap() 1054 for (i = 0; i < cmap->len; i++) { in uvesafb_setcmap() 1055 entries[i].red = cmap->red[i] >> shift; in uvesafb_setcmap() 1056 entries[i].green = cmap->green[i] >> shift; in uvesafb_setcmap() 1057 entries[i].blue = cmap->blue[i] >> shift; in uvesafb_setcmap() 1060 err = uvesafb_setpalette(entries, cmap->len, cmap->start, info); in uvesafb_setcmap() [all …]
|
D | pmag-ba-fb.c | 100 if (regno >= info->cmap.len) in pmagbafb_setcolreg() 159 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in pmagbafb_probe() 229 fb_dealloc_cmap(&info->cmap); in pmagbafb_probe() 250 fb_dealloc_cmap(&info->cmap); in pmagbafb_remove()
|
D | metronomefb.c | 708 retval = fb_alloc_cmap(&info->cmap, 8, 0); in metronomefb_probe() 716 info->cmap.red[i] = (((2*i)+1)*(0xFFFF))/16; in metronomefb_probe() 717 memcpy(info->cmap.green, info->cmap.red, sizeof(u16)*8); in metronomefb_probe() 718 memcpy(info->cmap.blue, info->cmap.red, sizeof(u16)*8); in metronomefb_probe() 733 fb_dealloc_cmap(&info->cmap); in metronomefb_probe() 756 fb_dealloc_cmap(&info->cmap); in metronomefb_remove()
|
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 | p9100.c | 295 if (fb_alloc_cmap(&info->cmap, 256, 0)) in p9100_probe() 304 fb_set_cmap(&info->cmap, info); in p9100_probe() 315 fb_dealloc_cmap(&info->cmap); in p9100_probe() 336 fb_dealloc_cmap(&info->cmap); in p9100_remove()
|
D | vt8500lcdfb.c | 237 fb_set_cmap(&info->cmap, info); in vt8500lcd_blank() 390 if (fb_alloc_cmap(&fbi->fb.cmap, 256, 0) < 0) { in vt8500lcd_probe() 428 if (fbi->fb.cmap.len) in vt8500lcd_probe() 429 fb_dealloc_cmap(&fbi->fb.cmap); in vt8500lcd_probe() 452 if (fbi->fb.cmap.len) in vt8500lcd_remove() 453 fb_dealloc_cmap(&fbi->fb.cmap); in vt8500lcd_remove()
|
D | wm8505fb.c | 352 if (fb_alloc_cmap(&fbi->fb.cmap, 256, 0) < 0) { in wm8505fb_probe() 365 if (fbi->fb.cmap.len) in wm8505fb_probe() 366 fb_dealloc_cmap(&fbi->fb.cmap); in wm8505fb_probe() 385 if (fbi->fb.cmap.len) in wm8505fb_remove() 386 fb_dealloc_cmap(&fbi->fb.cmap); in wm8505fb_remove()
|
D | macfb.c | 166 nubus_writeb(info->cmap.red[i] >> 8, in dafb_setpalette() 169 nubus_writeb(info->cmap.green[i] >> 8, in dafb_setpalette() 172 nubus_writeb(info->cmap.blue[i] >> 8, in dafb_setpalette() 443 if (regno >= fb_info->cmap.len) in macfb_setcolreg() 881 err = fb_alloc_cmap(&fb_info.cmap, video_cmap_len, 0); in macfb_init() 894 fb_dealloc_cmap(&fb_info.cmap); in macfb_init()
|
D | q40fb.c | 107 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in q40fb_probe() 116 fb_dealloc_cmap(&info->cmap); in q40fb_probe()
|
D | hpfb.c | 93 if (regno >= info->cmap.len) in hpfb_setcolreg() 294 ret = fb_alloc_cmap(&fb_info.cmap, 1 << hpfb_defined.bits_per_pixel, 0); in hpfb_init_one() 307 fb_dealloc_cmap(&fb_info.cmap); in hpfb_init_one() 358 fb_dealloc_cmap(&fb_info.cmap); in hpfb_remove_one()
|
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 | pmagb-b-fb.c | 104 if (regno >= info->cmap.len) in pmagbbfb_setcolreg() 266 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in pmagbbfb_probe() 347 fb_dealloc_cmap(&info->cmap); in pmagbbfb_probe() 368 fb_dealloc_cmap(&info->cmap); in pmagbbfb_remove()
|
D | ocfb.c | 181 if (regno >= info->cmap.len) { in ocfb_setcolreg() 348 ret = fb_alloc_cmap(&fbdev->info.cmap, PALETTE_SIZE, 0); in ocfb_probe() 364 fb_dealloc_cmap(&fbdev->info.cmap); in ocfb_probe() 378 fb_dealloc_cmap(&fbdev->info.cmap); in ocfb_remove()
|
D | skeletonfb.c | 781 if (fb_alloc_cmap(&info->cmap, cmap_len, 0)) in xxxfb_probe() 807 fb_dealloc_cmap(&info->cmap); in xxxfb_probe() 826 fb_dealloc_cmap(&info->cmap); in xxxfb_remove()
|
D | vesafb.c | 144 if (regno >= info->cmap.len) in vesafb_setcolreg() 186 fb_dealloc_cmap(&info->cmap); in vesafb_destroy() 460 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in vesafb_probe() 466 fb_dealloc_cmap(&info->cmap); in vesafb_probe()
|
D | tcx.c | 459 if (fb_alloc_cmap(&info->cmap, 256, 0)) in tcx_probe() 462 fb_set_cmap(&info->cmap, info); in tcx_probe() 480 fb_dealloc_cmap(&info->cmap); in tcx_probe() 496 fb_dealloc_cmap(&info->cmap); in tcx_remove()
|
/drivers/gpu/drm/ |
D | drm_fb_helper.c | 533 ret = fb_alloc_cmap(&info->cmap, 256, 0); in drm_fb_helper_alloc_fbi() 557 fb_dealloc_cmap(&info->cmap); in drm_fb_helper_alloc_fbi() 602 if (info->cmap.len) in drm_fb_helper_fini() 603 fb_dealloc_cmap(&info->cmap); in drm_fb_helper_fini() 883 static int setcmap_pseudo_palette(struct fb_cmap *cmap, struct fb_info *info) in setcmap_pseudo_palette() argument 888 if (cmap->start + cmap->len > 16) in setcmap_pseudo_palette() 891 for (i = 0; i < cmap->len; ++i) { in setcmap_pseudo_palette() 892 u16 red = cmap->red[i]; in setcmap_pseudo_palette() 893 u16 green = cmap->green[i]; in setcmap_pseudo_palette() 894 u16 blue = cmap->blue[i]; in setcmap_pseudo_palette() [all …]
|
/drivers/video/fbdev/aty/ |
D | mach64_cursor.c | 131 fg = ((info->cmap.red[fg_idx] & 0xff) << 24) | in atyfb_cursor() 132 ((info->cmap.green[fg_idx] & 0xff) << 16) | in atyfb_cursor() 133 ((info->cmap.blue[fg_idx] & 0xff) << 8) | 0xff; in atyfb_cursor() 135 bg = ((info->cmap.red[bg_idx] & 0xff) << 24) | in atyfb_cursor() 136 ((info->cmap.green[bg_idx] & 0xff) << 16) | in atyfb_cursor() 137 ((info->cmap.blue[bg_idx] & 0xff) << 8); in atyfb_cursor()
|
/drivers/staging/sm750fb/ |
D | sm750.c | 136 fg = ((info->cmap.red[fbcursor->image.fg_color] & 0xf800)) | in lynxfb_ops_cursor() 137 ((info->cmap.green[fbcursor->image.fg_color] & 0xfc00) >> 5) | in lynxfb_ops_cursor() 138 ((info->cmap.blue[fbcursor->image.fg_color] & 0xf800) >> 11); in lynxfb_ops_cursor() 140 bg = ((info->cmap.red[fbcursor->image.bg_color] & 0xf800)) | in lynxfb_ops_cursor() 141 ((info->cmap.green[fbcursor->image.bg_color] & 0xfc00) >> 5) | in lynxfb_ops_cursor() 142 ((info->cmap.blue[fbcursor->image.bg_color] & 0xf800) >> 11); in lynxfb_ops_cursor() 845 info->cmap.start, info->cmap.len, in lynxfb_set_fbinfo() 846 info->cmap.red, info->cmap.green, info->cmap.blue, in lynxfb_set_fbinfo() 847 info->cmap.transp); in lynxfb_set_fbinfo() 849 ret = fb_alloc_cmap(&info->cmap, 256, 0); in lynxfb_set_fbinfo() [all …]
|
/drivers/media/test-drivers/vivid/ |
D | vivid-osd.c | 200 if (regno >= info->cmap.len) in vivid_fb_setcolreg() 327 if (fb_alloc_cmap(&dev->fb_info.cmap, 256, 1)) { in vivid_fb_init_vidmode() 345 if (dev->fb_info.cmap.len) in vivid_fb_release_buffers() 346 fb_dealloc_cmap(&dev->fb_info.cmap); in vivid_fb_release_buffers()
|
/drivers/video/fbdev/via/ |
D | viafbdev.c | 817 ((info->cmap.red[fg_color] & 0xFFC0) << 14) | in viafb_cursor() 818 ((info->cmap.green[fg_color] & 0xFFC0) << 4) | in viafb_cursor() 819 ((info->cmap.blue[fg_color] & 0xFFC0) >> 6); in viafb_cursor() 821 ((info->cmap.red[bg_color] & 0xFFC0) << 14) | in viafb_cursor() 822 ((info->cmap.green[bg_color] & 0xFFC0) << 4) | in viafb_cursor() 823 ((info->cmap.blue[bg_color] & 0xFFC0) >> 6); in viafb_cursor() 826 ((info->cmap.red[fg_color] & 0xFF00) << 8) | in viafb_cursor() 827 (info->cmap.green[fg_color] & 0xFF00) | in viafb_cursor() 828 ((info->cmap.blue[fg_color] & 0xFF00) >> 8); in viafb_cursor() 830 ((info->cmap.red[bg_color] & 0xFF00) << 8) | in viafb_cursor() [all …]
|