Home
last modified time | relevance | path

Searched refs:SAFE_IOCTL (Results 1 – 25 of 41) 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.c44 SAFE_IOCTL(dev_fd, LOOP_GET_STATUS, &loopinfoget); in check_dio_value()
63 SAFE_IOCTL(dev_fd, LOOP_SET_DIRECT_IO, 1); in verify_ioctl_loop()
66 SAFE_IOCTL(dev_fd, LOOP_SET_DIRECT_IO, 0); in verify_ioctl_loop()
76 SAFE_IOCTL(dev_fd, LOOP_SET_DIRECT_IO, 0); in verify_ioctl_loop()
88 SAFE_IOCTL(dev_fd, LOOP_SET_DIRECT_IO, 0); in verify_ioctl_loop()
125 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.c55 SAFE_IOCTL(dev_fd, LOOP_SET_FD, file_fd); in verify_ioctl_loop()
58 SAFE_IOCTL(dev_fd, LOOP_CONFIGURE, &loopconfig); in verify_ioctl_loop()
67 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.c37 SAFE_IOCTL(dev_fd, LOOP_GET_STATUS, &loopinfoget); in verify_ioctl_loop()
43 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.c56 SAFE_IOCTL(dev_fd, LOOP_CONFIGURE, &loopconfig); in verify_ioctl_loop()
64 SAFE_IOCTL(dev_fd, LOOP_GET_STATUS64, &loopinfoget); in verify_ioctl_loop()
Dioctl07.c26 SAFE_IOCTL(fd, RNDGETENTCNT, &cnt); in verify_ioctl()
/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/pty/
Dpty04.c250 SAFE_IOCTL(pts, SIOCGIFNAME, ifreq.ifr_name); in open_netdev()
258 SAFE_IOCTL(sk, SIOCGIFMTU, &ifreq); in open_netdev()
262 SAFE_IOCTL(sk, SIOCGIFFLAGS, &ifreq); in open_netdev()
264 SAFE_IOCTL(sk, SIOCSIFFLAGS, &ifreq); in open_netdev()
265 SAFE_IOCTL(sk, SIOCGIFFLAGS, &ifreq); in open_netdev()
270 SAFE_IOCTL(sk, SIOCGIFINDEX, &ifreq); in open_netdev()
446 SAFE_IOCTL(pts, TIOCVHANGUP); in do_test()
448 SAFE_IOCTL(ptmx, TIOCVHANGUP); in do_test()
Dpty02.c54 SAFE_IOCTL(pts, FIONREAD, &nbytes); in do_test()
/third_party/ltp/testcases/network/packet/
Dfanout01.c79 SAFE_IOCTL(fd, SIOCGIFINDEX, &ifr); in run()
82 SAFE_IOCTL(fd, SIOCGIFFLAGS, &ifr); in run()
84 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.c72 SAFE_IOCTL(uffd, UFFDIO_COPY, &uffdio_copy); in handle_thread()
100 SAFE_IOCTL(uffd, UFFDIO_API, &uffdio_api); in run()
106 SAFE_IOCTL(uffd, UFFDIO_REGISTER, &uffdio_register); in run()
/third_party/ltp/testcases/kernel/uevents/
Duevent02.c36 SAFE_IOCTL(fd, TUNSETIFF, (void*)&ifr); in generate_tun_uevents()
38 SAFE_IOCTL(fd, TUNSETPERSIST, 0); in generate_tun_uevents()
/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.c56 SAFE_IOCTL(dst_sock, SIOCSIFMTU, &ifr); in setup()
58 SAFE_IOCTL(dst_sock, SIOCSIFFLAGS, &ifr); in setup()
/third_party/ltp/testcases/kernel/syscalls/statx/
Dstatx08.c161 SAFE_IOCTL(fd, FS_IOC_GETFLAGS, &attr); in cleanup()
163 SAFE_IOCTL(fd, FS_IOC_SETFLAGS, &attr); in cleanup()
/third_party/ltp/testcases/kernel/syscalls/sendto/
Dsendto03.c57 SAFE_IOCTL(sock, SIOCSIFFLAGS, &ifr); in setup()
58 SAFE_IOCTL(sock, SIOCGIFINDEX, &ifr); in setup()
/third_party/ltp/lib/newlib_tests/
Dtst_device.c26 SAFE_IOCTL(fd, BLKGETSIZE64, &ltp_dev_size); in do_test()

12