Home
last modified time | relevance | path

Searched refs:SAFE_IOCTL (Results 1 – 25 of 48) sorted by relevance

12

/third_party/ltp/libs/libltpuinput/
Dtst_uinput.c117 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/
Dioctl_loop05.c49 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()
Dioctl06.c24 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()
Dioctl04.c23 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()
Dioctl_loop02.c58 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()
Dioctl05.c30 SAFE_IOCTL(fd, BLKGETSIZE, &size); in verify_ioctl()
31 SAFE_IOCTL(fd, BLKGETSIZE64, &size64); in verify_ioctl()
Dioctl_loop04.c43 SAFE_IOCTL(dev_fd, LOOP_GET_STATUS, &loopinfoget); in verify_ioctl_loop()
49 SAFE_IOCTL(dev_fd, LOOP_SET_CAPACITY); in verify_ioctl_loop()
Dioctl_loop01.c51 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()
Dioctl_loop07.c59 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/
Dinput_helper.c202 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()
Dinput06.c86 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()
Dinput05.c86 SAFE_IOCTL(NULL, fd, UI_SET_EVBIT, EV_KEY); in setup()
87 SAFE_IOCTL(NULL, fd, UI_SET_KEYBIT, BTN_LEFT); in setup()
Dinput03.c85 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/
Dlib_host.c148 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, &regs); in tst_kvm_run_instance()
/third_party/ltp/testcases/kernel/pty/
Dpty04.c249 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()
Dpty07.c89 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/
Dfanout01.c63 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/
Dsnd_seq01.c75 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/
Duserfaultfd01.c70 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/
Dtst_fsfreeze.c33 SAFE_IOCTL(fd, FIFREEZE, 0); in main()
34 SAFE_IOCTL(fd, FITHAW, 0); in main()
/third_party/ltp/testcases/kernel/tracing/pt_test/
Dpt_test.c110 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/
Dsetsockopt05.c46 SAFE_IOCTL(dst_sock, SIOCSIFMTU, &ifr); in setup()
48 SAFE_IOCTL(dst_sock, SIOCSIFFLAGS, &ifr); in setup()
/third_party/ltp/testcases/kernel/uevents/
Duevent02.c102 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/
Dcommon.h116 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/
Dstatx08.c162 SAFE_IOCTL(fd, FS_IOC_GETFLAGS, &attr); in cleanup()
164 SAFE_IOCTL(fd, FS_IOC_SETFLAGS, &attr); in cleanup()

12