Lines Matching full:color

94 	enum led_colors			color;  member
108 enum led_colors color) in bd2802_is_rgb_off() argument
110 switch (color) { in bd2802_is_rgb_off()
118 dev_err(&led->client->dev, "%s: Invalid color\n", __func__); in bd2802_is_rgb_off()
142 static inline u8 bd2802_get_base_offset(enum led_ids id, enum led_colors color) in bd2802_get_base_offset() argument
144 return id * BD2802_LED_OFFSET + color * BD2802_COLOR_OFFSET; in bd2802_get_base_offset()
147 static inline u8 bd2802_get_reg_addr(enum led_ids id, enum led_colors color, in bd2802_get_reg_addr() argument
150 return reg_offset + bd2802_get_base_offset(id, color); in bd2802_get_reg_addr()
171 enum led_colors color, enum led_bits led_bit) in bd2802_update_state() argument
178 switch (color) { in bd2802_update_state()
190 "%s: Invalid color\n", __func__); in bd2802_update_state()
249 enum led_colors color) in bd2802_set_on() argument
256 reg = bd2802_get_reg_addr(id, color, BD2802_REG_CURRENT1SETUP); in bd2802_set_on()
258 reg = bd2802_get_reg_addr(id, color, BD2802_REG_CURRENT2SETUP); in bd2802_set_on()
260 reg = bd2802_get_reg_addr(id, color, BD2802_REG_WAVEPATTERN); in bd2802_set_on()
264 bd2802_update_state(led, id, color, BD2802_ON); in bd2802_set_on()
268 enum led_colors color) in bd2802_set_blink() argument
275 reg = bd2802_get_reg_addr(id, color, BD2802_REG_CURRENT1SETUP); in bd2802_set_blink()
277 reg = bd2802_get_reg_addr(id, color, BD2802_REG_CURRENT2SETUP); in bd2802_set_blink()
279 reg = bd2802_get_reg_addr(id, color, BD2802_REG_WAVEPATTERN); in bd2802_set_blink()
283 bd2802_update_state(led, id, color, BD2802_BLINK); in bd2802_set_blink()
287 enum led_colors color, enum led_bits led_bit) in bd2802_turn_on() argument
296 bd2802_set_blink(led, id, color); in bd2802_turn_on()
298 bd2802_set_on(led, id, color); in bd2802_turn_on()
302 enum led_colors color) in bd2802_turn_off() argument
306 if (bd2802_is_rgb_off(led, id, color)) in bd2802_turn_off()
309 reg = bd2802_get_reg_addr(id, color, BD2802_REG_CURRENT1SETUP); in bd2802_turn_off()
311 reg = bd2802_get_reg_addr(id, color, BD2802_REG_CURRENT2SETUP); in bd2802_turn_off()
314 bd2802_update_state(led, id, color, BD2802_OFF); in bd2802_turn_off()
523 led->color = clr; \
526 bd2802_turn_off(led, led->led_id, led->color); \
529 bd2802_turn_on(led, led->led_id, led->color, BD2802_ON);\
541 led->color = clr; \
543 bd2802_turn_on(led, led->led_id, led->color, BD2802_BLINK); \