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
122 /* Brightness off also disables hw-blinking so it is a separate action */
128 * Must not sleep. Use brightness_set_blocking for drivers
129 * that can sleep while setting brightness.
134 * Set LED brightness level immediately - it can block the caller for
143 * Activate hardware accelerated blink, delays are in milliseconds
151 * will not sleep. Therefor if brightness_set_blocking is not set
152 * this function must not sleep!
187 /* true if activated - deactivate routine uses it to do cleanup */
199 * Return 0 on success. Return -EOPNOTSUPP when the passed flags are not
207 * Activate hardware control, LED driver will use the provided flags
208 * from the supported trigger and setup the LED to be driven by hardware
210 * Deactivate hardware blink control by setting brightness to LED_OFF via
220 * Trigger can use this to get the initial state of a LED already set in
221 * hardware blink control.
225 * may be in a not supported initial state by the attached LED trigger.
247 * led_classdev_register_ext - register a new object of LED class with
262 * led_classdev_register - register a new object of LED class
305 * led_blink_set - set blinking with software fallback
311 * hardware acceleration if possible, but falling back to
312 * software blinking if there is no hardware blinking or if
315 * This function may sleep!
318 * led_cdev->brightness_set() will not stop the blinking,
325 * led_blink_set_nosleep - set blinking, guaranteed to not sleep
330 * This function makes the LED blink and is guaranteed to not sleep. Otherwise
337 * led_blink_set_oneshot - do a oneshot software blink
344 * delay_off time, ignoring the request if another one-shot
348 * delay_on and leave the led on after the on-off cycle.
350 * This function is guaranteed not to sleep.
356 * led_set_brightness - set LED brightness
362 * hardware doesn't. This function is guaranteed not to sleep.
367 * led_set_brightness_sync - set LED brightness synchronously
373 * and it can sleep.
380 * led_mc_set_brightness - set mc LED color intensity values and brightness
386 * Set a multi-color LED's per color intensity values and brightness.
388 * guaranteed not to sleep.
390 * Calling this function on a non multi-color led_classdev or with the wrong
399 * led_update_brightness - update LED brightness
402 * Get an LED's current brightness and update led_cdev->brightness
410 * led_get_default_pattern - return default pattern
422 * led_sysfs_disable - disable LED sysfs interface
430 * led_sysfs_enable - enable LED sysfs interface
438 * led_compose_name - compose LED class device name
453 * led_get_color_name - get string representation of color ID
463 * led_sysfs_is_disabled - check if LED sysfs interface is disabled
470 return led_cdev->flags & LED_SYSFS_DISABLE; in led_sysfs_is_disabled()
493 /* LED-private triggers have this set */
541 led_cdev->trigger_data = trigger_data; in led_set_trigger_data()
546 return led_cdev->trigger_data; in led_get_trigger_data()
552 return trigger ? trigger->brightness : LED_OFF; in led_trigger_get_brightness()
666 typedef int (*gpio_blink_set_t)(struct gpio_desc *desc, int state,
670 /* For the leds-gpio driver */
691 #define GPIO_LED_NO_BLINK_LOW 0 /* No blink GPIO state low */
692 #define GPIO_LED_NO_BLINK_HIGH 1 /* No blink GPIO state high */
733 * struct led_pattern - pattern interval settings