Home
last modified time | relevance | path

Searched refs:delay_on (Results 1 – 25 of 69) sorted by relevance

123

/linux-6.12.1/drivers/leds/
Dleds-ipaq-micro.c58 unsigned long *delay_on, in micro_leds_blink_set() argument
80 if (*delay_on > IPAQ_LED_MAX_DUTY || in micro_leds_blink_set()
84 if (*delay_on == 0 && *delay_off == 0) { in micro_leds_blink_set()
85 *delay_on = 100; in micro_leds_blink_set()
90 if (*delay_on >= IPAQ_LED_MAX_DUTY) in micro_leds_blink_set()
93 msg.tx_data[2] = (u8) DIV_ROUND_CLOSEST(*delay_on, 100); in micro_leds_blink_set()
Dled-core.c169 unsigned long delay_on = led_cdev->delayed_delay_on; in set_brightness_delayed() local
172 led_blink_set(led_cdev, &delay_on, &delay_off); in set_brightness_delayed()
177 unsigned long delay_on, in led_set_software_blink() argument
188 led_cdev->blink_delay_on = delay_on; in led_set_software_blink()
192 if (!delay_on) { in led_set_software_blink()
210 unsigned long *delay_on, in led_blink_setup() argument
215 !led_cdev->blink_set(led_cdev, delay_on, delay_off)) in led_blink_setup()
219 if (!*delay_on && !*delay_off) in led_blink_setup()
220 *delay_on = *delay_off = 500; in led_blink_setup()
222 led_set_software_blink(led_cdev, *delay_on, *delay_off); in led_blink_setup()
[all …]
Dleds-clevo-mail.c112 unsigned long *delay_on, in clevo_mail_led_blink() argument
119 if (*delay_on == 0 /* ms */ && *delay_off == 0 /* ms */) { in clevo_mail_led_blink()
124 *delay_on = 1000; /* ms */ in clevo_mail_led_blink()
129 } else if (*delay_on == 500 /* ms */ && *delay_off == 500 /* ms */) { in clevo_mail_led_blink()
134 } else if (*delay_on == 1000 /* ms */ && *delay_off == 1000 /* ms */) { in clevo_mail_led_blink()
142 *delay_on, *delay_off); in clevo_mail_led_blink()
Dleds-cht-wcove.c221 unsigned long *delay_on, in cht_wc_leds_set_effect() argument
231 if (!*delay_on && !*delay_off) in cht_wc_leds_set_effect()
232 *delay_on = *delay_off = 500; in cht_wc_leds_set_effect()
234 ctrl = cht_wc_leds_find_freq(*delay_on + *delay_off); in cht_wc_leds_set_effect()
243 *delay_on = *delay_off = 0; in cht_wc_leds_set_effect()
260 *delay_off = *delay_on = cht_wc_leds_get_period(ctrl) / 2; in cht_wc_leds_set_effect()
269 unsigned long *delay_on, in cht_wc_leds_blink_set() argument
282 *delay_on = *delay_off = 1000; in cht_wc_leds_blink_set()
286 return cht_wc_leds_set_effect(cdev, delay_on, delay_off, effect); in cht_wc_leds_blink_set()
293 unsigned long delay_off, delay_on; in cht_wc_leds_pattern_set() local
[all …]
Dleds-ariel.c60 unsigned long *delay_on, unsigned long *delay_off) in ariel_blink_set() argument
64 if (*delay_on == 0 && *delay_off == 0) in ariel_blink_set()
67 if (*delay_on == 0) { in ariel_blink_set()
72 *delay_on = 500; in ariel_blink_set()
Dleds-mlxreg.c153 mlxreg_led_blink_set(struct led_classdev *cled, unsigned long *delay_on, in mlxreg_led_blink_set() argument
164 if (!(*delay_on == 0 && *delay_off == 0) && in mlxreg_led_blink_set()
165 !(*delay_on == MLXREG_LED_BLINK_3HZ && in mlxreg_led_blink_set()
167 !(*delay_on == MLXREG_LED_BLINK_6HZ && in mlxreg_led_blink_set()
171 if (*delay_on == MLXREG_LED_BLINK_6HZ) in mlxreg_led_blink_set()
174 else if (*delay_on == MLXREG_LED_BLINK_3HZ) in mlxreg_led_blink_set()
Dleds-lp3944.c224 unsigned long *delay_on, in lp3944_led_set_blink() argument
233 if (*delay_on + *delay_off > LP3944_PERIOD_MAX) in lp3944_led_set_blink()
236 if (*delay_on == 0 && *delay_off == 0) { in lp3944_led_set_blink()
241 *delay_on = 500; in lp3944_led_set_blink()
245 period = (*delay_on) + (*delay_off); in lp3944_led_set_blink()
248 duty_cycle = 100 * (*delay_on) / period; in lp3944_led_set_blink()
Dleds-wm831x-status.c83 unsigned long *delay_on, in wm831x_status_blink_set() argument
91 if (*delay_on == 0 && *delay_off == 0) { in wm831x_status_blink_set()
92 *delay_on = 250; in wm831x_status_blink_set()
100 switch (*delay_on) { in wm831x_status_blink_set()
121 switch (*delay_off / *delay_on) { in wm831x_status_blink_set()
Dleds-mlxcpld.c298 unsigned long *delay_on, in mlxcpld_led_blink_set() argument
307 if (!(*delay_on == 0 && *delay_off == 0) && in mlxcpld_led_blink_set()
308 !(*delay_on == MLXCPLD_LED_BLINK_3HZ && in mlxcpld_led_blink_set()
310 !(*delay_on == MLXCPLD_LED_BLINK_6HZ && in mlxcpld_led_blink_set()
314 if (*delay_on == MLXCPLD_LED_BLINK_6HZ) in mlxcpld_led_blink_set()
Dled-triggers.c433 unsigned long delay_on, in led_trigger_blink_setup() argument
446 led_blink_set_oneshot(led_cdev, &delay_on, &delay_off, in led_trigger_blink_setup()
449 led_blink_set_nosleep(led_cdev, delay_on, delay_off); in led_trigger_blink_setup()
455 unsigned long delay_on, in led_trigger_blink() argument
458 led_trigger_blink_setup(trig, delay_on, delay_off, 0, 0); in led_trigger_blink()
463 unsigned long delay_on, in led_trigger_blink_oneshot() argument
467 led_trigger_blink_setup(trig, delay_on, delay_off, 1, invert); in led_trigger_blink_oneshot()
Dleds-pca9532.c202 unsigned long delay_on, unsigned long delay_off) in pca9532_update_hw_blink() argument
216 if (other->ldev.blink_delay_on != delay_on || in pca9532_update_hw_blink()
224 psc = ((delay_on + delay_off) * PCA9532_PWM_PERIOD_DIV - 1) / 1000; in pca9532_update_hw_blink()
232 data->pwm[PCA9532_PWM_ID_1] = (delay_on * PCA9532_PWM_DUTY_DIV) / (delay_on + delay_off); in pca9532_update_hw_blink()
238 unsigned long *delay_on, unsigned long *delay_off) in pca9532_set_blink() argument
248 if (*delay_on == 0 && *delay_off == 0) { in pca9532_set_blink()
250 *delay_on = 500; in pca9532_set_blink()
254 err = pca9532_update_hw_blink(led, *delay_on, *delay_off); in pca9532_set_blink()
Dleds-aw2013.c198 unsigned long *delay_on, unsigned long *delay_off) in aw2013_blink_set() argument
205 if (!*delay_off && !*delay_on) { in aw2013_blink_set()
207 *delay_on = 500; in aw2013_blink_set()
218 if (!*delay_on) { in aw2013_blink_set()
234 on = min(7, ilog2((*delay_on - 1) / AW2013_TIME_STEP) + 1); in aw2013_blink_set()
237 *delay_on = BIT(on) * AW2013_TIME_STEP; in aw2013_blink_set()
Dleds-netxbig.c40 unsigned long delay_on; member
121 unsigned long delay_on, in netxbig_led_get_timer_mode() argument
129 if (timer[i].delay_on == delay_on && in netxbig_led_get_timer_mode()
139 unsigned long *delay_on, in netxbig_led_blink_set() argument
149 ret = netxbig_led_get_timer_mode(&mode, *delay_on, *delay_off, in netxbig_led_blink_set()
485 timers[i].delay_on = tmp; in netxbig_leds_get_of_pdata()
Dleds-ss4200.c242 unsigned long *delay_on, in nasgpio_led_set_blink() argument
246 if (!(*delay_on == 0 && *delay_off == 0) && in nasgpio_led_set_blink()
247 !(*delay_on == 500 && *delay_off == 500)) in nasgpio_led_set_blink()
252 *delay_on = 500; in nasgpio_led_set_blink()
Dleds-lm3533.c282 unsigned long *delay_on, in lm3533_led_blink_set() argument
289 *delay_on, *delay_off); in lm3533_led_blink_set()
291 if (*delay_on > LM3533_LED_DELAY_ON_MAX || in lm3533_led_blink_set()
295 if (*delay_on == 0 && *delay_off == 0) { in lm3533_led_blink_set()
296 *delay_on = 500; in lm3533_led_blink_set()
300 ret = lm3533_led_delay_on_set(led, delay_on); in lm3533_led_blink_set()
Dleds-bcm6328.c163 unsigned long *delay_on, unsigned long *delay_off) in bcm6328_blink_set() argument
170 if (!*delay_on) in bcm6328_blink_set()
171 *delay_on = BCM6328_LED_DEF_DELAY; in bcm6328_blink_set()
175 delay = bcm6328_blink_delay(*delay_on); in bcm6328_blink_set()
/linux-6.12.1/drivers/leds/rgb/
Dleds-ktd202x.c268 static int ktd202x_blink_set(struct ktd202x_led *led, unsigned long *delay_on, in ktd202x_blink_set() argument
299 num_steps = (*delay_on + *delay_off - KTD202X_FLASH_PERIOD_MIN_MS) / in ktd202x_blink_set()
304 on = (*delay_on * KTD202X_FLASH_ON_MAX) / (*delay_on + *delay_off); in ktd202x_blink_set()
308 *delay_on = (delay_total_ms * on) / KTD202X_FLASH_ON_MAX; in ktd202x_blink_set()
309 *delay_off = delay_total_ms - *delay_on; in ktd202x_blink_set()
328 unsigned long *delay_on, in ktd202x_blink_single_set() argument
342 if (!*delay_off && !*delay_on) { in ktd202x_blink_single_set()
344 *delay_on = 500; in ktd202x_blink_single_set()
348 if (!*delay_on) in ktd202x_blink_single_set()
353 return ktd202x_blink_set(led, delay_on, delay_off, &info, 1); in ktd202x_blink_single_set()
[all …]
Dleds-mt6370-rgb.c481 unsigned long *delay_on, in mt6370_mc_blink_set() argument
493 if (!*delay_on && !*delay_off) in mt6370_mc_blink_set()
494 *delay_on = *delay_off = 500; in mt6370_mc_blink_set()
507 ret = mt6370_set_led_duty(priv, subled->channel, *delay_on, *delay_off); in mt6370_mc_blink_set()
511 ret = mt6370_set_led_freq(priv, subled->channel, *delay_on, *delay_off); in mt6370_mc_blink_set()
643 static int mt6370_isnk_blink_set(struct led_classdev *lcdev, unsigned long *delay_on, in mt6370_isnk_blink_set() argument
652 if (!*delay_on && !*delay_off) in mt6370_isnk_blink_set()
653 *delay_on = *delay_off = 500; in mt6370_isnk_blink_set()
655 ret = mt6370_set_led_duty(priv, led->index, *delay_on, *delay_off); in mt6370_isnk_blink_set()
659 ret = mt6370_set_led_freq(priv, led->index, *delay_on, *delay_off); in mt6370_isnk_blink_set()
/linux-6.12.1/include/linux/
Dleds.h155 unsigned long *delay_on,
320 void led_blink_set(struct led_classdev *led_cdev, unsigned long *delay_on,
332 void led_blink_set_nosleep(struct led_classdev *led_cdev, unsigned long delay_on,
352 unsigned long *delay_on, unsigned long *delay_off,
527 void led_trigger_blink(struct led_trigger *trigger, unsigned long delay_on,
530 unsigned long delay_on,
573 unsigned long delay_on, in led_trigger_blink() argument
576 unsigned long delay_on, in led_trigger_blink_oneshot() argument
666 unsigned long *delay_on,
/linux-6.12.1/drivers/leds/blink/
Dleds-bcm63138.c142 unsigned long *delay_on, in bcm63138_leds_blink_set() argument
150 if (!*delay_on && !*delay_off) { in bcm63138_leds_blink_set()
151 *delay_on = 640; in bcm63138_leds_blink_set()
155 if (*delay_on != *delay_off) { in bcm63138_leds_blink_set()
160 switch (*delay_on) { in bcm63138_leds_blink_set()
178 *delay_on); in bcm63138_leds_blink_set()
Dleds-lgm-sso.c274 delay_to_freq_idx(struct sso_led *led, unsigned long *delay_on, in delay_to_freq_idx() argument
282 if (!*delay_on && !*delay_off) { in delay_to_freq_idx()
283 *delay_on = *delay_off = (1000 / priv->freq[0]) / 2; in delay_to_freq_idx()
287 delay = *delay_on + *delay_off; in delay_to_freq_idx()
295 *delay_on = *delay_off = delay / 2; in delay_to_freq_idx()
297 if (!*delay_on) in delay_to_freq_idx()
298 *delay_on = *delay_off = 1; in delay_to_freq_idx()
304 sso_led_blink_set(struct led_classdev *led_cdev, unsigned long *delay_on, in sso_led_blink_set() argument
313 freq_idx = delay_to_freq_idx(led, delay_on, delay_off); in sso_led_blink_set()
/linux-6.12.1/Documentation/ABI/testing/
Dsysfs-class-led-trigger-oneshot1 What: /sys/class/leds/<led>/delay_on
25 delay_on ms, then blink off for delay_off ms, leaving the LED
27 blink on for delay_on ms, leaving the LED normally on.
/linux-6.12.1/drivers/platform/x86/dell/
Ddell-wmi-led.c132 unsigned long *delay_on, unsigned long *delay_off) in dell_led_blink() argument
142 on_eighths = DIV_ROUND_UP(*delay_on, 125); in dell_led_blink()
144 *delay_on = on_eighths * 125; in dell_led_blink()
/linux-6.12.1/drivers/net/dsa/qca/
Dqca8k-leds.c192 unsigned long *delay_on, in qca8k_cled_blink_set() argument
200 if (*delay_on == 0 && *delay_off == 0) { in qca8k_cled_blink_set()
201 *delay_on = 125; in qca8k_cled_blink_set()
205 if (*delay_on != 125 || *delay_off != 125) { in qca8k_cled_blink_set()
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/dvm/
Dled.c147 unsigned long *delay_on, in iwl_led_blink_set() argument
152 return iwl_led_cmd(priv, *delay_on, *delay_off); in iwl_led_blink_set()

123