Home
last modified time | relevance | path

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

12

/drivers/leds/
Dled-core.c30 unsigned long delay_off) in led_set_software_blink() argument
41 led_cdev->blink_delay_off = delay_off; in led_set_software_blink()
50 if (!delay_off) { in led_set_software_blink()
61 unsigned long *delay_off) in led_blink_setup() argument
65 !led_cdev->blink_set(led_cdev, delay_on, delay_off)) in led_blink_setup()
69 if (!*delay_on && !*delay_off) in led_blink_setup()
70 *delay_on = *delay_off = 500; in led_blink_setup()
72 led_set_software_blink(led_cdev, *delay_on, *delay_off); in led_blink_setup()
77 unsigned long *delay_off) in led_blink_set() argument
84 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.c261 unsigned long *delay_off, in led_trigger_blink_setup() argument
273 led_blink_set_oneshot(led_cdev, delay_on, delay_off, in led_trigger_blink_setup()
276 led_blink_set(led_cdev, delay_on, delay_off); in led_trigger_blink_setup()
283 unsigned long *delay_off) in led_trigger_blink() argument
285 led_trigger_blink_setup(trig, delay_on, delay_off, 0, 0); in led_trigger_blink()
291 unsigned long *delay_off, in led_trigger_blink_oneshot() argument
294 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-netxbig.c145 unsigned long delay_off, in netxbig_led_get_timer_mode() argument
153 timer[i].delay_off == delay_off) { in netxbig_led_get_timer_mode()
163 unsigned long *delay_off) in netxbig_led_blink_set() argument
172 ret = netxbig_led_get_timer_mode(&mode, *delay_on, *delay_off, in netxbig_led_blink_set()
Dleds-wm831x-status.c89 unsigned long *delay_off) in wm831x_status_blink_set() argument
96 if (*delay_on == 0 && *delay_off == 0) { in wm831x_status_blink_set()
98 *delay_off = 250; in wm831x_status_blink_set()
126 switch (*delay_off / *delay_on) { in wm831x_status_blink_set()
Dleds-ss4200.c242 unsigned long *delay_off) in nasgpio_led_set_blink() argument
245 if (!(*delay_on == 0 && *delay_off == 0) && in nasgpio_led_set_blink()
246 !(*delay_on == 500 && *delay_off == 500)) in nasgpio_led_set_blink()
252 *delay_off = 500; in nasgpio_led_set_blink()
Ddell-led.c290 unsigned long *delay_off) in dell_led_blink() argument
305 off_eighths = (*delay_off + 124) / 125; in dell_led_blink()
310 *delay_off = off_eighths * 125; in dell_led_blink()
Dleds-lm3533.c301 unsigned long *delay_off) in lm3533_led_blink_set() argument
307 *delay_on, *delay_off); in lm3533_led_blink_set()
310 *delay_off > LM3533_LED_DELAY_OFF_MAX) in lm3533_led_blink_set()
313 if (*delay_on == 0 && *delay_off == 0) { in lm3533_led_blink_set()
315 *delay_off = 500; in lm3533_led_blink_set()
322 ret = lm3533_led_delay_off_set(led, delay_off); in lm3533_led_blink_set()
Dleds-gpio.c34 unsigned long *delay_on, unsigned long *delay_off);
84 unsigned long *delay_on, unsigned long *delay_off) in gpio_blink_set() argument
91 delay_on, delay_off); in gpio_blink_set()
Dleds-pca9532.c181 unsigned long *delay_on, unsigned long *delay_off) in pca9532_set_blink() argument
188 if (*delay_on == 0 && *delay_off == 0) { in pca9532_set_blink()
191 *delay_off = 1000; in pca9532_set_blink()
193 if (*delay_on != *delay_off || *delay_on > 1690 || *delay_on < 6) in pca9532_set_blink()
Dleds-tca6507.c567 unsigned long *delay_off) in tca6507_blink_set() argument
578 if (*delay_off == 0) in tca6507_blink_set()
580 else if (delay_off != &led_cdev->blink_delay_off) in tca6507_blink_set()
582 led->offtime = *delay_off; in tca6507_blink_set()
598 *delay_off = led->offtime; in tca6507_blink_set()
Dleds-pca963x.c216 unsigned long *delay_on, unsigned long *delay_off) in pca963x_blink_set() argument
225 time_off = *delay_off; in pca963x_blink_set()
268 *delay_off = time_off; in pca963x_blink_set()
Dleds-bd2802.c546 unsigned long *delay_on, unsigned long *delay_off) \
550 if (*delay_on == 0 || *delay_off == 0) \
/drivers/net/wireless/iwlwifi/dvm/
Dled.c166 unsigned long *delay_off) in iwl_led_blink_set() argument
170 return iwl_led_cmd(priv, *delay_on, *delay_off); in iwl_led_blink_set()
/drivers/power/
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/hid/
Dhid-sony.c1315 unsigned long *delay_off) in sony_led_blink_set() argument
1331 if (*delay_off > 2550) in sony_led_blink_set()
1332 *delay_off = 2550; in sony_led_blink_set()
1335 if (!*delay_on && !*delay_off) in sony_led_blink_set()
1336 *delay_on = *delay_off = 500; in sony_led_blink_set()
1339 new_off = *delay_off / 10; in sony_led_blink_set()
/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/net/wireless/rt2x00/
Drt2500usb.c307 unsigned long *delay_off) in rt2500usb_blink_set() argument
315 rt2x00_set_field16(&reg, MAC_CSR21_OFF_PERIOD, *delay_off); in rt2500usb_blink_set()
Drt2400pci.c230 unsigned long *delay_off) in rt2400pci_blink_set() argument
238 rt2x00_set_field32(&reg, LEDCSR_OFF_PERIOD, *delay_off); in rt2400pci_blink_set()
Drt2500pci.c230 unsigned long *delay_off) in rt2500pci_blink_set() argument
238 rt2x00_set_field32(&reg, LEDCSR_OFF_PERIOD, *delay_off); in rt2500pci_blink_set()
Drt73usb.c235 unsigned long *delay_off) in rt73usb_blink_set() argument
243 rt2x00_set_field32(&reg, MAC_CSR14_OFF_PERIOD, *delay_off); in rt73usb_blink_set()

12