Searched refs:pvfb (Results 1 – 1 of 1) sorted by relevance
| /OK3568_Linux_fs/external/xserver/hw/vfb/ |
| H A D | InitOutput.c | 509 vfbAllocateMmappedFramebuffer(vfbScreenInfoPtr pvfb) in vfbAllocateMmappedFramebuffer() argument 515 snprintf(pvfb->mmap_file, sizeof(pvfb->mmap_file), "%s/Xvfb_screen%d", in vfbAllocateMmappedFramebuffer() 516 pfbdir, (int) (pvfb - vfbScreens)); in vfbAllocateMmappedFramebuffer() 517 if (-1 == (pvfb->mmap_fd = open(pvfb->mmap_file, O_CREAT | O_RDWR, 0666))) { in vfbAllocateMmappedFramebuffer() 519 ErrorF("open %s failed, %s", pvfb->mmap_file, strerror(errno)); in vfbAllocateMmappedFramebuffer() 527 currentFileSize < pvfb->sizeInBytes; in vfbAllocateMmappedFramebuffer() 530 pvfb->sizeInBytes - currentFileSize); in vfbAllocateMmappedFramebuffer() 531 if (-1 == write(pvfb->mmap_fd, dummyBuffer, writeThisTime)) { in vfbAllocateMmappedFramebuffer() 533 ErrorF("write %s failed, %s", pvfb->mmap_file, strerror(errno)); in vfbAllocateMmappedFramebuffer() 540 pvfb->pXWDHeader = (XWDFileHeader *) mmap((caddr_t) NULL, pvfb->sizeInBytes, in vfbAllocateMmappedFramebuffer() [all …]
|