Lines Matching refs:fbcmap
643 struct fbcmap fbcmap; in xf86SbusCmapLoadPalette() local
649 fbcmap.count = 0; in xf86SbusCmapLoadPalette()
650 fbcmap.index = indices[0]; in xf86SbusCmapLoadPalette()
651 fbcmap.red = data = xallocarray(numColors, 3); in xf86SbusCmapLoadPalette()
654 fbcmap.green = data + numColors; in xf86SbusCmapLoadPalette()
655 fbcmap.blue = fbcmap.green + numColors; in xf86SbusCmapLoadPalette()
658 if (fbcmap.count && index != fbcmap.index + fbcmap.count) { in xf86SbusCmapLoadPalette()
659 ioctl(cmap->psdp->fd, FBIOPUTCMAP, &fbcmap); in xf86SbusCmapLoadPalette()
660 fbcmap.count = 0; in xf86SbusCmapLoadPalette()
661 fbcmap.index = index; in xf86SbusCmapLoadPalette()
663 fbcmap.red[fbcmap.count] = colors[index].red; in xf86SbusCmapLoadPalette()
664 fbcmap.green[fbcmap.count] = colors[index].green; in xf86SbusCmapLoadPalette()
665 fbcmap.blue[fbcmap.count++] = colors[index].blue; in xf86SbusCmapLoadPalette()
667 ioctl(cmap->psdp->fd, FBIOPUTCMAP, &fbcmap); in xf86SbusCmapLoadPalette()
675 struct fbcmap fbcmap; in xf86SbusCmapCloseScreen() local
679 fbcmap.index = 0; in xf86SbusCmapCloseScreen()
680 fbcmap.count = 16; in xf86SbusCmapCloseScreen()
681 fbcmap.red = cmap->origRed; in xf86SbusCmapCloseScreen()
682 fbcmap.green = cmap->origGreen; in xf86SbusCmapCloseScreen()
683 fbcmap.blue = cmap->origBlue; in xf86SbusCmapCloseScreen()
684 ioctl(cmap->psdp->fd, FBIOPUTCMAP, &fbcmap); in xf86SbusCmapCloseScreen()
695 struct fbcmap fbcmap; in xf86SbusHandleColormaps() local
704 fbcmap.index = 0; in xf86SbusHandleColormaps()
705 fbcmap.count = 16; in xf86SbusHandleColormaps()
706 fbcmap.red = cmap->origRed; in xf86SbusHandleColormaps()
707 fbcmap.green = cmap->origGreen; in xf86SbusHandleColormaps()
708 fbcmap.blue = cmap->origBlue; in xf86SbusHandleColormaps()
709 if (ioctl(psdp->fd, FBIOGETCMAP, &fbcmap) >= 0) in xf86SbusHandleColormaps()
711 fbcmap.index = 0; in xf86SbusHandleColormaps()
712 fbcmap.count = 2; in xf86SbusHandleColormaps()
713 fbcmap.red = data; in xf86SbusHandleColormaps()
714 fbcmap.green = data; in xf86SbusHandleColormaps()
715 fbcmap.blue = data; in xf86SbusHandleColormaps()
724 ioctl(psdp->fd, FBIOPUTCMAP, &fbcmap); in xf86SbusHandleColormaps()