/hardware/qcom/display/msm8998/libdrmutils/ |
D | drm_res_mgr.cpp | 46 static bool GetConnector(int dev_fd, drmModeRes *res, drmModeConnector **connector) { in GetConnector() argument 48 drmModeConnector *conn = drmModeGetConnector(dev_fd, res->connectors[i]); in GetConnector() 60 static bool GetEncoder(int dev_fd, drmModeConnector *conn, drmModeEncoder **encoder) { in GetEncoder() argument 62 drmModeEncoder *enc = drmModeGetEncoder(dev_fd, conn->encoders[i]); in GetEncoder() 72 static bool GetCrtc(int dev_fd, drmModeRes *res, drmModeEncoder *enc, drmModeCrtc **crtc) { in GetCrtc() argument 75 drmModeCrtc *c = drmModeGetCrtc(dev_fd, res->crtcs[i]); in GetCrtc() 107 int dev_fd = -1; in Init() local 114 master->GetHandle(&dev_fd); in Init() 115 drmModeRes *res = drmModeGetResources(dev_fd); in Init() 122 if (!GetConnector(dev_fd, res, &conn)) { in Init() [all …]
|
/hardware/qcom/display/msm8909/libdrmutils/ |
D | drm_res_mgr.cpp | 46 static bool GetConnector(int dev_fd, drmModeRes *res, drmModeConnector **connector) { in GetConnector() argument 48 drmModeConnector *conn = drmModeGetConnector(dev_fd, res->connectors[i]); in GetConnector() 60 static bool GetEncoder(int dev_fd, drmModeConnector *conn, drmModeEncoder **encoder) { in GetEncoder() argument 62 drmModeEncoder *enc = drmModeGetEncoder(dev_fd, conn->encoders[i]); in GetEncoder() 72 static bool GetCrtc(int dev_fd, drmModeRes *res, drmModeEncoder *enc, drmModeCrtc **crtc) { in GetCrtc() argument 75 drmModeCrtc *c = drmModeGetCrtc(dev_fd, res->crtcs[i]); in GetCrtc() 107 int dev_fd = -1; in Init() local 114 master->GetHandle(&dev_fd); in Init() 115 drmModeRes *res = drmModeGetResources(dev_fd); in Init() 122 if (!GetConnector(dev_fd, res, &conn)) { in Init() [all …]
|
/hardware/qcom/sdm845/display/libdrmutils/ |
D | drm_res_mgr.cpp | 46 static bool GetConnector(int dev_fd, drmModeRes *res, drmModeConnector **connector) { in GetConnector() argument 48 drmModeConnector *conn = drmModeGetConnector(dev_fd, res->connectors[i]); in GetConnector() 60 static bool GetEncoder(int dev_fd, drmModeConnector *conn, drmModeEncoder **encoder) { in GetEncoder() argument 62 drmModeEncoder *enc = drmModeGetEncoder(dev_fd, conn->encoders[i]); in GetEncoder() 72 static bool GetCrtc(int dev_fd, drmModeRes *res, drmModeEncoder *enc, drmModeCrtc **crtc) { in GetCrtc() argument 75 drmModeCrtc *c = drmModeGetCrtc(dev_fd, res->crtcs[i]); in GetCrtc() 107 int dev_fd = -1; in Init() local 114 master->GetHandle(&dev_fd); in Init() 115 drmModeRes *res = drmModeGetResources(dev_fd); in Init() 122 if (!GetConnector(dev_fd, res, &conn)) { in Init() [all …]
|
/hardware/qcom/display/msm8909w_3100/libdrmutils/ |
D | drm_res_mgr.cpp | 46 static bool GetConnector(int dev_fd, drmModeRes *res, drmModeConnector **connector) { in GetConnector() argument 48 drmModeConnector *conn = drmModeGetConnector(dev_fd, res->connectors[i]); in GetConnector() 60 static bool GetEncoder(int dev_fd, drmModeConnector *conn, drmModeEncoder **encoder) { in GetEncoder() argument 62 drmModeEncoder *enc = drmModeGetEncoder(dev_fd, conn->encoders[i]); in GetEncoder() 72 static bool GetCrtc(int dev_fd, drmModeRes *res, drmModeEncoder *enc, drmModeCrtc **crtc) { in GetCrtc() argument 75 drmModeCrtc *c = drmModeGetCrtc(dev_fd, res->crtcs[i]); in GetCrtc() 107 int dev_fd = -1; in Init() local 114 master->GetHandle(&dev_fd); in Init() 115 drmModeRes *res = drmModeGetResources(dev_fd); in Init() 122 if (!GetConnector(dev_fd, res, &conn)) { in Init() [all …]
|
/hardware/invensense/65xx/libsensors_iio/ |
D | SensorBase.cpp | 50 dev_fd(-1), in SensorBase() 97 if (dev_fd >= 0) { in ~SensorBase() 98 close(dev_fd); in ~SensorBase() 104 if (dev_fd<0 && dev_name) { in open_device() 105 dev_fd = open(dev_name, O_RDONLY); in open_device() 106 LOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno)); in open_device() 113 if (dev_fd >= 0) { in close_device() 114 close(dev_fd); in close_device() 115 dev_fd = -1; in close_device() 123 return dev_fd; in getFd()
|
D | SensorBase.h | 73 int dev_fd; variable
|
/hardware/invensense/6515/libsensors_iio/ |
D | SensorBase.cpp | 52 dev_fd(-1), in SensorBase() 103 if (dev_fd >= 0) { in ~SensorBase() 104 close(dev_fd); in ~SensorBase() 110 if (dev_fd<0 && dev_name) { in open_device() 111 dev_fd = open(dev_name, O_RDONLY); in open_device() 112 LOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno)); in open_device() 119 if (dev_fd >= 0) { in close_device() 120 close(dev_fd); in close_device() 121 dev_fd = -1; in close_device() 129 return dev_fd; in getFd()
|
D | SensorBase.h | 74 int dev_fd; variable
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_interface.c | 2388 int dev_fd = -1; in get_sensor_info() local 2397 dev_fd = open(dev_name, O_RDWR | O_NONBLOCK); in get_sensor_info() 2398 if (dev_fd < 0) { in get_sensor_info() 2404 rc = ioctl(dev_fd, MEDIA_IOC_DEVICE_INFO, &mdev_info); in get_sensor_info() 2407 close(dev_fd); in get_sensor_info() 2408 dev_fd = -1; in get_sensor_info() 2414 close(dev_fd); in get_sensor_info() 2415 dev_fd = -1; in get_sensor_info() 2431 rc = ioctl(dev_fd, MEDIA_IOC_ENUM_ENTITIES, &entity); in get_sensor_info() 2472 close(dev_fd); in get_sensor_info() [all …]
|
/hardware/qcom/display/msm8998/sdm/libs/core/drm/ |
D | hw_device_drm.cpp | 93 int dev_fd = -1; in Init() local 95 drm_master->GetHandle(&dev_fd); in Init() 96 DRMLibLoader::GetInstance()->FuncGetDRMManager()(dev_fd, &drm_mgr_intf_); in Init() 490 int dev_fd = -1; in DefaultCommit() local 491 master->GetHandle(&dev_fd); in DefaultCommit() 503 ret = drmModeSetCrtc(dev_fd, crtc_id, input_buffer.fb_id, 0 /* x */, 0 /* y */, &connector_id, in DefaultCommit() 506 DLOGE("drmModeSetCrtc failed dev fd %d, fb_id %d, crtc id %d, connector id %d, %s", dev_fd, in DefaultCommit()
|
D | hw_info_drm.cpp | 101 int dev_fd = -1; in HWInfoDRM() local 107 drm_master->GetHandle(&dev_fd); in HWInfoDRM() 108 DRMLibLoader::GetInstance()->FuncGetDRMManager()(dev_fd, &drm_mgr_intf_); in HWInfoDRM()
|
/hardware/qcom/display/msm8909/sdm/libs/core/drm/ |
D | hw_device_drm.cpp | 315 int dev_fd = -1; in Init() local 317 drm_master->GetHandle(&dev_fd); in Init() 318 drm_lib->FuncGetDRMManager()(dev_fd, &drm_mgr_intf_); in Init() 729 int dev_fd = -1; in DefaultCommit() local 730 master->GetHandle(&dev_fd); in DefaultCommit() 742 ret = drmModeSetCrtc(dev_fd, crtc_id, fb_id, 0 /* x */, 0 /* y */, &connector_id, in DefaultCommit() 745 DLOGE("drmModeSetCrtc failed dev fd %d, fb_id %d, crtc id %d, connector id %d, %s", dev_fd, in DefaultCommit()
|
D | hw_info_drm.cpp | 117 int dev_fd = -1; in HWInfoDRM() local 123 drm_master->GetHandle(&dev_fd); in HWInfoDRM() 124 drm_lib->FuncGetDRMManager()(dev_fd, &drm_mgr_intf_); in HWInfoDRM()
|
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/drm/ |
D | hw_device_drm.cpp | 310 int dev_fd = -1; in Init() local 312 drm_master->GetHandle(&dev_fd); in Init() 313 DRMLibLoader::GetInstance()->FuncGetDRMManager()(dev_fd, &drm_mgr_intf_); in Init() 724 int dev_fd = -1; in DefaultCommit() local 725 master->GetHandle(&dev_fd); in DefaultCommit() 737 ret = drmModeSetCrtc(dev_fd, crtc_id, fb_id, 0 /* x */, 0 /* y */, &connector_id, in DefaultCommit() 740 DLOGE("drmModeSetCrtc failed dev fd %d, fb_id %d, crtc id %d, connector id %d, %s", dev_fd, in DefaultCommit()
|
D | hw_info_drm.cpp | 111 int dev_fd = -1; in HWInfoDRM() local 117 drm_master->GetHandle(&dev_fd); in HWInfoDRM() 118 DRMLibLoader::GetInstance()->FuncGetDRMManager()(dev_fd, &drm_mgr_intf_); in HWInfoDRM()
|
/hardware/qcom/sdm845/display/sdm/libs/core/drm/ |
D | hw_info_drm.cpp | 108 int dev_fd = -1; in HWInfoDRM() local 114 drm_master->GetHandle(&dev_fd); in HWInfoDRM() 115 DRMLibLoader::GetInstance()->FuncGetDRMManager()(dev_fd, &drm_mgr_intf_); in HWInfoDRM()
|
D | hw_device_drm.cpp | 1119 int dev_fd = -1; in DefaultCommit() local 1120 master->GetHandle(&dev_fd); in DefaultCommit() 1133 ret = drmModeSetCrtc(dev_fd, crtc_id, fb_id, 0 /* x */, 0 /* y */, &connector_id, in DefaultCommit() 1136 DLOGE("drmModeSetCrtc failed dev fd %d, fb_id %d, crtc id %d, connector id %d, %s", dev_fd, in DefaultCommit()
|