Searched refs:dev_fd (Results 1 – 6 of 6) sorted by relevance
/device/htc/flounder/sensor_hub/libsensors/ |
D | SensorBase.cpp | 41 , dev_fd(-1) in SensorBase() 50 if (dev_fd >= 0) { in ~SensorBase() 51 close(dev_fd); in ~SensorBase() 56 if (dev_fd<0 && dev_name) { in open_device() 57 dev_fd = open(dev_name, O_RDONLY); in open_device() 58 ALOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno)); in open_device() 64 if (dev_fd >= 0) { in close_device() 65 close(dev_fd); in close_device() 66 dev_fd = -1; in close_device() 93 return dev_fd; in getFd()
|
D | SensorBase.h | 37 int dev_fd; variable
|
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_interface.c | 1308 int dev_fd = -1; in get_sensor_info() local 1318 dev_fd = open(dev_name, O_RDWR | O_NONBLOCK); in get_sensor_info() 1319 if (dev_fd < 0) { in get_sensor_info() 1325 rc = ioctl(dev_fd, MEDIA_IOC_DEVICE_INFO, &mdev_info); in get_sensor_info() 1328 close(dev_fd); in get_sensor_info() 1329 dev_fd = -1; in get_sensor_info() 1335 close(dev_fd); in get_sensor_info() 1336 dev_fd = -1; in get_sensor_info() 1349 rc = ioctl(dev_fd, MEDIA_IOC_ENUM_ENTITIES, &entity); in get_sensor_info() 1373 close(dev_fd); in get_sensor_info() [all …]
|
/device/lge/hammerhead/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_interface.c | 1248 int dev_fd = 0; in get_num_of_cameras() local 1260 dev_fd = open(dev_name, O_RDWR | O_NONBLOCK); in get_num_of_cameras() 1261 if (dev_fd < 0) { in get_num_of_cameras() 1267 rc = ioctl(dev_fd, MEDIA_IOC_DEVICE_INFO, &mdev_info); in get_num_of_cameras() 1270 close(dev_fd); in get_num_of_cameras() 1271 dev_fd = -1; in get_num_of_cameras() 1277 close(dev_fd); in get_num_of_cameras() 1278 dev_fd = -1; in get_num_of_cameras() 1287 rc = ioctl(dev_fd, MEDIA_IOC_ENUM_ENTITIES, &entity); in get_num_of_cameras() 1304 close(dev_fd); in get_num_of_cameras() [all …]
|
/device/asus/flo/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_interface.c | 1248 int dev_fd = 0; in get_num_of_cameras() local 1260 dev_fd = open(dev_name, O_RDWR | O_NONBLOCK); in get_num_of_cameras() 1261 if (dev_fd <= 0) { in get_num_of_cameras() 1267 rc = ioctl(dev_fd, MEDIA_IOC_DEVICE_INFO, &mdev_info); in get_num_of_cameras() 1270 close(dev_fd); in get_num_of_cameras() 1271 dev_fd = 0; in get_num_of_cameras() 1277 close(dev_fd); in get_num_of_cameras() 1278 dev_fd = 0; in get_num_of_cameras() 1287 rc = ioctl(dev_fd, MEDIA_IOC_ENUM_ENTITIES, &entity); in get_num_of_cameras() 1304 close(dev_fd); in get_num_of_cameras() [all …]
|
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/ |
D | mm_camera_interface.c | 1099 int dev_fd = 0; in camera_query() local 1114 dev_fd = open(dev_name, O_RDWR | O_NONBLOCK); in camera_query() 1115 if (dev_fd < 0) { in camera_query() 1120 rc = ioctl(dev_fd, MEDIA_IOC_DEVICE_INFO, &mdev_info); in camera_query() 1123 close(dev_fd); in camera_query() 1128 close(dev_fd); in camera_query() 1149 close(dev_fd); in camera_query() 1158 rc = ioctl(dev_fd, MEDIA_IOC_ENUM_ENTITIES, &entity); in camera_query() 1201 if (dev_fd > 0) { in camera_query() 1202 close(dev_fd); in camera_query()
|