/device/htc/flounder/sensor_hub/libsensors/ |
SensorBase.cpp | 41 , dev_fd(-1) 50 if (dev_fd >= 0) { 51 close(dev_fd); 56 if (dev_fd<0 && dev_name) { 57 dev_fd = open(dev_name, O_RDONLY); 58 ALOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno)); 64 if (dev_fd >= 0) { 65 close(dev_fd); 66 dev_fd = -1; 93 return dev_fd; [all...] |
SensorBase.h | 37 int dev_fd; member in class:SensorBase
|
/device/linaro/hikey/wpan/uim/ |
uim.c | 39 static int dev_fd; variable 51 void read_firmware_version(int dev_fd) 58 UIM_VER(" wrote %d bytes", (int)write(dev_fd, buffer, 4)); 59 UIM_VER(" reading %d bytes", (int)read(dev_fd, resp_buffer, 15)); 185 static int set_baud_rate(int dev_fd) 190 tcflush(dev_fd, TCIOFLUSH); 193 if (tcgetattr(dev_fd, &ti) < 0) { 208 tcsetattr(dev_fd, TCSANOW, &ti); 213 tcsetattr(dev_fd, TCSANOW, &ti); 215 tcflush(dev_fd, TCIOFLUSH) [all...] |
/hardware/akm/AK8975_FS/libsensors/ |
SensorBase.cpp | 38 dev_fd(-1), data_fd(-1) 49 if (dev_fd >= 0) { 50 close(dev_fd); 55 if (dev_fd<0 && dev_name) { 56 dev_fd = open(dev_name, O_RDONLY); 57 ALOGE_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; 92 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/6515/libsensors_iio/ |
SensorBase.cpp | 52 dev_fd(-1), 103 if (dev_fd >= 0) { 104 close(dev_fd); 110 if (dev_fd<0 && dev_name) { 111 dev_fd = open(dev_name, O_RDONLY); 112 LOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno)); 119 if (dev_fd >= 0) { 120 close(dev_fd); 121 dev_fd = -1; 129 return dev_fd; [all...] |
SensorBase.h | 74 int dev_fd; member in class:SensorBase
|
/hardware/invensense/65xx/libsensors_iio/ |
SensorBase.cpp | 50 dev_fd(-1), 97 if (dev_fd >= 0) { 98 close(dev_fd); 104 if (dev_fd<0 && dev_name) { 105 dev_fd = open(dev_name, O_RDONLY); 106 LOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno)); 113 if (dev_fd >= 0) { 114 close(dev_fd); 115 dev_fd = -1; 123 return dev_fd; [all...] |
SensorBase.h | 73 int dev_fd; member in class:SensorBase
|
/external/dhcpcd-6.8.2/ |
dev.c | 65 eloop_event_delete(ctx->eloop, ctx->dev_fd, 0); 69 ctx->dev_fd = -1; 169 if (ctx->dev_fd != -1) { 171 ctx->dev_fd); 172 return ctx->dev_fd; 175 ctx->dev_fd = dev_start1(ctx); 176 if (ctx->dev_fd != -1) { 178 ctx->dev_fd, dev_handle_data, ctx, NULL, NULL) == -1) 187 return ctx->dev_fd;
|
dhcpcd.h | 150 int dev_fd; member in struct:dhcpcd_ctx
|
dhcpcd.c | [all...] |
/device/huawei/angler/camera/QCamera2/stack/mm-camera-interface/src/ |
mm_camera_interface.c | 1383 int dev_fd = -1; local 1512 int dev_fd = -1; local [all...] |
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-interface/src/ |
mm_camera_interface.c | 1383 int dev_fd = -1; local 1512 int dev_fd = -1; local [all...] |
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/ |
mm_camera_interface.c | 1308 int dev_fd = -1; local 1393 int dev_fd = 0; local [all...] |
/hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/ |
mm_camera_interface.c | 1564 int dev_fd = -1; local 1780 int dev_fd = -1; local [all...] |
/external/mmc-utils/ |
mmc_cmds.c | 1610 int ret, dev_fd, key_fd; local 1692 int ret, dev_fd; local 1721 int i, ret, dev_fd, data_fd, key_fd = -1; local 1868 int ret, dev_fd, key_fd, data_fd; local [all...] |
/system/extras/tests/iptables/qtaguid/ |
socketTag.cpp | 195 dev_fd = -1; 218 dev_fd = open("/dev/xt_qtaguid", O_RDONLY); 219 EXPECT_GE(dev_fd, 0) << "qtaguid dev open failed"; 234 if (dev_fd >= 0) { 235 close(dev_fd); 245 int dev_fd; member in class:android::SocketTaggingTest
|
/hardware/qcom/camera/msmcobalt/QCamera2/stack/mm-camera-interface/src/ |
mm_camera_interface.c | 2312 int dev_fd = -1; local 2591 int dev_fd = -1; local [all...] |
/external/toybox/toys/pending/ |
fdisk.c | 85 static int num_parts, disp_unit_cyl, dos_flag, dev_fd = 3; variable 151 if (ioctl(dev_fd, BLKSSZGET, &arg) == 0) g_sect_size = arg; 166 if (ioctl(dev_fd, BLKGETSIZE64, &sec64) == 0) { 174 if (ioctl(dev_fd, BLKGETSIZE, §ors) == 0) 227 if (ioctl(dev_fd, HDIO_GETGEO, &geometry)) return; 260 xlseek(dev_fd, (off_t)(offset * g_sect_size), SEEK_SET); 262 if (g_sect_size != readall(dev_fd, sec_buf, g_sect_size)) { 263 close(dev_fd); 355 if(fd != dev_fd) { 356 if(dup2(fd, dev_fd) != dev_fd) perror_exit("Can't dup2") [all...] |
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/ |
mm_camera_interface.c | 1099 int dev_fd = 0; local [all...] |
/external/ppp/pppd/ |
pppd.h | 617 void generic_disestablish_ppp __P((int dev_fd)); /* Restore device setting */ 618 int generic_establish_ppp __P((int dev_fd)); /* Make a ppp interface */ [all...] |
sys-linux.c | 597 void generic_disestablish_ppp(int dev_fd) [all...] |