Home
last modified time | relevance | path

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

12

/drivers/leds/
Dled-core.c29 unsigned long delay_on, in led_set_software_blink() argument
40 led_cdev->blink_delay_on = delay_on; in led_set_software_blink()
44 if (!delay_on) { in led_set_software_blink()
60 unsigned long *delay_on, 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()
76 unsigned long *delay_on, in led_blink_set() argument
84 led_blink_setup(led_cdev, delay_on, delay_off); in led_blink_set()
[all …]
Dleds-ipaq-micro.c60 unsigned long *delay_on, in micro_leds_blink_set() argument
82 if (*delay_on > IPAQ_LED_MAX_DUTY || in micro_leds_blink_set()
86 if (*delay_on == 0 && *delay_off == 0) { in micro_leds_blink_set()
87 *delay_on = 100; in micro_leds_blink_set()
92 if (*delay_on >= IPAQ_LED_MAX_DUTY) in micro_leds_blink_set()
95 msg.tx_data[2] = (u8) DIV_ROUND_CLOSEST(*delay_on, 100); in micro_leds_blink_set()
Dleds-clevo-mail.c111 unsigned long *delay_on, in clevo_mail_led_blink() argument
118 if (*delay_on == 0 /* ms */ && *delay_off == 0 /* ms */) { in clevo_mail_led_blink()
123 *delay_on = 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.c58 unsigned long *delay_on, 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()
76 on = MS_TO_CLK(*delay_on); in blink_set()
88 *delay_on = CLK_TO_MS(on); in blink_set()
Dled-triggers.c260 unsigned long *delay_on, 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()
282 unsigned long *delay_on, in led_trigger_blink() argument
285 led_trigger_blink_setup(trig, delay_on, delay_off, 0, 0); in led_trigger_blink()
290 unsigned long *delay_on, 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.c228 unsigned long *delay_on, 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()
245 *delay_on = 500; in lp3944_led_set_blink()
249 period = (*delay_on) + (*delay_off); in lp3944_led_set_blink()
252 duty_cycle = 100 * (*delay_on) / period; in lp3944_led_set_blink()
Dleds-wm831x-status.c88 unsigned long *delay_on, in wm831x_status_blink_set() argument
96 if (*delay_on == 0 && *delay_off == 0) { in wm831x_status_blink_set()
97 *delay_on = 250; in wm831x_status_blink_set()
105 switch (*delay_on) { in wm831x_status_blink_set()
126 switch (*delay_off / *delay_on) { in wm831x_status_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()
190 *delay_on = 1000; in pca9532_set_blink()
193 if (*delay_on != *delay_off || *delay_on > 1690 || *delay_on < 6) in pca9532_set_blink()
197 psc = (*delay_on * 152-1)/1000; in pca9532_set_blink()
Dleds-netxbig.c144 unsigned long delay_on, in netxbig_led_get_timer_mode() argument
152 if (timer[i].delay_on == delay_on && in netxbig_led_get_timer_mode()
162 unsigned long *delay_on, in netxbig_led_blink_set() argument
172 ret = netxbig_led_get_timer_mode(&mode, *delay_on, *delay_off, in netxbig_led_blink_set()
Dleds-ss4200.c241 unsigned long *delay_on, 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()
251 *delay_on = 500; in nasgpio_led_set_blink()
Ddell-led.c289 unsigned long *delay_on, in dell_led_blink() argument
298 on_eighths = (*delay_on + 124) / 125; in dell_led_blink()
303 *delay_on = on_eighths * 125; in dell_led_blink()
Dleds-lm3533.c300 unsigned long *delay_on, in lm3533_led_blink_set() argument
307 *delay_on, *delay_off); in lm3533_led_blink_set()
309 if (*delay_on > LM3533_LED_DELAY_ON_MAX || in lm3533_led_blink_set()
313 if (*delay_on == 0 && *delay_off == 0) { in lm3533_led_blink_set()
314 *delay_on = 500; in lm3533_led_blink_set()
318 ret = lm3533_led_delay_on_set(led, delay_on); 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-tca6507.c566 unsigned long *delay_on, in tca6507_blink_set() argument
572 if (*delay_on == 0) in tca6507_blink_set()
574 else if (delay_on != &led_cdev->blink_delay_on) in tca6507_blink_set()
576 led->ontime = *delay_on; in tca6507_blink_set()
597 *delay_on = led->ontime; in tca6507_blink_set()
Dleds-pca963x.c216 unsigned long *delay_on, unsigned long *delay_off) in pca963x_blink_set() argument
224 time_on = *delay_on; in pca963x_blink_set()
267 *delay_on = time_on; 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.c165 unsigned long *delay_on, 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.c25 unsigned long delay_on = 0; in power_supply_update_bat_leds() local
46 &delay_on, &delay_off); in power_supply_update_bat_leds()
/drivers/hid/
Dhid-sony.c1314 static int sony_led_blink_set(struct led_classdev *led, unsigned long *delay_on, in sony_led_blink_set() argument
1329 if (*delay_on > 2550) in sony_led_blink_set()
1330 *delay_on = 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()
1338 new_on = *delay_on / 10; in sony_led_blink_set()
/drivers/leds/trigger/
Dledtrig-timer.c71 static DEVICE_ATTR(delay_on, 0644, led_delay_on_show, led_delay_on_store);
Dledtrig-oneshot.c120 static DEVICE_ATTR(delay_on, 0644, led_delay_on_show, led_delay_on_store);
/drivers/net/wireless/rt2x00/
Drt2500usb.c306 unsigned long *delay_on, in rt2500usb_blink_set() argument
314 rt2x00_set_field16(&reg, MAC_CSR21_ON_PERIOD, *delay_on); in rt2500usb_blink_set()
Drt2400pci.c229 unsigned long *delay_on, in rt2400pci_blink_set() argument
237 rt2x00_set_field32(&reg, LEDCSR_ON_PERIOD, *delay_on); in rt2400pci_blink_set()
Drt2500pci.c229 unsigned long *delay_on, in rt2500pci_blink_set() argument
237 rt2x00_set_field32(&reg, LEDCSR_ON_PERIOD, *delay_on); in rt2500pci_blink_set()
Drt73usb.c234 unsigned long *delay_on, in rt73usb_blink_set() argument
242 rt2x00_set_field32(&reg, MAC_CSR14_ON_PERIOD, *delay_on); in rt73usb_blink_set()

12