Lines Matching refs:fbcmap
643 struct fbcmap fbcmap;
649 fbcmap.count = 0;
650 fbcmap.index = indices[0];
651 fbcmap.red = data = xallocarray(numColors, 3);
654 fbcmap.green = data + numColors;
655 fbcmap.blue = fbcmap.green + numColors;
658 if (fbcmap.count && index != fbcmap.index + fbcmap.count) {
659 ret = ioctl(cmap->psdp->fd, FBIOPUTCMAP, &fbcmap);
663 fbcmap.count = 0;
664 fbcmap.index = index;
666 fbcmap.red[fbcmap.count] = colors[index].red;
667 fbcmap.green[fbcmap.count] = colors[index].green;
668 fbcmap.blue[fbcmap.count++] = colors[index].blue;
670 ret = ioctl(cmap->psdp->fd, FBIOPUTCMAP, &fbcmap);
681 struct fbcmap fbcmap;
685 fbcmap.index = 0;
686 fbcmap.count = 16;
687 fbcmap.red = cmap->origRed;
688 fbcmap.green = cmap->origGreen;
689 fbcmap.blue = cmap->origBlue;
690 ioctl(cmap->psdp->fd, FBIOPUTCMAP, &fbcmap);
701 struct fbcmap fbcmap;
714 fbcmap.index = 0;
715 fbcmap.count = 16;
716 fbcmap.red = cmap->origRed;
717 fbcmap.green = cmap->origGreen;
718 fbcmap.blue = cmap->origBlue;
719 if (ioctl(psdp->fd, FBIOGETCMAP, &fbcmap) >= 0)
721 fbcmap.index = 0;
722 fbcmap.count = 2;
723 fbcmap.red = data;
724 fbcmap.green = data;
725 fbcmap.blue = data;
733 ret = ioctl(psdp->fd, FBIOPUTCMAP, &fbcmap);