Lines Matching refs:fbcmap
609 struct fbcmap fbcmap;
614 fbcmap.count = 0;
615 fbcmap.index = indices[0];
616 fbcmap.red = data;
617 fbcmap.green = data + numColors;
618 fbcmap.blue = fbcmap.green + numColors;
621 if (fbcmap.count && index != fbcmap.index + fbcmap.count) {
622 ret = ioctl (cmap->psdp->fd, FBIOPUTCMAP, &fbcmap);
626 fbcmap.count = 0;
627 fbcmap.index = index;
629 fbcmap.red[fbcmap.count] = colors[index].red;
630 fbcmap.green[fbcmap.count] = colors[index].green;
631 fbcmap.blue[fbcmap.count++] = colors[index].blue;
633 ret = ioctl (cmap->psdp->fd, FBIOPUTCMAP, &fbcmap);
644 struct fbcmap fbcmap;
648 fbcmap.index = 0;
649 fbcmap.count = 16;
650 fbcmap.red = cmap->origRed;
651 fbcmap.green = cmap->origGreen;
652 fbcmap.blue = cmap->origBlue;
653 ioctl (cmap->psdp->fd, FBIOPUTCMAP, &fbcmap);
664 struct fbcmap fbcmap;
674 fbcmap.index = 0;
675 fbcmap.count = 16;
676 fbcmap.red = cmap->origRed;
677 fbcmap.green = cmap->origGreen;
678 fbcmap.blue = cmap->origBlue;
679 if ((ret = ioctl (psdp->fd, FBIOGETCMAP, &fbcmap)) >= 0)
681 fbcmap.index = 0;
682 fbcmap.count = 2;
683 fbcmap.red = data;
684 fbcmap.green = data;
685 fbcmap.blue = data;
693 ret = ioctl (psdp->fd, FBIOPUTCMAP, &fbcmap);