Lines Matching +full:sleep +full:- +full:hardware +full:- +full:state

1 /* SPDX-License-Identifier: GPL-2.0-only */
11 #include <dt-bindings/leds/common.h>
47 * struct led_lookup_data - represents a single LED lookup entry
66 * with in-driver hard-coded LED names used as a fallback when
79 * only LEDs exposed by drivers of hot-pluggable devices should
128 /* Brightness off also disables hw-blinking so it is a separate action */
134 * Must not sleep. Use brightness_set_blocking for drivers
135 * that can sleep while setting brightness.
140 * Set LED brightness level immediately - it can block the caller for
149 * Activate hardware accelerated blink, delays are in milliseconds
157 * will not sleep. Therefor if brightness_set_blocking is not set
158 * this function must not sleep!
192 /* true if activated - deactivate routine uses it to do cleanup */
204 * Return 0 on success. Return -EOPNOTSUPP when the passed flags are not
212 * Activate hardware control, LED driver will use the provided flags
213 * from the supported trigger and setup the LED to be driven by hardware
215 * Deactivate hardware blink control by setting brightness to LED_OFF via
225 * Trigger can use this to get the initial state of a LED already set in
226 * hardware blink control.
230 * may be in a not supported initial state by the attached LED trigger.
252 * led_classdev_register_ext - register a new object of LED class with
267 * led_classdev_register - register a new object of LED class
321 * led_blink_set - set blinking with software fallback
327 * hardware acceleration if possible, but falling back to
328 * software blinking if there is no hardware blinking or if
331 * This function may sleep!
334 * led_cdev->brightness_set() will not stop the blinking,
341 * led_blink_set_nosleep - set blinking, guaranteed to not sleep
346 * This function makes the LED blink and is guaranteed to not sleep. Otherwise
353 * led_blink_set_oneshot - do a oneshot software blink
360 * delay_off time, ignoring the request if another one-shot
364 * delay_on and leave the led on after the on-off cycle.
366 * This function is guaranteed not to sleep.
372 * led_set_brightness - set LED brightness
378 * hardware doesn't. This function is guaranteed not to sleep.
383 * led_set_brightness_sync - set LED brightness synchronously
389 * and it can sleep.
396 * led_update_brightness - update LED brightness
399 * Get an LED's current brightness and update led_cdev->brightness
407 * led_get_default_pattern - return default pattern
419 * led_sysfs_disable - disable LED sysfs interface
427 * led_sysfs_enable - enable LED sysfs interface
435 * led_compose_name - compose LED class device name
450 * led_sysfs_is_disabled - check if LED sysfs interface is disabled
457 return led_cdev->flags & LED_SYSFS_DISABLE; in led_sysfs_is_disabled()
477 /* LED-private triggers have this set */
522 led_cdev->trigger_data = trigger_data; in led_set_trigger_data()
527 return led_cdev->trigger_data; in led_get_trigger_data()
531 * led_trigger_rename_static - rename a trigger
644 typedef int (*gpio_blink_set_t)(struct gpio_desc *desc, int state,
648 /* For the leds-gpio driver */
669 #define GPIO_LED_NO_BLINK_LOW 0 /* No blink GPIO state low */
670 #define GPIO_LED_NO_BLINK_HIGH 1 /* No blink GPIO state high */
711 * struct led_pattern - pattern interval settings
728 void ledtrig_audio_set(enum led_audio type, enum led_brightness state);
735 enum led_brightness state) in ledtrig_audio_set() argument