/hardware/invensense/60xx/libsensors/ |
SensorBase.cpp | 37 dev_fd(-1), data_fd(-1) 48 if (dev_fd >= 0) { 49 close(dev_fd); 54 if (dev_fd<0 && dev_name) { 55 dev_fd = open(dev_name, O_RDONLY); 56 ALOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno)); 62 if (dev_fd >= 0) { 63 close(dev_fd); 64 dev_fd = -1; 71 return dev_fd; [all...] |
SensorBase.h | 35 int dev_fd; member in class:SensorBase
|
/hardware/invensense/60xx/libsensors_iio/ |
SensorBase.cpp | 34 dev_fd(-1),
47 if (dev_fd >= 0) {
48 close(dev_fd);
54 if (dev_fd<0 && dev_name) {
55 dev_fd = open(dev_name, O_RDONLY);
56 LOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno));
63 if (dev_fd >= 0) {
64 close(dev_fd);
65 dev_fd = -1;
73 return dev_fd;
[all...] |
SensorBase.h | 39 int dev_fd; member in class:SensorBase
|
/hardware/akm/AK8975_FS/libsensors/ |
SensorBase.cpp | 37 dev_fd(-1), data_fd(-1) 48 if (dev_fd >= 0) { 49 close(dev_fd); 54 if (dev_fd<0 && dev_name) { 55 dev_fd = open(dev_name, O_RDONLY); 56 ALOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno)); 62 if (dev_fd >= 0) { 63 close(dev_fd); 64 dev_fd = -1; 91 return dev_fd; [all...] |
SensorBase.h | 35 int dev_fd; member in class:SensorBase
|
KionixSensor.cpp | 94 err = ioctl(dev_fd, KIONIX_IOCTL_ENABLE_OUTPUT); 99 err = ioctl(dev_fd, KIONIX_IOCTL_DISABLE_OUTPUT); 137 if (ioctl(dev_fd, KIONIX_IOCTL_UPDATE_ODR, &ms)) {
|
/hardware/invensense/65xx/libsensors_iio/ |
SensorBase.cpp | 34 dev_fd(-1),
47 if (dev_fd >= 0) {
48 close(dev_fd);
54 if (dev_fd<0 && dev_name) {
55 dev_fd = open(dev_name, O_RDONLY);
56 LOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno));
63 if (dev_fd >= 0) {
64 close(dev_fd);
65 dev_fd = -1;
73 return dev_fd;
[all...] |
SensorBase.h | 72 int dev_fd; member in class:SensorBase
|
/hardware/ti/wlan/mac80211/ti-utils/uim_rfkill/ |
uim.c | 60 int dev_fd; variable 129 UIM_VER(" wrote %d bytes", (int)write(dev_fd, buffer, 4)); 130 UIM_VER(" reading %d bytes", (int)read(dev_fd, resp_buffer, 15)); 320 tcflush(dev_fd, TCIOFLUSH); 323 if (tcgetattr(dev_fd, &ti) < 0) { 338 tcsetattr(dev_fd, TCSANOW, &ti); 343 tcsetattr(dev_fd, TCSANOW, &ti); 345 tcflush(dev_fd, TCIOFLUSH); 367 tcflush(dev_fd, TCIOFLUSH); 380 if (tcsetattr(dev_fd, TCSANOW, &ti) < 0) [all...] |
/hardware/ti/wpan/ti_st/uim-sysfs/ |
uim.c | 45 int dev_fd; variable 52 if (dev_fd == -1) 57 close(dev_fd); 58 dev_fd = -1; 75 UIM_VER(" wrote %d bytes", (int)write(dev_fd, buffer, 4)); 76 UIM_VER(" reading %d bytes", (int)read(dev_fd, resp_buffer, 15)); 260 tcflush(dev_fd, TCIOFLUSH); 263 if (tcgetattr(dev_fd, &ti) < 0) { 278 tcsetattr(dev_fd, TCSANOW, &ti); 283 tcsetattr(dev_fd, TCSANOW, &ti) [all...] |
/hardware/samsung_slsi/exynos5/include/ |
s5p_fimc_v4l2.h | 152 int dev_fd; member in struct:_s5p_fimc_t
|
sec_g2d.h | 231 int dev_fd; member in struct:_sec_g2d_t
|
/system/extras/tests/iptables/qtaguid/ |
socketTag.cpp | 191 dev_fd = -1; 212 dev_fd = open("/dev/xt_qtaguid", O_RDONLY); 213 EXPECT_GE(dev_fd, 0) << "qtaguid dev open failed"; 228 if (dev_fd >= 0) { 229 close(dev_fd); 239 int dev_fd; member in class:android::SocketTaggingTest
|
/device/asus/flo/camera/QCamera2/stack/mm-camera-interface/src/ |
mm_camera_interface.c | 1248 int dev_fd = 0; local [all...] |
/hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/ |
mm_camera_interface.c | 1248 int dev_fd = 0; local [all...] |
/device/lge/mako/camera/QCamera/stack/mm-camera-interface/src/ |
mm_camera_interface.c | 746 int dev_fd = 0; local 761 dev_fd = open(dev_name, O_RDWR | O_NONBLOCK); 762 if (dev_fd < 0) { 767 rc = ioctl(dev_fd, MEDIA_IOC_DEVICE_INFO, &mdev_info); 770 close(dev_fd); 775 close(dev_fd); 796 close(dev_fd); 805 rc = ioctl(dev_fd, MEDIA_IOC_ENUM_ENTITIES, &entity); 848 if (dev_fd > 0) { 849 close(dev_fd); [all...] |
/device/lge/mako/camera/mm-camera-interface/ |
mm_camera_interface2.c | 595 int dev_fd = 0; local 606 dev_fd = open(dev_name, O_RDWR | O_NONBLOCK); 607 if (dev_fd < 0) { 612 rc = ioctl(dev_fd, MEDIA_IOC_DEVICE_INFO, &mdev_info); 615 close(dev_fd); 620 close(dev_fd); 641 close(dev_fd); 650 rc = ioctl(dev_fd, MEDIA_IOC_ENUM_ENTITIES, &entity); 689 if (dev_fd > 0) { 690 close(dev_fd); [all...] |
/external/ppp/pppd/ |
pppd.h | 595 void generic_disestablish_ppp __P((int dev_fd)); /* Restore device setting */ 596 int generic_establish_ppp __P((int dev_fd)); /* Make a ppp interface */ [all...] |
sys-linux.c | 590 void generic_disestablish_ppp(int dev_fd) [all...] |