/drivers/leds/ |
D | leds-ipaq-micro.c | 59 unsigned long *delay_off) in micro_leds_blink_set() argument 81 *delay_off > IPAQ_LED_MAX_DUTY) in micro_leds_blink_set() 84 if (*delay_on == 0 && *delay_off == 0) { in micro_leds_blink_set() 86 *delay_off = 100; in micro_leds_blink_set() 94 if (*delay_off >= IPAQ_LED_MAX_DUTY) in micro_leds_blink_set() 97 msg.tx_data[3] = (u8) DIV_ROUND_CLOSEST(*delay_off, 100); in micro_leds_blink_set()
|
D | led-core.c | 142 unsigned long delay_off) in led_set_software_blink() argument 153 led_cdev->blink_delay_off = delay_off; in led_set_software_blink() 162 if (!delay_off) { in led_set_software_blink() 175 unsigned long *delay_off) 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() 186 led_set_software_blink(led_cdev, *delay_on, *delay_off); in led_blink_setup() 199 unsigned long *delay_off) in led_blink_set() argument 207 led_blink_setup(led_cdev, delay_on, delay_off); in led_blink_set() [all …]
|
D | leds-clevo-mail.c | 113 unsigned long *delay_off) in clevo_mail_led_blink() argument 119 if (*delay_on == 0 /* ms */ && *delay_off == 0 /* ms */) { in clevo_mail_led_blink() 125 *delay_off = 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()
|
D | leds-asic3.c | 56 unsigned long *delay_off) 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() 74 off = MS_TO_CLK(*delay_off); in blink_set() 86 *delay_off = CLK_TO_MS(off); in blink_set()
|
D | led-triggers.c | 334 unsigned long *delay_off, in led_trigger_blink_setup() argument 346 led_blink_set_oneshot(led_cdev, delay_on, delay_off, in led_trigger_blink_setup() 349 led_blink_set(led_cdev, delay_on, delay_off); in led_trigger_blink_setup() 356 unsigned long *delay_off) in led_trigger_blink() argument 358 led_trigger_blink_setup(trig, delay_on, delay_off, 0, 0); in led_trigger_blink() 364 unsigned long *delay_off, in led_trigger_blink_oneshot() argument 367 led_trigger_blink_setup(trig, delay_on, delay_off, 1, invert); in led_trigger_blink_oneshot()
|
D | leds-lp3944.c | 225 unsigned long *delay_off) 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() 242 *delay_off = 500; in lp3944_led_set_blink() 245 period = (*delay_on) + (*delay_off); in lp3944_led_set_blink()
|
D | leds-netxbig.c | 40 unsigned long delay_off; member 156 unsigned long delay_off, in netxbig_led_get_timer_mode() argument 164 timer[i].delay_off == delay_off) { in netxbig_led_get_timer_mode() 174 unsigned long *delay_off) in netxbig_led_blink_set() argument 183 ret = netxbig_led_get_timer_mode(&mode, *delay_on, *delay_off, in netxbig_led_blink_set() 463 timers[i].delay_off = tmp; in netxbig_leds_get_of_pdata()
|
D | leds-wm831x-status.c | 84 unsigned long *delay_off) in wm831x_status_blink_set() argument 91 if (*delay_on == 0 && *delay_off == 0) { in wm831x_status_blink_set() 93 *delay_off = 250; in wm831x_status_blink_set() 121 switch (*delay_off / *delay_on) { in wm831x_status_blink_set()
|
D | leds-mlxreg.c | 155 unsigned long *delay_off) in mlxreg_led_blink_set() argument 165 if (!(*delay_on == 0 && *delay_off == 0) && in mlxreg_led_blink_set() 167 *delay_off == MLXREG_LED_BLINK_3HZ) && in mlxreg_led_blink_set() 169 *delay_off == MLXREG_LED_BLINK_6HZ)) in mlxreg_led_blink_set()
|
D | leds-mlxcpld.c | 299 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()
|
D | leds-ss4200.c | 243 unsigned long *delay_off) 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() 253 *delay_off = 500; in nasgpio_led_set_blink()
|
D | leds-lm3533.c | 283 unsigned long *delay_off) in lm3533_led_blink_set() argument 289 *delay_on, *delay_off); in lm3533_led_blink_set() 292 *delay_off > LM3533_LED_DELAY_OFF_MAX) in lm3533_led_blink_set() 295 if (*delay_on == 0 && *delay_off == 0) { in lm3533_led_blink_set() 297 *delay_off = 500; in lm3533_led_blink_set() 304 ret = lm3533_led_delay_off_set(led, delay_off); in lm3533_led_blink_set()
|
D | leds-bcm6328.c | 152 unsigned long *delay_on, unsigned long *delay_off) in bcm6328_blink_set() argument 161 if (!*delay_off) in bcm6328_blink_set() 162 *delay_off = BCM6328_LED_DEF_DELAY; in bcm6328_blink_set() 165 if (delay != bcm6328_blink_delay(*delay_off)) { in bcm6328_blink_set()
|
D | leds-mt6323.c | 242 unsigned long *delay_off) in mt6323_led_set_blink() argument 255 period = *delay_on + *delay_off; in mt6323_led_set_blink() 266 if (!*delay_on && !*delay_off) { in mt6323_led_set_blink() 268 *delay_off = 500; in mt6323_led_set_blink()
|
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() 154 *delay_off = off = 500; in an30259a_blink_set()
|
D | leds-tca6507.c | 570 unsigned long *delay_off) in tca6507_blink_set() argument 581 if (*delay_off == 0) in tca6507_blink_set() 583 else if (delay_off != &led_cdev->blink_delay_off) in tca6507_blink_set() 585 led->offtime = *delay_off; in tca6507_blink_set() 601 *delay_off = led->offtime; in tca6507_blink_set()
|
D | leds-pca9532.c | 195 unsigned long *delay_on, unsigned long *delay_off) in pca9532_set_blink() argument 202 if (*delay_on == 0 && *delay_off == 0) { in pca9532_set_blink() 205 *delay_off = 1000; in pca9532_set_blink() 207 if (*delay_on != *delay_off || *delay_on > 1690 || *delay_on < 6) in pca9532_set_blink()
|
D | leds-pca963x.c | 226 unsigned long *delay_on, unsigned long *delay_off) in pca963x_blink_set() argument 235 time_off = *delay_off; in pca963x_blink_set() 273 *delay_off = time_off; in pca963x_blink_set()
|
D | leds-gpio.c | 65 unsigned long *delay_on, unsigned long *delay_off) in gpio_blink_set() argument 71 delay_on, delay_off); in gpio_blink_set()
|
/drivers/platform/x86/ |
D | dell-wmi-led.c | 132 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/power/supply/ |
D | power_supply_leds.c | 25 unsigned long delay_off = 0; in power_supply_update_bat_leds() local 45 &delay_on, &delay_off); in power_supply_update_bat_leds()
|
/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | led.c | 153 unsigned long *delay_off) in iwl_led_blink_set() argument 157 return iwl_led_cmd(priv, *delay_on, *delay_off); in iwl_led_blink_set()
|
/drivers/net/wireless/mediatek/mt76/mt7603/ |
D | init.c | 358 u8 delay_off) in mt7603_led_set_config() argument 365 MT_LED_STATUS_OFF(delay_off) | in mt7603_led_set_config() 383 unsigned long *delay_off) in mt7603_led_set_blink() argument 389 delta_off = max_t(u8, *delay_off / 10, 1); in mt7603_led_set_blink()
|
/drivers/net/wireless/mediatek/mt76/ |
D | mt76x02_util.c | 93 u8 delay_off) in mt76x02_led_set_config() argument 100 MT_LED_STATUS_OFF(delay_off) | in mt76x02_led_set_config() 116 unsigned long *delay_off) in mt76x02_led_set_blink() argument 122 delta_off = max_t(u8, *delay_off / 10, 1); in mt76x02_led_set_blink()
|
/drivers/leds/trigger/ |
D | ledtrig-timer.c | 69 static DEVICE_ATTR(delay_off, 0644, led_delay_off_show, led_delay_off_store);
|