Lines Matching refs:led
192 static int set_rgb_led_brightness(enum rgb_led led, int brightness) in set_rgb_led_brightness() argument
197 snprintf(file, sizeof(file), "/sys/class/leds/%s/trigger", led_names[led]); in set_rgb_led_brightness()
200 ALOGD("%s failed to set trigger to none\n", led_names[led]); in set_rgb_led_brightness()
204 snprintf(file, sizeof(file), "/sys/class/leds/%s/brightness", led_names[led]); in set_rgb_led_brightness()
212 static int set_rgb_led_timer_trigger(enum rgb_led led, int onMS, int offMS) in set_rgb_led_timer_trigger() argument
219 snprintf(file_on, sizeof(file_on), "/sys/class/leds/%s/trigger", led_names[led]); in set_rgb_led_timer_trigger()
222 ALOGD("%s doesn't support timer trigger\n", led_names[led]); in set_rgb_led_timer_trigger()
226 snprintf(file_off, sizeof(file_off), "/sys/class/leds/%s/delay_off", led_names[led]); in set_rgb_led_timer_trigger()
227 snprintf(file_on, sizeof(file_on), "/sys/class/leds/%s/delay_on", led_names[led]); in set_rgb_led_timer_trigger()
243 ALOGE("Error in writing to delay_on/off for %s\n", led_names[led]); in set_rgb_led_timer_trigger()
250 static int set_rgb_led_hw_blink(enum rgb_led led, int blink) in set_rgb_led_hw_blink() argument
254 snprintf(file, sizeof(file), "/sys/class/leds/%s/breath", led_names[led]); in set_rgb_led_hw_blink()