HomeSort by relevance Sort by last modified time
    Searched defs:dev_fd (Results 1 - 25 of 25) sorted by null

  /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.h 35 int dev_fd; member in class:SensorBase
  /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);
  /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...]
  /hardware/qcom/display/sdm845/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...]
  /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/ltp/lib/
tst_device.c 71 int ctl_fd, dev_fd, rc, i; local
110 dev_fd = open(dev_path, O_RDONLY);
112 if (dev_fd < 0)
115 if (ioctl(dev_fd, LOOP_GET_STATUS, &loopinfo) == 0) {
121 close(dev_fd);
125 close(dev_fd);
135 int dev_fd, file_fd; local
137 dev_fd = open(dev, O_RDWR);
138 if (dev_fd < 0) {
146 close(dev_fd);
165 int dev_fd, ret, i; local
    [all...]
  /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...]
  /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...]
  /hardware/invensense/6515/libsensors_iio/
SensorBase.h 74 int dev_fd; member in class:SensorBase
  /hardware/invensense/65xx/libsensors_iio/
SensorBase.h 73 int dev_fd; member in class:SensorBase
  /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/sdm/libs/core/drm/
hw_info_drm.cpp 101 int dev_fd = -1; local
107 drm_master->GetHandle(&dev_fd);
108 DRMLibLoader::GetInstance()->FuncGetDRMManager()(dev_fd, &drm_mgr_intf_);
hw_device_drm.cpp 93 int dev_fd = -1; local
95 drm_master->GetHandle(&dev_fd);
96 DRMLibLoader::GetInstance()->FuncGetDRMManager()(dev_fd, &drm_mgr_intf_);
490 int dev_fd = -1; local
491 master->GetHandle(&dev_fd);
503 ret = drmModeSetCrtc(dev_fd, crtc_id, input_buffer.fb_id, 0 /* x */, 0 /* y */, &connector_id,
506 DLOGE("drmModeSetCrtc failed dev fd %d, fb_id %d, crtc id %d, connector id %d, %s", dev_fd,
  /hardware/qcom/display/sdm845/sdm/libs/core/drm/
hw_info_drm.cpp 111 int dev_fd = -1; local
117 drm_master->GetHandle(&dev_fd);
118 DRMLibLoader::GetInstance()->FuncGetDRMManager()(dev_fd, &drm_mgr_intf_);
hw_device_drm.cpp 784 int dev_fd = -1; local
785 master->GetHandle(&dev_fd);
797 ret = drmModeSetCrtc(dev_fd, crtc_id, fb_id, 0 /* x */, 0 /* y */, &connector_id,
800 DLOGE("drmModeSetCrtc failed dev fd %d, fb_id %d, crtc id %d, connector id %d, %s", dev_fd,
    [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
  /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/dhcpcd-6.8.2/
dhcpcd.h 150 int dev_fd; member in struct:dhcpcd_ctx
  /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/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...]
  /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...]
  /hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-interface/src/
mm_camera_interface.c 2388 int dev_fd = -1; local
2669 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, &sectors) == 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...]

Completed in 1594 milliseconds