/third_party/ltp/testcases/kernel/device-drivers/drm/user_space/ |
D | user_tdrm.c | 147 if (ioctl(tdrm_fd, DRM_IOCTL_GET_MAGIC, &auth)) in main() 154 if (ioctl(tdrm_fd, DRM_IOCTL_GET_STATS, &stats)) in main() 164 if (ioctl(tdrm_fd, DRM_IOCTL_IRQ_BUSID)) in main() 168 if (ioctl(tdrm_fd, DRM_IOCTL_GET_CLIENT)) in main() 172 if (ioctl(tdrm_fd, DRM_IOCTL_BLOCK)) in main() 176 if (ioctl(tdrm_fd, DRM_IOCTL_UNBLOCK)) in main() 180 if (ioctl(tdrm_fd, DRM_IOCTL_ADD_CTX)) in main() 184 if (ioctl(tdrm_fd, DRM_IOCTL_RM_CTX)) in main() 188 if (ioctl(tdrm_fd, DRM_IOCTL_GET_CTX)) in main() 192 if (ioctl(tdrm_fd, DRM_IOCTL_ADD_DRAW)) in main() [all …]
|
/third_party/mesa3d/src/gallium/winsys/svga/drm/ |
D | vmw_screen_ioctl.c | 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.have_drm_2_6) { in vmw_ioctl_surface_req() 367 ret = drmPrimeFDToHandle(vws->ioctl.drm_fd, whandle->handle, &handle); in vmw_ioctl_surface_req() [all …]
|
/third_party/alsa-lib/src/seq/ |
D | seq_hw.c | 80 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_CLIENT_ID, &client) < 0) { in snd_seq_hw_client_id() 90 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SYSTEM_INFO, info) < 0) { in snd_seq_hw_system_info() 100 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_GET_CLIENT_INFO, info) < 0) { in snd_seq_hw_get_client_info() 114 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SET_CLIENT_INFO, info) < 0) { in snd_seq_hw_set_client_info() 124 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_CREATE_PORT, port) < 0) { in snd_seq_hw_create_port() 134 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_DELETE_PORT, port) < 0) { in snd_seq_hw_delete_port() 144 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_GET_PORT_INFO, info) < 0) { in snd_seq_hw_get_port_info() 154 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SET_PORT_INFO, info) < 0) { in snd_seq_hw_set_port_info() 164 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_GET_SUBSCRIPTION, sub) < 0) { in snd_seq_hw_get_port_subscription() 174 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SUBSCRIBE_PORT, sub) < 0) { in snd_seq_hw_subscribe_port() [all …]
|
/third_party/ltp/testcases/kernel/device-drivers/v4l/user_space/ |
D | test_VIDIOC_AUDOUT.c | 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_fd(), VIDIOC_S_AUDOUT, &audioout_set); in test_VIDIOC_S_AUDOUT() 267 ret_set = ioctl(get_video_fd(), VIDIOC_S_AUDOUT, &audioout_set); in test_VIDIOC_S_AUDOUT() [all …]
|
D | test_VIDIOC_FREQUENCY.c | 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_fd(), VIDIOC_G_FREQUENCY, in test_VIDIOC_S_FREQUENCY() 256 ret_set = ioctl(get_video_fd(), VIDIOC_S_FREQUENCY, &freq); in test_VIDIOC_S_FREQUENCY() [all …]
|
D | test_VIDIOC_OUTPUT.c | 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(f, VIDIOC_ENUMOUTPUT, &output); in test_VIDIOC_S_OUTPUT_invalid_outputs() 218 ret_set = ioctl(f, VIDIOC_S_OUTPUT, &output_index_orig); in test_VIDIOC_S_OUTPUT_invalid_outputs() [all …]
|
D | test_VIDIOC_AUDIO.c | 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_fd(), VIDIOC_S_AUDIO, &audio_set); in test_VIDIOC_S_AUDIO() 274 ret_set = ioctl(get_video_fd(), VIDIOC_S_AUDIO, &audio_set); in test_VIDIOC_S_AUDIO() [all …]
|
D | test_VIDIOC_INPUT.c | 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(f, VIDIOC_ENUMINPUT, &input); in test_VIDIOC_S_INPUT_invalid_inputs() 219 ret_set = ioctl(f, VIDIOC_S_INPUT, &input_index_orig); in test_VIDIOC_S_INPUT_invalid_inputs() [all …]
|
D | test_VIDIOC_PRIORITY.c | 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_fd(), VIDIOC_G_PRIORITY, &orig_priority); in test_VIDIOC_S_PRIORITY_invalid() 242 ret_orig = ioctl(get_video_fd(), VIDIOC_G_PRIORITY, &priority_orig); in test_VIDIOC_S_PRIORITY_NULL() [all …]
|
D | test_VIDIOC_ENUM_FMT.c | 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_fd(), VIDIOC_ENUM_FMT, &format); in test_VIDIOC_ENUM_FMT_invalid_type() 358 ret_capture = ioctl(get_video_fd(), VIDIOC_ENUM_FMT, &format); in test_VIDIOC_ENUM_FMT_NULL() [all …]
|
D | test_VIDIOC_CTRL.c | 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_fd(), VIDIOC_S_CTRL, &control); in do_set_control() 382 ioctl(get_video_fd(), VIDIOC_S_CTRL, &control); in do_set_control() [all …]
|
D | test_VIDIOC_EXT_CTRLS.c | 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_fd(), VIDIOC_G_EXT_CTRLS, NULL); in test_VIDIOC_G_EXT_CTRLS_NULL() 352 ret_set = ioctl(get_video_fd(), VIDIOC_S_EXT_CTRLS, &controls); in test_VIDIOC_S_EXT_CTRLS_zero() [all …]
|
D | test_VIDIOC_CROPCAP.c | 45 ret_cap = ioctl(get_video_fd(), VIDIOC_CROPCAP, &cropcap); in do_ioctl_VIDIOC_CROPCAP() 161 ret_get = ioctl(f, VIDIOC_G_INPUT, &input_index_orig); in test_VIDIOC_CROPCAP_enum_INPUT() 170 enum_ret = ioctl(f, VIDIOC_ENUMINPUT, &input); in test_VIDIOC_CROPCAP_enum_INPUT() 178 ioctl(f, VIDIOC_S_INPUT, &input.index); in test_VIDIOC_CROPCAP_enum_INPUT() 196 ret_set = ioctl(f, VIDIOC_S_INPUT, &input_index_orig); in test_VIDIOC_CROPCAP_enum_INPUT() 218 ret_capture = ioctl(get_video_fd(), VIDIOC_CROPCAP, &cropcap); in test_VIDIOC_CROPCAP_NULL() 226 ret_output = ioctl(get_video_fd(), VIDIOC_CROPCAP, &cropcap); in test_VIDIOC_CROPCAP_NULL() 234 ret_overlay = ioctl(get_video_fd(), VIDIOC_CROPCAP, &cropcap); in test_VIDIOC_CROPCAP_NULL() 242 ret_private = ioctl(get_video_fd(), VIDIOC_CROPCAP, &cropcap); in test_VIDIOC_CROPCAP_NULL() 250 ret_private_1 = ioctl(get_video_fd(), VIDIOC_CROPCAP, &cropcap); in test_VIDIOC_CROPCAP_NULL() [all …]
|
D | test_VIDIOC_CROP.c | 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_fd(), VIDIOC_S_CROP, &crop); in do_set_crop() 202 ret_new = ioctl(get_video_fd(), VIDIOC_G_CROP, &crop_new); in do_set_crop() [all …]
|
/third_party/alsa-lib/src/control/ |
D | control_hw.c | 121 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_SUBSCRIBE_EVENTS, &subscribe) < 0) { in snd_ctl_hw_subscribe_events() 131 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_CARD_INFO, info) < 0) { in snd_ctl_hw_card_info() 141 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_ELEM_LIST, list) < 0) in snd_ctl_hw_elem_list() 149 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_ELEM_INFO, info) < 0) in snd_ctl_hw_elem_info() 162 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_ELEM_ADD, info) < 0) in snd_ctl_hw_elem_add() 175 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_ELEM_REPLACE, info) < 0) in snd_ctl_hw_elem_replace() 183 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_ELEM_REMOVE, id) < 0) in snd_ctl_hw_elem_remove() 191 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_ELEM_READ, control) < 0) in snd_ctl_hw_elem_read() 199 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_ELEM_WRITE, control) < 0) in snd_ctl_hw_elem_write() 207 if (ioctl(hw->fd, SNDRV_CTL_IOCTL_ELEM_LOCK, id) < 0) in snd_ctl_hw_elem_lock() [all …]
|
/third_party/weston/libweston/ |
D | launcher-direct.c | 110 ioctl(launcher->tty, VT_RELDISP, 1); in vt_handler() 112 ioctl(launcher->tty, VT_RELDISP, VT_ACKACQ); in vt_handler() 155 ret = ioctl(launcher->tty, KDGETMODE, &kd_mode); in setup_tty() 165 ioctl(launcher->tty, VT_ACTIVATE, minor(buf.st_rdev)); in setup_tty() 166 ioctl(launcher->tty, VT_WAITACTIVE, minor(buf.st_rdev)); in setup_tty() 168 if (ioctl(launcher->tty, KDGKBMODE, &launcher->kb_mode)) { in setup_tty() 174 if (ioctl(launcher->tty, KDSKBMUTE, 1) && in setup_tty() 175 ioctl(launcher->tty, KDSKBMODE, K_OFF)) { in setup_tty() 181 ret = ioctl(launcher->tty, KDSETMODE, KD_GRAPHICS); in setup_tty() 203 if (ioctl(launcher->tty, VT_SETMODE, &mode) < 0) { in setup_tty() [all …]
|
/third_party/toybox/toys/pending/ |
D | openvt.c | 52 if (!ioctl(fd, KDGKBTYPE, &arg)) return fd; 60 if (0 == ioctl(fd, KDGKBTYPE, &arg)) return fd; 70 ret = ioctl(fd, VT_OPENQRY, (int *)&TT.vt_num); in xvtnum() 85 if (!ioctl(fd, VT_GETSTATE, &vstate)) { in openvt_main() 105 ioctl(vt_fd, VT_ACTIVATE, TT.vt_num); in openvt_main() 106 ioctl(vt_fd, VT_WAITACTIVE, TT.vt_num); in openvt_main() 119 ioctl(vt_fd, TIOCSCTTY, 0); in openvt_main() 127 ioctl(fd, VT_ACTIVATE, vstate.v_active); in openvt_main() 128 ioctl(fd, VT_WAITACTIVE, vstate.v_active); in openvt_main()
|
/third_party/toybox/toys/other/ |
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/gptfdisk/ |
D | diskio-unix.cc | 168 err = ioctl(fd, DKIOCGETBLOCKSIZE, &blockSize); in GetBlockSize() 171 err = ioctl(fd, DKIOCGMEDIAINFO, &minfo); in GetBlockSize() 176 err = ioctl(fd, DIOCGSECTORSIZE, &blockSize); in GetBlockSize() 179 err = ioctl(fd, BLKSSZGET, &blockSize); in GetBlockSize() 212 err = ioctl(fd, BLKPBSZGET, &physBlockSize); in GetPhysBlockSize() 232 if (!ioctl(fd, HDIO_GETGEO, &geometry)) in GetNumHeads() 250 if (!ioctl(fd, HDIO_GETGEO, &geometry)) in GetNumSecsPerTrack() 278 i = ioctl(fd, DKIOCFLUSHWRITECACHE); in DiskSync() 280 i = ioctl(fd, DKIOCSYNCHRONIZECACHE); in DiskSync() 286 i = ioctl(fd, DIOCGFLUSH); in DiskSync() [all …]
|
/third_party/ltp/testcases/kernel/pty/ |
D | ptem01.c | 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(slavefd, TCSETAF, &termio) != 0) { in test1() 157 if (ioctl(masterfd, TIOCSWINSZ, &wsz1) != 0) { in test2() [all …]
|
/third_party/e2fsprogs/lib/ext2fs/ |
D | getsectsize.c | 66 if (ioctl(fd, BLKSSZGET, sectsize) >= 0) { in ext2fs_get_device_sectsize() 72 if (ioctl(fd, DIOCGSECTORSIZE, sectsize) >= 0) { in ext2fs_get_device_sectsize() 92 if (ioctl(fd, BLKSSZGET, &align) < 0) in ext2fs_get_dio_alignment() 97 ioctl(fd, DIOCGSECTORSIZE, &align) < 0) in ext2fs_get_dio_alignment() 133 if (ioctl(fd, BLKPBSZGET, sectsize) >= 0) { in ext2fs_get_device_phys_sectsize() 141 if (ioctl(fd, DIOCGSECTORSIZE, sectsize) >= 0) { in ext2fs_get_device_phys_sectsize()
|
/third_party/ltp/testcases/kernel/syscalls/ioctl/ |
D | ioctl_loop05.c | 60 TST_RETRY_FUNC(ioctl(dev_fd, LOOP_SET_STATUS, &loopinfo), TST_RETVAL_EQ0); in verify_ioctl_loop() 71 TST_RETRY_FUNC(ioctl(dev_fd, LOOP_SET_STATUS, &loopinfo), TST_RETVAL_EQ0); in verify_ioctl_loop() 72 TEST(ioctl(dev_fd, LOOP_SET_DIRECT_IO, 1)); in verify_ioctl_loop() 83 TST_RETRY_FUNC(ioctl(dev_fd, LOOP_SET_STATUS, &loopinfo), TST_RETVAL_EQ0); in verify_ioctl_loop() 85 TEST(ioctl(dev_fd, LOOP_SET_DIRECT_IO, 1)); in verify_ioctl_loop() 112 if (ioctl(dev_fd, LOOP_SET_DIRECT_IO, 0) && errno == EINVAL) in setup() 129 TST_RETRY_FUNC(ioctl(dev_fd, LOOP_SET_BLOCK_SIZE, logical_block_size), TST_RETVAL_EQ0); in setup()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/ |
D | linux_ioctl.c | 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(sock, SIOCBRADDIF, &ifr) < 0) { in linux_br_add_if() 187 if (ioctl(sock, SIOCBRDELIF, &ifr) < 0) { in linux_br_del_if()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/ |
D | linux_ioctl.c | 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(sock, SIOCBRADDIF, &ifr) < 0) { in linux_br_add_if() 187 if (ioctl(sock, SIOCBRDELIF, &ifr) < 0) { in linux_br_del_if()
|
/third_party/gstreamer/gstplugins_good/sys/oss/ |
D | gstossdmabuffer.c | 159 if (ioctl (obuf->fd, SNDCTL_DSP_GETOPTR, &count) == -1) { in gst_ossdmabuffer_func() 205 if (ioctl (obuf->fd, SNDCTL_DSP_SETFMT, &tmp) == -1) { in gst_ossdmabuffer_acquire() 211 if (ioctl (obuf->fd, SNDCTL_DSP_STEREO, &tmp) == -1) { in gst_ossdmabuffer_acquire() 217 if (ioctl (obuf->fd, SNDCTL_DSP_CHANNELS, &tmp) == -1) { in gst_ossdmabuffer_acquire() 223 if (ioctl (obuf->fd, SNDCTL_DSP_SPEED, &tmp) == -1) { in gst_ossdmabuffer_acquire() 228 if (ioctl (obuf->fd, SNDCTL_DSP_GETCAPS, &obuf->caps) == -1) { in gst_ossdmabuffer_acquire() 239 if (ioctl (obuf->fd, SNDCTL_DSP_SETFRAGMENT, &obuf->frag) == -1) { in gst_ossdmabuffer_acquire() 244 if (ioctl (obuf->fd, SNDCTL_DSP_GETOSPACE, &info) == -1) { in gst_ossdmabuffer_acquire() 268 if (ioctl (obuf->fd, SNDCTL_DSP_SETTRIGGER, &tmp) == -1) { in gst_ossdmabuffer_acquire() 309 if (ioctl (obuf->fd, SNDCTL_DSP_SETTRIGGER, &tmp) == -1) { in gst_ossdmabuffer_play() [all …]
|