/drivers/leds/ |
D | led-core.c | 29 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 …]
|
D | leds-ipaq-micro.c | 60 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()
|
D | leds-clevo-mail.c | 111 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()
|
D | leds-asic3.c | 58 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()
|
D | led-triggers.c | 260 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()
|
D | leds-lp3944.c | 228 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()
|
D | leds-wm831x-status.c | 88 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()
|
D | leds-pca9532.c | 181 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()
|
D | leds-netxbig.c | 144 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()
|
D | leds-ss4200.c | 241 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()
|
D | dell-led.c | 289 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()
|
D | leds-lm3533.c | 300 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()
|
D | leds-gpio.c | 34 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()
|
D | leds-tca6507.c | 566 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()
|
D | leds-pca963x.c | 216 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()
|
D | leds-bd2802.c | 546 unsigned long *delay_on, unsigned long *delay_off) \ 550 if (*delay_on == 0 || *delay_off == 0) \
|
/drivers/net/wireless/iwlwifi/dvm/ |
D | led.c | 165 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/ |
D | power_supply_leds.c | 25 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/ |
D | hid-sony.c | 1314 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/ |
D | ledtrig-timer.c | 71 static DEVICE_ATTR(delay_on, 0644, led_delay_on_show, led_delay_on_store);
|
D | ledtrig-oneshot.c | 120 static DEVICE_ATTR(delay_on, 0644, led_delay_on_show, led_delay_on_store);
|
/drivers/net/wireless/rt2x00/ |
D | rt2500usb.c | 306 unsigned long *delay_on, in rt2500usb_blink_set() argument 314 rt2x00_set_field16(®, MAC_CSR21_ON_PERIOD, *delay_on); in rt2500usb_blink_set()
|
D | rt2400pci.c | 229 unsigned long *delay_on, in rt2400pci_blink_set() argument 237 rt2x00_set_field32(®, LEDCSR_ON_PERIOD, *delay_on); in rt2400pci_blink_set()
|
D | rt2500pci.c | 229 unsigned long *delay_on, in rt2500pci_blink_set() argument 237 rt2x00_set_field32(®, LEDCSR_ON_PERIOD, *delay_on); in rt2500pci_blink_set()
|
D | rt73usb.c | 234 unsigned long *delay_on, in rt73usb_blink_set() argument 242 rt2x00_set_field32(®, MAC_CSR14_ON_PERIOD, *delay_on); in rt73usb_blink_set()
|