Home
last modified time | relevance | path

Searched refs:drmFd (Results 1 – 15 of 15) sorted by relevance

/device/generic/goldfish-opengl/system/hwc3/
DDrmDisplay.cpp34 ::android::base::borrowed_fd drmFd) { in create() argument
60 okay &= request->Commit(drmFd); in create()
72 ::android::base::borrowed_fd drmFd, ::android::base::borrowed_fd inSyncFd, in flush() argument
100 okay &= request->Commit(drmFd); in flush()
112 bool DrmDisplay::onConnect(::android::base::borrowed_fd drmFd) { in onConnect() argument
127 okay &= request->Commit(drmFd); in onConnect()
136 bool DrmDisplay::onDisconnect(::android::base::borrowed_fd drmFd) { in onDisconnect() argument
149 okay &= request->Commit(drmFd); in onDisconnect()
159 DrmHotplugChange DrmDisplay::checkAndHandleHotplug(::android::base::borrowed_fd drmFd) { in checkAndHandleHotplug() argument
163 mConnector->update(drmFd); in checkAndHandleHotplug()
[all …]
DDrmConnector.cpp30 std::unique_ptr<DrmConnector> DrmConnector::create(::android::base::borrowed_fd drmFd, in create() argument
34 if (!connector->update(drmFd)) { in create()
41 bool DrmConnector::update(::android::base::borrowed_fd drmFd) { in update() argument
44 if (!LoadDrmProperties(drmFd, mId, DRM_MODE_OBJECT_CONNECTOR, GetPropertiesMap(), in update()
51 drmModeConnector* drmConnector = drmModeGetConnector(drmFd.get(), mId); in update()
61 auto mode = DrmMode::create(drmFd, drmConnector->modes[i]); in update()
73 std::optional<EdidInfo> maybeEdidInfo = loadEdid(drmFd); in update()
93 std::optional<EdidInfo> DrmConnector::loadEdid(::android::base::borrowed_fd drmFd) { in loadEdid() argument
102 auto blob = drmModeGetPropertyBlob(drmFd.get(), static_cast<uint32_t>(edidBlobId)); in loadEdid()
DDrmEventListener.cpp24 std::unique_ptr<DrmEventListener> DrmEventListener::create(::android::base::borrowed_fd drmFd, in create() argument
28 if (!listener->init(drmFd)) { in create()
35 bool DrmEventListener::init(::android::base::borrowed_fd drmFd) { in init() argument
54 FD_SET(drmFd.get(), &mMonitoredFds); in init()
56 mMaxMonitoredFd = std::max(drmFd.get(), mEventFd.get()); in init()
DDrmDisplay.h48 ::android::base::borrowed_fd drmFd);
65 ::android::base::borrowed_fd drmFd, ::android::base::borrowed_fd inWaitSyncFd,
68 DrmHotplugChange checkAndHandleHotplug(::android::base::borrowed_fd drmFd);
78 bool onConnect(::android::base::borrowed_fd drmFd);
80 bool onDisconnect(::android::base::borrowed_fd drmFd);
DDrmPlane.cpp21 std::unique_ptr<DrmPlane> DrmPlane::create(::android::base::borrowed_fd drmFd, uint32_t planeId) { in create() argument
25 if (!LoadDrmProperties(drmFd, planeId, DRM_MODE_OBJECT_PLANE, GetPropertiesMap(), in create()
31 drmModePlanePtr drmPlane = drmModeGetPlane(drmFd.get(), planeId); in create()
DDrmConnector.h40 static std::unique_ptr<DrmConnector> create(::android::base::borrowed_fd drmFd,
62 bool update(::android::base::borrowed_fd drmFd);
67 std::optional<EdidInfo> loadEdid(::android::base::borrowed_fd drmFd);
DDrmProperty.h61 bool LoadDrmProperties(::android::base::borrowed_fd drmFd, uint32_t objectId, uint32_t objectType, in LoadDrmProperties() argument
63 auto drmProperties = drmModeObjectGetProperties(drmFd.get(), objectId, objectType); in LoadDrmProperties()
72 auto drmProperty = drmModeGetProperty(drmFd.get(), propertyId); in LoadDrmProperties()
DDrmMode.cpp21 std::unique_ptr<DrmMode> DrmMode::create(::android::base::borrowed_fd drmFd, in create() argument
25 int ret = drmModeCreatePropertyBlob(drmFd.get(), &info, sizeof(info), &blobId); in create()
DDrmCrtc.cpp21 std::unique_ptr<DrmCrtc> DrmCrtc::create(::android::base::borrowed_fd drmFd, uint32_t crtcId, in create() argument
26 if (!LoadDrmProperties(drmFd, crtcId, DRM_MODE_OBJECT_CRTC, GetPropertiesMap(), crtc.get())) { in create()
DDrmEventListener.h36 static std::unique_ptr<DrmEventListener> create(::android::base::borrowed_fd drmFd,
44 bool init(::android::base::borrowed_fd drmFd);
DDrmAtomicRequest.cpp46 bool DrmAtomicRequest::Commit(::android::base::borrowed_fd drmFd) { in Commit() argument
49 int ret = drmModeAtomicCommit(drmFd.get(), mRequest, kCommitFlags, 0); in Commit()
DDrmAtomicRequest.h42 bool Commit(::android::base::borrowed_fd drmFd);
DDrmCrtc.h36 static std::unique_ptr<DrmCrtc> create(::android::base::borrowed_fd drmFd, uint32_t crtcId,
DDrmMode.h33 static std::unique_ptr<DrmMode> create(::android::base::borrowed_fd drmFd,
DDrmPlane.h37 static std::unique_ptr<DrmPlane> create(::android::base::borrowed_fd drmFd, uint32_t planeId);