Home
last modified time | relevance | path

Searched refs:dev_fd (Results 1 – 17 of 17) sorted by relevance

/hardware/qcom/display/msm8998/libdrmutils/
Ddrm_res_mgr.cpp46 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/
Ddrm_res_mgr.cpp46 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/
Ddrm_res_mgr.cpp46 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/
Ddrm_res_mgr.cpp46 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/
DSensorBase.cpp50 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()
DSensorBase.h73 int dev_fd; variable
/hardware/invensense/6515/libsensors_iio/
DSensorBase.cpp52 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()
DSensorBase.h74 int dev_fd; variable
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_interface.c2388 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/
Dhw_device_drm.cpp93 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()
Dhw_info_drm.cpp101 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/
Dhw_device_drm.cpp315 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()
Dhw_info_drm.cpp117 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/
Dhw_device_drm.cpp310 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()
Dhw_info_drm.cpp111 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/
Dhw_info_drm.cpp108 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()
Dhw_device_drm.cpp1119 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()