Searched refs:ioctl (Results 76 - 100 of 444) sorted by relevance

1234567891011>>

/external/wpa_supplicant_8/src/drivers/
H A Ddriver_openbsd.c10 #include <sys/ioctl.h>
38 if (ioctl(drv->sock, SIOCG80211NWID, &ifr) < 0 ||
53 if (ioctl(drv->sock, SIOCG80211BSSID, &id) < 0)
87 if (ioctl(drv->sock, SIOCS80211KEYAVAIL, &keyavail) < 0)
/external/wpa_supplicant_8/wpa_supplicant/src/drivers/
H A Ddriver_openbsd.c10 #include <sys/ioctl.h>
38 if (ioctl(drv->sock, SIOCG80211NWID, &ifr) < 0 ||
53 if (ioctl(drv->sock, SIOCG80211BSSID, &id) < 0)
87 if (ioctl(drv->sock, SIOCS80211KEYAVAIL, &keyavail) < 0)
/external/fio/os/
H A Dos-android.h6 #include <sys/ioctl.h>
75 int length = ioctl(__shmid, ASHMEM_GET_SIZE, NULL);
77 ret = ioctl(__shmid, ASHMEM_UNPIN, &pin);
93 ret = ioctl(fd, ASHMEM_SET_NAME, key);
97 ret = ioctl(fd, ASHMEM_SET_SIZE, __size);
110 size_t *ptr, size = ioctl(__shmid, ASHMEM_GET_SIZE, NULL);
169 return ioctl(f->fd, BLKFLSBUF);
174 if (!ioctl(f->fd, BLKGETSIZE64, bytes))
262 if (!ioctl(fd, BLKDISCARD, range))
H A Dos-hpux.h8 #include <sys/ioctl.h>
54 if (!ioctl(f->fd, DIOC_DESCRIBE_EXT, &dext)) {
/external/android-clat/
H A Dtun.c24 #include <sys/ioctl.h>
59 if( (err = ioctl(fd, TUNSETIFF, (void *) &ifr)) < 0 ){
/external/e2fsprogs/lib/e2p/
H A Dfgetflags.c32 #include <sys/ioctl.h>
78 r = ioctl (fd, EXT2_IOC_GETFLAGS, &f);
H A Dfsetflags.c32 #include <sys/ioctl.h>
85 r = ioctl (fd, EXT2_IOC_SETFLAGS, &f);
/external/mesa3d/src/gallium/winsys/i915/drm/
H A Di915_drm_winsys.c2 #include <sys/ioctl.h>
27 ret = ioctl(fd, DRM_IOCTL_I915_GETPARAM, &gp, sizeof(gp));
/external/toybox/toys/other/
H A Deject.c53 ioctl(fd, BLKRRPART);
71 int rc = ioctl(fd, 0x5326, &out); // CDROM_DRIVE_STATUS
H A Dlosetup.c78 if (0 <= (i = ioctl(cfd, 0x4C82))) // LOOP_CTL_GET_FREE
88 if (-1 == lfd || ioctl(lfd, LOOP_GET_STATUS64, loop)) {
103 if (ioctl(lfd, (flags & FLAG_c) ? 0x4C07 : LOOP_CLR_FD, 0)) {
112 if (ioctl(lfd, LOOP_SET_FD, ffd)) perror_exit("%s=%s", device, file);
117 if (ioctl(lfd, LOOP_SET_STATUS64, loop)) perror_exit("%s=%s", device, file);
/external/tinyalsa/
H A Dmixer.c37 #include <sys/ioctl.h>
39 #include <linux/ioctl.h>
107 if (ioctl(fd, SNDRV_CTL_IOCTL_ELEM_LIST, &elist) < 0)
119 if (ioctl(fd, SNDRV_CTL_IOCTL_CARD_INFO, &mixer->card_info) < 0)
130 if (ioctl(fd, SNDRV_CTL_IOCTL_ELEM_LIST, &elist) < 0)
136 if (ioctl(fd, SNDRV_CTL_IOCTL_ELEM_INFO, ei) < 0)
149 if (ioctl(fd, SNDRV_CTL_IOCTL_ELEM_INFO, &tmp) < 0)
209 ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_INFO, ctl->info);
310 ret = ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_READ, &ev);
347 ret = ioctl(ct
[all...]
/external/iproute2/ip/
H A Dtunnel.c32 #include <sys/ioctl.h>
75 err = ioctl(fd, SIOCGETTUNNEL, &ifr);
96 err = ioctl(fd, cmd, &ifr);
117 err = ioctl(fd, SIOCDELTUNNEL, &ifr);
135 err = ioctl(fd, cmd, &ifr);
137 fprintf(stderr, "%s: ioctl %x failed: %s\n", name,
H A Diptuntap.c20 #include <sys/ioctl.h>
62 if (ioctl(fd, TUNSETIFF, ifr)) {
63 perror("ioctl(TUNSETIFF)");
66 if (uid != -1 && ioctl(fd, TUNSETOWNER, uid)) {
67 perror("ioctl(TUNSETOWNER)");
70 if (gid != -1 && ioctl(fd, TUNSETGROUP, gid)) {
71 perror("ioctl(TUNSETGROUP)");
74 if (ioctl(fd, TUNSETPERSIST, 1)) {
75 perror("ioctl(TUNSETPERSIST)");
93 if (ioctl(f
[all...]
/external/libpcap/
H A Dpcap-snit.c41 #include <sys/ioctl.h>
254 if (ioctl(p->fd, I_STR, (char *)&si) < 0) {
267 if (ioctl(p->fd, I_STR, (char *)&si) < 0) {
279 if (ioctl(p->fd, I_STR, (char *)&si) < 0) {
290 struct strioctl si; /* struct for ioctl() */
334 if (ioctl(fd, I_SRDOPT, (char *)RMSGD) < 0) {
339 if (ioctl(fd, I_PUSH, "nbuf") < 0) {
349 if (ioctl(fd, I_STR, (char *)&si) < 0) {
361 if (ioctl(fd, I_STR, (char *)&si) < 0) {
371 if (ioctl(f
[all...]
H A Dfad-glifc.c46 #include <sys/ioctl.h>
127 if (ioctl(fd4, SIOCGLIFNUM, (char *)&ifn) < 0) {
156 if (ioctl(fd4, SIOCGLIFCONF, (char *)&ifc) < 0) {
216 if (ioctl(fd, SIOCGLIFFLAGS, (char *)&ifrflags) < 0) {
237 if (ioctl(fd, SIOCGLIFNETMASK, (char *)&ifrnetmask) < 0) {
264 if (ioctl(fd, SIOCGLIFBRDADDR,
299 if (ioctl(fd, SIOCGLIFDSTADDR,
/external/tinycompress/
H A Dcompress.c64 #include <sys/ioctl.h>
70 #include <linux/ioctl.h>
135 if (ioctl(compress->fd, SNDRV_COMPRESS_IOCTL_VERSION, &version)) {
191 if (ioctl(fd, SNDRV_COMPRESS_GET_CAPS, &caps)) {
260 if (ioctl(compress->fd, SNDRV_COMPRESS_GET_CAPS, &caps)) {
284 if (ioctl(compress->fd, SNDRV_COMPRESS_SET_PARAMS, &params)) {
323 if (ioctl(compress->fd, SNDRV_COMPRESS_AVAIL, &kavail))
343 if (ioctl(compress->fd, SNDRV_COMPRESS_TSTAMP, &ktstamp))
369 if (ioctl(compress->fd, SNDRV_COMPRESS_AVAIL, &avail))
430 if (ioctl(compres
[all...]
/external/e2fsprogs/lib/ext2fs/
H A Dgetsize.c27 #include <sys/ioctl.h>
153 if (ioctl(fd, DKIOCGETBLOCKCOUNT, &size64) >= 0) {
171 ioctl(fd, BLKGETSIZE64, &size64) >= 0) {
182 if (ioctl(fd, BLKGETSIZE, &size) >= 0) {
193 if (ioctl(fd, FDGETPRM, &this_floppy) >= 0) {
211 if (ioctl(fd, DIOCGMEDIASIZE, &ms) >= 0) {
228 if (part >= 0 && (ioctl(fd, DIOCGDINFO, (char *)&lab) >= 0)) {
250 * OK, we couldn't figure it out by using a specialized ioctl,
/external/f2fs-tools/tools/
H A Dfibmap.c9 #include <sys/ioctl.h>
69 if (ioctl(fd, HDIO_GETGEO, &geom) < 0)
130 if (ioctl(fd, FIBMAP, &blknum) < 0) {
132 perror("ioctl(FIBMAP)");
143 if (ioctl(fd, FIBMAP, &blknum) < 0) {
145 perror("ioctl(FIBMAP)");
/external/gptfdisk/
H A Ddiskio.cc26 #include <sys/ioctl.h>
H A Ddiskio.h25 #include <sys/ioctl.h>
/external/kernel-headers/original/uapi/linux/
H A Dandroid_alarm.h19 #include <linux/ioctl.h>
H A Dauto_fs.h19 #include <sys/ioctl.h>
32 * back to the kernel via ioctl from userspace. On architectures where 32- and
59 /* v3 expire (via ioctl) */
H A Dcm4000_cs.h5 #include <linux/ioctl.h>
11 /* those two structures are passed via ioctl() from/to userspace. They are
H A Dion.h20 #include <linux/ioctl.h>
84 * Provided by userspace as an argument to the ioctl
118 * struct ion_custom_data - metadata passed to/from userspace for a custom ioctl
119 * @cmd: the custom ioctl function to call
120 * @arg: additional data to pass to the custom ioctl, typically a user
123 * This works just like the regular cmd and arg fields of an ioctl.
189 * DOC: ION_IOC_CUSTOM - call architecture specific ion ioctl
191 * Takes the argument of the architecture specific ioctl to call and
192 * passes appropriate userdata for that ioctl
H A Dmatroxfb.h4 #include <asm/ioctl.h>

Completed in 1471 milliseconds

1234567891011>>