Lines Matching refs:rc

195     int rc;  in set_rgb_led_brightness()  local
198 rc = write_str(file, "none"); in set_rgb_led_brightness()
199 if (rc < 0) { in set_rgb_led_brightness()
201 return rc; in set_rgb_led_brightness()
205 rc = write_int(file, brightness); in set_rgb_led_brightness()
206 if (rc < 0) in set_rgb_led_brightness()
207 return rc; in set_rgb_led_brightness()
209 return rc; in set_rgb_led_brightness()
216 int rc; in set_rgb_led_timer_trigger() local
220 rc = write_str(file_on, "timer"); in set_rgb_led_timer_trigger()
221 if (rc < 0) { in set_rgb_led_timer_trigger()
223 return rc; in set_rgb_led_timer_trigger()
233 rc = write_int(file_off, offMS); in set_rgb_led_timer_trigger()
234 if (rc < 0) in set_rgb_led_timer_trigger()
237 rc = write_int(file_on, onMS); in set_rgb_led_timer_trigger()
238 if (!rc) in set_rgb_led_timer_trigger()
242 if (rc < 0) { in set_rgb_led_timer_trigger()
244 return rc; in set_rgb_led_timer_trigger()
269 int rc = 0; in set_speaker_light_locked() local
289 rc = set_rgb_led_hw_blink(LED_RED, blink); in set_speaker_light_locked()
291 rc |= set_rgb_led_hw_blink(LED_GREEN, blink); in set_speaker_light_locked()
293 rc |= set_rgb_led_hw_blink(LED_BLUE, blink); in set_speaker_light_locked()
295 if (rc == 0) in set_speaker_light_locked()
299 rc = set_rgb_led_timer_trigger(LED_RED, onMS, offMS); in set_speaker_light_locked()
301 rc |= set_rgb_led_timer_trigger(LED_GREEN, onMS, offMS); in set_speaker_light_locked()
303 rc |= set_rgb_led_timer_trigger(LED_BLUE, onMS, offMS); in set_speaker_light_locked()
305 if (rc == 0) in set_speaker_light_locked()
309 rc = set_rgb_led_brightness(LED_RED, red); in set_speaker_light_locked()
310 rc |= set_rgb_led_brightness(LED_GREEN, green); in set_speaker_light_locked()
311 rc |= set_rgb_led_brightness(LED_BLUE, blue); in set_speaker_light_locked()
316 state->flashMode, colorRGB, onMS, offMS, rc); in set_speaker_light_locked()
318 return rc; in set_speaker_light_locked()