Home
last modified time | relevance | path

Searched refs:dev_fd_ (Results 1 – 20 of 20) sorted by relevance

/hardware/qcom/display/msm8998/libdrmutils/
Ddrm_master.cpp83 dev_fd_ = drmOpen("msm_drm", nullptr); in Init()
84 if (dev_fd_ < 0) { in Init()
85 DRM_LOGE("drmOpen failed with error %d", dev_fd_); in Init()
93 drmClose(dev_fd_); in ~DRMMaster()
94 dev_fd_ = -1; in ~DRMMaster()
98 int ret = drmPrimeFDToHandle(dev_fd_, drm_buffer.fd, gem_handle); in CreateFbId()
115 if ((ret = drmIoctl(dev_fd_, DRM_IOCTL_MODE_ADDFB2, &cmd2))) { in CreateFbId()
119 int ret1 = drmIoctl(dev_fd_, DRM_IOCTL_GEM_CLOSE, &gem_close); in CreateFbId()
134 int ret = drmIoctl(dev_fd_, DRM_IOCTL_GEM_CLOSE, &gem_close); in RemoveFbId()
140 ret = drmIoctl(dev_fd_, DRM_IOCTL_MSM_RMFB2, &fb_id); in RemoveFbId()
[all …]
Ddrm_master.h73 void GetHandle(int *fd) { *fd = dev_fd_; } in GetHandle()
88 int dev_fd_ = -1; // Master fd for DRM variable
/hardware/qcom/sm8150/display/libdrmutils/
Ddrm_master.cpp84 dev_fd_ = drmOpen("msm_drm", nullptr); in Init()
85 if (dev_fd_ < 0) { in Init()
86 DRM_LOGE("drmOpen failed with error %d", dev_fd_); in Init()
94 drmClose(dev_fd_); in ~DRMMaster()
95 dev_fd_ = -1; in ~DRMMaster()
100 int ret = drmPrimeFDToHandle(dev_fd_, drm_buffer.fd, &gem_handle); in CreateFbId()
117 if ((ret = drmIoctl(dev_fd_, DRM_IOCTL_MODE_ADDFB2, &cmd2))) { in CreateFbId()
125 int ret1 = drmIoctl(dev_fd_, DRM_IOCTL_GEM_CLOSE, &gem_close); in CreateFbId()
137 ret = drmIoctl(dev_fd_, DRM_IOCTL_MSM_RMFB2, &fb_id); in RemoveFbId()
142 ret = drmModeRmFB(dev_fd_, fb_id); in RemoveFbId()
Ddrm_master.h73 void GetHandle(int *fd) { *fd = dev_fd_; } in GetHandle()
90 int dev_fd_ = -1; // Master fd for DRM variable
/hardware/qcom/display/msm8909w_3100/libdrmutils/
Ddrm_master.cpp83 dev_fd_ = drmOpen("msm_drm", nullptr); in Init()
84 if (dev_fd_ < 0) { in Init()
85 DRM_LOGE("drmOpen failed with error %d", dev_fd_); in Init()
93 drmClose(dev_fd_); in ~DRMMaster()
94 dev_fd_ = -1; in ~DRMMaster()
99 int ret = drmPrimeFDToHandle(dev_fd_, drm_buffer.fd, &gem_handle); in CreateFbId()
116 if ((ret = drmIoctl(dev_fd_, DRM_IOCTL_MODE_ADDFB2, &cmd2))) { in CreateFbId()
124 int ret1 = drmIoctl(dev_fd_, DRM_IOCTL_GEM_CLOSE, &gem_close); in CreateFbId()
136 ret = drmIoctl(dev_fd_, DRM_IOCTL_MSM_RMFB2, &fb_id); in RemoveFbId()
141 ret = drmModeRmFB(dev_fd_, fb_id); in RemoveFbId()
Ddrm_master.h73 void GetHandle(int *fd) { *fd = dev_fd_; } in GetHandle()
88 int dev_fd_ = -1; // Master fd for DRM variable
/hardware/qcom/display/msm8909/libdrmutils/
Ddrm_master.cpp83 dev_fd_ = drmOpen("msm_drm", nullptr); in Init()
84 if (dev_fd_ < 0) { in Init()
85 DRM_LOGE("drmOpen failed with error %d", dev_fd_); in Init()
93 drmClose(dev_fd_); in ~DRMMaster()
94 dev_fd_ = -1; in ~DRMMaster()
99 int ret = drmPrimeFDToHandle(dev_fd_, drm_buffer.fd, &gem_handle); in CreateFbId()
116 if ((ret = drmIoctl(dev_fd_, DRM_IOCTL_MODE_ADDFB2, &cmd2))) { in CreateFbId()
124 int ret1 = drmIoctl(dev_fd_, DRM_IOCTL_GEM_CLOSE, &gem_close); in CreateFbId()
136 ret = drmIoctl(dev_fd_, DRM_IOCTL_MSM_RMFB2, &fb_id); in RemoveFbId()
141 ret = drmModeRmFB(dev_fd_, fb_id); in RemoveFbId()
Ddrm_master.h73 void GetHandle(int *fd) { *fd = dev_fd_; } in GetHandle()
88 int dev_fd_ = -1; // Master fd for DRM variable
/hardware/qcom/sm7250/display/libdrmutils/
Ddrm_master.cpp85 dev_fd_ = drmOpen("msm_drm", nullptr); in Init()
86 if (dev_fd_ < 0) { in Init()
87 DRM_LOGE("drmOpen failed with error %d", dev_fd_); in Init()
95 drmClose(dev_fd_); in ~DRMMaster()
96 dev_fd_ = -1; in ~DRMMaster()
101 int ret = drmPrimeFDToHandle(dev_fd_, drm_buffer.fd, &gem_handle); in CreateFbId()
118 if ((ret = drmIoctl(dev_fd_, DRM_IOCTL_MODE_ADDFB2, &cmd2))) { in CreateFbId()
126 int ret1 = drmIoctl(dev_fd_, DRM_IOCTL_GEM_CLOSE, &gem_close); in CreateFbId()
138 ret = drmIoctl(dev_fd_, DRM_IOCTL_MSM_RMFB2, &fb_id); in RemoveFbId()
143 ret = drmModeRmFB(dev_fd_, fb_id); in RemoveFbId()
Ddrm_master.h73 void GetHandle(int *fd) { *fd = dev_fd_; } in GetHandle()
90 int dev_fd_ = -1; // Master fd for DRM variable
/hardware/qcom/sm7250/display/sde-drm/
Ddrm_panel_feature_mgr.cpp64 dev_fd_ = fd; in Init()
67 drmModeCrtc *crtc = drmModeGetCrtc(dev_fd_, res->crtcs[i]); in Init()
78 drmModeConnector *conn = drmModeGetConnector(dev_fd_, res->connectors[i]); in Init()
106 ret = drmModeDestroyPropertyBlob(dev_fd_, drm_prop_blob_ids_map_[prop_id]); in DeInit()
118 if (dev_fd_ < 0 || obj_id < 0) { in InitObjectProps()
119 DRM_LOGE("Invalid dev_fd_ %d or crtc_id %d", dev_fd_, obj_id); in InitObjectProps()
124 drmModeObjectGetProperties(dev_fd_, obj_id, obj_type); in InitObjectProps()
132 drmModePropertyRes *info = drmModeGetProperty(dev_fd_, props->props[j]); in InitObjectProps()
155 drmModePropertyBlobRes *blob = drmModeGetPropertyBlob(dev_fd_, blob_id); in ParseDsppCapabilities()
190 drmModePropertyBlobRes *blob = drmModeGetPropertyBlob(dev_fd_, blob_id); in ParseCapabilities()
[all …]
Ddrm_panel_feature_mgr.h58 int dev_fd_ = -1; variable
/hardware/qcom/sm7250/display/sdm/libs/core/drm/
Dhw_virtual_drm.cpp120 ret = drmIoctl(dev_fd_, DRM_IOCTL_SDE_WB_CONFIG, &wb_cfg); in SetWbConfigs()
Dhw_device_drm.h262 int dev_fd_ = -1; variable
Dhw_peripheral_drm.cpp498 ret = drmIoctl(dev_fd_, DRM_IOCTL_SDE_WB_CONFIG, &cwb_cfg); in SetupConcurrentWritebackModes()
Dhw_device_drm.cpp494 drm_master->GetHandle(&dev_fd_); in Init()
495 DRMLibLoader::GetInstance()->FuncGetDRMManager()(dev_fd_, &drm_mgr_intf_); in Init()
/hardware/qcom/sm8150/display/sdm/libs/core/drm/
Dhw_virtual_drm.cpp114 ret = drmIoctl(dev_fd_, DRM_IOCTL_SDE_WB_CONFIG, &wb_cfg); in SetWbConfigs()
Dhw_device_drm.h210 int dev_fd_ = -1; variable
Dhw_peripheral_drm.cpp391 ret = drmIoctl(dev_fd_, DRM_IOCTL_SDE_WB_CONFIG, &cwb_cfg); in SetupConcurrentWritebackModes()
Dhw_device_drm.cpp456 drm_master->GetHandle(&dev_fd_); in Init()
457 DRMLibLoader::GetInstance()->FuncGetDRMManager()(dev_fd_, &drm_mgr_intf_); in Init()