/linux/drivers/leds/ |
A D | leds-ipaq-micro.c | 58 unsigned long *delay_on, in micro_leds_blink_set() argument 80 if (*delay_on > IPAQ_LED_MAX_DUTY || in micro_leds_blink_set() 84 if (*delay_on == 0 && *delay_off == 0) { in micro_leds_blink_set() 85 *delay_on = 100; in micro_leds_blink_set() 90 if (*delay_on >= IPAQ_LED_MAX_DUTY) in micro_leds_blink_set() 93 msg.tx_data[2] = (u8) DIV_ROUND_CLOSEST(*delay_on, 100); in micro_leds_blink_set()
|
A D | led-core.c | 141 unsigned long delay_on, in led_set_software_blink() argument 152 led_cdev->blink_delay_on = delay_on; in led_set_software_blink() 156 if (!delay_on) { in led_set_software_blink() 174 unsigned long *delay_on, in led_blink_setup() argument 179 !led_cdev->blink_set(led_cdev, delay_on, delay_off)) in led_blink_setup() 183 if (!*delay_on && !*delay_off) in led_blink_setup() 184 *delay_on = *delay_off = 500; in led_blink_setup() 198 unsigned long *delay_on, in led_blink_set() argument 207 led_blink_setup(led_cdev, delay_on, delay_off); in led_blink_set() 212 unsigned long *delay_on, in led_blink_set_oneshot() argument [all …]
|
A D | leds-clevo-mail.c | 112 unsigned long *delay_on, in clevo_mail_led_blink() argument 119 if (*delay_on == 0 /* ms */ && *delay_off == 0 /* ms */) { in clevo_mail_led_blink() 124 *delay_on = 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()
|
A D | leds-asic3.c | 55 unsigned long *delay_on, 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() 73 on = MS_TO_CLK(*delay_on); in blink_set() 85 *delay_on = CLK_TO_MS(on); in blink_set()
|
A D | leds-mlxreg.c | 155 mlxreg_led_blink_set(struct led_classdev *cled, unsigned long *delay_on, in mlxreg_led_blink_set() argument 166 if (!(*delay_on == 0 && *delay_off == 0) && in mlxreg_led_blink_set() 167 !(*delay_on == MLXREG_LED_BLINK_3HZ && in mlxreg_led_blink_set() 169 !(*delay_on == MLXREG_LED_BLINK_6HZ && in mlxreg_led_blink_set() 173 if (*delay_on == MLXREG_LED_BLINK_6HZ) in mlxreg_led_blink_set() 176 else if (*delay_on == MLXREG_LED_BLINK_3HZ) in mlxreg_led_blink_set()
|
A D | leds-ariel.c | 60 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() 67 if (*delay_on == 0) { in ariel_blink_set() 72 *delay_on = 500; in ariel_blink_set()
|
A D | leds-lp3944.c | 224 unsigned long *delay_on, 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() 241 *delay_on = 500; in lp3944_led_set_blink() 245 period = (*delay_on) + (*delay_off); in lp3944_led_set_blink() 248 duty_cycle = 100 * (*delay_on) / period; in lp3944_led_set_blink()
|
A D | led-triggers.c | 396 unsigned long *delay_on, in led_trigger_blink_setup() argument 409 led_blink_set_oneshot(led_cdev, delay_on, delay_off, in led_trigger_blink_setup() 412 led_blink_set(led_cdev, delay_on, delay_off); in led_trigger_blink_setup() 418 unsigned long *delay_on, in led_trigger_blink() argument 421 led_trigger_blink_setup(trig, delay_on, delay_off, 0, 0); in led_trigger_blink() 426 unsigned long *delay_on, in led_trigger_blink_oneshot() argument 430 led_trigger_blink_setup(trig, delay_on, delay_off, 1, invert); in led_trigger_blink_oneshot()
|
A D | leds-wm831x-status.c | 83 unsigned long *delay_on, in wm831x_status_blink_set() argument 91 if (*delay_on == 0 && *delay_off == 0) { in wm831x_status_blink_set() 92 *delay_on = 250; in wm831x_status_blink_set() 100 switch (*delay_on) { in wm831x_status_blink_set() 121 switch (*delay_off / *delay_on) { in wm831x_status_blink_set()
|
A D | leds-mlxcpld.c | 298 unsigned long *delay_on, in mlxcpld_led_blink_set() argument 307 if (!(*delay_on == 0 && *delay_off == 0) && in mlxcpld_led_blink_set() 308 !(*delay_on == MLXCPLD_LED_BLINK_3HZ && in mlxcpld_led_blink_set() 310 !(*delay_on == MLXCPLD_LED_BLINK_6HZ && in mlxcpld_led_blink_set() 314 if (*delay_on == MLXCPLD_LED_BLINK_6HZ) in mlxcpld_led_blink_set()
|
A D | leds-aw2013.c | 196 unsigned long *delay_on, unsigned long *delay_off) in aw2013_blink_set() argument 203 if (!*delay_off && !*delay_on) { in aw2013_blink_set() 205 *delay_on = 500; in aw2013_blink_set() 216 if (!*delay_on) { in aw2013_blink_set() 232 on = min(7, ilog2((*delay_on - 1) / AW2013_TIME_STEP) + 1); in aw2013_blink_set() 235 *delay_on = BIT(on) * AW2013_TIME_STEP; in aw2013_blink_set()
|
A D | leds-netxbig.c | 40 unsigned long delay_on; member 121 unsigned long delay_on, in netxbig_led_get_timer_mode() argument 129 if (timer[i].delay_on == delay_on && in netxbig_led_get_timer_mode() 139 unsigned long *delay_on, in netxbig_led_blink_set() argument 149 ret = netxbig_led_get_timer_mode(&mode, *delay_on, *delay_off, in netxbig_led_blink_set() 486 timers[i].delay_on = tmp; in netxbig_leds_get_of_pdata()
|
A D | leds-pca9532.c | 197 unsigned long *delay_on, unsigned long *delay_off) in pca9532_set_blink() argument 204 if (*delay_on == 0 && *delay_off == 0) { in pca9532_set_blink() 206 *delay_on = 1000; in pca9532_set_blink() 209 if (*delay_on != *delay_off || *delay_on > 1690 || *delay_on < 6) in pca9532_set_blink() 213 psc = (*delay_on * 152-1)/1000; in pca9532_set_blink()
|
A D | leds-mt6323.c | 241 unsigned long *delay_on, in mt6323_led_set_blink() argument 257 if (!*delay_on && !*delay_off) { in mt6323_led_set_blink() 258 *delay_on = 500; in mt6323_led_set_blink() 266 period = *delay_on + *delay_off; in mt6323_led_set_blink() 275 duty_hw = MT6323_CAL_HW_DUTY(*delay_on, period); in mt6323_led_set_blink()
|
A D | leds-ss4200.c | 242 unsigned long *delay_on, 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() 252 *delay_on = 500; in nasgpio_led_set_blink()
|
A D | leds-lm3533.c | 282 unsigned long *delay_on, in lm3533_led_blink_set() argument 289 *delay_on, *delay_off); in lm3533_led_blink_set() 291 if (*delay_on > LM3533_LED_DELAY_ON_MAX || in lm3533_led_blink_set() 295 if (*delay_on == 0 && *delay_off == 0) { in lm3533_led_blink_set() 296 *delay_on = 500; in lm3533_led_blink_set() 300 ret = lm3533_led_delay_on_set(led, delay_on); in lm3533_led_blink_set()
|
A D | leds-bcm6328.c | 163 unsigned long *delay_on, unsigned long *delay_off) in bcm6328_blink_set() argument 170 if (!*delay_on) in bcm6328_blink_set() 171 *delay_on = BCM6328_LED_DEF_DELAY; in bcm6328_blink_set() 175 delay = bcm6328_blink_delay(*delay_on); in bcm6328_blink_set()
|
A D | leds-an30259a.c | 128 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() 155 *delay_on = on = 500; in an30259a_blink_set()
|
/linux/include/linux/ |
A D | leds.h | 123 unsigned long *delay_on, 234 void led_blink_set(struct led_classdev *led_cdev, unsigned long *delay_on, 251 unsigned long *delay_on, unsigned long *delay_off, 391 void led_trigger_blink(struct led_trigger *trigger, unsigned long *delay_on, 394 unsigned long *delay_on, 445 unsigned long *delay_on, in led_trigger_blink() argument 448 unsigned long *delay_on, in led_trigger_blink_oneshot() argument 513 unsigned long *delay_on,
|
/linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
A D | pci_init.c | 73 u8 delay_on, u8 delay_off) in mt7615_led_set_config() argument 87 FIELD_PREP(MT_LED_STATUS_ON, delay_on); in mt7615_led_set_config() 106 unsigned long *delay_on, in mt7615_led_set_blink() argument 112 delta_on = max_t(u8, *delay_on / 10, 1); in mt7615_led_set_blink()
|
/linux/Documentation/ABI/testing/ |
A D | sysfs-class-led-trigger-oneshot | 1 What: /sys/class/leds/<led>/delay_on 25 delay_on ms, then blink off for delay_off ms, leaving the LED 27 blink on for delay_on ms, leaving the LED normally on.
|
/linux/drivers/platform/x86/dell/ |
A D | dell-wmi-led.c | 132 unsigned long *delay_on, unsigned long *delay_off) in dell_led_blink() argument 142 on_eighths = DIV_ROUND_UP(*delay_on, 125); in dell_led_blink() 144 *delay_on = on_eighths * 125; in dell_led_blink()
|
/linux/drivers/leds/blink/ |
A D | leds-lgm-sso.c | 274 delay_to_freq_idx(struct sso_led *led, unsigned long *delay_on, in delay_to_freq_idx() argument 282 if (!*delay_on && !*delay_off) { in delay_to_freq_idx() 283 *delay_on = *delay_off = (1000 / priv->freq[0]) / 2; in delay_to_freq_idx() 287 delay = *delay_on + *delay_off; in delay_to_freq_idx() 295 *delay_on = *delay_off = delay / 2; in delay_to_freq_idx() 297 if (!*delay_on) in delay_to_freq_idx() 298 *delay_on = *delay_off = 1; in delay_to_freq_idx() 304 sso_led_blink_set(struct led_classdev *led_cdev, unsigned long *delay_on, in sso_led_blink_set() argument 313 freq_idx = delay_to_freq_idx(led, delay_on, delay_off); in sso_led_blink_set()
|
/linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
A D | led.c | 147 unsigned long *delay_on, in iwl_led_blink_set() argument 152 return iwl_led_cmd(priv, *delay_on, *delay_off); in iwl_led_blink_set()
|
/linux/drivers/power/supply/ |
A D | power_supply_leds.c | 24 unsigned long delay_on = 0; in power_supply_update_bat_leds() local 45 &delay_on, &delay_off); in power_supply_update_bat_leds()
|