Home
last modified time | relevance | path

Searched refs:drm_ (Results 1 – 23 of 23) sorted by relevance

/external/drm_hwcomposer/
Ddrmplane.cpp32 : drm_(drm), id_(p->plane_id), possible_crtc_mask_(p->possible_crtcs) { in DrmPlane()
38 int ret = drm_->GetPlaneProperty(*this, "type", &p); in Init()
61 ret = drm_->GetPlaneProperty(*this, "CRTC_ID", &crtc_property_); in Init()
67 ret = drm_->GetPlaneProperty(*this, "FB_ID", &fb_property_); in Init()
73 ret = drm_->GetPlaneProperty(*this, "CRTC_X", &crtc_x_property_); in Init()
79 ret = drm_->GetPlaneProperty(*this, "CRTC_Y", &crtc_y_property_); in Init()
85 ret = drm_->GetPlaneProperty(*this, "CRTC_W", &crtc_w_property_); in Init()
91 ret = drm_->GetPlaneProperty(*this, "CRTC_H", &crtc_h_property_); in Init()
97 ret = drm_->GetPlaneProperty(*this, "SRC_X", &src_x_property_); in Init()
103 ret = drm_->GetPlaneProperty(*this, "SRC_Y", &src_y_property_); in Init()
[all …]
Ddrmcompositor.cpp31 DrmCompositor::DrmCompositor(DrmResources *drm) : drm_(drm), frame_no_(0) { in DrmCompositor()
38 for (auto &conn : drm_->connectors()) { in Init()
40 int ret = compositor_map_[display].Init(drm_, display); in Init()
46 planner_ = Planner::CreateInstance(drm_); in Init()
58 new DrmComposition(drm_, importer, planner_.get())); in CreateComposition()
79 for (auto &conn : drm_->connectors()) { in QueueComposition()
103 for (auto &conn : drm_->connectors()) in Dump()
Ddrmcomposition.cpp36 : drm_(drm), importer_(importer), planner_(planner) { in DrmComposition()
50 for (auto &conn : drm_->connectors()) { in Init()
59 DrmCrtc *crtc = drm_->GetCrtcForDisplay(display); in Init()
61 int ret = composition_map_[display]->Init(drm_, crtc, importer_, planner_, in Init()
79 if (!drm_->GetConnectorForDisplay(display)) { in SetLayers()
108 for (auto &conn : drm_->connectors()) { in Plan()
123 for (auto &conn : drm_->connectors()) { in DisableUnusedPlanes()
136 DrmCrtc *crtc = drm_->GetCrtcForDisplay(display); in DisableUnusedPlanes()
Ddrmconnector.cpp33 : drm_(drm), in DrmConnector()
45 int ret = drm_->GetConnectorProperty(*this, "DPMS", &dpms_property_); in Init()
50 ret = drm_->GetConnectorProperty(*this, "CRTC_ID", &crtc_id_property_); in Init()
76 int fd = drm_->fd(); in UpdateModes()
100 m.set_id(drm_->next_mode_id()); in UpdateModes()
Ddrmeventlistener.cpp32 drm_(drm) { in DrmEventListener()
55 FD_SET(drm_->fd(), &fds_); in Init()
57 max_fd_ = std::max(drm_->fd(), uevent_fd_.get()); in Init()
124 if (FD_ISSET(drm_->fd(), &fds_)) { in Routine()
129 drmHandleEvent(drm_->fd(), &event_context); in Routine()
Dplatformdrmgeneric.cpp52 DrmGenericImporter::DrmGenericImporter(DrmResources *drm) : drm_(drm) { in DrmGenericImporter()
100 int ret = drmPrimeFDToHandle(drm_->fd(), gr_handle->prime_fd, &gem_handle); in ImportBuffer()
114 ret = drmModeAddFB2(drm_->fd(), bo->width, bo->height, bo->format, in ImportBuffer()
126 if (drmModeRmFB(drm_->fd(), bo->fb_id)) in ReleaseBuffer()
137 int ret = drmIoctl(drm_->fd(), DRM_IOCTL_GEM_CLOSE, &gem_close); in ReleaseBuffer()
Dvsyncworker.cpp36 drm_(NULL), in VSyncWorker()
46 drm_ = drm; in Init()
117 DrmConnector *conn = drm_->GetConnectorForDisplay(display_); in SyntheticWaitVBlank()
164 DrmCrtc *crtc = drm_->GetCrtcForDisplay(display); in Routine()
178 ret = drmWaitVBlank(drm_->fd(), &vblank); in Routine()
Ddrmcrtc.cpp30 : drm_(drm), in DrmCrtc()
43 int ret = drm_->GetCrtcProperty(*this, "ACTIVE", &active_property_); in Init()
49 ret = drm_->GetCrtcProperty(*this, "MODE_ID", &mode_property_); in Init()
Ddrmdisplaycompositor.cpp237 : drm_(NULL), in DrmDisplayCompositor()
266 drm_->DestroyPropertyBlob(mode_.blob_id); in ~DrmDisplayCompositor()
268 drm_->DestroyPropertyBlob(mode_.old_blob_id); in ~DrmDisplayCompositor()
284 drm_ = drm; in Init()
365 DrmConnector *connector = drm_->GetConnectorForDisplay(display_); in GetActiveModeResolution()
503 ret = drmModeAtomicCommit(drm_->fd(), pset, 0, drm_); in DisablePlanes()
614 DrmConnector *connector = drm_->GetConnectorForDisplay(display_); in CommitFrame()
619 DrmCrtc *crtc = drm_->GetCrtcForDisplay(display_); in CommitFrame()
796 ret = drmModeAtomicCommit(drm_->fd(), pset, flags, drm_); in CommitFrame()
810 ret = drm_->DestroyPropertyBlob(mode_.old_blob_id); in CommitFrame()
[all …]
Dplatformnv.cpp50 NvImporter::NvImporter(DrmResources *drm) : drm_(drm) { in NvImporter()
94 drm_->fd(), handle, &buf->bo); in ImportBuffer()
101 ret = drmModeAddFB2(drm_->fd(), buf->bo.width, buf->bo.height, buf->bo.format, in ImportBuffer()
147 int ret = drmModeRmFB(drm_->fd(), bo->fb_id); in ReleaseBufferImpl()
160 int ret = drmIoctl(drm_->fd(), DRM_IOCTL_GEM_CLOSE, &gem_close); in ReleaseBufferImpl()
Dplatformdrmgeneric.h40 DrmResources *drm_; variable
Dvsyncworker.h48 DrmResources *drm_; variable
Ddrmcompositor.h46 DrmResources *drm_; variable
Ddrmeventlistener.h60 DrmResources *drm_; variable
Ddrmcrtc.h50 DrmResources *drm_;
Dplatformnv.h53 DrmResources *drm_; variable
Ddrmcomposition.h64 DrmResources *drm_; variable
Ddrmplane.h59 DrmResources *drm_;
Ddrmconnector.h72 DrmResources *drm_;
Dhwcomposer.cpp132 drm_ = drm; in Init()
137 for (auto &conn : drm_->connectors()) { in HandleEvent()
162 int ret = drm_->SetDisplayActiveMode(conn->display(), mode); in HandleEvent()
168 int ret = drm_->SetDpmsMode(conn->display(), DRM_MODE_DPMS_OFF); in HandleEvent()
181 DrmResources *drm_ = NULL; member in android::DrmHotplugHandler
Ddrmdisplaycompositor.h158 DrmResources *drm_; variable
Ddrmdisplaycomposition.h194 DrmResources *drm_ = NULL; variable
Ddrmdisplaycomposition.cpp47 drm_ = drm; in Init()