Lines Matching refs:state

101 is_lit(struct light_state_t const* state)  in is_lit()  argument
103 return state->color & 0x00ffffff; in is_lit()
107 rgb_to_brightness(struct light_state_t const* state) in rgb_to_brightness() argument
109 int color = state->color & 0x00ffffff; in rgb_to_brightness()
116 struct light_state_t const* state) in set_light_backlight() argument
119 int brightness = rgb_to_brightness(state); in set_light_backlight()
131 struct light_state_t const* state) in set_speaker_light_locked() argument
142 switch (state->flashMode) { in set_speaker_light_locked()
144 onMS = state->flashOnMS; in set_speaker_light_locked()
145 offMS = state->flashOffMS; in set_speaker_light_locked()
154 colorRGB = state->color; in set_speaker_light_locked()
158 state->flashMode, colorRGB, onMS, offMS); in set_speaker_light_locked()
205 struct light_state_t const* state) in set_light_battery() argument
208 g_battery = *state; in set_light_battery()
216 struct light_state_t const* state) in set_light_notifications() argument
219 g_notification = *state; in set_light_notifications()
227 struct light_state_t const* state) in set_light_attention() argument
230 if (state->flashMode == LIGHT_FLASH_HARDWARE) { in set_light_attention()
231 g_attention = state->flashOnMS; in set_light_attention()
232 } else if (state->flashMode == LIGHT_FLASH_NONE) { in set_light_attention()
242 struct light_state_t const* state) in set_light_buttons() argument
249 err = write_int(BUTTON_FILE, state->color & 0xFF); in set_light_buttons()
276 struct light_state_t const* state); in open_lights()