Lines Matching refs:led_name

31 	char *led_name = NULL;  in get_led_name()  local
34 led_name = strrchr(dbus_path, '/'); in get_led_name()
35 if(led_name) in get_led_name()
37 led_name++; in get_led_name()
40 return led_name; in get_led_name()
105 char *led_name = get_led_name(led_path); in led_function_router() local
106 if(led_name == NULL) in led_function_router()
116 fprintf(stderr, "Null LED function specified for : [%s]\n",led_name); in led_function_router()
124 rc = led_stable_state_function(led_name, led_function); in led_function_router()
130 rc = led_default_blink(led_name, led_function); in led_function_router()
135 rc = led_custom_blink(led_name, msg); in led_function_router()
143 rc = read_led(led_name, power_ctrl, value_str, sizeof(value_str)-1); in led_function_router()
165 led_stable_state_function(const char *led_name, const char *led_function) in led_stable_state_function() argument
190 rc = write_to_led(led_name, blink_ctrl, "none"); in led_stable_state_function()
200 rc = write_to_led(led_name, power_ctrl, value); in led_stable_state_function()
213 blink_led(const char *led_name, const char *on_duration, const char *off_duration) in blink_led() argument
219 rc = write_to_led(led_name, blink_ctrl, "timer"); in blink_led()
222 fprintf(stderr,"Error writing timer to Led:[%s]\n", led_name); in blink_led()
231 rc = write_to_led(led_name, duty_on, on_duration); in blink_led()
234 fprintf(stderr,"Error writing [%s] to delay_on:[%s]\n",on_duration,led_name); in blink_led()
238 rc = write_to_led(led_name, duty_off, off_duration); in blink_led()
241 fprintf(stderr,"Error writing [%s] to delay_off:[%s]\n",off_duration,led_name); in blink_led()
253 led_default_blink(const char *led_name, const char *blink_type) in led_default_blink() argument
279 rc = blink_led(led_name, on_duration, off_duration); in led_default_blink()
290 led_custom_blink(const char *led_name, sd_bus_message *msg) in led_custom_blink() argument
336 rc = blink_led(led_name, on_duration, off_duration); in led_custom_blink()