Lines Matching full:brightness
48 enum led_brightness brightness; member
56 /* Protects the transfer_buf and led brightness */
76 hid_err(g15->hdev, "Error getting LED brightness: %d\n", ret); in lg_g15_update_led_brightness()
80 g15->leds[LG_G15_KBD_BRIGHTNESS].brightness = g15->transfer_buf[1]; in lg_g15_update_led_brightness()
81 g15->leds[LG_G15_LCD_BRIGHTNESS].brightness = g15->transfer_buf[2]; in lg_g15_update_led_brightness()
83 g15->leds[LG_G15_MACRO_PRESET1].brightness = in lg_g15_update_led_brightness()
85 g15->leds[LG_G15_MACRO_PRESET2].brightness = in lg_g15_update_led_brightness()
87 g15->leds[LG_G15_MACRO_PRESET3].brightness = in lg_g15_update_led_brightness()
89 g15->leds[LG_G15_MACRO_RECORD].brightness = in lg_g15_update_led_brightness()
100 enum led_brightness brightness; in lg_g15_led_get() local
104 brightness = g15->leds[g15_led->led].brightness; in lg_g15_led_get()
107 return brightness; in lg_g15_led_get()
111 enum led_brightness brightness) in lg_g15_led_set() argument
130 g15->transfer_buf[2] = brightness << (g15_led->led * 4); in lg_g15_led_set()
134 val = brightness; in lg_g15_led_set()
136 val = g15->leds[i].brightness; in lg_g15_led_set()
151 g15_led->brightness = brightness; in lg_g15_led_set()
154 hid_err(g15->hdev, "Error setting LED brightness: %d\n", ret); in lg_g15_led_set()
167 enum led_brightness brightness[LG_G15_BRIGHTNESS_MAX]; in lg_g15_leds_changed_work() local
172 old_brightness[i] = g15->leds[i].brightness; in lg_g15_leds_changed_work()
177 brightness[i] = g15->leds[i].brightness; in lg_g15_leds_changed_work()
184 if (brightness[i] == old_brightness[i]) in lg_g15_leds_changed_work()
188 brightness[i]); in lg_g15_leds_changed_work()
202 hid_err(g15->hdev, "Error getting LED brightness: %d\n", ret); in lg_g510_get_initial_led_brightness()
216 g15->leds[i].brightness = high; in lg_g510_get_initial_led_brightness()
221 g15->leds[i].brightness = 0; in lg_g510_get_initial_led_brightness()
230 enum led_brightness brightness) in lg_g510_kbd_led_write() argument
236 DIV_ROUND_CLOSEST(g15_led->red * brightness, 255); in lg_g510_kbd_led_write()
238 DIV_ROUND_CLOSEST(g15_led->green * brightness, 255); in lg_g510_kbd_led_write()
240 DIV_ROUND_CLOSEST(g15_led->blue * brightness, 255); in lg_g510_kbd_led_write()
248 g15_led->brightness = brightness; in lg_g510_kbd_led_write()
251 hid_err(g15->hdev, "Error setting LED brightness: %d\n", ret); in lg_g510_kbd_led_write()
259 enum led_brightness brightness) in lg_g510_kbd_led_set() argument
271 ret = lg_g510_kbd_led_write(g15, g15_led, brightness); in lg_g510_kbd_led_set()
282 return g15_led->brightness; in lg_g510_kbd_led_get()
309 ret = lg_g510_kbd_led_write(g15, g15_led, g15_led->brightness); in color_store()
354 g15->leds[LG_G15_KBD_BRIGHTNESS].brightness); in lg_g510_leds_sync_work()
366 hid_err(g15->hdev, "Error getting LED brightness: %d\n", ret); in lg_g510_update_mkey_led_brightness()
370 g15->leds[LG_G15_MACRO_PRESET1].brightness = in lg_g510_update_mkey_led_brightness()
372 g15->leds[LG_G15_MACRO_PRESET2].brightness = in lg_g510_update_mkey_led_brightness()
374 g15->leds[LG_G15_MACRO_PRESET3].brightness = in lg_g510_update_mkey_led_brightness()
376 g15->leds[LG_G15_MACRO_RECORD].brightness = in lg_g510_update_mkey_led_brightness()
387 enum led_brightness brightness; in lg_g510_mkey_led_get() local
391 brightness = g15->leds[g15_led->led].brightness; in lg_g510_mkey_led_get()
394 return brightness; in lg_g510_mkey_led_get()
398 enum led_brightness brightness) in lg_g510_mkey_led_set() argument
414 val = brightness; in lg_g510_mkey_led_set()
416 val = g15->leds[i].brightness; in lg_g510_mkey_led_set()
430 g15_led->brightness = brightness; in lg_g510_mkey_led_set()
433 hid_err(g15->hdev, "Error setting LED brightness: %d\n", ret); in lg_g510_mkey_led_set()
464 * Getting the LCD backlight brightness is not supported. in lg_g15_get_initial_led_brightness()
694 * The G510 does not have a separate LCD brightness, in lg_g15_register_led()
862 /* Get initial brightness levels */ in lg_g15_probe()