Searched refs:transient_data (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/leds/trigger/
H A Dledtrig-transient.c41 struct transient_trig_data *transient_data = led_cdev->trigger_data; transient_timer_function() local
43 transient_data->activate = 0; transient_timer_function()
44 led_set_brightness_async(led_cdev, transient_data->restore_state); transient_timer_function()
51 struct transient_trig_data *transient_data = led_cdev->trigger_data; transient_activate_show() local
53 return sprintf(buf, "%d\n", transient_data->activate); transient_activate_show()
60 struct transient_trig_data *transient_data = led_cdev->trigger_data; transient_activate_store() local
72 if (state == 0 && transient_data->activate == 1) { transient_activate_store()
73 del_timer(&transient_data->timer); transient_activate_store()
74 transient_data->activate = state; transient_activate_store()
76 transient_data->restore_state); transient_activate_store()
81 if (state == 1 && transient_data->activate == 0 && transient_activate_store()
82 transient_data->duration != 0) { transient_activate_store()
83 transient_data->activate = state; transient_activate_store()
84 led_set_brightness_async(led_cdev, transient_data->state); transient_activate_store()
85 transient_data->restore_state = transient_activate_store()
86 (transient_data->state == LED_FULL) ? LED_OFF : LED_FULL; transient_activate_store()
87 mod_timer(&transient_data->timer, transient_activate_store()
88 jiffies + transient_data->duration); transient_activate_store()
91 /* state == 0 && transient_data->activate == 0 transient_activate_store()
93 /* state == 1 && transient_data->activate == 1 transient_activate_store()
103 struct transient_trig_data *transient_data = led_cdev->trigger_data; transient_duration_show() local
105 return sprintf(buf, "%lu\n", transient_data->duration); transient_duration_show()
112 struct transient_trig_data *transient_data = led_cdev->trigger_data; transient_duration_store() local
120 transient_data->duration = state; transient_duration_store()
128 struct transient_trig_data *transient_data = led_cdev->trigger_data; transient_state_show() local
131 state = (transient_data->state == LED_FULL) ? 1 : 0; transient_state_show()
139 struct transient_trig_data *transient_data = led_cdev->trigger_data; transient_state_store() local
150 transient_data->state = (state == 1) ? LED_FULL : LED_OFF; transient_state_store()
203 struct transient_trig_data *transient_data = led_cdev->trigger_data; transient_trig_deactivate() local
206 del_timer_sync(&transient_data->timer); transient_trig_deactivate()
208 transient_data->restore_state); transient_trig_deactivate()
214 kfree(transient_data); transient_trig_deactivate()

Completed in 161 milliseconds