Lines Matching +full:sig +full:- +full:dir
1 // SPDX-License-Identifier: GPL-2.0-only
6 * - a resolution (-r) of 3600 will report 3600 "ticks" in one full rotation
8 * - any other resolution will report N "ticks" in a full rotation with haptic
43 static void int_exit(int sig) in int_exit() argument
54 " -r N\t set the given resolution to the device (number of ticks per 360°)\n\n", in usage()
59 "- a resolution (-r) of 3600 will report 3600 'ticks' in one full rotation\n" in usage()
61 "- any other resolution will report N 'ticks' in a full rotation with haptic\n" in usage()
70 const char *str_id, *dir; in get_hid_id() local
75 snprintf(uevent, sizeof(uevent) - 1, "%s/uevent", path); in get_hid_id()
79 return -ENOENT; in get_hid_id()
83 dir = basename((char *)path); in get_hid_id()
85 str_id = dir + sizeof("0003:0001:0A37."); in get_hid_id()
93 .retval = -1, in attach_prog()
101 attach_fd = bpf_program__fd(skel->progs.attach_prog); in attach_prog()
121 .retval = -1, in set_haptic()
129 haptic_fd = bpf_program__fd(skel->progs.set_haptic); in set_haptic()
152 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
157 long l = -1; in main()
162 l = -1; in main()
167 "invalid r option %s - expecting a number\n", in main()
195 return -1; in main()
204 skel->data->resolution = resolution; in main()
205 skel->data->physical = (int)(resolution / 72); in main()
207 bpf_object__for_each_program(prog, *skel->skeleton->obj) { in main()