Lines Matching refs:g15_led
97 struct lg_g15_led *g15_led = in lg_g15_led_get() local
104 brightness = g15->leds[g15_led->led].brightness; in lg_g15_led_get()
113 struct lg_g15_led *g15_led = in lg_g15_led_set() local
128 if (g15_led->led < LG_G15_BRIGHTNESS_MAX) { in lg_g15_led_set()
129 g15->transfer_buf[1] = g15_led->led + 1; in lg_g15_led_set()
130 g15->transfer_buf[2] = brightness << (g15_led->led * 4); in lg_g15_led_set()
133 if (i == g15_led->led) in lg_g15_led_set()
151 g15_led->brightness = brightness; in lg_g15_led_set()
229 struct lg_g15_led *g15_led, in lg_g510_kbd_led_write() argument
234 g15->transfer_buf[0] = 5 + g15_led->led; in lg_g510_kbd_led_write()
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()
243 LG_G510_FEATURE_BACKLIGHT_RGB + g15_led->led, in lg_g510_kbd_led_write()
248 g15_led->brightness = brightness; in lg_g510_kbd_led_write()
261 struct lg_g15_led *g15_led = in lg_g510_kbd_led_set() local
271 ret = lg_g510_kbd_led_write(g15, g15_led, brightness); in lg_g510_kbd_led_set()
279 struct lg_g15_led *g15_led = in lg_g510_kbd_led_get() local
282 return g15_led->brightness; in lg_g510_kbd_led_get()
289 struct lg_g15_led *g15_led = in color_store() local
306 g15_led->red = (value & 0xff0000) >> 16; in color_store()
307 g15_led->green = (value & 0x00ff00) >> 8; in color_store()
308 g15_led->blue = (value & 0x0000ff); in color_store()
309 ret = lg_g510_kbd_led_write(g15, g15_led, g15_led->brightness); in color_store()
319 struct lg_g15_led *g15_led = in color_show() local
326 g15_led->red, g15_led->green, g15_led->blue); in color_show()
384 struct lg_g15_led *g15_led = in lg_g510_mkey_led_get() local
391 brightness = g15->leds[g15_led->led].brightness; in lg_g510_mkey_led_get()
400 struct lg_g15_led *g15_led = in lg_g510_mkey_led_set() local
413 if (i == g15_led->led) in lg_g510_mkey_led_set()
430 g15_led->brightness = brightness; in lg_g510_mkey_led_set()