Home
last modified time | relevance | path

Searched refs:ioctl (Results 1 – 25 of 436) sorted by relevance

12345678910>>...18

/external/valgrind/none/tests/
Dioctl_moans.c19 ioctl(-1, IOCTL_REQUEST_BASE + 0x0); in main()
20 ioctl(-1, IOCTL_REQUEST_BASE + 0x1); in main()
21 ioctl(-1, IOCTL_REQUEST_BASE + 0x0); in main()
22 ioctl(-1, IOCTL_REQUEST_BASE + 0x2); in main()
23 ioctl(-1, IOCTL_REQUEST_BASE + 0x3); in main()
24 ioctl(-1, IOCTL_REQUEST_BASE + 0x4); in main()
25 ioctl(-1, IOCTL_REQUEST_BASE + 0x1); in main()
26 ioctl(-1, IOCTL_REQUEST_BASE + 0x5); in main()
27 ioctl(-1, IOCTL_REQUEST_BASE + 0x5); in main()
28 ioctl(-1, IOCTL_REQUEST_BASE + 0x1); in main()
[all …]
Dioctl_moans.stderr.exp1 Warning: noted but unhandled ioctl 0x.2345670 with no size/direction hints.
4 Warning: noted but unhandled ioctl 0x.2345671 with no size/direction hints.
7 Warning: noted but unhandled ioctl 0x.2345672 with no size/direction hints.
10 Warning: noted but unhandled ioctl 0x.2345673 with no size/direction hints.
13 Warning: noted but unhandled ioctl 0x.2345674 with no size/direction hints.
16 Warning: noted but unhandled ioctl 0x.2345675 with no size/direction hints.
19 Warning: noted but unhandled ioctl 0x.2345676 with no size/direction hints.
22 Warning: noted but unhandled ioctl 0x.2345677 with no size/direction hints.
25 Warning: noted but unhandled ioctl 0x.2345678 with no size/direction hints.
28 Warning: noted but unhandled ioctl 0x.2345679 with no size/direction hints.
/external/valgrind/memcheck/tests/solaris/
Dscalar_ioctl.stderr.exp4 Syscall param ioctl(fd) contains uninitialised byte(s)
7 Syscall param ioctl(request) contains uninitialised byte(s)
10 Syscall param ioctl(arg) contains uninitialised byte(s)
13 Syscall param ioctl(POOL_STATUSQ) points to unaddressable byte(s)
20 Syscall param ioctl(fd) contains uninitialised byte(s)
23 Syscall param ioctl(request) contains uninitialised byte(s)
26 Syscall param ioctl(arg) contains uninitialised byte(s)
29 Syscall param ioctl(MNTIOC_GETMNTANY) points to unaddressable byte(s)
36 Syscall param ioctl(fd) contains uninitialised byte(s)
39 Syscall param ioctl(request) contains uninitialised byte(s)
[all …]
/external/strace/tests/
Dioctl.c65 (void) ioctl(-1, TCGETS, &tty); in main()
70 (void) ioctl(-1, MMTIMER_GETRES, &data); in main()
74 (void) ioctl(-1, VIDIOC_ENUMINPUT, 0); in main()
78 (void) ioctl(-1, HIDIOCGVERSION, &data); in main()
82 (void) ioctl(-1, HIDIOCGPHYS(8), &data); in main()
86 (void) ioctl(-1, EVIOCGBIT(EV_KEY, 8), &data); in main()
90 (void) ioctl(-1, _IOR('M', 13, int), &data); in main()
94 (void) ioctl(-1, _IOR(0xde, 0xad, data), &data); in main()
/external/ppp/pppd/
Dsys-solaris.c278 return (int)ioctl(fd, IF_UNITSEL, (char *)&ppa);
310 if (ioctl(fd, SIOCGLIFNUM, &lifn) < 0) { in get_first_ethernet()
332 if (ioctl(fd, SIOCGLIFCONF, &lifc) < 0) { in get_first_ethernet()
352 if (ioctl(fd, SIOCGLIFFLAGS, &lifr) < 0) { in get_first_ethernet()
401 if (ioctl(fd, SIOCGIFNUM, (char *)&num_ifs) < 0) { in get_first_ethernet()
418 if (ioctl(fd, SIOCGIFCONF, &ifc) < 0) { in get_first_ethernet()
438 if (ioctl(fd, SIOCGIFFLAGS, &ifr) < 0) { in get_first_ethernet()
507 ret = ioctl(fd, SIOCGLIFFLAGS, &lifr);
516 ret = ioctl(fd, SIOCSLIFNAME, &lifr);
648 if (ioctl(ifd, I_PUSH, IP_MOD_NAME) < 0) { in sys_init()
[all …]
Dsys-linux.c295 if (ioctl(fd, PPPIOCGFLAGS, &flags) == -1) in modify_flags()
298 if (ioctl(fd, PPPIOCSFLAGS, &flags) == -1) in modify_flags()
390 if (ioctl(ppp_dev_fd, PPPIOCSDEBUG, &requested_level) < 0) { in set_kdebugflag()
410 if (ioctl(tty_fd, TIOCEXCL, 0) < 0) { in tty_establish_ppp()
418 && ioctl(slave_fd, PPPIOCXFERUNIT, 0) < 0) { in tty_establish_ppp()
430 if (ioctl(tty_fd, TIOCSETD, &ppp_disc) < 0) { in tty_establish_ppp()
447 if (ioctl(tty_fd, TIOCSETD, &tty_disc) < 0 && !ok_error(errno)) in tty_establish_ppp()
466 if (ioctl(fd, PPPIOCGCHAN, &chindex) == -1) { in generic_establish_ppp()
477 if (ioctl(fd, PPPIOCATTCHAN, &chindex) < 0) { in generic_establish_ppp()
501 if (ioctl(fd, PPPIOCCONNECT, &ifunit) < 0) { in generic_establish_ppp()
[all …]
/external/gptfdisk/
Ddiskio-unix.cc148 err = ioctl(fd, DKIOCGETBLOCKSIZE, &blockSize); in GetBlockSize()
151 err = ioctl(fd, DKIOCGMEDIAINFO, &minfo); in GetBlockSize()
156 err = ioctl(fd, DIOCGSECTORSIZE, &blockSize); in GetBlockSize()
159 err = ioctl(fd, BLKSSZGET, &blockSize); in GetBlockSize()
191 if (!ioctl(fd, HDIO_GETGEO, &geometry)) in GetNumHeads()
209 if (!ioctl(fd, HDIO_GETGEO, &geometry)) in GetNumSecsPerTrack()
237 i = ioctl(fd, DKIOCFLUSHWRITECACHE); in DiskSync()
239 i = ioctl(fd, DKIOCSYNCHRONIZECACHE); in DiskSync()
245 i = ioctl(fd, DIOCGFLUSH); in DiskSync()
253 i = ioctl(fd, BLKRRPART); in DiskSync()
[all …]
/external/toybox/toys/pending/
Dopenvt.c51 if (!ioctl(fd, KDGKBTYPE, &arg)) return fd;
59 if (0 == ioctl(fd, KDGKBTYPE, &arg)) return fd;
69 ret = ioctl(fd, VT_OPENQRY, (int *)&TT.vt_num); in xvtnum()
84 if (!ioctl(fd, VT_GETSTATE, &vstate)) { in openvt_main()
104 ioctl(vt_fd, VT_ACTIVATE, TT.vt_num); in openvt_main()
105 ioctl(vt_fd, VT_WAITACTIVE, TT.vt_num); in openvt_main()
118 ioctl(vt_fd, TIOCSCTTY, 0); in openvt_main()
126 ioctl(fd, VT_ACTIVATE, vstate.v_active); in openvt_main()
127 ioctl(fd, VT_WAITACTIVE, vstate.v_active); in openvt_main()
/external/toybox/toys/other/
Dnbd_client.c68 ioctl(nbd, NBD_SET_BLKSIZE, 4096); in nbd_client_main()
69 ioctl(nbd, NBD_SET_SIZE_BLOCKS, devsize/4096); in nbd_client_main()
70 ioctl(nbd, NBD_CLEAR_SOCK); in nbd_client_main()
76 if (timeout && ioctl(nbd, NBD_SET_TIMEOUT, timeout)<0) break; in nbd_client_main()
77 if (ioctl(nbd, NBD_SET_SOCK, sock) < 0) break; in nbd_client_main()
106 if (ioctl(nbd, NBD_DO_IT)>=0 || errno==EBADR) break; in nbd_client_main()
111 ioctl(nbd, NBD_CLEAR_QUE); in nbd_client_main()
112 ioctl(nbd, NBD_CLEAR_SOCK); in nbd_client_main()
/external/autotest/client/tests/rtc/src/
Drtctest.c64 retval = ioctl(fd, RTC_UIE_ON, 0); in main()
116 retval = ioctl(fd, RTC_UIE_OFF, 0); in main()
124 retval = ioctl(fd, RTC_RD_TIME, &rtc_tm); in main()
147 retval = ioctl(fd, RTC_ALM_SET, &rtc_tm); in main()
159 retval = ioctl(fd, RTC_ALM_READ, &rtc_tm); in main()
169 retval = ioctl(fd, RTC_AIE_ON, 0); in main()
187 retval = ioctl(fd, RTC_AIE_OFF, 0); in main()
195 retval = ioctl(fd, RTC_IRQP_READ, &tmp); in main()
213 retval = ioctl(fd, RTC_IRQP_SET, tmp); in main()
229 retval = ioctl(fd, RTC_PIE_ON, 0); in main()
[all …]
/external/skia/platform_tools/android/third_party/ashmem/cutils/
Dashmem-dev.c54 ret = ioctl(fd, ASHMEM_SET_NAME, buf); in ashmem_create_region()
59 ret = ioctl(fd, ASHMEM_SET_SIZE, size); in ashmem_create_region()
72 return ioctl(fd, ASHMEM_SET_PROT_MASK, prot); in ashmem_set_prot_region()
78 return ioctl(fd, ASHMEM_PIN, &pin); in ashmem_pin_region()
84 return ioctl(fd, ASHMEM_UNPIN, &pin); in ashmem_unpin_region()
89 return ioctl(fd, ASHMEM_GET_SIZE, NULL); in ashmem_get_size_region()
97 const int ret = ioctl(fd, ASHMEM_PURGE_ALL_CACHES, 0); in ashmem_purge_all()
/external/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_screen_ioctl.c77 ret = drmCommandRead(vws->ioctl.drm_fd, DRM_VMW_CREATE_CONTEXT, in vmw_ioctl_context_create()
98 (void)drmCommandWrite(vws->ioctl.drm_fd, DRM_VMW_UNREF_CONTEXT, in vmw_ioctl_context_destroy()
160 ret = drmCommandWriteRead(vws->ioctl.drm_fd, DRM_VMW_CREATE_SURFACE, in vmw_ioctl_surface_create()
181 (void)drmCommandWrite(vws->ioctl.drm_fd, DRM_VMW_UNREF_SURFACE, in vmw_ioctl_surface_destroy()
226 ret = drmCommandWrite(vws->ioctl.drm_fd, DRM_VMW_EXECBUF, &arg, sizeof(arg)); in vmw_ioctl_command()
273 ret = drmCommandWriteRead(vws->ioctl.drm_fd, DRM_VMW_ALLOC_DMABUF, &arg, in vmw_ioctl_region_create()
289 region->drm_fd = vws->ioctl.drm_fd; in vmw_ioctl_region_create()
369 ret = drmCommandWrite(vws->ioctl.drm_fd, DRM_VMW_FENCE_UNREF, in vmw_ioctl_fence_unref()
402 ret = drmCommandWriteRead(vws->ioctl.drm_fd, DRM_VMW_FENCE_SIGNALED, in vmw_ioctl_fence_signalled()
429 ret = drmCommandWriteRead(vws->ioctl.drm_fd, DRM_VMW_FENCE_WAIT, in vmw_ioctl_fence_finish()
[all …]
/external/autotest/client/deps/lansim/src/py/
Dtuntap.py112 ifs = fcntl.ioctl(fd, pyiftun.TUNSETIFF,
129 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCGIFMTU,
136 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCGIFFLAGS,
143 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCSIFFLAGS,
154 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCGIFADDR,
170 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCSIFADDR,
177 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCSIFNETMASK,
187 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCGIFHWADDR,
202 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCSIFHWADDR,
/external/wpa_supplicant_8/src/drivers/
Dlinux_ioctl.c29 if (ioctl(sock, SIOCGIFFLAGS, &ifr) != 0) { in linux_set_iface_flags()
46 if (ioctl(sock, SIOCSIFFLAGS, &ifr) != 0) { in linux_set_iface_flags()
69 if (ioctl(sock, SIOCGIFFLAGS, &ifr) != 0) { in linux_iface_up()
86 if (ioctl(sock, SIOCGIFHWADDR, &ifr)) { in linux_get_ifhwaddr()
112 if (ioctl(sock, SIOCSIFHWADDR, &ifr)) { in linux_set_ifhwaddr()
138 if (ioctl(sock, SIOCBRADDBR, brname) < 0) { in linux_br_add()
150 if (ioctl(sock, SIOCBRDELBR, brname) < 0) { in linux_br_del()
172 if (ioctl(sock, SIOCBRADDIF, &ifr) < 0) { in linux_br_add_if()
194 if (ioctl(sock, SIOCBRDELIF, &ifr) < 0) { in linux_br_del_if()
/external/tinycompress/
Dcompress.c135 if (ioctl(compress->fd, SNDRV_COMPRESS_IOCTL_VERSION, &version)) { in get_compress_version()
191 if (ioctl(fd, SNDRV_COMPRESS_GET_CAPS, &caps)) { in _is_codec_type_supported()
260 if (ioctl(compress->fd, SNDRV_COMPRESS_GET_CAPS, &caps)) { in compress_open()
284 if (ioctl(compress->fd, SNDRV_COMPRESS_SET_PARAMS, &params)) { in compress_open()
323 if (ioctl(compress->fd, SNDRV_COMPRESS_AVAIL, &kavail)) in compress_get_hpointer()
343 if (ioctl(compress->fd, SNDRV_COMPRESS_TSTAMP, &ktstamp)) in compress_get_tstamp()
369 if (ioctl(compress->fd, SNDRV_COMPRESS_AVAIL, &avail)) in compress_write()
430 if (ioctl(compress->fd, SNDRV_COMPRESS_AVAIL, &avail)) in compress_read()
478 if (ioctl(compress->fd, SNDRV_COMPRESS_START)) in compress_start()
489 if (ioctl(compress->fd, SNDRV_COMPRESS_STOP)) in compress_stop()
[all …]
/external/fio/os/
Dos-android.h75 int length = ioctl(__shmid, ASHMEM_GET_SIZE, NULL); in shmctl()
77 ret = ioctl(__shmid, ASHMEM_UNPIN, &pin); in shmctl()
93 ret = ioctl(fd, ASHMEM_SET_NAME, key); in shmget()
97 ret = ioctl(fd, ASHMEM_SET_SIZE, __size); in shmget()
110 size_t *ptr, size = ioctl(__shmid, ASHMEM_GET_SIZE, NULL); in shmat()
169 return ioctl(f->fd, BLKFLSBUF); in blockdev_invalidate_cache()
174 if (!ioctl(f->fd, BLKGETSIZE64, bytes)) in blockdev_size()
262 if (!ioctl(fd, BLKDISCARD, range)) in os_trim()
/external/libpcap/
Dpcap-bpf.c349 if (ioctl(p->fd, BIOCROTZBUF, &bz) < 0) { in pcap_next_zbuf()
396 if (ioctl(p->fd, BIOCROTZBUF, &bz) < 0) { in pcap_next_zbuf()
556 if (ioctl(fd, BIOCGDLTLIST, (caddr_t)bdlp) == 0) { in get_dlt_list()
567 if (ioctl(fd, BIOCGDLTLIST, (caddr_t)bdlp) < 0) { in get_dlt_list()
696 if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifr) < 0) { in pcap_can_set_rfmon_bpf()
723 if (ioctl(fd, BIOCSETIF, (caddr_t)&ifr) < 0) { in pcap_can_set_rfmon_bpf()
807 if (ioctl(p->fd, BIOCGSTATS, (caddr_t)&s) < 0) { in pcap_stats_bpf()
1086 if (ioctl(p->fd, BIOCSHDRCMPLT, &spoof_eth_src) == -1) { in pcap_inject_bpf()
1305 if (ioctl(sock, SIOCGIFMEDIA, &req) < 0) { in pcap_cleanup_bpf()
1322 if (ioctl(sock, SIOCSIFMEDIA, in pcap_cleanup_bpf()
[all …]
Dpcap-enet.c128 if (ioctl(fd, EIOSTATS, &es) == -1) { in wrapup()
170 if (ioctl(if_fd, EIOCGETP, (char *)&ctl) == -1) { in initdevice()
186 if (ioctl(if_fd, EIOCSETP, &ctl) == -1) { in initdevice()
195 if (ioctl(if_fd, EIOCFLUSH) == -1) { in initdevice()
203 if (ioctl(if_fd, EIOCSETW, &maxwaiting) == -1) { in initdevice()
211 if (ioctl(if_fd, EIOCLRSTAT, 0) == -1) { in initdevice()
221 if (ioctl(if_fd, EIOCSETF, &filter) == -1) { in initdevice()
/external/libdrm/tests/
Dsetversion.c58 ret = ioctl(fd, DRM_IOCTL_SET_VERSION, &version); in main()
68 ret = ioctl(fd, DRM_IOCTL_SET_VERSION, &sv); in main()
74 ret = ioctl(fd, DRM_IOCTL_SET_VERSION, &sv); in main()
80 ret = ioctl(fd, DRM_IOCTL_SET_VERSION, &sv); in main()
86 ret = ioctl(fd, DRM_IOCTL_SET_VERSION, &sv); in main()
/external/e2fsprogs/lib/blkid/
Dgetsize.c81 if (ioctl(fd, DKIOCGETBLOCKCOUNT, &size64) >= 0) { in blkid_get_dev_size()
101 ioctl(fd, BLKGETSIZE64, &size64) >= 0) { in blkid_get_dev_size()
114 if (ioctl(fd, BLKGETSIZE, &size) >= 0) in blkid_get_dev_size()
121 if (ioctl(fd, DIOCGMEDIASIZE, &size64) >= 0) in blkid_get_dev_size()
129 if (ioctl(fd, FDGETPRM, &this_floppy) >= 0) in blkid_get_dev_size()
154 if (part >= 0 && (ioctl(fd, DIOCGDINFO, (char *)&lab) >= 0)) { in blkid_get_dev_size()
/external/autotest/client/profilers/powertop/src/
Dethernet.c68 ret = ioctl(sock, SIOCGIFFLAGS, &ifr); in activate_WOL_suggestion()
83 ioctl(sock, SIOCETHTOOL, &ifr); in activate_WOL_suggestion()
86 ioctl(sock, SIOCETHTOOL, &ifr); in activate_WOL_suggestion()
109 ret = ioctl(sock, SIOCGIFFLAGS, &ifr); in suggest_WOL_off()
124 ioctl(sock, SIOCETHTOOL, &ifr); in suggest_WOL_off()
/external/webrtc/webrtc/modules/video_capture/linux/
Dvideo_capture_linux.cc85 if (ioctl(fd, VIDIOC_QUERYCAP, &cap) == 0) in Init()
178 while (ioctl(_deviceFd, VIDIOC_ENUM_FMT, &fmt) == 0) { in StartCapture()
224 if (ioctl(_deviceFd, VIDIOC_S_FMT, &video_fmt) < 0) in StartCapture()
241 if (ioctl(_deviceFd, VIDIOC_G_PARM, &streamparms) < 0) { in StartCapture()
254 if (ioctl(_deviceFd, VIDIOC_S_PARM, &streamparms) < 0) { in StartCapture()
292 if (ioctl(_deviceFd, VIDIOC_STREAMON, &type) == -1) in StartCapture()
335 if (ioctl(_deviceFd, VIDIOC_REQBUFS, &rbuffer) < 0) in AllocateVideoBuffers()
358 if (ioctl(_deviceFd, VIDIOC_QUERYBUF, &buffer) < 0) in AllocateVideoBuffers()
375 if (ioctl(_deviceFd, VIDIOC_QBUF, &buffer) < 0) in AllocateVideoBuffers()
394 if (ioctl(_deviceFd, VIDIOC_STREAMOFF, &type) < 0) in DeAllocateVideoBuffers()
[all …]
/external/tinyalsa/
Dmixer.c108 if (ioctl(fd, SNDRV_CTL_IOCTL_ELEM_LIST, &elist) < 0) in mixer_open()
120 if (ioctl(fd, SNDRV_CTL_IOCTL_CARD_INFO, &mixer->card_info) < 0) in mixer_open()
131 if (ioctl(fd, SNDRV_CTL_IOCTL_ELEM_LIST, &elist) < 0) in mixer_open()
137 if (ioctl(fd, SNDRV_CTL_IOCTL_ELEM_INFO, ei) < 0) in mixer_open()
150 if (ioctl(fd, SNDRV_CTL_IOCTL_ELEM_INFO, &tmp) < 0) in mixer_open()
210 ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_INFO, ctl->info); in mixer_ctl_update()
311 ret = ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_READ, &ev); in mixer_ctl_get_value()
351 ret = ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_READ, &ev); in mixer_ctl_get_array()
371 ret = ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_TLV_READ, tlv); in mixer_ctl_get_array()
380 ret = ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_READ, &ev); in mixer_ctl_get_array()
[all …]
/external/selinux/sepolgen/tests/
Dperm_map131 ioctl n 1
155 ioctl n 1
177 ioctl n 1
199 ioctl n 1
218 ioctl n 1
237 ioctl n 1
256 ioctl n 1
275 ioctl n 1
303 ioctl n 1
329 ioctl n 1
[all …]
/external/selinux/sepolgen/src/share/
Dperm_map131 ioctl n 1
156 ioctl n 1
179 ioctl n 1
202 ioctl n 1
222 ioctl n 1
242 ioctl n 1
262 ioctl n 1
282 ioctl n 1
310 ioctl n 1
336 ioctl n 1
[all …]

12345678910>>...18