Home
last modified time | relevance | path

Searched refs:delta_t (Results 1 – 4 of 4) sorted by relevance

/drivers/leds/trigger/
Dledtrig-pattern.c33 int delta_t; member
50 data->delta_t = 0; in pattern_trig_update_patterns()
62 if (data->delta_t == 0 || data->curr->delta_t < UPDATE_INTERVAL) in pattern_trig_compute_brightness()
66 step_brightness = data->delta_t * step_brightness / data->curr->delta_t; in pattern_trig_compute_brightness()
87 jiffies + msecs_to_jiffies(data->curr->delta_t)); in pattern_trig_timer_function()
88 if (!data->next->delta_t) { in pattern_trig_timer_function()
102 if (data->delta_t > data->curr->delta_t) { in pattern_trig_timer_function()
113 data->delta_t += UPDATE_INTERVAL; in pattern_trig_timer_function()
136 data->delta_t = 0; in pattern_trig_start_pattern()
213 data->patterns[i].delta_t); in pattern_trig_show_patterns()
[all …]
/drivers/leds/
Dleds-sc27xx-bltc.c134 static void sc27xx_led_clamp_align_delta_t(u32 *delta_t) in sc27xx_led_clamp_align_delta_t() argument
136 u32 v, offset, t = *delta_t; in sc27xx_led_clamp_align_delta_t()
143 *delta_t = SC27XX_DELTA_T_MIN + offset; in sc27xx_led_clamp_align_delta_t()
191 sc27xx_led_clamp_align_delta_t(&pattern[0].delta_t); in sc27xx_led_pattern_set()
194 pattern[0].delta_t / SC27XX_LEDS_STEP); in sc27xx_led_pattern_set()
198 sc27xx_led_clamp_align_delta_t(&pattern[1].delta_t); in sc27xx_led_pattern_set()
201 pattern[1].delta_t / SC27XX_LEDS_STEP); in sc27xx_led_pattern_set()
205 sc27xx_led_clamp_align_delta_t(&pattern[2].delta_t); in sc27xx_led_pattern_set()
208 (pattern[2].delta_t / SC27XX_LEDS_STEP) << in sc27xx_led_pattern_set()
213 sc27xx_led_clamp_align_delta_t(&pattern[3].delta_t); in sc27xx_led_pattern_set()
[all …]
Dleds-el15203000.c147 pattern[0].delta_t != 4000 || pattern[0].brightness != 0 || in el15203000_pattern_set_S()
148 pattern[1].delta_t != 4000 || pattern[1].brightness != 1) in el15203000_pattern_set_S()
171 if (pattern[i].delta_t != EL_PATTERN_DELAY_MSEC || in is_cascade()
/drivers/staging/olpc_dcon/
Dolpc_dcon.c237 ktime_t delta_t, now; in dcon_load_holdoff() local
241 delta_t = ktime_sub(now, dcon->load_time); in dcon_load_holdoff()
242 if (ktime_to_ns(delta_t) > NSEC_PER_MSEC * 20) in dcon_load_holdoff()
324 ktime_t delta_t; in dcon_source_switch() local
348 delta_t = ktime_sub(dcon->irq_time, dcon->load_time); in dcon_source_switch()
349 if (dcon->switched && ktime_to_ns(delta_t) in dcon_source_switch()