Lines Matching refs:curr
27 struct led_pattern *curr; member
41 data->curr = data->next; in pattern_trig_update_patterns()
42 if (!data->is_indefinite && data->curr == data->patterns) in pattern_trig_update_patterns()
62 if (data->delta_t == 0 || data->curr->delta_t < UPDATE_INTERVAL) in pattern_trig_compute_brightness()
63 return data->curr->brightness; in pattern_trig_compute_brightness()
65 step_brightness = abs(data->next->brightness - data->curr->brightness); in pattern_trig_compute_brightness()
66 step_brightness = data->delta_t * step_brightness / data->curr->delta_t; in pattern_trig_compute_brightness()
68 if (data->next->brightness > data->curr->brightness) in pattern_trig_compute_brightness()
69 return data->curr->brightness + step_brightness; in pattern_trig_compute_brightness()
71 return data->curr->brightness - step_brightness; in pattern_trig_compute_brightness()
82 if (data->curr->brightness == data->next->brightness) { in pattern_trig_timer_function()
85 data->curr->brightness); in pattern_trig_timer_function()
87 jiffies + msecs_to_jiffies(data->curr->delta_t)); in pattern_trig_timer_function()
102 if (data->delta_t > data->curr->delta_t) { in pattern_trig_timer_function()
137 data->curr = data->patterns; in pattern_trig_start_pattern()