Lines Matching defs:led
54 #include <dev/led/led.h>
513 static void acpi_asus_led(struct acpi_asus_led *led, int state);
514 static void acpi_asus_led_task(struct acpi_asus_led *led, int pending __unused);
884 acpi_asus_led_task(struct acpi_asus_led *led, int pending __unused)
892 sc = led->sc;
894 switch (led->type) {
897 state = led->state;
901 state = led->state;
905 state = led->state + 1; /* 1: off, 2: on */
909 state = !led->state; /* inverted */
913 state = led->state;
917 state = led->state;
921 (int)led->type);
926 led->busy = 0;
930 acpi_asus_led(struct acpi_asus_led *led, int state)
935 if (led->busy)
938 led->busy = 1;
939 led->state = state;
941 AcpiOsExecute(OSL_NOTIFY_HANDLER, (void *)acpi_asus_led_task, led);