/third_party/ltp/libs/libltpuinput/ |
D | tst_uinput.c | 117 SAFE_IOCTL(fd, UI_SET_EVBIT, EV_KEY); in setup_mouse_events() 118 SAFE_IOCTL(fd, UI_SET_KEYBIT, BTN_LEFT); in setup_mouse_events() 119 SAFE_IOCTL(fd, UI_SET_EVBIT, EV_REL); in setup_mouse_events() 120 SAFE_IOCTL(fd, UI_SET_RELBIT, REL_X); in setup_mouse_events() 121 SAFE_IOCTL(fd, UI_SET_RELBIT, REL_Y); in setup_mouse_events() 126 SAFE_IOCTL(fd, UI_DEV_DESTROY, NULL); in destroy_input_device() 144 SAFE_IOCTL(fd, UI_DEV_CREATE, NULL); in create_input_device()
|
/third_party/ltp/testcases/kernel/syscalls/ioctl/ |
D | ioctl_loop05.c | 49 SAFE_IOCTL(dev_fd, LOOP_GET_STATUS, &loopinfoget); in check_dio_value() 68 SAFE_IOCTL(dev_fd, LOOP_SET_DIRECT_IO, 1); in verify_ioctl_loop() 71 SAFE_IOCTL(dev_fd, LOOP_SET_DIRECT_IO, 0); in verify_ioctl_loop() 81 SAFE_IOCTL(dev_fd, LOOP_SET_DIRECT_IO, 0); in verify_ioctl_loop() 93 SAFE_IOCTL(dev_fd, LOOP_SET_DIRECT_IO, 0); in verify_ioctl_loop() 130 SAFE_IOCTL(block_devfd, BLKSSZGET, &logical_block_size); in setup()
|
D | ioctl06.c | 24 SAFE_IOCTL(fd, BLKRAGET, &rao); in verify_ioctl() 29 SAFE_IOCTL(fd, BLKRASET, ra); in verify_ioctl() 30 SAFE_IOCTL(fd, BLKRAGET, &rab); in verify_ioctl() 40 SAFE_IOCTL(fd, BLKRASET, rao); in verify_ioctl()
|
D | ioctl04.c | 23 SAFE_IOCTL(fd, BLKROGET, &ro); in verify_ioctl() 31 SAFE_IOCTL(fd, BLKROSET, &ro); in verify_ioctl() 34 SAFE_IOCTL(fd, BLKROGET, &ro); in verify_ioctl() 68 SAFE_IOCTL(fd, BLKROSET, &ro); in verify_ioctl()
|
D | ioctl_loop02.c | 58 SAFE_IOCTL(dev_fd, LOOP_SET_FD, file_fd); in verify_ioctl_loop() 61 SAFE_IOCTL(dev_fd, LOOP_CONFIGURE, &loopconfig); in verify_ioctl_loop() 70 SAFE_IOCTL(dev_fd, LOOP_GET_STATUS, &loopinfoget); in verify_ioctl_loop()
|
D | ioctl05.c | 30 SAFE_IOCTL(fd, BLKGETSIZE, &size); in verify_ioctl() 31 SAFE_IOCTL(fd, BLKGETSIZE64, &size64); in verify_ioctl()
|
D | ioctl_loop04.c | 43 SAFE_IOCTL(dev_fd, LOOP_GET_STATUS, &loopinfoget); in verify_ioctl_loop() 49 SAFE_IOCTL(dev_fd, LOOP_SET_CAPACITY); in verify_ioctl_loop()
|
D | ioctl_loop01.c | 51 SAFE_IOCTL(dev_fd, LOOP_SET_STATUS, &loopinfo); in check_loop_value() 52 SAFE_IOCTL(dev_fd, LOOP_GET_STATUS, &loopinfoget); in check_loop_value()
|
D | ioctl_loop07.c | 59 SAFE_IOCTL(dev_fd, LOOP_CONFIGURE, &loopconfig); in verify_ioctl_loop() 67 SAFE_IOCTL(dev_fd, LOOP_GET_STATUS64, &loopinfoget); in verify_ioctl_loop()
|
/third_party/ltp/testcases/kernel/input/ |
D | input_helper.c | 202 SAFE_IOCTL(NULL, fd, UI_DEV_CREATE, NULL); in create_device() 216 SAFE_IOCTL(NULL, fd, UI_SET_EVBIT, EV_KEY); in setup_mouse_events() 217 SAFE_IOCTL(NULL, fd, UI_SET_KEYBIT, BTN_LEFT); in setup_mouse_events() 218 SAFE_IOCTL(NULL, fd, UI_SET_EVBIT, EV_REL); in setup_mouse_events() 219 SAFE_IOCTL(NULL, fd, UI_SET_RELBIT, REL_X); in setup_mouse_events() 220 SAFE_IOCTL(NULL, fd, UI_SET_RELBIT, REL_Y); in setup_mouse_events() 225 SAFE_IOCTL(NULL, fd, UI_DEV_DESTROY, NULL); in destroy_device()
|
D | input06.c | 86 SAFE_IOCTL(NULL, fd, UI_SET_EVBIT, EV_KEY); in setup() 87 SAFE_IOCTL(NULL, fd, UI_SET_EVBIT, EV_REP); in setup() 88 SAFE_IOCTL(NULL, fd, UI_SET_KEYBIT, KEY_X); in setup() 93 SAFE_IOCTL(NULL, fd2, EVIOCGRAB, 1); in setup()
|
D | input05.c | 86 SAFE_IOCTL(NULL, fd, UI_SET_EVBIT, EV_KEY); in setup() 87 SAFE_IOCTL(NULL, fd, UI_SET_KEYBIT, BTN_LEFT); in setup()
|
D | input03.c | 85 SAFE_IOCTL(NULL, fd, UI_SET_EVBIT, EV_KEY); in setup() 86 SAFE_IOCTL(NULL, fd, UI_SET_KEYBIT, BTN_RIGHT); in setup()
|
/third_party/ltp/testcases/kernel/kvm/ |
D | lib_host.c | 148 SAFE_IOCTL(inst->vm_fd, KVM_SET_USER_MEMORY_REGION, &memslot); in tst_kvm_alloc_memory() 159 if (!SAFE_IOCTL(sysfd, KVM_CHECK_EXTENSION, KVM_CAP_EXT_CPUID)) in tst_kvm_get_cpuid() 210 inst->vcpu_info_size = SAFE_IOCTL(sys_fd, KVM_GET_VCPU_MMAP_SIZE, 0); in tst_kvm_create_instance() 211 inst->vm_fd = SAFE_IOCTL(sys_fd, KVM_CREATE_VM, 0); in tst_kvm_create_instance() 215 inst->vcpu_fd = SAFE_IOCTL(inst->vm_fd, KVM_CREATE_VCPU, 0); in tst_kvm_create_instance() 218 SAFE_IOCTL(inst->vcpu_fd, KVM_SET_CPUID2, cpuid_data); in tst_kvm_create_instance() 263 SAFE_IOCTL(inst->vcpu_fd, KVM_GET_REGS, ®s); in tst_kvm_run_instance()
|
/third_party/ltp/testcases/kernel/pty/ |
D | pty04.c | 249 SAFE_IOCTL(pts, SIOCGIFNAME, ifreq.ifr_name); in open_netdev() 257 SAFE_IOCTL(sk, SIOCGIFMTU, &ifreq); in open_netdev() 261 SAFE_IOCTL(sk, SIOCGIFFLAGS, &ifreq); in open_netdev() 263 SAFE_IOCTL(sk, SIOCSIFFLAGS, &ifreq); in open_netdev() 264 SAFE_IOCTL(sk, SIOCGIFFLAGS, &ifreq); in open_netdev() 269 SAFE_IOCTL(sk, SIOCGIFINDEX, &ifreq); in open_netdev() 445 SAFE_IOCTL(pts, TIOCVHANGUP); in do_test() 447 SAFE_IOCTL(ptmx, TIOCVHANGUP); in do_test()
|
D | pty07.c | 89 SAFE_IOCTL(fd, VT_GETSTATE, &stat); in setup() 94 SAFE_IOCTL(fd, TIOCGWINSZ, &wsize); in setup() 106 SAFE_IOCTL(fd, VT_ACTIVATE, vt_active); in cleanup()
|
/third_party/ltp/testcases/network/packet/ |
D | fanout01.c | 63 SAFE_IOCTL(fd, SIOCGIFINDEX, &ifr); in run() 66 SAFE_IOCTL(fd, SIOCGIFFLAGS, &ifr); in run() 68 SAFE_IOCTL(fd, SIOCSIFFLAGS, &ifr); in run()
|
/third_party/ltp/testcases/kernel/sound/ |
D | snd_seq01.c | 75 SAFE_IOCTL(fd, SNDRV_SEQ_IOCTL_CLIENT_ID, &client_id); in setup() 76 SAFE_IOCTL(fd, SNDRV_SEQ_IOCTL_CREATE_QUEUE, &qconf); in setup() 107 SAFE_IOCTL(fd, SNDRV_SEQ_IOCTL_REMOVE_EVENTS, &rminfo); in run()
|
/third_party/ltp/testcases/kernel/syscalls/userfaultfd/ |
D | userfaultfd01.c | 70 SAFE_IOCTL(uffd, UFFDIO_COPY, &uffdio_copy); in handle_thread() 98 SAFE_IOCTL(uffd, UFFDIO_API, &uffdio_api); in run() 104 SAFE_IOCTL(uffd, UFFDIO_REGISTER, &uffdio_register); in run()
|
/third_party/ltp/testcases/lib/ |
D | tst_fsfreeze.c | 33 SAFE_IOCTL(fd, FIFREEZE, 0); in main() 34 SAFE_IOCTL(fd, FITHAW, 0); in main()
|
/third_party/ltp/testcases/kernel/tracing/pt_test/ |
D | pt_test.c | 110 SAFE_IOCTL(fde, PERF_EVENT_IOC_RESET); in intel_pt_trace_check() 111 SAFE_IOCTL(fde, PERF_EVENT_IOC_ENABLE); in intel_pt_trace_check() 114 SAFE_IOCTL(fde, PERF_EVENT_IOC_DISABLE); in intel_pt_trace_check()
|
/third_party/ltp/testcases/kernel/syscalls/setsockopt/ |
D | setsockopt05.c | 46 SAFE_IOCTL(dst_sock, SIOCSIFMTU, &ifr); in setup() 48 SAFE_IOCTL(dst_sock, SIOCSIFFLAGS, &ifr); in setup()
|
/third_party/ltp/testcases/kernel/uevents/ |
D | uevent02.c | 102 SAFE_IOCTL(fd, TUNSETIFF, (void*)&ifr); in generate_tun_uevents() 104 SAFE_IOCTL(fd, TUNSETPERSIST, 0); in generate_tun_uevents()
|
/third_party/ltp/testcases/kernel/watchqueue/ |
D | common.h | 116 SAFE_IOCTL(fd, IOC_WATCH_QUEUE_SET_SIZE, buf_size); in wqueue_watch() 117 SAFE_IOCTL(fd, IOC_WATCH_QUEUE_SET_FILTER, filter); in wqueue_watch()
|
/third_party/ltp/testcases/kernel/syscalls/statx/ |
D | statx08.c | 162 SAFE_IOCTL(fd, FS_IOC_GETFLAGS, &attr); in cleanup() 164 SAFE_IOCTL(fd, FS_IOC_SETFLAGS, &attr); in cleanup()
|