Home
last modified time | relevance | path

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

12345678910>>...43

/external/ltp/testcases/kernel/device-drivers/drm/user_space/
Duser_tdrm.c147 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 …]
/external/strace/tests/
Dioctl_nbd.c55 ioctl(-1, NBD_DISCONNECT, NULL); in main()
57 ioctl(-1, NBD_CLEAR_SOCK, NULL); in main()
59 ioctl(-1, NBD_DO_IT, NULL); in main()
61 ioctl(-1, NBD_CLEAR_QUE, NULL); in main()
63 ioctl(-1, NBD_PRINT_DEBUG, NULL); in main()
65 ioctl(-1, NBD_SET_SOCK, fd); in main()
68 ioctl(-1, NBD_SET_BLKSIZE, ubeef); in main()
70 ioctl(-1, NBD_SET_SIZE, ubeef); in main()
72 ioctl(-1, NBD_SET_SIZE_BLOCKS, ubeef); in main()
75 ioctl(-1, NBD_SET_TIMEOUT, ubeef); in main()
[all …]
Dioctl_rtc.c87 ioctl(-1, RTC_ALM_READ, 0); in main()
90 ioctl(-1, RTC_ALM_READ, page); in main()
94 ioctl(-1, RTC_RD_TIME, 0); in main()
97 ioctl(-1, RTC_RD_TIME, page); in main()
101 ioctl(-1, RTC_ALM_SET, 0); in main()
104 ioctl(-1, RTC_ALM_SET, rt); in main()
111 ioctl(-1, RTC_SET_TIME, 0); in main()
114 ioctl(-1, RTC_SET_TIME, rt); in main()
121 ioctl(-1, RTC_IRQP_SET, lmagic); in main()
125 ioctl(-1, RTC_EPOCH_SET, lmagic); in main()
[all …]
Dioctl_v4l2.c388 ioctl(-1, VIDIOC_QUERYCAP, 0); in main()
391 ioctl(-1, VIDIOC_QUERYCAP, page); in main()
395 ioctl(-1, VIDIOC_ENUM_FMT, 0); in main()
401 ioctl(-1, VIDIOC_ENUM_FMT, p_fmtdesc); in main()
407 ioctl(-1, VIDIOC_G_FMT, 0); in main()
413 ioctl(-1, VIDIOC_G_FMT, p_format); in main()
418 ioctl(-1, VIDIOC_G_FMT, p_format); in main()
425 ioctl(-1, VIDIOC_G_FMT, p_format); in main()
431 ioctl(-1, VIDIOC_G_FMT, p_format); in main()
437 ioctl(-1, VIDIOC_G_FMT, p_format); in main()
[all …]
Dioctl_perf.c111 ioctl(-1, flag_iocs[i].cmd, 0); in main()
114 ioctl(-1, flag_iocs[i].cmd, 1); in main()
118 ioctl(-1, flag_iocs[i].cmd, 2); in main()
135 ioctl(-1, PERF_EVENT_IOC_PERIOD, NULL); in main()
138 ioctl(-1, PERF_EVENT_IOC_PERIOD, u64_efault); in main()
142 ioctl(-1, PERF_EVENT_IOC_PERIOD, u64_ptr); in main()
153 ioctl(-1, PERF_EVENT_IOC_SET_FILTER, NULL); in main()
156 ioctl(-1, PERF_EVENT_IOC_SET_FILTER, str_efault); in main()
160 ioctl(-1, PERF_EVENT_IOC_SET_FILTER, str_ptr); in main()
165 ioctl(-1, PERF_EVENT_IOC_SET_FILTER, str_ptr + 40); in main()
[all …]
Dbtrfs.c249 ioctl(-1, BTRFS_IOC_TRANS_START, NULL); in btrfs_test_trans_ioctls()
252 ioctl(-1, BTRFS_IOC_TRANS_END, NULL); in btrfs_test_trans_ioctls()
268 ioctl(-1, BTRFS_IOC_SYNC, NULL); in btrfs_test_sync_ioctls()
271 ioctl(-1, BTRFS_IOC_WAIT_SYNC, NULL); in btrfs_test_sync_ioctls()
275 ioctl(-1, BTRFS_IOC_WAIT_SYNC, &u64val); in btrfs_test_sync_ioctls()
370 ioctl(-1, BTRFS_IOC_SNAP_CREATE, NULL); in btrfs_test_subvol_ioctls()
374 ioctl(-1, BTRFS_IOC_SNAP_CREATE, &vol_args); in btrfs_test_subvol_ioctls()
378 ioctl(-1, BTRFS_IOC_SUBVOL_CREATE, &vol_args); in btrfs_test_subvol_ioctls()
382 ioctl(-1, BTRFS_IOC_SNAP_DESTROY, &vol_args); in btrfs_test_subvol_ioctls()
387 ioctl(-1, BTRFS_IOC_SNAP_CREATE, &vol_args); in btrfs_test_subvol_ioctls()
[all …]
Dioctl_ptp.c65 ioctl(-1, PTP_CLOCK_GETCAPS, NULL); in test_no_device()
67 ioctl(-1, PTP_CLOCK_GETCAPS, caps); in test_no_device()
71 ioctl(-1, PTP_SYS_OFFSET, NULL); in test_no_device()
73 ioctl(-1, PTP_SYS_OFFSET, sysoff); in test_no_device()
78 ioctl(-1, PTP_ENABLE_PPS, 0); in test_no_device()
80 ioctl(-1, PTP_ENABLE_PPS, 1); in test_no_device()
84 ioctl(-1, PTP_EXTTS_REQUEST, NULL); in test_no_device()
86 ioctl(-1, PTP_EXTTS_REQUEST, extts); in test_no_device()
94 ioctl(-1, PTP_PEROUT_REQUEST, NULL); in test_no_device()
96 ioctl(-1, PTP_PEROUT_REQUEST, perout); in test_no_device()
[all …]
Dioctl_uffdio.c65 rc = ioctl(-1, UFFDIO_API, api_struct); in main()
69 rc = ioctl(fd, UFFDIO_API, NULL); in main()
75 rc = ioctl(fd, UFFDIO_API, api_struct); in main()
110 rc = ioctl(-1, UFFDIO_REGISTER, register_struct); in main()
114 rc = ioctl(fd, UFFDIO_REGISTER, NULL); in main()
121 rc = ioctl(fd, UFFDIO_REGISTER, register_struct); in main()
141 rc = ioctl(-1, UFFDIO_COPY, copy_struct); in main()
145 rc = ioctl(fd, UFFDIO_COPY, NULL); in main()
153 rc = ioctl(fd, UFFDIO_COPY, copy_struct); in main()
163 rc = ioctl(-1, UFFDIO_ZEROPAGE, zero_struct); in main()
[all …]
/external/strace/tests-mx32/
Dioctl_nbd.c55 ioctl(-1, NBD_DISCONNECT, NULL); in main()
57 ioctl(-1, NBD_CLEAR_SOCK, NULL); in main()
59 ioctl(-1, NBD_DO_IT, NULL); in main()
61 ioctl(-1, NBD_CLEAR_QUE, NULL); in main()
63 ioctl(-1, NBD_PRINT_DEBUG, NULL); in main()
65 ioctl(-1, NBD_SET_SOCK, fd); in main()
68 ioctl(-1, NBD_SET_BLKSIZE, ubeef); in main()
70 ioctl(-1, NBD_SET_SIZE, ubeef); in main()
72 ioctl(-1, NBD_SET_SIZE_BLOCKS, ubeef); in main()
75 ioctl(-1, NBD_SET_TIMEOUT, ubeef); in main()
[all …]
Dioctl_rtc.c87 ioctl(-1, RTC_ALM_READ, 0); in main()
90 ioctl(-1, RTC_ALM_READ, page); in main()
94 ioctl(-1, RTC_RD_TIME, 0); in main()
97 ioctl(-1, RTC_RD_TIME, page); in main()
101 ioctl(-1, RTC_ALM_SET, 0); in main()
104 ioctl(-1, RTC_ALM_SET, rt); in main()
111 ioctl(-1, RTC_SET_TIME, 0); in main()
114 ioctl(-1, RTC_SET_TIME, rt); in main()
121 ioctl(-1, RTC_IRQP_SET, lmagic); in main()
125 ioctl(-1, RTC_EPOCH_SET, lmagic); in main()
[all …]
Dioctl_v4l2.c388 ioctl(-1, VIDIOC_QUERYCAP, 0); in main()
391 ioctl(-1, VIDIOC_QUERYCAP, page); in main()
395 ioctl(-1, VIDIOC_ENUM_FMT, 0); in main()
401 ioctl(-1, VIDIOC_ENUM_FMT, p_fmtdesc); in main()
407 ioctl(-1, VIDIOC_G_FMT, 0); in main()
413 ioctl(-1, VIDIOC_G_FMT, p_format); in main()
418 ioctl(-1, VIDIOC_G_FMT, p_format); in main()
425 ioctl(-1, VIDIOC_G_FMT, p_format); in main()
431 ioctl(-1, VIDIOC_G_FMT, p_format); in main()
437 ioctl(-1, VIDIOC_G_FMT, p_format); in main()
[all …]
Dioctl_perf.c111 ioctl(-1, flag_iocs[i].cmd, 0); in main()
114 ioctl(-1, flag_iocs[i].cmd, 1); in main()
118 ioctl(-1, flag_iocs[i].cmd, 2); in main()
135 ioctl(-1, PERF_EVENT_IOC_PERIOD, NULL); in main()
138 ioctl(-1, PERF_EVENT_IOC_PERIOD, u64_efault); in main()
142 ioctl(-1, PERF_EVENT_IOC_PERIOD, u64_ptr); in main()
153 ioctl(-1, PERF_EVENT_IOC_SET_FILTER, NULL); in main()
156 ioctl(-1, PERF_EVENT_IOC_SET_FILTER, str_efault); in main()
160 ioctl(-1, PERF_EVENT_IOC_SET_FILTER, str_ptr); in main()
165 ioctl(-1, PERF_EVENT_IOC_SET_FILTER, str_ptr + 40); in main()
[all …]
Dbtrfs.c249 ioctl(-1, BTRFS_IOC_TRANS_START, NULL); in btrfs_test_trans_ioctls()
252 ioctl(-1, BTRFS_IOC_TRANS_END, NULL); in btrfs_test_trans_ioctls()
268 ioctl(-1, BTRFS_IOC_SYNC, NULL); in btrfs_test_sync_ioctls()
271 ioctl(-1, BTRFS_IOC_WAIT_SYNC, NULL); in btrfs_test_sync_ioctls()
275 ioctl(-1, BTRFS_IOC_WAIT_SYNC, &u64val); in btrfs_test_sync_ioctls()
370 ioctl(-1, BTRFS_IOC_SNAP_CREATE, NULL); in btrfs_test_subvol_ioctls()
374 ioctl(-1, BTRFS_IOC_SNAP_CREATE, &vol_args); in btrfs_test_subvol_ioctls()
378 ioctl(-1, BTRFS_IOC_SUBVOL_CREATE, &vol_args); in btrfs_test_subvol_ioctls()
382 ioctl(-1, BTRFS_IOC_SNAP_DESTROY, &vol_args); in btrfs_test_subvol_ioctls()
387 ioctl(-1, BTRFS_IOC_SNAP_CREATE, &vol_args); in btrfs_test_subvol_ioctls()
[all …]
Dioctl_ptp.c65 ioctl(-1, PTP_CLOCK_GETCAPS, NULL); in test_no_device()
67 ioctl(-1, PTP_CLOCK_GETCAPS, caps); in test_no_device()
71 ioctl(-1, PTP_SYS_OFFSET, NULL); in test_no_device()
73 ioctl(-1, PTP_SYS_OFFSET, sysoff); in test_no_device()
78 ioctl(-1, PTP_ENABLE_PPS, 0); in test_no_device()
80 ioctl(-1, PTP_ENABLE_PPS, 1); in test_no_device()
84 ioctl(-1, PTP_EXTTS_REQUEST, NULL); in test_no_device()
86 ioctl(-1, PTP_EXTTS_REQUEST, extts); in test_no_device()
94 ioctl(-1, PTP_PEROUT_REQUEST, NULL); in test_no_device()
96 ioctl(-1, PTP_PEROUT_REQUEST, perout); in test_no_device()
[all …]
Dioctl_uffdio.c65 rc = ioctl(-1, UFFDIO_API, api_struct); in main()
69 rc = ioctl(fd, UFFDIO_API, NULL); in main()
75 rc = ioctl(fd, UFFDIO_API, api_struct); in main()
110 rc = ioctl(-1, UFFDIO_REGISTER, register_struct); in main()
114 rc = ioctl(fd, UFFDIO_REGISTER, NULL); in main()
121 rc = ioctl(fd, UFFDIO_REGISTER, register_struct); in main()
141 rc = ioctl(-1, UFFDIO_COPY, copy_struct); in main()
145 rc = ioctl(fd, UFFDIO_COPY, NULL); in main()
153 rc = ioctl(fd, UFFDIO_COPY, copy_struct); in main()
163 rc = ioctl(-1, UFFDIO_ZEROPAGE, zero_struct); in main()
[all …]
/external/strace/tests-m32/
Dioctl_nbd.c55 ioctl(-1, NBD_DISCONNECT, NULL); in main()
57 ioctl(-1, NBD_CLEAR_SOCK, NULL); in main()
59 ioctl(-1, NBD_DO_IT, NULL); in main()
61 ioctl(-1, NBD_CLEAR_QUE, NULL); in main()
63 ioctl(-1, NBD_PRINT_DEBUG, NULL); in main()
65 ioctl(-1, NBD_SET_SOCK, fd); in main()
68 ioctl(-1, NBD_SET_BLKSIZE, ubeef); in main()
70 ioctl(-1, NBD_SET_SIZE, ubeef); in main()
72 ioctl(-1, NBD_SET_SIZE_BLOCKS, ubeef); in main()
75 ioctl(-1, NBD_SET_TIMEOUT, ubeef); in main()
[all …]
Dioctl_rtc.c87 ioctl(-1, RTC_ALM_READ, 0); in main()
90 ioctl(-1, RTC_ALM_READ, page); in main()
94 ioctl(-1, RTC_RD_TIME, 0); in main()
97 ioctl(-1, RTC_RD_TIME, page); in main()
101 ioctl(-1, RTC_ALM_SET, 0); in main()
104 ioctl(-1, RTC_ALM_SET, rt); in main()
111 ioctl(-1, RTC_SET_TIME, 0); in main()
114 ioctl(-1, RTC_SET_TIME, rt); in main()
121 ioctl(-1, RTC_IRQP_SET, lmagic); in main()
125 ioctl(-1, RTC_EPOCH_SET, lmagic); in main()
[all …]
Dioctl_v4l2.c388 ioctl(-1, VIDIOC_QUERYCAP, 0); in main()
391 ioctl(-1, VIDIOC_QUERYCAP, page); in main()
395 ioctl(-1, VIDIOC_ENUM_FMT, 0); in main()
401 ioctl(-1, VIDIOC_ENUM_FMT, p_fmtdesc); in main()
407 ioctl(-1, VIDIOC_G_FMT, 0); in main()
413 ioctl(-1, VIDIOC_G_FMT, p_format); in main()
418 ioctl(-1, VIDIOC_G_FMT, p_format); in main()
425 ioctl(-1, VIDIOC_G_FMT, p_format); in main()
431 ioctl(-1, VIDIOC_G_FMT, p_format); in main()
437 ioctl(-1, VIDIOC_G_FMT, p_format); in main()
[all …]
Dioctl_perf.c111 ioctl(-1, flag_iocs[i].cmd, 0); in main()
114 ioctl(-1, flag_iocs[i].cmd, 1); in main()
118 ioctl(-1, flag_iocs[i].cmd, 2); in main()
135 ioctl(-1, PERF_EVENT_IOC_PERIOD, NULL); in main()
138 ioctl(-1, PERF_EVENT_IOC_PERIOD, u64_efault); in main()
142 ioctl(-1, PERF_EVENT_IOC_PERIOD, u64_ptr); in main()
153 ioctl(-1, PERF_EVENT_IOC_SET_FILTER, NULL); in main()
156 ioctl(-1, PERF_EVENT_IOC_SET_FILTER, str_efault); in main()
160 ioctl(-1, PERF_EVENT_IOC_SET_FILTER, str_ptr); in main()
165 ioctl(-1, PERF_EVENT_IOC_SET_FILTER, str_ptr + 40); in main()
[all …]
Dbtrfs.c249 ioctl(-1, BTRFS_IOC_TRANS_START, NULL); in btrfs_test_trans_ioctls()
252 ioctl(-1, BTRFS_IOC_TRANS_END, NULL); in btrfs_test_trans_ioctls()
268 ioctl(-1, BTRFS_IOC_SYNC, NULL); in btrfs_test_sync_ioctls()
271 ioctl(-1, BTRFS_IOC_WAIT_SYNC, NULL); in btrfs_test_sync_ioctls()
275 ioctl(-1, BTRFS_IOC_WAIT_SYNC, &u64val); in btrfs_test_sync_ioctls()
370 ioctl(-1, BTRFS_IOC_SNAP_CREATE, NULL); in btrfs_test_subvol_ioctls()
374 ioctl(-1, BTRFS_IOC_SNAP_CREATE, &vol_args); in btrfs_test_subvol_ioctls()
378 ioctl(-1, BTRFS_IOC_SUBVOL_CREATE, &vol_args); in btrfs_test_subvol_ioctls()
382 ioctl(-1, BTRFS_IOC_SNAP_DESTROY, &vol_args); in btrfs_test_subvol_ioctls()
387 ioctl(-1, BTRFS_IOC_SNAP_CREATE, &vol_args); in btrfs_test_subvol_ioctls()
[all …]
Dioctl_ptp.c65 ioctl(-1, PTP_CLOCK_GETCAPS, NULL); in test_no_device()
67 ioctl(-1, PTP_CLOCK_GETCAPS, caps); in test_no_device()
71 ioctl(-1, PTP_SYS_OFFSET, NULL); in test_no_device()
73 ioctl(-1, PTP_SYS_OFFSET, sysoff); in test_no_device()
78 ioctl(-1, PTP_ENABLE_PPS, 0); in test_no_device()
80 ioctl(-1, PTP_ENABLE_PPS, 1); in test_no_device()
84 ioctl(-1, PTP_EXTTS_REQUEST, NULL); in test_no_device()
86 ioctl(-1, PTP_EXTTS_REQUEST, extts); in test_no_device()
94 ioctl(-1, PTP_PEROUT_REQUEST, NULL); in test_no_device()
96 ioctl(-1, PTP_PEROUT_REQUEST, perout); in test_no_device()
[all …]
Dioctl_uffdio.c65 rc = ioctl(-1, UFFDIO_API, api_struct); in main()
69 rc = ioctl(fd, UFFDIO_API, NULL); in main()
75 rc = ioctl(fd, UFFDIO_API, api_struct); in main()
110 rc = ioctl(-1, UFFDIO_REGISTER, register_struct); in main()
114 rc = ioctl(fd, UFFDIO_REGISTER, NULL); in main()
121 rc = ioctl(fd, UFFDIO_REGISTER, register_struct); in main()
141 rc = ioctl(-1, UFFDIO_COPY, copy_struct); in main()
145 rc = ioctl(fd, UFFDIO_COPY, NULL); in main()
153 rc = ioctl(fd, UFFDIO_COPY, copy_struct); in main()
163 rc = ioctl(-1, UFFDIO_ZEROPAGE, zero_struct); in main()
[all …]
/external/rust/crates/nix/src/sys/ioctl/
Dmod.rs298 …convert_ioctl_res!($crate::libc::ioctl(fd, request_code_none!($ioty, $nr) as $crate::sys::ioctl::i…
338 convert_ioctl_res!($crate::libc::ioctl(fd, $nr as $crate::sys::ioctl::ioctl_num_type))
376 …vert_ioctl_res!($crate::libc::ioctl(fd, request_code_read!($ioty, $nr, ::std::mem::size_of::<$ty>(…
412 … convert_ioctl_res!($crate::libc::ioctl(fd, $nr as $crate::sys::ioctl::ioctl_num_type, data))
449 …vert_ioctl_res!($crate::libc::ioctl(fd, request_code_write!($ioty, $nr, ::std::mem::size_of::<$ty>…
485 … convert_ioctl_res!($crate::libc::ioctl(fd, $nr as $crate::sys::ioctl::ioctl_num_type, data))
524 data: $crate::sys::ioctl::ioctl_param_type)
526 …convert_ioctl_res!($crate::libc::ioctl(fd, request_code_write_int!($ioty, $nr) as $crate::sys::ioc…
565 data: $crate::sys::ioctl::ioctl_param_type)
567 …tl_res!($crate::libc::ioctl(fd, request_code_write!($ioty, $nr, ::std::mem::size_of::<$crate::libc…
[all …]
Dlinux.rs76 …(($dir as $crate::sys::ioctl::ioctl_num_type & $crate::sys::ioctl::DIRMASK) << $crate::sys::ioctl:…
77 …(($ty as $crate::sys::ioctl::ioctl_num_type & $crate::sys::ioctl::TYPEMASK) << $crate::sys::ioctl:…
78 …(($nr as $crate::sys::ioctl::ioctl_num_type & $crate::sys::ioctl::NRMASK) << $crate::sys::ioctl::N…
79 …(($sz as $crate::sys::ioctl::ioctl_num_type & $crate::sys::ioctl::SIZEMASK) << $crate::sys::ioctl:…
99 ($ty:expr, $nr:expr) => (ioc!($crate::sys::ioctl::NONE, $ty, $nr, 0))
114 ($ty:expr, $nr:expr, $sz:expr) => (ioc!($crate::sys::ioctl::READ, $ty, $nr, $sz))
129 ($ty:expr, $nr:expr, $sz:expr) => (ioc!($crate::sys::ioctl::WRITE, $ty, $nr, $sz))
140 …($ty:expr, $nr:expr, $sz:expr) => (ioc!($crate::sys::ioctl::READ | $crate::sys::ioctl::WRITE, $ty,…
/external/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_screen_ioctl.c91 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 …]

12345678910>>...43