Home
last modified time | relevance | path

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

/Linux-v6.6/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 …]
/Linux-v6.6/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-cht-wcove.c297 pattern[0].delta_t != pattern[1].delta_t || in cht_wc_leds_pattern_set()
298 (pattern[0].delta_t != 250 && pattern[0].delta_t != 500 && in cht_wc_leds_pattern_set()
299 pattern[0].delta_t != 1000 && pattern[0].delta_t != 2000)) in cht_wc_leds_pattern_set()
302 delay_off = pattern[0].delta_t; in cht_wc_leds_pattern_set()
303 delay_on = pattern[1].delta_t; in cht_wc_leds_pattern_set()
Dleds-el15203000.c146 pattern[0].delta_t != 4000 || pattern[0].brightness != 0 || in el15203000_pattern_set_S()
147 pattern[1].delta_t != 4000 || pattern[1].brightness != 1) in el15203000_pattern_set_S()
170 if (pattern[i].delta_t != EL_PATTERN_DELAY_MSEC || in is_cascade()
/Linux-v6.6/drivers/staging/olpc_dcon/
Dolpc_dcon.c238 ktime_t delta_t, now; in dcon_load_holdoff() local
242 delta_t = ktime_sub(now, dcon->load_time); in dcon_load_holdoff()
243 if (ktime_to_ns(delta_t) > NSEC_PER_MSEC * 20) in dcon_load_holdoff()
325 ktime_t delta_t; in dcon_source_switch() local
349 delta_t = ktime_sub(dcon->irq_time, dcon->load_time); in dcon_source_switch()
350 if (dcon->switched && ktime_to_ns(delta_t) in dcon_source_switch()
/Linux-v6.6/drivers/leds/rgb/
Dleds-qcom-lpg.c773 unsigned int delta_t; in lpg_pattern_set() local
805 if (led_pattern[i + 1].delta_t != 0) in lpg_pattern_set()
809 pattern[i / 2].delta_t = led_pattern[i].delta_t; in lpg_pattern_set()
862 delta_t = pattern[1].delta_t; in lpg_pattern_set()
864 if (pattern[i].delta_t != delta_t) { in lpg_pattern_set()
875 if (delta_t >= BIT(9)) in lpg_pattern_set()
879 lo_pause = pattern[0].delta_t; in lpg_pattern_set()
880 hi_pause = pattern[actual_len - 1].delta_t; in lpg_pattern_set()
890 chan->ramp_tick_ms = delta_t; in lpg_pattern_set()
Dleds-mt6370-rgb.c383 linear_range_get_selector_within(priv->ranges + sel_range, curr->delta_t, &sel); in mt6370_gen_breath_pattern()
/Linux-v6.6/include/linux/
Dleds.h716 u32 delta_t; member