Home
last modified time | relevance | path

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

12

/drivers/leds/
Dled-core.c130 unsigned long delay_off) in led_set_software_blink() argument
141 led_cdev->blink_delay_off = delay_off; in led_set_software_blink()
150 if (!delay_off) { in led_set_software_blink()
163 unsigned long *delay_off) in led_blink_setup() argument
167 !led_cdev->blink_set(led_cdev, delay_on, delay_off)) in led_blink_setup()
171 if (!*delay_on && !*delay_off) in led_blink_setup()
172 *delay_on = *delay_off = 500; in led_blink_setup()
174 led_set_software_blink(led_cdev, *delay_on, *delay_off); in led_blink_setup()
188 unsigned long *delay_off) in led_blink_set() argument
196 led_blink_setup(led_cdev, delay_on, delay_off); in led_blink_set()
[all …]
Dleds-ipaq-micro.c61 unsigned long *delay_off) in micro_leds_blink_set() argument
83 *delay_off > IPAQ_LED_MAX_DUTY) in micro_leds_blink_set()
86 if (*delay_on == 0 && *delay_off == 0) { in micro_leds_blink_set()
88 *delay_off = 100; in micro_leds_blink_set()
96 if (*delay_off >= IPAQ_LED_MAX_DUTY) in micro_leds_blink_set()
99 msg.tx_data[3] = (u8) DIV_ROUND_CLOSEST(*delay_off, 100); in micro_leds_blink_set()
Dleds-clevo-mail.c112 unsigned long *delay_off) in clevo_mail_led_blink() argument
118 if (*delay_on == 0 /* ms */ && *delay_off == 0 /* ms */) { in clevo_mail_led_blink()
124 *delay_off = 1000; /* ms */ in clevo_mail_led_blink()
128 } else if (*delay_on == 500 /* ms */ && *delay_off == 500 /* ms */) { in clevo_mail_led_blink()
133 } else if (*delay_on == 1000 /* ms */ && *delay_off == 1000 /* ms */) { in clevo_mail_led_blink()
141 *delay_on, *delay_off); in clevo_mail_led_blink()
Dleds-asic3.c59 unsigned long *delay_off) in blink_set() argument
68 if (*delay_on > MAX_MS || *delay_off > MAX_MS) in blink_set()
71 if (*delay_on == 0 && *delay_off == 0) { in blink_set()
77 off = MS_TO_CLK(*delay_off); in blink_set()
89 *delay_off = CLK_TO_MS(off); in blink_set()
Dled-triggers.c299 unsigned long *delay_off, in led_trigger_blink_setup() argument
311 led_blink_set_oneshot(led_cdev, delay_on, delay_off, in led_trigger_blink_setup()
314 led_blink_set(led_cdev, delay_on, delay_off); in led_trigger_blink_setup()
321 unsigned long *delay_off) in led_trigger_blink() argument
323 led_trigger_blink_setup(trig, delay_on, delay_off, 0, 0); in led_trigger_blink()
329 unsigned long *delay_off, in led_trigger_blink_oneshot() argument
332 led_trigger_blink_setup(trig, delay_on, delay_off, 1, invert); in led_trigger_blink_oneshot()
Dleds-lp3944.c229 unsigned long *delay_off) in lp3944_led_set_blink() argument
237 if (*delay_on + *delay_off > LP3944_PERIOD_MAX) in lp3944_led_set_blink()
240 if (*delay_on == 0 && *delay_off == 0) { in lp3944_led_set_blink()
246 *delay_off = 500; in lp3944_led_set_blink()
249 period = (*delay_on) + (*delay_off); in lp3944_led_set_blink()
Dleds-wm831x-status.c88 unsigned long *delay_off) in wm831x_status_blink_set() argument
95 if (*delay_on == 0 && *delay_off == 0) { in wm831x_status_blink_set()
97 *delay_off = 250; in wm831x_status_blink_set()
125 switch (*delay_off / *delay_on) { in wm831x_status_blink_set()
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-netxbig.c128 unsigned long delay_off, in netxbig_led_get_timer_mode() argument
136 timer[i].delay_off == delay_off) { in netxbig_led_get_timer_mode()
146 unsigned long *delay_off) in netxbig_led_blink_set() argument
155 ret = netxbig_led_get_timer_mode(&mode, *delay_on, *delay_off, in netxbig_led_blink_set()
434 timers[i].delay_off = tmp; in netxbig_leds_get_of_pdata()
Dleds-ss4200.c255 unsigned long *delay_off) in nasgpio_led_set_blink() argument
258 if (!(*delay_on == 0 && *delay_off == 0) && in nasgpio_led_set_blink()
259 !(*delay_on == 500 && *delay_off == 500)) in nasgpio_led_set_blink()
265 *delay_off = 500; in nasgpio_led_set_blink()
Dleds-lm3533.c287 unsigned long *delay_off) in lm3533_led_blink_set() argument
293 *delay_on, *delay_off); in lm3533_led_blink_set()
296 *delay_off > LM3533_LED_DELAY_OFF_MAX) in lm3533_led_blink_set()
299 if (*delay_on == 0 && *delay_off == 0) { in lm3533_led_blink_set()
301 *delay_off = 500; in lm3533_led_blink_set()
308 ret = lm3533_led_delay_off_set(led, delay_off); in lm3533_led_blink_set()
Dleds-mt6323.c251 unsigned long *delay_off) in mt6323_led_set_blink() argument
264 period = *delay_on + *delay_off; in mt6323_led_set_blink()
275 if (!*delay_on && !*delay_off) { in mt6323_led_set_blink()
277 *delay_off = 500; in mt6323_led_set_blink()
Dleds-bcm6328.c156 unsigned long *delay_on, unsigned long *delay_off) in bcm6328_blink_set() argument
165 if (!*delay_off) in bcm6328_blink_set()
166 *delay_off = BCM6328_LED_DEF_DELAY; in bcm6328_blink_set()
169 if (delay != bcm6328_blink_delay(*delay_off)) { in bcm6328_blink_set()
Dleds-tca6507.c569 unsigned long *delay_off) in tca6507_blink_set() argument
580 if (*delay_off == 0) in tca6507_blink_set()
582 else if (delay_off != &led_cdev->blink_delay_off) in tca6507_blink_set()
584 led->offtime = *delay_off; in tca6507_blink_set()
600 *delay_off = led->offtime; in tca6507_blink_set()
Dleds-pca9532.c199 unsigned long *delay_on, unsigned long *delay_off) in pca9532_set_blink() argument
206 if (*delay_on == 0 && *delay_off == 0) { in pca9532_set_blink()
209 *delay_off = 1000; in pca9532_set_blink()
211 if (*delay_on != *delay_off || *delay_on > 1690 || *delay_on < 6) in pca9532_set_blink()
Dleds-pca963x.c240 unsigned long *delay_on, unsigned long *delay_off) in pca963x_blink_set() argument
249 time_off = *delay_off; in pca963x_blink_set()
287 *delay_off = time_off; in pca963x_blink_set()
Dleds-gpio.c69 unsigned long *delay_on, unsigned long *delay_off) in gpio_blink_set() argument
75 delay_on, delay_off); in gpio_blink_set()
Dleds-bd2802.c538 unsigned long *delay_on, unsigned long *delay_off) \
542 if (*delay_on == 0 || *delay_off == 0) \
/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()
/drivers/net/wireless/intel/iwlwifi/dvm/
Dled.c167 unsigned long *delay_off) in iwl_led_blink_set() argument
171 return iwl_led_cmd(priv, *delay_on, *delay_off); in iwl_led_blink_set()
/drivers/power/supply/
Dpower_supply_leds.c26 unsigned long delay_off = 0; in power_supply_update_bat_leds() local
46 &delay_on, &delay_off); in power_supply_update_bat_leds()
/drivers/leds/trigger/
Dledtrig-timer.c72 static DEVICE_ATTR(delay_off, 0644, led_delay_off_show, led_delay_off_store);
Dledtrig-oneshot.c121 static DEVICE_ATTR(delay_off, 0644, led_delay_off_show, led_delay_off_store);
/drivers/hid/
Dhid-sony.c1792 unsigned long *delay_off) in sony_led_blink_set() argument
1808 if (*delay_off > 2550) in sony_led_blink_set()
1809 *delay_off = 2550; in sony_led_blink_set()
1812 if (!*delay_on && !*delay_off) in sony_led_blink_set()
1813 *delay_on = *delay_off = 500; in sony_led_blink_set()
1816 new_off = *delay_off / 10; in sony_led_blink_set()
/drivers/staging/greybus/
Dlight.c454 unsigned long *delay_off) in gb_blink_set() argument
466 if (!delay_on || !delay_off) in gb_blink_set()
479 req.time_off_ms = cpu_to_le16(*delay_off); in gb_blink_set()

12