Home
last modified time | relevance | path

Searched refs:delay_off (Results 1 – 25 of 52) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/leds/
Dleds-ipaq-micro.c59 unsigned long *delay_off) in micro_leds_blink_set() argument
81 *delay_off > IPAQ_LED_MAX_DUTY) in micro_leds_blink_set()
84 if (*delay_on == 0 && *delay_off == 0) { in micro_leds_blink_set()
86 *delay_off = 100; in micro_leds_blink_set()
94 if (*delay_off >= IPAQ_LED_MAX_DUTY) in micro_leds_blink_set()
97 msg.tx_data[3] = (u8) DIV_ROUND_CLOSEST(*delay_off, 100); in micro_leds_blink_set()
Dled-core.c144 unsigned long delay_off) in led_set_software_blink() argument
155 led_cdev->blink_delay_off = delay_off; in led_set_software_blink()
164 if (!delay_off) { in led_set_software_blink()
177 unsigned long *delay_off) in led_blink_setup() argument
181 !led_cdev->blink_set(led_cdev, delay_on, delay_off)) in led_blink_setup()
185 if (!*delay_on && !*delay_off) in led_blink_setup()
186 *delay_on = *delay_off = 500; in led_blink_setup()
188 led_set_software_blink(led_cdev, *delay_on, *delay_off); in led_blink_setup()
201 unsigned long *delay_off) in led_blink_set() argument
209 led_blink_setup(led_cdev, delay_on, delay_off); in led_blink_set()
[all …]
Dleds-clevo-mail.c113 unsigned long *delay_off) in clevo_mail_led_blink() argument
119 if (*delay_on == 0 /* ms */ && *delay_off == 0 /* ms */) { in clevo_mail_led_blink()
125 *delay_off = 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-asic3.c56 unsigned long *delay_off) in blink_set() argument
65 if (*delay_on > MAX_MS || *delay_off > MAX_MS) in blink_set()
68 if (*delay_on == 0 && *delay_off == 0) { in blink_set()
74 off = MS_TO_CLK(*delay_off); in blink_set()
86 *delay_off = CLK_TO_MS(off); in blink_set()
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()
69 } else if (*delay_off == 0) { in ariel_blink_set()
73 *delay_off = 500; in ariel_blink_set()
Dled-triggers.c395 unsigned long *delay_off, in led_trigger_blink_setup() argument
408 led_blink_set_oneshot(led_cdev, delay_on, delay_off, in led_trigger_blink_setup()
411 led_blink_set(led_cdev, delay_on, delay_off); in led_trigger_blink_setup()
418 unsigned long *delay_off) in led_trigger_blink() argument
420 led_trigger_blink_setup(trig, delay_on, delay_off, 0, 0); in led_trigger_blink()
426 unsigned long *delay_off, in led_trigger_blink_oneshot() argument
429 led_trigger_blink_setup(trig, delay_on, delay_off, 1, invert); in led_trigger_blink_oneshot()
Dleds-aw2013.c196 unsigned long *delay_on, unsigned long *delay_off) in aw2013_blink_set() argument
203 if (!*delay_off && !*delay_on) { in aw2013_blink_set()
204 *delay_off = 500; in aw2013_blink_set()
224 if (!*delay_off) { in aw2013_blink_set()
231 off = min(5, ilog2((*delay_off - 1) / AW2013_TIME_STEP) + 1); in aw2013_blink_set()
234 *delay_off = BIT(off) * AW2013_TIME_STEP; in aw2013_blink_set()
Dleds-lp3944.c225 unsigned long *delay_off) 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()
242 *delay_off = 500; in lp3944_led_set_blink()
245 period = (*delay_on) + (*delay_off); in lp3944_led_set_blink()
Dleds-wm831x-status.c84 unsigned long *delay_off) in wm831x_status_blink_set() argument
91 if (*delay_on == 0 && *delay_off == 0) { in wm831x_status_blink_set()
93 *delay_off = 250; in wm831x_status_blink_set()
121 switch (*delay_off / *delay_on) { in wm831x_status_blink_set()
Dleds-mlxreg.c155 unsigned long *delay_off) in mlxreg_led_blink_set() argument
165 if (!(*delay_on == 0 && *delay_off == 0) && in mlxreg_led_blink_set()
167 *delay_off == MLXREG_LED_BLINK_3HZ) && in mlxreg_led_blink_set()
169 *delay_off == MLXREG_LED_BLINK_6HZ)) in mlxreg_led_blink_set()
Dleds-netxbig.c41 unsigned long delay_off; member
122 unsigned long delay_off, in netxbig_led_get_timer_mode() argument
130 timer[i].delay_off == delay_off) { in netxbig_led_get_timer_mode()
140 unsigned long *delay_off) in netxbig_led_blink_set() argument
149 ret = netxbig_led_get_timer_mode(&mode, *delay_on, *delay_off, in netxbig_led_blink_set()
489 timers[i].delay_off = tmp; in netxbig_leds_get_of_pdata()
Dleds-mlxcpld.c299 unsigned long *delay_off) in mlxcpld_led_blink_set() argument
307 if (!(*delay_on == 0 && *delay_off == 0) && in mlxcpld_led_blink_set()
309 *delay_off == MLXCPLD_LED_BLINK_3HZ) && in mlxcpld_led_blink_set()
311 *delay_off == MLXCPLD_LED_BLINK_6HZ)) in mlxcpld_led_blink_set()
Dleds-ss4200.c243 unsigned long *delay_off) 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()
253 *delay_off = 500; in nasgpio_led_set_blink()
Dleds-lm3533.c283 unsigned long *delay_off) in lm3533_led_blink_set() argument
289 *delay_on, *delay_off); in lm3533_led_blink_set()
292 *delay_off > LM3533_LED_DELAY_OFF_MAX) in lm3533_led_blink_set()
295 if (*delay_on == 0 && *delay_off == 0) { in lm3533_led_blink_set()
297 *delay_off = 500; in lm3533_led_blink_set()
304 ret = lm3533_led_delay_off_set(led, delay_off); in lm3533_led_blink_set()
Dleds-mt6323.c242 unsigned long *delay_off) in mt6323_led_set_blink() argument
257 if (!*delay_on && !*delay_off) { in mt6323_led_set_blink()
259 *delay_off = 500; in mt6323_led_set_blink()
266 period = *delay_on + *delay_off; in mt6323_led_set_blink()
Dleds-bcm6328.c163 unsigned long *delay_on, unsigned long *delay_off) in bcm6328_blink_set() argument
172 if (!*delay_off) in bcm6328_blink_set()
173 *delay_off = BCM6328_LED_DEF_DELAY; in bcm6328_blink_set()
176 if (delay != bcm6328_blink_delay(*delay_off)) { in bcm6328_blink_set()
Dleds-an30259a.c128 unsigned long *delay_off, unsigned long *delay_on) in an30259a_blink_set() argument
133 unsigned long off = *delay_off, on = *delay_on; in an30259a_blink_set()
154 *delay_off = off = 500; in an30259a_blink_set()
Dleds-pca963x.c233 unsigned long *delay_on, unsigned long *delay_off) in pca963x_blink_set() argument
242 time_off = *delay_off; in pca963x_blink_set()
280 *delay_off = time_off; in pca963x_blink_set()
/kernel/linux/linux-5.10/include/linux/
Dleds.h118 unsigned long *delay_off);
229 unsigned long *delay_off);
245 unsigned long *delay_on, unsigned long *delay_off,
388 unsigned long *delay_off);
391 unsigned long *delay_off,
442 unsigned long *delay_off) {} in led_trigger_blink() argument
445 unsigned long *delay_off, in led_trigger_blink_oneshot() argument
510 unsigned long *delay_off);
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7615/
Dpci_init.c68 u8 delay_on, u8 delay_off) in mt7615_led_set_config() argument
81 FIELD_PREP(MT_LED_STATUS_OFF, delay_off) | in mt7615_led_set_config()
100 unsigned long *delay_off) in mt7615_led_set_blink() argument
104 delta_off = max_t(u8, *delay_off / 10, 1); in mt7615_led_set_blink()
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-class-led-trigger-oneshot10 What: /sys/class/leds/<led>/delay_off
25 delay_on ms, then blink off for delay_off ms, leaving the LED
26 normally off. If set to 1, blink off for delay_off ms, then
/kernel/linux/linux-5.10/drivers/platform/x86/
Ddell-wmi-led.c132 unsigned long *delay_on, unsigned long *delay_off) in dell_led_blink() argument
146 off_eighths = DIV_ROUND_UP(*delay_off, 125); in dell_led_blink()
148 *delay_off = off_eighths * 125; in dell_led_blink()
/kernel/linux/linux-5.10/drivers/power/supply/
Dpower_supply_leds.c25 unsigned long delay_off = 0; in power_supply_update_bat_leds() local
45 &delay_on, &delay_off); in power_supply_update_bat_leds()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/dvm/
Dled.c153 unsigned long *delay_off) in iwl_led_blink_set() argument
157 return iwl_led_cmd(priv, *delay_on, *delay_off); in iwl_led_blink_set()
/kernel/linux/linux-5.10/arch/arm/plat-orion/include/plat/
Dorion-gpio.h26 unsigned long *delay_on, unsigned long *delay_off);

123