• Home
  • Raw
  • Download

Lines Matching refs:res

47     int res;  in print_input_props()  local
52 res = ioctl(fd, EVIOCGPROP(sizeof(bits)), bits); in print_input_props()
53 if(res < 0) { in print_input_props()
58 for(i = 0; i < res; i++) { in print_input_props()
81 int res, res2; in print_possible_events() local
89 res = ioctl(fd, EVIOCGBIT(i, bits_size), bits); in print_possible_events()
90 if(res < bits_size) in print_possible_events()
92 bits_size = res + 16; in print_possible_events()
102 res2 = ioctl(fd, EVIOCGKEY(res), bits + bits_size); in print_possible_events()
119 res2 = ioctl(fd, EVIOCGLED(res), bits + bits_size); in print_possible_events()
124 res2 = ioctl(fd, EVIOCGSND(res), bits + bits_size); in print_possible_events()
154 for(j = 0; j < res; j++) { in print_possible_events()
409 int res; in read_notify() local
417 res = read(nfd, event_buf, sizeof(event_buf)); in read_notify()
418 if(res < (int)sizeof(*event)) { in read_notify()
430 while(res >= (int)sizeof(*event)) { in read_notify()
443 res -= event_size; in read_notify()
494 int res; in getevent_main() local
595 res = open_device(device, print_flags); in getevent_main()
596 if(res < 0) { in getevent_main()
603 res = inotify_add_watch(ufds[0].fd, device_path, IN_DELETE | IN_CREATE); in getevent_main()
604 if(res < 0) { in getevent_main()
608 res = scan_dir(device_path, print_flags); in getevent_main()
609 if(res < 0) { in getevent_main()
618 res = ioctl(ufds[i].fd, EVIOCGSW(1), &sw); in getevent_main()
619 if(res < 0) { in getevent_main()
640 res = read(ufds[i].fd, &event, sizeof(event)); in getevent_main()
641 if(res < (int)sizeof(event)) { in getevent_main()