• Home
  • Raw
  • Download

Lines Matching refs:print_flags

95 static int print_possible_events(int fd, int print_flags)  in print_possible_events()  argument
182 else if((count & (print_flags & PRINT_LABELS ? 0x3 : 0x7)) == 0 || i == EV_ABS) in print_possible_events()
184 if(bit_labels && (print_flags & PRINT_LABELS)) { in print_possible_events()
211 static void print_event(int type, int code, int value, int print_flags) in print_event() argument
215 if (print_flags & PRINT_LABELS) { in print_event()
312 static int open_device(const char *device, int print_flags) in open_device() argument
326 if(print_flags & PRINT_DEVICE_ERRORS) in open_device()
332 if(print_flags & PRINT_DEVICE_ERRORS) in open_device()
337 if(print_flags & PRINT_DEVICE_ERRORS) in open_device()
375 if(print_flags & PRINT_DEVICE) in open_device()
377 if(print_flags & PRINT_DEVICE_INFO) in open_device()
383 if(print_flags & PRINT_DEVICE_NAME) in open_device()
385 if(print_flags & PRINT_DEVICE_INFO) in open_device()
388 if(print_flags & PRINT_VERSION) in open_device()
392 if(print_flags & PRINT_POSSIBLE_EVENTS) { in open_device()
393 print_possible_events(fd, print_flags); in open_device()
396 if(print_flags & PRINT_INPUT_PROPS) { in open_device()
399 if(print_flags & PRINT_HID_DESCRIPTOR) { in open_device()
411 int close_device(const char *device, int print_flags) in close_device() argument
417 if(print_flags & PRINT_DEVICE) in close_device()
426 if(print_flags & PRINT_DEVICE_ERRORS) in close_device()
431 static int read_notify(const char *dirname, int nfd, int print_flags) in read_notify() argument
460 open_device(devname, print_flags); in read_notify()
463 close_device(devname, print_flags); in read_notify()
473 static int scan_dir(const char *dirname, int print_flags) in scan_dir() argument
491 open_device(devname, print_flags); in scan_dir()
524 int print_flags = 0; in getevent_main() local
560 print_flags |= strtoul(optarg, NULL, 0); in getevent_main()
562 print_flags |= PRINT_DEVICE | PRINT_DEVICE_NAME | PRINT_DEVICE_INFO | PRINT_VERSION; in getevent_main()
566 print_flags |= PRINT_HID_DESCRIPTOR; in getevent_main()
569 print_flags |= PRINT_DEVICE_ERRORS | PRINT_DEVICE in getevent_main()
576 print_flags |= PRINT_ALL_INFO; in getevent_main()
582 print_flags |= PRINT_LABELS; in getevent_main()
619 print_flags |= PRINT_DEVICE_ERRORS; in getevent_main()
620 res = open_device(device, print_flags); in getevent_main()
626 print_flags |= PRINT_DEVICE_ERRORS | PRINT_DEVICE | PRINT_DEVICE_NAME; in getevent_main()
633 res = scan_dir(device_path, print_flags); in getevent_main()
661 read_notify(device_path, ufds[0].fd, print_flags); in getevent_main()
676 print_event(event.type, event.code, event.value, print_flags); in getevent_main()