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()
204 struct light_state_t const* state) in set_light_battery() argument
207 g_battery = *state; in set_light_battery()
215 struct light_state_t const* state) in set_light_notifications() argument
218 g_notification = *state; in set_light_notifications()
226 struct light_state_t const* state) in set_light_attention() argument
229 if (state->flashMode == LIGHT_FLASH_HARDWARE) { in set_light_attention()
230 g_attention = state->flashOnMS; in set_light_attention()
231 } else if (state->flashMode == LIGHT_FLASH_NONE) { in set_light_attention()
241 struct light_state_t const* state) in set_light_buttons() argument
248 err = write_int(BUTTON_FILE, state->color & 0xFF); in set_light_buttons()
275 struct light_state_t const* state); in open_lights()