Lines Matching refs:fPtr
380 CrimePtr fPtr;
397 fPtr = CRIMEPTR(pScrn);
399 fPtr->pEnt = xf86GetEntityInfo(pScrn->entityList[0]);
406 dev = xf86FindOptionValue(fPtr->pEnt->device->options, "device");
407 fPtr->fd = crime_open(dev);
408 if (fPtr->fd == -1) {
412 if (ioctl(fPtr->fd, WSDISPLAYIO_GINFO, &fPtr->info) == -1) {
418 if (ioctl(fPtr->fd, WSDISPLAYIO_GTYPE, &wstype) == -1) {
426 default_depth = fPtr->info.depth <= 24 ? fPtr->info.depth : 24;
428 fPtr->info.depth, Support24bppFb|Support32bppFb))
461 pScrn->videoRam = fPtr->info.width * 4 * 2048;
468 if (!(fPtr->Options = xalloc(sizeof(CrimeOptions))))
470 memcpy(fPtr->Options, CrimeOptions, sizeof(CrimeOptions));
471 xf86ProcessOptions(pScrn->scrnIndex, fPtr->pEnt->device->options,
472 fPtr->Options);
482 mode->HDisplay = fPtr->info.width;
487 mode->VDisplay = fPtr->info.height;
498 pScrn->virtualX = fPtr->info.width;
499 pScrn->virtualY = fPtr->info.height;
506 fPtr->HWCursor = TRUE;
507 if (xf86GetOptValBool(fPtr->Options, OPTION_HW_CURSOR, &fPtr->HWCursor))
509 if (xf86ReturnOptValBool(fPtr->Options, OPTION_SW_CURSOR, FALSE)) {
511 fPtr->HWCursor = FALSE;
514 fPtr->HWCursor ? "HW" : "SW");
541 CrimePtr fPtr = CRIMEPTR(pScrn);
558 if (ioctl(fPtr->fd, WSDISPLAYIO_SMODE, &wsmode) == -1) {
564 fPtr->engine = crime_mmap(0x5000, 0x15000000, fPtr->fd, 0);
566 if (fPtr->engine == NULL) {
572 fPtr->linear = crime_mmap(0x10000, 0x15010000, fPtr->fd, 0);
573 if (fPtr->linear == NULL) {
579 memset(fPtr->linear, 0, 0x10000);
581 fPtr->fb = crime_mmap(8192 * fPtr->info.height, 0, fPtr->fd, 1);
582 if (fPtr->fb == NULL) {
588 fPtr->fb = malloc(8192 * fPtr->info.height);
589 if (fPtr->fb == NULL) {
612 fPtr->fb,
646 if (fPtr) {
648 fPtr->pXAA = XAACreateInfoRec();
651 bx.x2 = fPtr->info.width;
654 if(!XAAInit(pScreen, fPtr->pXAA))
687 fPtr->CloseScreen = pScreen->CloseScreen;
697 CrimePtr fPtr = CRIMEPTR(pScrn);
701 if (munmap(fPtr->engine, 0x5000) == -1) {
706 if (munmap(fPtr->linear, 0x10000) == -1) {
711 if (munmap(fPtr->fb, 8192 * fPtr->info.height) == -1) {
716 free(fPtr->fb);
719 fPtr->engine = NULL;
720 fPtr->linear = NULL;
725 pScreen->CloseScreen = fPtr->CloseScreen;
762 CrimePtr fPtr = CRIMEPTR(pScrn);
778 if (ioctl(fPtr->fd,WSDISPLAYIO_PUTCMAP, &cmap) == -1)
795 if (ioctl(fPtr->fd, WSDISPLAYIO_GETCMAP, &cmap) == -1)
804 if (ioctl(fPtr->fd,WSDISPLAYIO_PUTCMAP, &cmap) == -1)
813 CrimePtr fPtr = CRIMEPTR(pScrn);
822 ioctl(fPtr->fd,
837 CrimePtr fPtr = CRIMEPTR(pScrn);
842 if (ioctl(fPtr->fd, WSDISPLAYIO_SMODE, &mode) == -1) {