/device/linaro/hikey/wpan/uim/ |
uim.c | 39 static int dev_fd; variable 57 void read_firmware_version(int dev_fd) 64 UIM_VER(" wrote %d bytes", (int)write(dev_fd, buffer, 4)); 65 UIM_VER(" reading %d bytes", (int)read(dev_fd, resp_buffer, 15)); 199 static int set_baud_rate(int dev_fd) 204 tcflush(dev_fd, TCIOFLUSH); 207 if (tcgetattr(dev_fd, &ti) < 0) { 222 tcsetattr(dev_fd, TCSANOW, &ti); 227 tcsetattr(dev_fd, TCSANOW, &ti); 229 tcflush(dev_fd, TCIOFLUSH) [all...] |
/hardware/qcom/display/msm8998/libdrmutils/ |
drm_res_mgr.cpp | 46 static bool GetConnector(int dev_fd, drmModeRes *res, drmModeConnector **connector) { 48 drmModeConnector *conn = drmModeGetConnector(dev_fd, res->connectors[i]); 60 static bool GetEncoder(int dev_fd, drmModeConnector *conn, drmModeEncoder **encoder) { 62 drmModeEncoder *enc = drmModeGetEncoder(dev_fd, conn->encoders[i]); 72 static bool GetCrtc(int dev_fd, drmModeRes *res, drmModeEncoder *enc, drmModeCrtc **crtc) { 75 drmModeCrtc *c = drmModeGetCrtc(dev_fd, res->crtcs[i]); 107 int dev_fd = -1; local 114 master->GetHandle(&dev_fd); 115 drmModeRes *res = drmModeGetResources(dev_fd); 122 if (!GetConnector(dev_fd, res, &conn)) [all...] |
/external/ltp/lib/ |
tst_device.c | 68 int ctl_fd, dev_fd, rc, i; local 107 dev_fd = open(dev_path, O_RDONLY); 109 if (dev_fd < 0) 112 if (ioctl(dev_fd, LOOP_GET_STATUS, &loopinfo) == 0) { 118 close(dev_fd); 122 close(dev_fd); 133 int dev_fd, file_fd, err; local 135 dev_fd = SAFE_OPEN(cleanup_fn, dev, O_RDWR); 138 if (ioctl(dev_fd, LOOP_SET_FD, file_fd) < 0) { 140 close(dev_fd); 153 int dev_fd, ret, i; local [all...] |
/cts/hostsidetests/security/securityPatch/CVE-2016-8435/ |
poc.c | 40 int dev_fd; local 44 dev_fd = open(DEV,O_RDONLY); 45 if(dev_fd == -1){ 61 ret = ioctl(dev_fd, DRM_IOCTL_TEGRA_OPEN_CHANNEL, &open_c); 68 ret = ioctl(dev_fd, DRM_IOCTL_TEGRA_SUBMIT, &submit_c); 72 close(dev_fd);
|
/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)) {
|
/cts/hostsidetests/security/securityPatch/CVE-2016-8431/ |
poc.c | 31 int dev_fd; variable 59 dev_fd = open(DEV,O_RDONLY); 60 if(dev_fd == -1){ 66 ret = ioctl(dev_fd, DRM_IOCTL_TEGRA_OPEN_CHANNEL, &open_c); 73 ret = ioctl(dev_fd, DRM_IOCTL_TEGRA_GEM_CREATE, &gem_create); 84 ioctl(dev_fd, DRM_IOCTL_TEGRA_SUBMIT, &submit_c); 89 close(dev_fd);
|
/cts/hostsidetests/security/securityPatch/CVE-2016-8432/ |
poc.c | 35 int dev_fd; variable 95 ioctl(dev_fd, DRM_IOCTL_TEGRA_SUBMIT, &submit_c); 107 dev_fd = open(DEV,O_RDONLY); 108 if(dev_fd == -1){ 114 ret = ioctl(dev_fd, DRM_IOCTL_TEGRA_OPEN_CHANNEL, &open_c); 123 ret = ioctl(dev_fd, DRM_IOCTL_TEGRA_GEM_CREATE, &gem_create); 134 while(ioctl(dev_fd, DRM_IOCTL_GEM_CLOSE, &gem_close) == 0); 144 close(dev_fd);
|
/external/syslinux/libinstaller/ |
syslxcom.h | 12 int syslinux_already_installed(int dev_fd);
|
/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;
|
/external/syslinux/linux/ |
syslinux.c | 106 int do_mount(int dev_fd, int *cookie, const char *mntpath, const char *fstype) 112 if (fstat(dev_fd, &st) < 0) 129 if (ioctl(loop_fd, LOOP_SET_FD, (void *)dev_fd)) { 147 (unsigned long)mypid, dev_fd); 161 (unsigned long)mypid, dev_fd); 262 int dev_fd, fd; local 302 dev_fd = open(opt.device, O_RDWR); 303 if (dev_fd < 0 || fstat(dev_fd, &st) < 0) { 316 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset) [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...] |
/external/syslinux/dos/ |
syslinux.c | 572 static void move_file(int dev_fd, char *pathname, char *filename) 579 new_name[0] = dev_fd | 0x40; 616 int dev_fd, fd; local 657 dev_fd = (opt.device[0] & ~0x20) - 0x40; 658 if (dev_fd < 1 || dev_fd > 26 || opt.device[1] != ':' || opt.device[2]) 661 set_lock_device(dev_fd); 664 read_device(dev_fd, sectbuf, 1, 0); 677 ldlinux_name[0] = dev_fd | 0x40; 678 ldlinuxc32_name[0] = dev_fd | 0x40 [all...] |
/system/core/libappfuse/include/libappfuse/ |
FuseBridgeLoop.h | 51 bool AddBridge(int mount_id, base::unique_fd dev_fd, base::unique_fd proxy_fd);
|
/device/google/marlin/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/syslinux/mtools/ |
syslinux.c | 189 int dev_fd; local 241 dev_fd = open(opt.device, O_RDWR); 242 if (dev_fd < 0 || fstat(dev_fd, &st) < 0) { 254 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset); 282 dev_fd, (unsigned long long)opt.offset); 322 fs = libfat_open(libfat_xpread, dev_fd); 341 xpwrite(dev_fd, (const char _force *)syslinux_ldlinux 394 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset); 400 xpwrite(dev_fd, sectbuf, SECTOR_SIZE, opt.offset) [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 | 188 dev_fd = -1; 211 dev_fd = open("/dev/xt_qtaguid", O_RDONLY); 212 EXPECT_GE(dev_fd, 0) << "qtaguid dev open failed"; 227 if (dev_fd >= 0) { 228 close(dev_fd); 238 int dev_fd; member in class:android::SocketTaggingTest
|
/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...] |