Lines Matching refs:state
117 is_lit(struct light_state_t const* state) in is_lit() argument
119 return state->color & 0x00ffffff; in is_lit()
123 rgb_to_brightness(struct light_state_t const* state) in rgb_to_brightness() argument
125 int color = state->color & 0x00ffffff; in rgb_to_brightness()
132 struct light_state_t const* state) in set_light_backlight() argument
135 int brightness = rgb_to_brightness(state); in set_light_backlight()
144 struct light_state_t const* state) in set_speaker_light_locked() argument
151 switch (state->flashMode) { in set_speaker_light_locked()
153 onMS = state->flashOnMS; in set_speaker_light_locked()
154 offMS = state->flashOffMS; in set_speaker_light_locked()
163 colorRGB = state->color; in set_speaker_light_locked()
167 state->flashMode, colorRGB, onMS, offMS); in set_speaker_light_locked()
241 struct light_state_t const* state) in set_light_notifications() argument
244 g_notification = *state; in set_light_notifications()
252 struct light_state_t const* state) in set_light_attention() argument
255 if (state->flashMode == LIGHT_FLASH_HARDWARE) { in set_light_attention()
256 g_attention = state->flashOnMS; in set_light_attention()
257 } else if (state->flashMode == LIGHT_FLASH_NONE) { in set_light_attention()
288 struct light_state_t const* state); in open_lights()