Searched refs:drmFd_ (Results 1 – 2 of 2) sorted by relevance
/ohos5.0/drivers/peripheral/display/hal/default_standard/src/display_gralloc/ |
H A D | drm_allocator.cpp | 32 drmFd_ = open(FILE_PATH, O_RDWR); in Init() 33 DISPLAY_CHK_RETURN((drmFd_ < 0), DISPLAY_FAILURE, in Init() 35 ret = drmDropMaster(drmFd_); in Init() 53 ret = drmIoctl(drmFd_, DRM_IOCTL_MODE_CREATE_DUMB, &dumb); in Allocate() 60 ret = drmPrimeHandleToFD(drmFd_, dumb.handle, DRM_CLOEXEC | DRM_RDWR, &fd); in Allocate() 74 ret = drmIoctl(drmFd_, DRM_IOCTL_MODE_DESTROY_DUMB, &destoryDumb); in Allocate() 89 ret = ioctl(drmFd_, DRM_IOCTL_HISILICON_GEM_FD_TO_PHYADDR, &args); in GetPhysicalAddr() 99 if (drmFd_ >= 0) { in ~DrmAllocator() 100 close(drmFd_); in ~DrmAllocator() 101 drmFd_ = -1; in ~DrmAllocator()
|
H A D | drm_allocator.h | 30 int32_t drmFd_ = -1; variable
|