/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 | 44 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()
|
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 | 55 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()
|
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 | 37 SAFE_IOCTL(dev_fd, LOOP_GET_STATUS, &loopinfoget); in verify_ioctl_loop() 43 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 | 56 SAFE_IOCTL(dev_fd, LOOP_CONFIGURE, &loopconfig); in verify_ioctl_loop() 64 SAFE_IOCTL(dev_fd, LOOP_GET_STATUS64, &loopinfoget); in verify_ioctl_loop()
|
D | ioctl07.c | 26 SAFE_IOCTL(fd, RNDGETENTCNT, &cnt); in verify_ioctl()
|
/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/pty/ |
D | pty04.c | 250 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()
|
D | pty02.c | 54 SAFE_IOCTL(pts, FIONREAD, &nbytes); in do_test()
|
/third_party/ltp/testcases/network/packet/ |
D | fanout01.c | 79 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/ |
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 | 72 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/ |
D | uevent02.c | 36 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/ |
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 | 56 SAFE_IOCTL(dst_sock, SIOCSIFMTU, &ifr); in setup() 58 SAFE_IOCTL(dst_sock, SIOCSIFFLAGS, &ifr); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/statx/ |
D | statx08.c | 161 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/ |
D | sendto03.c | 57 SAFE_IOCTL(sock, SIOCSIFFLAGS, &ifr); in setup() 58 SAFE_IOCTL(sock, SIOCGIFINDEX, &ifr); in setup()
|
/third_party/ltp/lib/newlib_tests/ |
D | tst_device.c | 26 SAFE_IOCTL(fd, BLKGETSIZE64, <p_dev_size); in do_test()
|