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.cpp35 drm_(drm) { in DrmEventListener()
58 FD_SET(drm_->fd(), &fds_); in Init()
60 max_fd_ = std::max(drm_->fd(), uevent_fd_.get()); in Init()
127 if (FD_ISSET(drm_->fd(), &fds_)) { in Routine()
132 drmHandleEvent(drm_->fd(), &event_context); in Routine()
Dvsyncworker.cpp36 drm_(NULL), in VSyncWorker()
46 drm_ = drm; in Init()
95 DrmConnector *conn = drm_->GetConnectorForDisplay(display_); in SyntheticWaitVBlank()
135 DrmCrtc *crtc = drm_->GetCrtcForDisplay(display); in Routine()
149 ret = drmWaitVBlank(drm_->fd(), &vblank); in Routine()
Dplatformdrmgeneric.cpp50 DrmGenericImporter::DrmGenericImporter(DrmResources *drm) : drm_(drm) { in DrmGenericImporter()
92 int ret = drmPrimeFDToHandle(drm_->fd(), gr_handle->prime_fd, &gem_handle); in ImportBuffer()
106 ret = drmModeAddFB2(drm_->fd(), bo->width, bo->height, bo->format, in ImportBuffer()
118 if (drmModeRmFB(drm_->fd(), bo->fb_id)) in ReleaseBuffer()
129 int ret = drmIoctl(drm_->fd(), DRM_IOCTL_GEM_CLOSE, &gem_close); in ReleaseBuffer()
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.cpp221 drm_(NULL), in DrmDisplayCompositor()
247 drm_->DestroyPropertyBlob(mode_.blob_id); in ~DrmDisplayCompositor()
249 drm_->DestroyPropertyBlob(mode_.old_blob_id); in ~DrmDisplayCompositor()
255 drm_ = drm; in Init()
316 DrmConnector *connector = drm_->GetConnectorForDisplay(display_); in GetActiveModeResolution()
454 ret = drmModeAtomicCommit(drm_->fd(), pset, 0, drm_); in DisablePlanes()
565 DrmConnector *connector = drm_->GetConnectorForDisplay(display_); in CommitFrame()
570 DrmCrtc *crtc = drm_->GetCrtcForDisplay(display_); in CommitFrame()
747 ret = drmModeAtomicCommit(drm_->fd(), pset, flags, drm_); in CommitFrame()
761 ret = drm_->DestroyPropertyBlob(mode_.old_blob_id); in CommitFrame()
[all …]
Dplatformnv.cpp51 NvImporter::NvImporter(DrmResources *drm) : drm_(drm) { in NvImporter()
95 drm_->fd(), handle, &buf->bo); in ImportBuffer()
102 ret = drmModeAddFB2(drm_->fd(), buf->bo.width, buf->bo.height, buf->bo.format, in ImportBuffer()
148 int ret = drmModeRmFB(drm_->fd(), bo->fb_id); in ReleaseBufferImpl()
161 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_;
Ddrmcomposition.h64 DrmResources *drm_; variable
Ddrmplane.h59 DrmResources *drm_;
Ddrmconnector.h72 DrmResources *drm_;
Dplatformnv.h53 DrmResources *drm_; variable
Dhwcomposer.cpp131 drm_ = drm; in Init()
136 for (auto &conn : drm_->connectors()) { in HandleEvent()
161 int ret = drm_->SetDisplayActiveMode(conn->display(), mode); in HandleEvent()
167 int ret = drm_->SetDpmsMode(conn->display(), DRM_MODE_DPMS_OFF); in HandleEvent()
180 DrmResources *drm_ = NULL; member in android::DrmHotplugHandler
Ddrmdisplaycomposition.h194 DrmResources *drm_ = NULL; variable
Ddrmdisplaycompositor.h161 DrmResources *drm_; variable
Ddrmdisplaycomposition.cpp47 drm_ = drm; in Init()