Lines Matching defs:print_flags

75 static int print_possible_events(int fd, int print_flags)
164 else if((count & (print_flags & PRINT_LABELS ? 0x3 : 0x7)) == 0 || i == EV_ABS)
166 if(bit_labels && (print_flags & PRINT_LABELS)) {
193 static void print_event(int type, int code, int value, int print_flags)
197 if (print_flags & PRINT_LABELS) {
294 static int open_device(const char *device, int print_flags)
307 if(print_flags & PRINT_DEVICE_ERRORS)
313 if(print_flags & PRINT_DEVICE_ERRORS)
318 if(print_flags & PRINT_DEVICE_ERRORS)
351 if(print_flags & PRINT_DEVICE)
353 if(print_flags & PRINT_DEVICE_INFO)
359 if(print_flags & PRINT_DEVICE_NAME)
361 if(print_flags & PRINT_DEVICE_INFO)
364 if(print_flags & PRINT_VERSION)
368 if(print_flags & PRINT_POSSIBLE_EVENTS) {
369 print_possible_events(fd, print_flags);
372 if(print_flags & PRINT_INPUT_PROPS) {
375 if(print_flags & PRINT_HID_DESCRIPTOR) {
387 int close_device(const char *device, int print_flags)
393 if(print_flags & PRINT_DEVICE)
402 if(print_flags & PRINT_DEVICE_ERRORS)
407 static int read_notify(const char *dirname, int nfd, int print_flags)
436 open_device(devname, print_flags);
439 close_device(devname, print_flags);
449 static int scan_dir(const char *dirname, int print_flags)
467 open_device(devname, print_flags);
502 int print_flags = 0;
535 print_flags |= strtoul(optarg, NULL, 0);
537 print_flags |= PRINT_DEVICE | PRINT_DEVICE_NAME | PRINT_DEVICE_INFO | PRINT_VERSION;
541 print_flags |= PRINT_HID_DESCRIPTOR;
544 print_flags |= PRINT_DEVICE_ERRORS | PRINT_DEVICE
551 print_flags |= PRINT_ALL_INFO;
557 print_flags |= PRINT_LABELS;
594 print_flags |= PRINT_DEVICE_ERRORS;
595 res = open_device(device, print_flags);
601 print_flags |= PRINT_DEVICE_ERRORS | PRINT_DEVICE | PRINT_DEVICE_NAME;
608 res = scan_dir(device_path, print_flags);
635 read_notify(device_path, ufds[0].fd, print_flags);
650 print_event(event.type, event.code, event.value, print_flags);