Home
last modified time | relevance | path

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

/hardware/invensense/60xx/libsensors_iio/
DSensorBase.cpp34 dev_fd(-1), in SensorBase()
47 if (dev_fd >= 0) { in ~SensorBase()
48 close(dev_fd); in ~SensorBase()
54 if (dev_fd<0 && dev_name) { in open_device()
55 dev_fd = open(dev_name, O_RDONLY); in open_device()
56 LOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno)); in open_device()
63 if (dev_fd >= 0) { in close_device()
64 close(dev_fd); in close_device()
65 dev_fd = -1; in close_device()
73 return dev_fd; in getFd()
DSensorBase.h39 int dev_fd; variable
/hardware/invensense/60xx/libsensors/
DSensorBase.cpp37 dev_fd(-1), data_fd(-1) in SensorBase()
48 if (dev_fd >= 0) { in ~SensorBase()
49 close(dev_fd); in ~SensorBase()
54 if (dev_fd<0 && dev_name) { in open_device()
55 dev_fd = open(dev_name, O_RDONLY); in open_device()
56 ALOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno)); in open_device()
62 if (dev_fd >= 0) { in close_device()
63 close(dev_fd); in close_device()
64 dev_fd = -1; in close_device()
71 return dev_fd; in getFd()
DSensorBase.h35 int dev_fd; variable
/hardware/akm/AK8975_FS/libsensors/
DSensorBase.cpp37 dev_fd(-1), data_fd(-1) in SensorBase()
48 if (dev_fd >= 0) { in ~SensorBase()
49 close(dev_fd); in ~SensorBase()
54 if (dev_fd<0 && dev_name) { in open_device()
55 dev_fd = open(dev_name, O_RDONLY); in open_device()
56 ALOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno)); in open_device()
62 if (dev_fd >= 0) { in close_device()
63 close(dev_fd); in close_device()
64 dev_fd = -1; in close_device()
91 return dev_fd; in getFd()
DKionixSensor.cpp94 err = ioctl(dev_fd, KIONIX_IOCTL_ENABLE_OUTPUT); in setEnable()
99 err = ioctl(dev_fd, KIONIX_IOCTL_DISABLE_OUTPUT); in setEnable()
137 if (ioctl(dev_fd, KIONIX_IOCTL_UPDATE_ODR, &ms)) { in setDelay()
DSensorBase.h35 int dev_fd; variable
/hardware/invensense/65xx/libsensors_iio/
DSensorBase.cpp49 dev_fd(-1), in SensorBase()
96 if (dev_fd >= 0) { in ~SensorBase()
97 close(dev_fd); in ~SensorBase()
103 if (dev_fd<0 && dev_name) { in open_device()
104 dev_fd = open(dev_name, O_RDONLY); in open_device()
105 LOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno)); in open_device()
112 if (dev_fd >= 0) { in close_device()
113 close(dev_fd); in close_device()
114 dev_fd = -1; in close_device()
122 return dev_fd; in getFd()
DSensorBase.h73 int dev_fd; variable
/hardware/invensense/6515/libsensors_iio/
DSensorBase.cpp50 dev_fd(-1), in SensorBase()
101 if (dev_fd >= 0) { in ~SensorBase()
102 close(dev_fd); in ~SensorBase()
108 if (dev_fd<0 && dev_name) { in open_device()
109 dev_fd = open(dev_name, O_RDONLY); in open_device()
110 LOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno)); in open_device()
117 if (dev_fd >= 0) { in close_device()
118 close(dev_fd); in close_device()
119 dev_fd = -1; in close_device()
127 return dev_fd; in getFd()
DSensorBase.h74 int dev_fd; variable
/hardware/samsung_slsi/exynos5/include/
Ds5p_fimc_v4l2.h152 int dev_fd; member
Dsec_g2d.h231 int dev_fd; member