Lines Matching refs:res

66     int res;  in print_input_props()  local
71 res = ioctl(fd, EVIOCGPROP(sizeof(bits)), bits); in print_input_props()
72 if(res < 0) { in print_input_props()
77 for(i = 0; i < res; i++) { in print_input_props()
100 int res, res2; in print_possible_events() local
108 res = ioctl(fd, EVIOCGBIT(i, bits_size), bits); in print_possible_events()
109 if(res < bits_size) in print_possible_events()
111 bits_size = res + 16; in print_possible_events()
121 res2 = ioctl(fd, EVIOCGKEY(res), bits + bits_size); in print_possible_events()
138 res2 = ioctl(fd, EVIOCGLED(res), bits + bits_size); in print_possible_events()
143 res2 = ioctl(fd, EVIOCGSND(res), bits + bits_size); in print_possible_events()
173 for(j = 0; j < res; j++) { in print_possible_events()
434 int res; in read_notify() local
442 res = read(nfd, event_buf, sizeof(event_buf)); in read_notify()
443 if(res < (int)sizeof(*event)) { in read_notify()
455 while(res >= (int)sizeof(*event)) { in read_notify()
468 res -= event_size; in read_notify()
519 int res; in getevent_main() local
618 res = open_device(device, print_flags); in getevent_main()
619 if(res < 0) { in getevent_main()
626 res = inotify_add_watch(ufds[0].fd, device_path, IN_DELETE | IN_CREATE); in getevent_main()
627 if(res < 0) { in getevent_main()
631 res = scan_dir(device_path, print_flags); in getevent_main()
632 if(res < 0) { in getevent_main()
641 res = ioctl(ufds[i].fd, EVIOCGSW(1), &sw); in getevent_main()
642 if(res < 0) { in getevent_main()
664 res = read(ufds[i].fd, &event, sizeof(event)); in getevent_main()
665 if(res < (int)sizeof(event)) { in getevent_main()