Home
last modified time | relevance | path

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

12

/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/sm8150/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/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/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/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/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/sm8150/media/mm-video-v4l2/vidc/venc/inc/
Domx_video_common.h109 int dev_fd; member
/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/sm8150/media/mm-video-v4l2/vidc/vdec/src/
Domx_swvdec.cpp3651 m_buffer_array_ip[ii].ion_info.dev_fd= in buffer_allocate_ip()
3655 if (m_buffer_array_ip[ii].ion_info.dev_fd< 0) in buffer_allocate_ip()
3799 m_buffer_array_op[ii].ion_info.dev_fd= in buffer_allocate_op()
3803 if (m_buffer_array_op[ii].ion_info.dev_fd < 0) in buffer_allocate_op()
3931 m_buffer_array_ip[ii].ion_info.dev_fd= -1; in buffer_allocate_ip_info_array()
3994 m_buffer_array_op[ii].ion_info.dev_fd = -1; in buffer_allocate_op_info_array()
4750 p_ion_info->dev_fd = -EINVAL; in ion_memory_alloc_map()
4752 if ((p_ion_info->dev_fd = ion_open()) < 0) in ion_memory_alloc_map()
4754 OMX_SWVDEC_LOG_ERROR("failed to open ion device; fd = %d", p_ion_info->dev_fd); in ion_memory_alloc_map()
4767 rc = ion_alloc_fd(p_ion_info->dev_fd, p_ion_info->alloc_data.len, alignment, in ion_memory_alloc_map()
[all …]
Domx_vdec_v4l2.cpp755 drv_ctx.extradata_info.ion.dev_fd = -1; in omx_vdec()
6599 drv_ctx.ip_buf_ion_info[i].dev_fd = -1; in allocate_input_buffer()
9715 bool omx_vdec::alloc_map_gbm_memory(OMX_U32 w,OMX_U32 h,int dev_fd, in alloc_map_gbm_memory() argument
9723 if (!op_buf_gbm_info || dev_fd < 0 ) { in alloc_map_gbm_memory()
9728 gbm = gbm_create_device(dev_fd); in alloc_map_gbm_memory()
9824 ion_info->dev_fd = ion_open(); in alloc_map_ion_memory()
9825 if (ion_info->dev_fd < 0) { in alloc_map_ion_memory()
9826 DEBUG_PRINT_ERROR("opening ion device failed with ion_fd = %d", ion_info->dev_fd); in alloc_map_ion_memory()
9843 rc = ion_alloc_fd(ion_info->dev_fd, ion_info->alloc_data.len, 0, in alloc_map_ion_memory()
9849 ion_close(ion_info->dev_fd); in alloc_map_ion_memory()
[all …]
/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()
/hardware/qcom/sm8150/display/sdm/libs/core/drm/
Dhw_info_drm.cpp126 int dev_fd = -1; in Init() local
132 drm_master->GetHandle(&dev_fd); in Init()
133 DRMLibLoader::GetInstance()->FuncGetDRMManager()(dev_fd, &drm_mgr_intf_); in Init()
Dhw_device_drm.cpp1303 int dev_fd = -1; in DefaultCommit() local
1304 master->GetHandle(&dev_fd); in DefaultCommit()
1317 ret = drmModeSetCrtc(dev_fd, crtc_id, fb_id, 0 /* x */, 0 /* y */, &connector_id, in DefaultCommit()
1320 DLOGE("drmModeSetCrtc failed dev fd %d, fb_id %d, crtc id %d, connector id %d, %s", dev_fd, in DefaultCommit()
/hardware/qcom/sm8150/media/mm-video-v4l2/vidc/venc/src/
Domx_video_base.cpp2703 m_pInput_ion[i].dev_fd =-1; in use_input_buffer()
2875 m_pOutput_ion[i].dev_fd =-1; in use_output_buffer()
3461 m_pInput_ion[i].dev_fd = -1; in allocate_input_buffer()
3610 m_pOutput_ion[i].dev_fd = -1; in allocate_output_buffer()
5078 ion_info->dev_fd = ion_open(); in alloc_map_ion_memory()
5079 if (ion_info->dev_fd <= 0) { in alloc_map_ion_memory()
5114 rc = ion_alloc_fd(ion_info->dev_fd, ion_info->alloc_data.len, 0, in alloc_map_ion_memory()
5119 ion_close(ion_info->dev_fd); in alloc_map_ion_memory()
5121 ion_info->dev_fd = -1; in alloc_map_ion_memory()
5138 if (buf_ion_info->dev_fd >= 0) { in free_ion_memory()
[all …]
/hardware/qcom/sm8150/media/mm-video-v4l2/vidc/vdec/inc/
Domx_swvdec.h98 int dev_fd; member

12