Lines Matching refs:state
100 is_lit(struct light_state_t const* state) in is_lit() argument
102 return state->color & 0x00ffffff; in is_lit()
106 rgb_to_brightness(struct light_state_t const* state) in rgb_to_brightness() argument
108 int color = state->color & 0x00ffffff; in rgb_to_brightness()
115 struct light_state_t const* state) in set_light_backlight() argument
118 int brightness = rgb_to_brightness(state); in set_light_backlight()
130 struct light_state_t const* state) in set_speaker_light_locked() argument
141 switch (state->flashMode) { in set_speaker_light_locked()
143 onMS = state->flashOnMS; in set_speaker_light_locked()
144 offMS = state->flashOffMS; in set_speaker_light_locked()
153 colorRGB = state->color; in set_speaker_light_locked()
157 state->flashMode, colorRGB, onMS, offMS); in set_speaker_light_locked()
198 struct light_state_t const* state) in set_light_notifications() argument
201 g_notification = *state; in set_light_notifications()
209 struct light_state_t const* state) in set_light_attention() argument
212 if (state->flashMode == LIGHT_FLASH_HARDWARE) { in set_light_attention()
213 g_attention = state->flashOnMS; in set_light_attention()
214 } else if (state->flashMode == LIGHT_FLASH_NONE) { in set_light_attention()
224 struct light_state_t const* state) in set_light_buttons() argument
231 err = write_int(BUTTON_FILE, state->color & 0xFF); in set_light_buttons()
258 struct light_state_t const* state); in open_lights()