Lines Matching refs:led
173 parse_options_led(int argc, char **argv, int *led, int *led_state) in parse_options_led() argument
196 *led = parse_event_code(EV_LED, optarg); in parse_options_led()
197 if (*led == -1) in parse_options_led()
340 set_led(struct libevdev *dev, unsigned int led, int led_state) in set_led() argument
346 if (!libevdev_has_event_code(dev, EV_LED, led)) { in set_led()
350 libevdev_event_code_get_name(EV_LED, led)); in set_led()
354 rc = libevdev_kernel_set_led_value(dev, led, state); in set_led()
358 libevdev_event_code_get_name(EV_LED, led), in set_led()
390 int led = -1; in main() local
409 rc = parse_options_led(argc, argv, &led, &led_state); in main()
450 set_led(dev, led, led_state); in main()