/hardware/google/graphics/common/libhwc2.1/libdrmresource/include/ |
D | autofd.h | 27 UniqueFd(int fd) : fd_(fd) { in UniqueFd() 30 fd_ = rhs.fd_; in UniqueFd() 31 rhs.fd_ = -1; in UniqueFd() 40 if (fd_ >= 0) in ~UniqueFd() 41 close(fd_); in ~UniqueFd() 45 int old_fd = fd_; in Release() 46 fd_ = -1; in Release() 51 if (fd_ >= 0) in Set() 52 close(fd_); in Set() 53 fd_ = fd; in Set() [all …]
|
D | drmdevice.h | 40 return fd_.get(); in fd() 107 UniqueFd fd_; variable
|
/hardware/google/aemu/base/include/aemu/base/files/ |
D | ScopedFd.h | 35 ScopedFd() : fd_(-1) {} in ScopedFd() 38 explicit ScopedFd(int fd) : fd_(fd) {} in ScopedFd() 41 ScopedFd(ScopedFd&& other) : fd_(other.fd_) { in ScopedFd() 42 other.fd_ = -1; in ScopedFd() 54 int get() const { return fd_; } in get() 58 int fd = fd_; in release() 59 fd_ = -1; in release() 64 bool valid() const { return fd_ >= 0; } in valid() 68 if (fd_ != -1) { in close() 70 ::close(fd_); in close() [all …]
|
/hardware/google/graphics/common/libhwjpeg/ |
D | FileLock.cpp | 5 FileLock::FileLock(int fd) : fd_(fd) {} in FileLock() 8 return lockf(fd_, F_LOCK, 0); in lock() 12 return lockf(fd_, F_ULOCK, 0); in unlock()
|
/hardware/qcom/sm7250/display/sde-drm/ |
D | drm_encoder.h | 48 explicit DRMEncoder(int fd) : fd_(fd) {} in DRMEncoder() 49 DRMEncoder(int fd, uint32_t id, uint32_t type) : fd_(fd), fake_id_(id), fake_type_(type) {} in DRMEncoder() 68 int fd_ = -1; 80 explicit DRMEncoderManager(int fd) : fd_(fd) {} in DRMEncoderManager() 94 int fd_ = -1;
|
D | drm_manager.cpp | 93 fd_ = drm_fd; in Init() 95 drmSetClientCap(fd_, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1); in Init() 96 drmSetClientCap(fd_, DRM_CLIENT_CAP_ATOMIC, 1); in Init() 98 drmModeRes *resource = drmModeGetResources(fd_); in Init() 104 conn_mgr_ = new DRMConnectorManager(fd_); in Init() 111 encoder_mgr_ = new DRMEncoderManager(fd_); in Init() 118 crtc_mgr_ = new DRMCrtcManager(fd_); in Init() 125 plane_mgr_ = new DRMPlaneManager(fd_); in Init() 134 dpps_mgr_intf_->Init(fd_, resource); in Init() 141 panel_feature_mgr_intf_->Init(fd_, resource); in Init() [all …]
|
D | drm_connector.h | 51 explicit DRMConnector(int fd) : fd_(fd) {} in DRMConnector() 75 int fd_ = -1; variable 85 explicit DRMConnectorManager(int fd) : fd_(fd) {} in DRMConnectorManager() 101 int fd_ = -1;
|
D | drm_encoder.cpp | 62 unique_ptr<DRMEncoder> encoder(new DRMEncoder(fd_)); in Init() 63 drmModeEncoder *libdrm_encoder = drmModeGetEncoder(fd_, resource->encoders[i]); in Init() 109 unique_ptr<DRMEncoder> sec_dsi_enc(new DRMEncoder(fd_, enc_id, DRM_MODE_ENCODER_DSI)); in InsertSecondaryDSI() 257 drm_encoder_->possible_crtcs, drm_encoder_->possible_clones, fd_); in Dump() 259 DRM_LOGI("[userspace-only] id: %u encoder_type: %u fd = %d ", fake_id_, fake_type_, fd_); in Dump()
|
D | drm_crtc.h | 83 int fd_ = -1; variable 100 explicit DRMCrtcManager(int fd) : fd_(fd) {} in DRMCrtcManager() 113 int fd_ = -1;
|
D | drm_crtc.cpp | 122 unique_ptr<DRMCrtc> crtc(new DRMCrtc(fd_, i)); in Init() 123 drmModeCrtc *libdrm_crtc = drmModeGetCrtc(fd_, resource->crtcs[i]); in Init() 161 drmModeCreatePropertyBlob(fd_, reinterpret_cast<void *>(lut_info.dir_lut), in SetScalerLUT() 165 drmModeCreatePropertyBlob(fd_, reinterpret_cast<void *>(lut_info.cir_lut), in SetScalerLUT() 169 drmModeCreatePropertyBlob(fd_, reinterpret_cast<void *>(lut_info.sep_lut), in SetScalerLUT() 176 drmModeDestroyPropertyBlob(fd_, dir_lut_blob_id_); in UnsetScalerLUT() 180 drmModeDestroyPropertyBlob(fd_, cir_lut_blob_id_); in UnsetScalerLUT() 184 drmModeDestroyPropertyBlob(fd_, sep_lut_blob_id_); in UnsetScalerLUT() 244 : DRMObject(prop_mgr_), fd_(fd), crtc_index_(crtc_index) {} in DRMCrtc() 254 drmModeObjectGetProperties(fd_, drm_crtc_->crtc_id, DRM_MODE_OBJECT_CRTC); in ParseProperties() [all …]
|
D | drm_plane.cpp | 301 DRMPlaneManager::DRMPlaneManager(int fd) : fd_(fd) {} in DRMPlaneManager() 304 drmModePlaneRes *resource = drmModeGetPlaneResources(fd_); in Init() 311 unique_ptr<DRMPlane> plane(new DRMPlane(fd_, i)); in Init() 312 drmModePlane *libdrm_plane = drmModeGetPlane(fd_, resource->planes[i]); in Init() 396 drmModeCreatePropertyBlob(fd_, reinterpret_cast<void *>(lut_info.dir_lut), in SetScalerLUT() 400 drmModeCreatePropertyBlob(fd_, reinterpret_cast<void *>(lut_info.cir_lut), in SetScalerLUT() 404 drmModeCreatePropertyBlob(fd_, reinterpret_cast<void *>(lut_info.sep_lut), in SetScalerLUT() 411 drmModeDestroyPropertyBlob(fd_, dir_lut_blob_id_); in UnsetScalerLUT() 415 drmModeDestroyPropertyBlob(fd_, cir_lut_blob_id_); in UnsetScalerLUT() 419 drmModeDestroyPropertyBlob(fd_, sep_lut_blob_id_); in UnsetScalerLUT() [all …]
|
D | drm_pp_manager.cpp | 48 DRMPPManager::DRMPPManager(int fd) : fd_(fd) { in DRMPPManager() 59 drmModeDestroyPropertyBlob(fd_, prop_info.blob_id); in ~DRMPPManager() 64 fd_ = -1; in ~DRMPPManager() 239 ret = drmModeDestroyPropertyBlob(fd_, prop_info->blob_id); in SetPPBlobProperty() 254 ret = drmModeCreatePropertyBlob(fd_, feature.payload, feature.payload_size, &blob_id); in SetPPBlobProperty()
|
D | drm_connector.cpp | 249 unique_ptr<DRMConnector> conn(new DRMConnector(fd_)); in Init() 250 drmModeConnector *libdrm_conn = drmModeGetConnector(fd_, resource->connectors[i]); in Init() 263 drmModeRes *resource = drmModeGetResources(fd_); in Update() 301 unique_ptr<DRMConnector> conn(new DRMConnector(fd_)); in Update() 302 drmModeConnector *libdrm_conn = drmModeGetConnector(fd_, drmconn.first); in Update() 447 drmModeObjectGetProperties(fd_, drm_connector_->connector_id, DRM_MODE_OBJECT_CONNECTOR); in ParseProperties() 454 drmModePropertyRes *info = drmModeGetProperty(fd_, props->props[j]); in ParseProperties() 491 drmModePropertyBlobRes *blob = drmModeGetPropertyBlob(fd_, blob_id); in ParseCapabilities() 556 drmModePropertyBlobRes *blob = drmModeGetPropertyBlob(fd_, blob_id); in ParseCapabilities() 575 drmModePropertyBlobRes *blob = drmModeGetPropertyBlob(fd_, blob_id); in ParseModeProperties() [all …]
|
D | drm_atomic_req.h | 58 int fd_ = -1; variable
|
D | drm_plane.h | 131 int fd_ = -1; variable 171 int fd_ = -1;
|
D | drm_pp_manager.h | 60 int fd_ = -1; variable
|
D | drm_atomic_req.cpp | 45 DRMAtomicReq::DRMAtomicReq(int fd, DRMManager *drm_mgr) : drm_mgr_(drm_mgr), fd_(fd) {} in DRMAtomicReq() 157 int ret = drmModeAtomicCommit(fd_, drm_atomic_req_, flags, nullptr); in CallAtomic()
|
D | drm_manager.h | 83 int fd_ = -1; variable
|
/hardware/google/pixel/power-libperfmgr/libperfmgr/ |
D | FileNode.cc | 67 fd_.reset(TEMP_FAILURE_RETRY(open(node_path_.c_str(), flags))); in Update() 69 if (fd_ == -1 || !android::base::WriteStringToFd(req_value, fd_)) { in Update() 72 << " with value: " << req_value << ", fd: " << fd_; in Update() 78 fsync(fd_); in Update() 85 fd_.reset(); in Update()
|
/hardware/qcom/sm7250/display/sdm/libs/utils/ |
D | fence.cpp | 46 Fence::Fence(int fd, const string &name) : fd_(fd), name_(name) { in Fence() 50 close(fd_); in ~Fence() 81 return (fence ? dup(fence->fd_) : -1); in Dup() 85 return (fence ? fence->fd_ : -1); in Get() 92 int fd1 = fence1 ? fence1->fd_ : -1; in Merge() 93 int fd2 = fence2 ? fence2->fd_ : -1; in Merge()
|
/hardware/libhardware/modules/camera/3_4/arc/ |
D | frame_buffer.h | 89 int GetFd() const { return fd_.get(); } in GetFd() 93 base::ScopedFD fd_;
|
D | frame_buffer.cpp | 65 : fd_(std::move(fd)), is_mapped_(false) { in V4L2FrameBuffer() 84 void* addr = mmap(NULL, buffer_size_, PROT_READ, MAP_SHARED, fd_.get(), 0); in Map()
|
/hardware/google/graphics/common/libhwjpeg/include/ |
D | FileLock.h | 15 int fd_;
|
/hardware/google/pixel/power-libperfmgr/libperfmgr/include/perfmgr/ |
D | FileNode.h | 54 android::base::unique_fd fd_; variable
|
/hardware/qcom/sm7250/display/sdm/include/utils/ |
D | fence.h | 106 int fd_ = -1; variable
|