Searched refs:kbd_led (Results 1 - 4 of 4) sorted by relevance

/linux-4.1.27/drivers/platform/x86/
H A Dsamsung-laptop.c346 struct led_classdev kbd_led; member in struct:samsung_laptop
1124 samsung = container_of(led_cdev, struct samsung_laptop, kbd_led); kbd_led_set()
1126 if (value > samsung->kbd_led.max_brightness) kbd_led_set()
1127 value = samsung->kbd_led.max_brightness; kbd_led_set()
1139 samsung = container_of(led_cdev, struct samsung_laptop, kbd_led); kbd_led_get()
1145 if (!IS_ERR_OR_NULL(samsung->kbd_led.dev)) samsung_leds_exit()
1146 led_classdev_unregister(&samsung->kbd_led); samsung_leds_exit()
1162 samsung->kbd_led.name = "samsung::kbd_backlight"; samsung_leds_init()
1163 samsung->kbd_led.brightness_set = kbd_led_set; samsung_leds_init()
1164 samsung->kbd_led.brightness_get = kbd_led_get; samsung_leds_init()
1165 samsung->kbd_led.max_brightness = 8; samsung_leds_init()
1167 samsung->kbd_led.max_brightness = 4; samsung_leds_init()
1170 &samsung->kbd_led); samsung_leds_init()
H A Dasus-wmi.c193 struct led_classdev kbd_led; member in struct:asus_wmi
433 asus = container_of(led_cdev, struct asus_wmi, kbd_led); kbd_led_set()
435 if (value > asus->kbd_led.max_brightness) kbd_led_set()
436 value = asus->kbd_led.max_brightness; kbd_led_set()
449 asus = container_of(led_cdev, struct asus_wmi, kbd_led); kbd_led_get()
512 if (!IS_ERR_OR_NULL(asus->kbd_led.dev)) asus_wmi_led_exit()
513 led_classdev_unregister(&asus->kbd_led); asus_wmi_led_exit()
547 asus->kbd_led.name = "asus::kbd_backlight"; asus_wmi_led_init()
548 asus->kbd_led.brightness_set = kbd_led_set; asus_wmi_led_init()
549 asus->kbd_led.brightness_get = kbd_led_get; asus_wmi_led_init()
550 asus->kbd_led.max_brightness = 3; asus_wmi_led_init()
553 &asus->kbd_led); asus_wmi_led_init()
H A Ddell-laptop.c1826 static struct led_classdev kbd_led = { variable in typeref:struct:led_classdev
1840 kbd_led.max_brightness = kbd_get_max_level(); kbd_led_init()
1841 if (!kbd_led.max_brightness) { kbd_led_init()
1842 kbd_led.max_brightness = kbd_get_valid_token_counts(); kbd_led_init()
1843 if (kbd_led.max_brightness) kbd_led_init()
1844 kbd_led.max_brightness--; kbd_led_init()
1846 return led_classdev_register(dev, &kbd_led); kbd_led_init()
1859 kbd_led.brightness_set = brightness_set_exit; kbd_led_exit()
1860 led_classdev_unregister(&kbd_led); kbd_led_exit()
H A Dtoshiba_acpi.c173 struct led_classdev kbd_led; member in struct:toshiba_acpi_dev
624 struct toshiba_acpi_dev, kbd_led); toshiba_kbd_backlight_get()
644 struct toshiba_acpi_dev, kbd_led); toshiba_kbd_backlight_set()
2704 led_classdev_unregister(&dev->kbd_led); toshiba_acpi_remove()
2822 dev->kbd_led.name = "toshiba::kbd_backlight"; toshiba_acpi_add()
2823 dev->kbd_led.max_brightness = 1; toshiba_acpi_add()
2824 dev->kbd_led.brightness_set = toshiba_kbd_backlight_set; toshiba_acpi_add()
2825 dev->kbd_led.brightness_get = toshiba_kbd_backlight_get; toshiba_acpi_add()
2826 if (!led_classdev_register(&dev->acpi_dev->dev, &dev->kbd_led)) toshiba_acpi_add()

Completed in 124 milliseconds