Home
last modified time | relevance | path

Searched refs:fd_ (Results 1 – 7 of 7) sorted by relevance

/OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/xcore/
H A Dunique_fd.h29 UniqueFd() : fd_(-1) {} in UniqueFd()
30 explicit UniqueFd(int fd) : fd_(fd) {} in UniqueFd()
36 fd_ = Set(rhs.Release());
41 if (fd_ > 0) { in ~UniqueFd()
42 close(fd_); in ~UniqueFd()
47 int old_fd = fd_; in Release()
48 fd_ = -1; in Release()
52 int Get() const { return fd_; } in Get()
55 if (fd_ >= 0) { in Set()
56 close(fd_); in Set()
[all …]
H A Ddma_buffer.cpp34 DmaBuffer::DmaBuffer(int fd, size_t size) : fd_(fd), size_(size), ptr_(nullptr) {} in DmaBuffer()
74 return sync(fd_.Get(), direction, true); in beginCpuAccess()
79 return sync(fd_.Get(), direction, false); in endCpuAccess()
85 assert(((void)"could not map invalid dma_buf", fd_.Get() > 0 && ptr_ == nullptr && size_ > 0)); in map()
87 ptr_ = mmap(0, size_, PROT_READ | PROT_WRITE, MAP_SHARED, fd_.Get(), 0); in map()
97 assert(((void)"unmap dma_buf in wrong state", fd_.Get() > 0 && ptr_ != nullptr)); in unmap()
103 int DmaBuffer::getFd() { return fd_.Get(); } in getFd()
107 int DmaBuffer::release() { return fd_.Release(); } in release()
H A Ddrm_device.cpp47 DrmDevice::DrmDevice() : fd_(Open()) {} in DrmDevice()
85 if (fd_.Get() >= 0) { in Close()
86 drmClose(fd_.Get()); in Close()
108 ret = drmIoctl(fd_.Get(), DRM_IOCTL_MODE_CREATE_DUMB, &arg); in CreateDumbObject()
114 ret = drmPrimeHandleToFD(fd_.Get(), arg.handle, DRM_CLOEXEC | DRM_RDWR, in CreateDumbObject()
135 assert(fd_.Get() >= 0); in DestroyDumbObject()
144 ret = drmIoctl(fd_.Get(), DRM_IOCTL_MODE_DESTROY_DUMB, &arg); in DestroyDumbObject()
160 assert(fd_.Get() >= 0); in RequestMapDumbObject()
164 ret = drmIoctl(fd_.Get(), DRM_IOCTL_MODE_MAP_DUMB, &arg); in RequestMapDumbObject()
H A Ddma_buffer.h53 UniqueFd fd_;
H A Ddrm_device.h67 UniqueFd fd_; variable
/OK3568_Linux_fs/buildroot/package/glmark2/
H A D0002-NativeStateDRM-Honor-visual-configuration.patch47 - int status = drmModeAddFB(fd_, width, height, 24, 32, stride, handle, &fb_id);
48 + int status = drmModeAddFB(fd_, width, height, bpp, bpp, stride, handle, &fb_id);
/OK3568_Linux_fs/buildroot/package/google-breakpad/
H A D0002-Replace-remaining-references-to-struct-ucontext-with.patch247 const int fd_; // File descriptor where the minidum should be written.