Lines Matching refs:cmap
642 sbusCmapPtr cmap; in xf86SbusCmapLoadPalette() local
646 cmap = SBUSCMAPPTR(pScrn->pScreen); in xf86SbusCmapLoadPalette()
647 if (!cmap) in xf86SbusCmapLoadPalette()
659 ioctl(cmap->psdp->fd, FBIOPUTCMAP, &fbcmap); in xf86SbusCmapLoadPalette()
667 ioctl(cmap->psdp->fd, FBIOPUTCMAP, &fbcmap); in xf86SbusCmapLoadPalette()
674 sbusCmapPtr cmap; in xf86SbusCmapCloseScreen() local
677 cmap = SBUSCMAPPTR(pScreen); in xf86SbusCmapCloseScreen()
678 if (cmap->origCmapValid) { 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()
686 pScreen->CloseScreen = cmap->CloseScreen; in xf86SbusCmapCloseScreen()
687 free(cmap); in xf86SbusCmapCloseScreen()
694 sbusCmapPtr cmap; in xf86SbusHandleColormaps() local
701 cmap = xnfcalloc(1, sizeof(sbusCmapRec)); in xf86SbusHandleColormaps()
702 dixSetPrivate(&pScreen->devPrivates, sbusPaletteKey, cmap); in xf86SbusHandleColormaps()
703 cmap->psdp = psdp; in xf86SbusHandleColormaps()
706 fbcmap.red = cmap->origRed; in xf86SbusHandleColormaps()
707 fbcmap.green = cmap->origGreen; in xf86SbusHandleColormaps()
708 fbcmap.blue = cmap->origBlue; in xf86SbusHandleColormaps()
710 cmap->origCmapValid = TRUE; in xf86SbusHandleColormaps()
725 cmap->CloseScreen = pScreen->CloseScreen; in xf86SbusHandleColormaps()