/third_party/ltp/testcases/kernel/device-drivers/drm/user_space/ |
H A D | user_tdrm.c | 23 * ioctl calls to the system 35 #include <sys/ioctl.h> 144 printf("\tBegin drm read system ioctl\n"); in main() 147 if (ioctl(tdrm_fd, DRM_IOCTL_GET_MAGIC, &auth)) in main() 148 printf("Failed on drm ioctl DRM(get_magic) test\n"); in main() 150 printf("Success on drm ioctl DRM(get_magic) test\n"); in main() 154 if (ioctl(tdrm_fd, DRM_IOCTL_GET_STATS, &stats)) in main() 155 printf("Failed on drm ioctl DRM(get_status) test\n"); in main() 157 printf("Success on drm ioctl DRM(get_status) test\n"); in main() 160 * for drm read write ioctl tes in main() [all...] |
/third_party/rust/crates/nix/src/sys/ioctl/ |
H A D | mod.rs | 1 //! Provide helpers for making ioctl system calls. 3 //! This library is pretty low-level and messy. `ioctl` is not fun. 5 //! What is an `ioctl`? 8 //! The `ioctl` syscall is the grab-bag syscall on POSIX systems. Don't want to add a new 9 //! syscall? Make it an `ioctl`! `ioctl` refers to both the syscall, and the commands that can be 10 //! sent with it. `ioctl` stands for "IO control", and the commands are always sent to a file 13 //! It is common to see `ioctl`s used for the following purposes: 23 //! `ioctl`s are synchronous system calls and are similar to read and write calls in that regard. 24 //! They operate on file descriptors and have an identifier that specifies what the ioctl i [all...] |
H A D | linux.rs | 1 /// The datatype used for the ioctl number 37 // "Generic" ioctl protocol 81 /// Encode an ioctl command. 86 (($dir as $crate::sys::ioctl::ioctl_num_type 87 & $crate::sys::ioctl::DIRMASK) 88 << $crate::sys::ioctl::DIRSHIFT) 89 | (($ty as $crate::sys::ioctl::ioctl_num_type 90 & $crate::sys::ioctl::TYPEMASK) 91 << $crate::sys::ioctl::TYPESHIFT) 92 | (($nr as $crate::sys::ioctl [all...] |
H A D | bsd.rs | 1 /// The datatype used for the ioctl number 15 use crate::sys::ioctl::ioctl_num_type; 36 | (($len as $crate::sys::ioctl::ioctl_num_type 37 & $crate::sys::ioctl::IOCPARM_MASK) 39 | (($group as $crate::sys::ioctl::ioctl_num_type) << 8) 40 | ($num as $crate::sys::ioctl::ioctl_num_type) 44 /// Generate an ioctl request code for a command that passes no data. 46 /// This is equivalent to the `_IO()` macro exposed by the C ioctl API. 48 /// You should only use this macro directly if the `ioctl` you're working 62 ioc!($crate::sys::ioctl [all...] |
/third_party/mesa3d/src/gallium/winsys/svga/drm/ |
H A D | vmw_screen_ioctl.c | 29 * Wrappers for DRM ioctl functionlaity used by the rest of the vmw 91 ret = drmCommandRead(vws->ioctl.drm_fd, DRM_VMW_CREATE_CONTEXT, in vmw_ioctl_context_create() 111 ret = drmCommandWriteRead(vws->ioctl.drm_fd, in vmw_ioctl_extended_context_create() 132 (void)drmCommandWrite(vws->ioctl.drm_fd, DRM_VMW_UNREF_CONTEXT, in vmw_ioctl_context_destroy() 187 ret = drmCommandWriteRead(vws->ioctl.drm_fd, DRM_VMW_CREATE_SURFACE, in vmw_ioctl_surface_create() 231 if (vws->ioctl.have_drm_2_15) { in vmw_ioctl_gb_surface_create() 273 ret = drmCommandWriteRead(vws->ioctl.drm_fd, in vmw_ioctl_gb_surface_create() 312 ret = drmCommandWriteRead(vws->ioctl.drm_fd, DRM_VMW_GB_SURFACE_CREATE, in vmw_ioctl_gb_surface_create() 322 region->drm_fd = vws->ioctl.drm_fd; in vmw_ioctl_gb_surface_create() 364 if (!vws->ioctl in vmw_ioctl_surface_req() [all...] |
/third_party/alsa-lib/src/seq/ |
H A D | seq_hw.c | 25 #include <sys/ioctl.h> 79 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_CLIENT_ID, &client) < 0) { in snd_seq_hw_client_id() 89 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SYSTEM_INFO, info) < 0) { in snd_seq_hw_system_info() 113 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_GET_CLIENT_INFO, info) < 0) { in snd_seq_hw_get_client_info() 128 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SET_CLIENT_INFO, info) < 0) { in snd_seq_hw_set_client_info() 152 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_GET_CLIENT_UMP_INFO, &buf) < 0) in snd_seq_hw_get_ump_info() 176 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SET_CLIENT_UMP_INFO, &buf) < 0) in snd_seq_hw_set_ump_info() 184 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_CREATE_PORT, port) < 0) { in snd_seq_hw_create_port() 194 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_DELETE_PORT, port) < 0) { in snd_seq_hw_delete_port() 204 if (ioctl(h in snd_seq_hw_get_port_info() [all...] |
/third_party/ltp/testcases/kernel/device-drivers/v4l/user_space/ |
H A D | test_VIDIOC_FREQUENCY.c | 18 #include <sys/ioctl.h> 43 ret_get = ioctl(get_video_fd(), VIDIOC_G_FREQUENCY, &freq); in test_VIDIOC_G_FREQUENCY() 98 ret_get = ioctl(get_video_fd(), VIDIOC_G_FREQUENCY, &freq); in test_VIDIOC_G_FREQUENCY_S32_MAX() 118 ret_get = ioctl(get_video_fd(), VIDIOC_G_FREQUENCY, &freq); in test_VIDIOC_G_FREQUENCY_S32_MAX_1() 138 ret_get = ioctl(get_video_fd(), VIDIOC_G_FREQUENCY, &freq); in test_VIDIOC_G_FREQUENCY_U32_MAX() 160 ret_get = ioctl(get_video_fd(), VIDIOC_G_FREQUENCY, &freq); in test_VIDIOC_G_FREQUENCY_NULL() 166 ret_null = ioctl(get_video_fd(), VIDIOC_G_FREQUENCY, NULL); in test_VIDIOC_G_FREQUENCY_NULL() 198 ret_get = ioctl(get_video_fd(), VIDIOC_G_FREQUENCY, &orig_freq); in test_VIDIOC_S_FREQUENCY() 212 ret_set = ioctl(get_video_fd(), VIDIOC_S_FREQUENCY, &orig_freq); in test_VIDIOC_S_FREQUENCY() 226 ioctl(get_video_f in test_VIDIOC_S_FREQUENCY() [all...] |
H A D | test_VIDIOC_INPUT.c | 19 #include <sys/ioctl.h> 50 ret_enum = ioctl(f, VIDIOC_ENUMINPUT, &input); in valid_input_index() 70 ret_get = ioctl(f, VIDIOC_G_INPUT, &index); in test_VIDIOC_G_INPUT() 102 ret_get = ioctl(f, VIDIOC_G_INPUT, &input_index_orig); in test_VIDIOC_S_INPUT_from_enum() 111 ret_enum = ioctl(f, VIDIOC_ENUMINPUT, &input); in test_VIDIOC_S_INPUT_from_enum() 119 ioctl(f, VIDIOC_S_INPUT, &input.index); in test_VIDIOC_S_INPUT_from_enum() 132 ret_set = ioctl(f, VIDIOC_S_INPUT, &input_index_orig); in test_VIDIOC_S_INPUT_from_enum() 152 ret_set = ioctl(f, VIDIOC_S_INPUT, &input.index); in do_set_input() 178 ret_get = ioctl(f, VIDIOC_G_INPUT, &input_index_orig); in test_VIDIOC_S_INPUT_invalid_inputs() 187 ret_enum = ioctl( in test_VIDIOC_S_INPUT_invalid_inputs() [all...] |
H A D | test_VIDIOC_OUTPUT.c | 17 #include <sys/ioctl.h> 48 ret_enum = ioctl(f, VIDIOC_ENUMOUTPUT, &output); in valid_output_index() 68 ret_get = ioctl(f, VIDIOC_G_OUTPUT, &index); in test_VIDIOC_G_OUTPUT() 100 ret_get = ioctl(f, VIDIOC_G_OUTPUT, &output_index_orig); in test_VIDIOC_S_OUTPUT_from_enum() 109 ret_enum = ioctl(f, VIDIOC_ENUMOUTPUT, &output); in test_VIDIOC_S_OUTPUT_from_enum() 118 ioctl(f, VIDIOC_S_OUTPUT, &output.index); in test_VIDIOC_S_OUTPUT_from_enum() 131 ret_set = ioctl(f, VIDIOC_S_OUTPUT, &output_index_orig); in test_VIDIOC_S_OUTPUT_from_enum() 152 ret_set = ioctl(f, VIDIOC_S_OUTPUT, &output.index); in do_set_output() 178 ret_get = ioctl(f, VIDIOC_G_OUTPUT, &output_index_orig); in test_VIDIOC_S_OUTPUT_invalid_outputs() 186 ret_enum = ioctl( in test_VIDIOC_S_OUTPUT_invalid_outputs() [all...] |
H A D | test_VIDIOC_AUDIO.c | 22 #include <sys/ioctl.h> 71 ret_get = ioctl(get_video_fd(), VIDIOC_G_AUDIO, &audio); in test_VIDIOC_G_AUDIO() 136 ret_get = ioctl(get_video_fd(), VIDIOC_G_AUDIO, &audio); in test_VIDIOC_G_AUDIO_ignore_index() 144 ret2 = ioctl(get_video_fd(), VIDIOC_G_AUDIO, &audio2); in test_VIDIOC_G_AUDIO_ignore_index() 169 ret_get = ioctl(get_video_fd(), VIDIOC_G_AUDIO, &audio); in test_VIDIOC_G_AUDIO_NULL() 175 ret_null = ioctl(get_video_fd(), VIDIOC_G_AUDIO, NULL); in test_VIDIOC_G_AUDIO_NULL() 217 ret_orig = ioctl(get_video_fd(), VIDIOC_G_AUDIO, &audio_orig); in test_VIDIOC_S_AUDIO() 236 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUMAUDIO, &audio_enum); in test_VIDIOC_S_AUDIO() 243 ioctl(get_video_fd(), VIDIOC_S_AUDIO, &audio_set); in test_VIDIOC_S_AUDIO() 262 ret_set = ioctl(get_video_f in test_VIDIOC_S_AUDIO() [all...] |
H A D | test_VIDIOC_AUDOUT.c | 22 #include <sys/ioctl.h> 58 ret_get = ioctl(get_video_fd(), VIDIOC_G_AUDOUT, &audioout); in test_VIDIOC_G_AUDOUT() 125 reg_get1 = ioctl(get_video_fd(), VIDIOC_G_AUDOUT, &audioout); in test_VIDIOC_G_AUDOUT_ignore_index() 133 reg_get2 = ioctl(get_video_fd(), VIDIOC_G_AUDOUT, &audioout2); in test_VIDIOC_G_AUDOUT_ignore_index() 159 ret_get = ioctl(get_video_fd(), VIDIOC_G_AUDOUT, &audioout); in test_VIDIOC_G_AUDOUT_NULL() 165 ret_null = ioctl(get_video_fd(), VIDIOC_G_AUDOUT, NULL); in test_VIDIOC_G_AUDOUT_NULL() 208 ret_orig = ioctl(get_video_fd(), VIDIOC_G_AUDOUT, &audioout_orig); in test_VIDIOC_S_AUDOUT() 228 ioctl(get_video_fd(), VIDIOC_ENUMAUDOUT, &audioout_enum); in test_VIDIOC_S_AUDOUT() 235 ioctl(get_video_fd(), VIDIOC_S_AUDOUT, in test_VIDIOC_S_AUDOUT() 255 ret_set = ioctl(get_video_f in test_VIDIOC_S_AUDOUT() [all...] |
H A D | test_VIDIOC_PRIORITY.c | 18 #include <sys/ioctl.h> 59 ret_set = ioctl(get_video_fd(), VIDIOC_S_PRIORITY, &priority); in do_set_priority() 69 ioctl(get_video_fd(), VIDIOC_G_PRIORITY, &new_priority); in do_set_priority() 88 ret_set = ioctl(get_video_fd(), VIDIOC_S_PRIORITY, &priority); in do_set_invalid_priority() 99 ioctl(get_video_fd(), VIDIOC_G_PRIORITY, &new_priority); in do_set_invalid_priority() 115 ret_get = ioctl(get_video_fd(), VIDIOC_G_PRIORITY, &orig_priority); in test_VIDIOC_G_PRIORITY() 141 ret_get = ioctl(get_video_fd(), VIDIOC_G_PRIORITY, &priority); in test_VIDIOC_G_PRIORITY_NULL() 147 ret_null = ioctl(get_video_fd(), VIDIOC_G_PRIORITY, NULL); in test_VIDIOC_G_PRIORITY_NULL() 172 ret_get = ioctl(get_video_fd(), VIDIOC_G_PRIORITY, &orig_priority); in test_VIDIOC_S_PRIORITY() 207 ret_get = ioctl(get_video_f in test_VIDIOC_S_PRIORITY_invalid() [all...] |
H A D | test_VIDIOC_ENUM_FMT.c | 25 #include <sys/ioctl.h> 55 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUM_FMT, &format); in do_enumerate_formats() 142 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUM_FMT, &format); in test_VIDIOC_ENUM_FMT_S32_MAX() 170 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUM_FMT, &format); in test_VIDIOC_ENUM_FMT_S32_MAX_1() 198 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUM_FMT, &format); in test_VIDIOC_ENUM_FMT_U32_MAX() 231 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUM_FMT, &format); in test_VIDIOC_ENUM_FMT_invalid_type() 252 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUM_FMT, &format); in test_VIDIOC_ENUM_FMT_invalid_type() 273 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUM_FMT, &format); in test_VIDIOC_ENUM_FMT_invalid_type() 296 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUM_FMT, &format); in test_VIDIOC_ENUM_FMT_invalid_type() 323 ret_enum = ioctl(get_video_f in test_VIDIOC_ENUM_FMT_invalid_type() [all...] |
H A D | test_VIDIOC_EXT_CTRLS.c | 14 #include <sys/ioctl.h> 39 ret_get = ioctl(get_video_fd(), VIDIOC_G_EXT_CTRLS, &controls); in test_VIDIOC_G_EXT_CTRLS_zero() 74 ret_get = ioctl(get_video_fd(), VIDIOC_G_EXT_CTRLS, &controls); in test_VIDIOC_G_EXT_CTRLS_zero_invalid_count() 90 ioctl(get_video_fd(), VIDIOC_G_EXT_CTRLS, &controls); in test_VIDIOC_G_EXT_CTRLS_zero_invalid_count() 126 ret_get_invalid = ioctl(get_video_fd(), VIDIOC_G_EXT_CTRLS, &controls); in test_VIDIOC_G_EXT_CTRLS_zero_invalid_count() 154 ret_get_invalid = ioctl(get_video_fd(), VIDIOC_G_EXT_CTRLS, &controls); in test_VIDIOC_G_EXT_CTRLS_zero_invalid_count() 192 ret_query = ioctl(get_video_fd(), VIDIOC_QUERYCTRL, &queryctrl); in do_get_ext_control_one() 226 ret_get = ioctl(get_video_fd(), VIDIOC_G_EXT_CTRLS, &controls); in do_get_ext_control_one() 315 ret_get = ioctl(get_video_fd(), VIDIOC_G_EXT_CTRLS, &controls); in test_VIDIOC_G_EXT_CTRLS_NULL() 321 ret_null = ioctl(get_video_f in test_VIDIOC_G_EXT_CTRLS_NULL() [all...] |
H A D | test_VIDIOC_CROP.c | 13 #include <sys/ioctl.h> 35 ret1 = ioctl(get_video_fd(), VIDIOC_G_CROP, &crop); in do_get_crop() 65 ret1 = ioctl(get_video_fd(), VIDIOC_G_CROP, &crop); in do_get_crop_invalid() 100 ret_get1 = ioctl(get_video_fd(), VIDIOC_G_CROP, &crop); in test_VIDIOC_G_CROP_NULL() 109 ret_get2 = ioctl(get_video_fd(), VIDIOC_G_CROP, &crop); in test_VIDIOC_G_CROP_NULL() 118 ret_get3 = ioctl(get_video_fd(), VIDIOC_G_CROP, &crop); in test_VIDIOC_G_CROP_NULL() 124 ret_null = ioctl(get_video_fd(), VIDIOC_G_CROP, NULL); in test_VIDIOC_G_CROP_NULL() 162 ret_orig = ioctl(get_video_fd(), VIDIOC_G_CROP, &crop_orig); in do_set_crop() 174 ret_cap = ioctl(get_video_fd(), VIDIOC_CROPCAP, &cropcap); in do_set_crop() 191 ret_set = ioctl(get_video_f in do_set_crop() [all...] |
H A D | test_VIDIOC_CTRL.c | 19 #include <sys/ioctl.h> 47 ret_query = ioctl(get_video_fd(), VIDIOC_QUERYCTRL, &queryctrl); in do_get_control() 75 ret_get = ioctl(get_video_fd(), VIDIOC_G_CTRL, &control); in do_get_control() 156 ret_get = ioctl(get_video_fd(), VIDIOC_G_CTRL, &control); in test_VIDIOC_G_CTRL_NULL() 164 ret_null = ioctl(get_video_fd(), VIDIOC_G_CTRL, NULL); in test_VIDIOC_G_CTRL_NULL() 202 ret_query = ioctl(get_video_fd(), VIDIOC_QUERYCTRL, &queryctrl); in do_set_control() 230 ret_orig = ioctl(get_video_fd(), VIDIOC_G_CTRL, &control_orig); in do_set_control() 253 ioctl(get_video_fd(), VIDIOC_S_CTRL, in do_set_control() 278 ioctl(get_video_fd(), VIDIOC_G_CTRL, in do_set_control() 364 ioctl(get_video_f in do_set_control() [all...] |
/third_party/toybox/toys/pending/ |
H A D | openvt.c | 50 if (!ioctl(fd, KDGKBTYPE, &arg)) return fd; in open_console() 53 for (fd = 0; fd < 3; fd++) if (!ioctl(fd, KDGKBTYPE, &arg)) return fd; in open_console() 64 if (-1 == (ioctl(fd = open_console(), VT_GETSTATE, &vstate)) || in openvt_main() 72 ioctl(0, VT_ACTIVATE, (int)TT.c); in openvt_main() 73 ioctl(0, VT_WAITACTIVE, (int)TT.c); in openvt_main() 78 ioctl(0, TIOCSCTTY, 0); in openvt_main() 86 ioctl(fd, VT_ACTIVATE, vstate.v_active); in openvt_main() 87 ioctl(fd, VT_WAITACTIVE, vstate.v_active); in openvt_main() 88 ioctl(fd, VT_DISALLOCATE, (int)TT.c); in openvt_main() 99 if (-1 == ioctl(f in deallocvt_main() [all...] |
/third_party/alsa-lib/src/control/ |
H A D | control_hw.c | 36 #include <sys/ioctl.h> 122 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_SUBSCRIBE_EVENTS, &subscribe) < 0) { in snd_ctl_hw_subscribe_events() 132 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_CARD_INFO, info) < 0) { in snd_ctl_hw_card_info() 142 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_ELEM_LIST, list) < 0) in snd_ctl_hw_elem_list() 150 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_ELEM_INFO, info) < 0) in snd_ctl_hw_elem_info() 163 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_ELEM_ADD, info) < 0) in snd_ctl_hw_elem_add() 176 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_ELEM_REPLACE, info) < 0) in snd_ctl_hw_elem_replace() 184 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_ELEM_REMOVE, id) < 0) in snd_ctl_hw_elem_remove() 192 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_ELEM_READ, control) < 0) in snd_ctl_hw_elem_read() 200 if (ioctl(h in snd_ctl_hw_elem_write() [all...] |
/third_party/gptfdisk/ |
H A D | diskio-unix.cc | 20 #include <sys/ioctl.h> 156 // Returns block size of device pointed to by fd file descriptor. If the ioctl 172 err = ioctl(fd, DKIOCGETBLOCKSIZE, &blockSize); in GetBlockSize() 175 err = ioctl(fd, DKIOCGMEDIAINFO, &minfo); in GetBlockSize() 180 err = ioctl(fd, DIOCGSECTORSIZE, &blockSize); in GetBlockSize() 183 err = ioctl(fd, BLKSSZGET, &blockSize); in GetBlockSize() 188 // ENOTTY = inappropriate ioctl; probably being called on a disk image in GetBlockSize() 216 err = ioctl(fd, BLKPBSZGET, &physBlockSize); in GetPhysBlockSize() 236 if (!ioctl(fd, HDIO_GETGEO, &geometry)) in GetNumHeads() 254 if (!ioctl(f in GetNumSecsPerTrack() [all...] |
/third_party/toybox/toys/other/ |
H A D | nbd_client.c | 68 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()
|
/third_party/ltp/testcases/kernel/pty/ |
H A D | ptem01.c | 36 #include "lapi/ioctl.h" 78 if (ioctl(slavefd, TCGETS, &termios) != 0) { in test1() 82 if (ioctl(slavefd, TCSETS, &termios) != 0) { in test1() 86 if (ioctl(slavefd, TCSETSW, &termios) != 0) { in test1() 90 if (ioctl(slavefd, TCSETSF, &termios) != 0) { in test1() 94 if (ioctl(slavefd, TCSETS, &termios) != 0) { in test1() 98 if (ioctl(slavefd, TCGETA, &termio) != 0) { in test1() 102 if (ioctl(slavefd, TCSETA, &termio) != 0) { in test1() 106 if (ioctl(slavefd, TCSETAW, &termio) != 0) { in test1() 110 if (ioctl(slavef in test1() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/ |
H A D | linux_ioctl.c | 2 * Linux ioctl helper functions for driver wrappers 10 #include <sys/ioctl.h> 30 if (ioctl(sock, SIOCGIFFLAGS, &ifr) != 0) { in linux_set_iface_flags() 47 if (ioctl(sock, SIOCSIFFLAGS, &ifr) != 0) { in linux_set_iface_flags() 70 if (ioctl(sock, SIOCGIFFLAGS, &ifr) != 0) { in linux_iface_up() 87 if (ioctl(sock, SIOCGIFHWADDR, &ifr)) { in linux_get_ifhwaddr() 113 if (ioctl(sock, SIOCSIFHWADDR, &ifr)) { in linux_set_ifhwaddr() 125 if (ioctl(sock, SIOCBRADDBR, brname) < 0) { in linux_br_add() 140 if (ioctl(sock, SIOCBRDELBR, brname) < 0) { in linux_br_del() 162 if (ioctl(soc in linux_br_add_if() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/ |
H A D | linux_ioctl.c | 2 * Linux ioctl helper functions for driver wrappers 10 #include <sys/ioctl.h> 30 if (ioctl(sock, SIOCGIFFLAGS, &ifr) != 0) { in linux_set_iface_flags() 47 if (ioctl(sock, SIOCSIFFLAGS, &ifr) != 0) { in linux_set_iface_flags() 70 if (ioctl(sock, SIOCGIFFLAGS, &ifr) != 0) { in linux_iface_up() 87 if (ioctl(sock, SIOCGIFHWADDR, &ifr)) { in linux_get_ifhwaddr() 113 if (ioctl(sock, SIOCSIFHWADDR, &ifr)) { in linux_set_ifhwaddr() 125 if (ioctl(sock, SIOCBRADDBR, brname) < 0) { in linux_br_add() 140 if (ioctl(sock, SIOCBRDELBR, brname) < 0) { in linux_br_del() 162 if (ioctl(soc in linux_br_add_if() [all...] |
/third_party/rust/crates/linux-raw-sys/src/ |
H A D | lib.rs | 143 #[cfg(feature = "ioctl")] 145 #[path = "arm/ioctl.rs"] 146 pub mod ioctl; modules 159 #[cfg(feature = "ioctl")] 161 #[path = "aarch64/ioctl.rs"] 162 pub mod ioctl; modules 175 #[cfg(feature = "ioctl")] 177 #[path = "mips/ioctl.rs"] 178 pub mod ioctl; modules 191 #[cfg(feature = "ioctl")] 194 pub mod ioctl; global() modules 210 pub mod ioctl; global() modules 226 pub mod ioctl; global() modules 242 pub mod ioctl; global() modules 258 pub mod ioctl; global() modules 274 pub mod ioctl; global() modules 290 pub mod ioctl; global() modules 306 pub mod ioctl; global() modules 322 pub mod ioctl; global() modules 338 pub mod ioctl; global() modules 354 pub mod ioctl; global() modules [all...] |
/third_party/pulseaudio/src/modules/oss/ |
H A D | oss-util.c | 26 #include <sys/ioctl.h> 57 ioctl(fd, SNDCTL_DSP_SETDUPLEX, 0); in pa_oss_open() 59 if (ioctl(fd, SNDCTL_DSP_GETCAPS, pcaps) < 0) { in pa_oss_open() 87 if (ioctl(fd, SNDCTL_DSP_GETCAPS, pcaps) < 0) { in pa_oss_open() 93 if (ioctl(fd, FIONBIO, &nonblock_io) < 0) { in pa_oss_open() 189 if (reqformat == AFMT_QUERY || ioctl(fd, SNDCTL_DSP_SETFMT, &format) < 0 || format != reqformat) { in pa_oss_auto_format() 191 if (ioctl(fd, SNDCTL_DSP_SETFMT, &format) < 0 || format != AFMT_S16_NE) { in pa_oss_auto_format() 194 if (ioctl(fd, SNDCTL_DSP_SETFMT, &format) < 0 || format != f) { in pa_oss_auto_format() 196 if (ioctl(fd, SNDCTL_DSP_SETFMT, &format) < 0 || format != AFMT_U8) { in pa_oss_auto_format() 213 if (ioctl(f in pa_oss_auto_format() [all...] |