Home
last modified time | relevance | path

Searched defs:led (Results 1 – 25 of 418) sorted by relevance

12345678910>>...17

/kernel/linux/linux-6.6/drivers/leds/
Dleds-bd2802.c73 struct led_state led[2]; member
108 static inline int bd2802_is_rgb_off(struct bd2802_led *led, enum led_ids id, in bd2802_is_rgb_off()
124 static inline int bd2802_is_led_off(struct bd2802_led *led, enum led_ids id) in bd2802_is_led_off()
132 static inline int bd2802_is_all_off(struct bd2802_led *led) in bd2802_is_all_off()
171 static void bd2802_update_state(struct bd2802_led *led, enum led_ids id, in bd2802_update_state()
216 static void bd2802_configure(struct bd2802_led *led) in bd2802_configure()
228 static void bd2802_reset_cancel(struct bd2802_led *led) in bd2802_reset_cancel()
235 static void bd2802_enable(struct bd2802_led *led, enum led_ids id) in bd2802_enable()
249 static void bd2802_set_on(struct bd2802_led *led, enum led_ids id, in bd2802_set_on()
268 static void bd2802_set_blink(struct bd2802_led *led, enum led_ids id, in bd2802_set_blink()
[all …]
Dleds-lm3533.c59 static inline int lm3533_led_get_ctrlbank_id(struct lm3533_led *led) in lm3533_led_get_ctrlbank_id()
64 static inline u8 lm3533_led_get_lv_reg(struct lm3533_led *led, u8 base) in lm3533_led_get_lv_reg()
69 static inline u8 lm3533_led_get_pattern(struct lm3533_led *led) in lm3533_led_get_pattern()
74 static inline u8 lm3533_led_get_pattern_reg(struct lm3533_led *led, in lm3533_led_get_pattern_reg()
80 static int lm3533_led_pattern_enable(struct lm3533_led *led, int enable) in lm3533_led_pattern_enable()
121 struct lm3533_led *led = to_lm3533_led(cdev); in lm3533_led_set() local
133 struct lm3533_led *led = to_lm3533_led(cdev); in lm3533_led_get() local
243 static u8 lm3533_led_delay_set(struct lm3533_led *led, u8 base, in lm3533_led_delay_set()
271 static int lm3533_led_delay_on_set(struct lm3533_led *led, unsigned long *t) in lm3533_led_delay_on_set()
276 static int lm3533_led_delay_off_set(struct lm3533_led *led, unsigned long *t) in lm3533_led_delay_off_set()
[all …]
Dleds-wm8350.c88 static int wm8350_led_enable(struct wm8350_led *led) in wm8350_led_enable()
113 static int wm8350_led_disable(struct wm8350_led *led) in wm8350_led_disable()
144 struct wm8350_led *led = to_wm8350_led(led_cdev); in wm8350_led_set() local
180 struct wm8350_led *led = platform_get_drvdata(pdev); in wm8350_led_shutdown() local
189 struct wm8350_led *led; in wm8350_led_probe() local
247 struct wm8350_led *led = platform_get_drvdata(pdev); in wm8350_led_remove() local
Dleds-regulator.c59 static void regulator_led_enable(struct regulator_led *led) in regulator_led_enable()
75 static void regulator_led_disable(struct regulator_led *led) in regulator_led_disable()
94 struct regulator_led *led = to_regulator_led(led_cdev); in regulator_led_brightness_set() local
129 struct regulator_led *led; in regulator_led_probe() local
178 struct regulator_led *led = platform_get_drvdata(pdev); in regulator_led_remove() local
/kernel/linux/linux-5.10/drivers/leds/
Dleds-bd2802.c73 struct led_state led[2]; member
108 static inline int bd2802_is_rgb_off(struct bd2802_led *led, enum led_ids id, in bd2802_is_rgb_off()
124 static inline int bd2802_is_led_off(struct bd2802_led *led, enum led_ids id) in bd2802_is_led_off()
132 static inline int bd2802_is_all_off(struct bd2802_led *led) in bd2802_is_all_off()
171 static void bd2802_update_state(struct bd2802_led *led, enum led_ids id, in bd2802_update_state()
216 static void bd2802_configure(struct bd2802_led *led) in bd2802_configure()
228 static void bd2802_reset_cancel(struct bd2802_led *led) in bd2802_reset_cancel()
235 static void bd2802_enable(struct bd2802_led *led, enum led_ids id) in bd2802_enable()
249 static void bd2802_set_on(struct bd2802_led *led, enum led_ids id, in bd2802_set_on()
268 static void bd2802_set_blink(struct bd2802_led *led, enum led_ids id, in bd2802_set_blink()
[all …]
Dleds-lm3533.c59 static inline int lm3533_led_get_ctrlbank_id(struct lm3533_led *led) in lm3533_led_get_ctrlbank_id()
64 static inline u8 lm3533_led_get_lv_reg(struct lm3533_led *led, u8 base) in lm3533_led_get_lv_reg()
69 static inline u8 lm3533_led_get_pattern(struct lm3533_led *led) in lm3533_led_get_pattern()
74 static inline u8 lm3533_led_get_pattern_reg(struct lm3533_led *led, in lm3533_led_get_pattern_reg()
80 static int lm3533_led_pattern_enable(struct lm3533_led *led, int enable) in lm3533_led_pattern_enable()
121 struct lm3533_led *led = to_lm3533_led(cdev); in lm3533_led_set() local
133 struct lm3533_led *led = to_lm3533_led(cdev); in lm3533_led_get() local
243 static u8 lm3533_led_delay_set(struct lm3533_led *led, u8 base, in lm3533_led_delay_set()
271 static int lm3533_led_delay_on_set(struct lm3533_led *led, unsigned long *t) in lm3533_led_delay_on_set()
276 static int lm3533_led_delay_off_set(struct lm3533_led *led, unsigned long *t) in lm3533_led_delay_off_set()
[all …]
Dleds-max77693.c140 static inline bool max77693_fled_used(struct max77693_led_device *led, in max77693_fled_used()
148 static int max77693_set_mode_reg(struct max77693_led_device *led, u8 mode) in max77693_set_mode_reg()
180 static int max77693_add_mode(struct max77693_led_device *led, u8 mode) in max77693_add_mode()
220 static int max77693_clear_mode(struct max77693_led_device *led, in max77693_clear_mode()
232 static void max77693_add_allowed_modes(struct max77693_led_device *led, in max77693_add_allowed_modes()
242 static void max77693_distribute_currents(struct max77693_led_device *led, in max77693_distribute_currents()
266 static int max77693_set_torch_current(struct max77693_led_device *led, in max77693_set_torch_current()
292 static int max77693_set_flash_current(struct max77693_led_device *led, in max77693_set_flash_current()
320 static int max77693_set_timeout(struct max77693_led_device *led, u32 microsec) in max77693_set_timeout()
337 static int max77693_get_strobe_status(struct max77693_led_device *led, in max77693_get_strobe_status()
[all …]
Dleds-aat1290.c96 static void aat1290_as2cwire_write(struct aat1290_led *led, int addr, int value) in aat1290_as2cwire_write()
126 static void aat1290_set_flash_safety_timer(struct aat1290_led *led, in aat1290_set_flash_safety_timer()
144 struct aat1290_led *led = fled_cdev_to_led(fled_cdev); in aat1290_led_brightness_set() local
175 struct aat1290_led *led = fled_cdev_to_led(fled_cdev); in aat1290_led_flash_strobe_set() local
215 static int aat1290_led_parse_dt(struct aat1290_led *led, in aat1290_led_parse_dt()
291 static void aat1290_led_validate_mm_current(struct aat1290_led *led, in aat1290_led_validate_mm_current()
308 static int init_mm_current_scale(struct aat1290_led *led, in init_mm_current_scale()
331 static int aat1290_led_get_configuration(struct aat1290_led *led, in aat1290_led_get_configuration()
358 static void aat1290_init_flash_timeout(struct aat1290_led *led, in aat1290_init_flash_timeout()
378 struct aat1290_led *led = fled_cdev_to_led(fled_cdev); in aat1290_intensity_to_brightness() local
[all …]
Dleds-wm8350.c88 static int wm8350_led_enable(struct wm8350_led *led) in wm8350_led_enable()
113 static int wm8350_led_disable(struct wm8350_led *led) in wm8350_led_disable()
144 struct wm8350_led *led = to_wm8350_led(led_cdev); in wm8350_led_set() local
180 struct wm8350_led *led = platform_get_drvdata(pdev); in wm8350_led_shutdown() local
189 struct wm8350_led *led; in wm8350_led_probe() local
247 struct wm8350_led *led = platform_get_drvdata(pdev); in wm8350_led_remove() local
Dleds-ktd2692.c95 static void ktd2692_expresswire_start(struct ktd2692_context *led) in ktd2692_expresswire_start()
101 static void ktd2692_expresswire_reset(struct ktd2692_context *led) in ktd2692_expresswire_reset()
107 static void ktd2692_expresswire_end(struct ktd2692_context *led) in ktd2692_expresswire_end()
115 static void ktd2692_expresswire_set_bit(struct ktd2692_context *led, bool bit) in ktd2692_expresswire_set_bit()
146 static void ktd2692_expresswire_write(struct ktd2692_context *led, u8 value) in ktd2692_expresswire_write()
160 struct ktd2692_context *led = fled_cdev_to_led(fled_cdev); in ktd2692_led_brightness_set() local
182 struct ktd2692_context *led = fled_cdev_to_led(fled_cdev); in ktd2692_led_flash_strobe_set() local
247 static void ktd2692_setup(struct ktd2692_context *led) in ktd2692_setup()
262 struct ktd2692_context *led = dev_get_drvdata(dev); in regulator_disable_action() local
270 static int ktd2692_parse_dt(struct ktd2692_context *led, struct device *dev, in ktd2692_parse_dt()
[all …]
Dleds-lm3601x.c135 static int lm3601x_read_faults(struct lm3601x_led *led) in lm3601x_read_faults()
174 struct lm3601x_led *led = fled_cdev_to_led(fled_cdev); in lm3601x_brightness_set() local
209 struct lm3601x_led *led = fled_cdev_to_led(fled_cdev); in lm3601x_strobe_set() local
246 struct lm3601x_led *led = fled_cdev_to_led(fled_cdev); in lm3601x_flash_brightness_set() local
272 struct lm3601x_led *led = fled_cdev_to_led(fled_cdev); in lm3601x_flash_timeout_set() local
285 struct lm3601x_led *led = fled_cdev_to_led(fled_cdev); in lm3601x_strobe_get() local
305 struct lm3601x_led *led = fled_cdev_to_led(fled_cdev); in lm3601x_flash_fault_get() local
322 static int lm3601x_register_leds(struct lm3601x_led *led, in lm3601x_register_leds()
357 static int lm3601x_parse_node(struct lm3601x_led *led, in lm3601x_parse_node()
415 struct lm3601x_led *led; in lm3601x_probe() local
[all …]
Dleds-regulator.c58 static void regulator_led_enable(struct regulator_led *led) in regulator_led_enable()
74 static void regulator_led_disable(struct regulator_led *led) in regulator_led_disable()
93 struct regulator_led *led = to_regulator_led(led_cdev); in regulator_led_brightness_set() local
126 struct regulator_led *led; in regulator_led_probe() local
180 struct regulator_led *led = platform_get_drvdata(pdev); in regulator_led_remove() local
/kernel/linux/linux-6.6/drivers/leds/flash/
Dleds-max77693.c140 static inline bool max77693_fled_used(struct max77693_led_device *led, in max77693_fled_used()
148 static int max77693_set_mode_reg(struct max77693_led_device *led, u8 mode) in max77693_set_mode_reg()
180 static int max77693_add_mode(struct max77693_led_device *led, u8 mode) in max77693_add_mode()
220 static int max77693_clear_mode(struct max77693_led_device *led, in max77693_clear_mode()
232 static void max77693_add_allowed_modes(struct max77693_led_device *led, in max77693_add_allowed_modes()
242 static void max77693_distribute_currents(struct max77693_led_device *led, in max77693_distribute_currents()
266 static int max77693_set_torch_current(struct max77693_led_device *led, in max77693_set_torch_current()
292 static int max77693_set_flash_current(struct max77693_led_device *led, in max77693_set_flash_current()
320 static int max77693_set_timeout(struct max77693_led_device *led, u32 microsec) in max77693_set_timeout()
337 static int max77693_get_strobe_status(struct max77693_led_device *led, in max77693_get_strobe_status()
[all …]
Dleds-aat1290.c96 static void aat1290_as2cwire_write(struct aat1290_led *led, int addr, int value) in aat1290_as2cwire_write()
126 static void aat1290_set_flash_safety_timer(struct aat1290_led *led, in aat1290_set_flash_safety_timer()
144 struct aat1290_led *led = fled_cdev_to_led(fled_cdev); in aat1290_led_brightness_set() local
175 struct aat1290_led *led = fled_cdev_to_led(fled_cdev); in aat1290_led_flash_strobe_set() local
215 static int aat1290_led_parse_dt(struct aat1290_led *led, in aat1290_led_parse_dt()
291 static void aat1290_led_validate_mm_current(struct aat1290_led *led, in aat1290_led_validate_mm_current()
308 static int init_mm_current_scale(struct aat1290_led *led, in init_mm_current_scale()
331 static int aat1290_led_get_configuration(struct aat1290_led *led, in aat1290_led_get_configuration()
358 static void aat1290_init_flash_timeout(struct aat1290_led *led, in aat1290_init_flash_timeout()
378 struct aat1290_led *led = fled_cdev_to_led(fled_cdev); in aat1290_intensity_to_brightness() local
[all …]
Dleds-ktd2692.c95 static void ktd2692_expresswire_start(struct ktd2692_context *led) in ktd2692_expresswire_start()
101 static void ktd2692_expresswire_reset(struct ktd2692_context *led) in ktd2692_expresswire_reset()
107 static void ktd2692_expresswire_end(struct ktd2692_context *led) in ktd2692_expresswire_end()
115 static void ktd2692_expresswire_set_bit(struct ktd2692_context *led, bool bit) in ktd2692_expresswire_set_bit()
146 static void ktd2692_expresswire_write(struct ktd2692_context *led, u8 value) in ktd2692_expresswire_write()
160 struct ktd2692_context *led = fled_cdev_to_led(fled_cdev); in ktd2692_led_brightness_set() local
182 struct ktd2692_context *led = fled_cdev_to_led(fled_cdev); in ktd2692_led_flash_strobe_set() local
247 static void ktd2692_setup(struct ktd2692_context *led) in ktd2692_setup()
262 struct ktd2692_context *led = dev_get_drvdata(dev); in regulator_disable_action() local
270 static int ktd2692_parse_dt(struct ktd2692_context *led, struct device *dev, in ktd2692_parse_dt()
[all …]
Dleds-lm3601x.c135 static int lm3601x_read_faults(struct lm3601x_led *led) in lm3601x_read_faults()
174 struct lm3601x_led *led = fled_cdev_to_led(fled_cdev); in lm3601x_brightness_set() local
209 struct lm3601x_led *led = fled_cdev_to_led(fled_cdev); in lm3601x_strobe_set() local
246 struct lm3601x_led *led = fled_cdev_to_led(fled_cdev); in lm3601x_flash_brightness_set() local
272 struct lm3601x_led *led = fled_cdev_to_led(fled_cdev); in lm3601x_flash_timeout_set() local
285 struct lm3601x_led *led = fled_cdev_to_led(fled_cdev); in lm3601x_strobe_get() local
305 struct lm3601x_led *led = fled_cdev_to_led(fled_cdev); in lm3601x_flash_fault_get() local
322 static int lm3601x_register_leds(struct lm3601x_led *led, in lm3601x_register_leds()
357 static int lm3601x_parse_node(struct lm3601x_led *led, in lm3601x_parse_node()
415 struct lm3601x_led *led; in lm3601x_probe() local
[all …]
Dleds-mt6360.c101 struct mt6360_led *led = container_of(mccdev, struct mt6360_led, mc); in mt6360_mc_brightness_set() local
135 struct mt6360_led *led = container_of(lcdev, struct mt6360_led, isnk); in mt6360_isnk_brightness_set() local
159 struct mt6360_led *led = in mt6360_torch_brightness_set() local
223 struct mt6360_led *led = in _mt6360_flash_brightness_set() local
236 struct mt6360_led *led = in mt6360_strobe_set() local
302 struct mt6360_led *led = in mt6360_strobe_get() local
315 struct mt6360_led *led = in mt6360_timeout_set() local
332 struct mt6360_led *led = in mt6360_fault_get() local
384 static int mt6360_isnk_init_default_state(struct mt6360_led *led) in mt6360_isnk_init_default_state()
417 static int mt6360_flash_init_default_state(struct mt6360_led *led) in mt6360_flash_init_default_state()
[all …]
Dleds-qcom-flash.c151 static int set_flash_module_en(struct qcom_flash_led *led, bool en) in set_flash_module_en()
175 static int set_flash_current(struct qcom_flash_led *led, u32 current_ma, enum led_mode mode) in set_flash_current()
223 static int set_flash_timeout(struct qcom_flash_led *led, u32 timeout_ms) in set_flash_timeout()
249 static int set_flash_strobe(struct qcom_flash_led *led, enum led_strobe strobe, bool state) in set_flash_strobe()
293 struct qcom_flash_led *led = flcdev_to_qcom_fled(fled_cdev); in qcom_flash_brightness_set() local
301 struct qcom_flash_led *led = flcdev_to_qcom_fled(fled_cdev); in qcom_flash_timeout_set() local
309 struct qcom_flash_led *led = flcdev_to_qcom_fled(fled_cdev); in qcom_flash_strobe_set() local
333 struct qcom_flash_led *led = flcdev_to_qcom_fled(fled_cdev); in qcom_flash_strobe_get() local
341 struct qcom_flash_led *led = flcdev_to_qcom_fled(fled_cdev); in qcom_flash_fault_get() local
419 struct qcom_flash_led *led = flcdev_to_qcom_fled(fled_cdev); in qcom_flash_led_brightness_set() local
[all …]
/kernel/linux/linux-6.6/drivers/net/dsa/qca/
Dqca8k-leds.c95 qca8k_led_brightness_set(struct qca8k_led *led, in qca8k_led_brightness_set()
158 struct qca8k_led *led = container_of(ldev, struct qca8k_led, cdev); in qca8k_cled_brightness_set_blocking() local
164 qca8k_led_brightness_get(struct qca8k_led *led) in qca8k_led_brightness_get()
195 struct qca8k_led *led = container_of(ldev, struct qca8k_led, cdev); in qca8k_cled_blink_set() local
230 struct qca8k_led *led = container_of(ldev, struct qca8k_led, cdev); in qca8k_cled_trigger_offload() local
255 struct qca8k_led *led = container_of(ldev, struct qca8k_led, cdev); in qca8k_cled_hw_control_status() local
288 struct qca8k_led *led = container_of(ldev, struct qca8k_led, cdev); in qca8k_cled_hw_control_set() local
312 struct qca8k_led *led = container_of(ldev, struct qca8k_led, cdev); in qca8k_cled_hw_control_get() local
352 struct qca8k_led *led = container_of(ldev, struct qca8k_led, cdev); in qca8k_cled_hw_control_get_device() local
367 struct fwnode_handle *led = NULL, *leds = NULL; in qca8k_parse_port_leds() local
/kernel/linux/linux-5.10/drivers/hid/
Dhid-gt683r.c65 struct gt683r_led *led = hid_get_drvdata(hdev); in gt683r_brightness_set() local
84 struct gt683r_led *led = hid_get_drvdata(hdev); in mode_show() local
102 struct gt683r_led *led = hid_get_drvdata(hdev); in mode_store() local
123 static int gt683r_led_snd_msg(struct gt683r_led *led, u8 *msg) in gt683r_led_snd_msg()
140 static int gt683r_leds_set(struct gt683r_led *led, u8 leds) in gt683r_leds_set()
159 static int gt683r_mode_set(struct gt683r_led *led, u8 mode) in gt683r_mode_set()
184 struct gt683r_led *led = container_of(work, struct gt683r_led, work); in gt683r_led_work() local
230 struct gt683r_led *led; in gt683r_led_probe() local
291 struct gt683r_led *led = hid_get_drvdata(hdev); in gt683r_led_remove() local
/kernel/linux/linux-6.6/drivers/hid/
Dhid-gt683r.c65 struct gt683r_led *led = hid_get_drvdata(hdev); in gt683r_brightness_set() local
84 struct gt683r_led *led = hid_get_drvdata(hdev); in mode_show() local
102 struct gt683r_led *led = hid_get_drvdata(hdev); in mode_store() local
123 static int gt683r_led_snd_msg(struct gt683r_led *led, u8 *msg) in gt683r_led_snd_msg()
140 static int gt683r_leds_set(struct gt683r_led *led, u8 leds) in gt683r_leds_set()
159 static int gt683r_mode_set(struct gt683r_led *led, u8 mode) in gt683r_mode_set()
184 struct gt683r_led *led = container_of(work, struct gt683r_led, work); in gt683r_led_work() local
230 struct gt683r_led *led; in gt683r_led_probe() local
291 struct gt683r_led *led = hid_get_drvdata(hdev); in gt683r_led_remove() local
/kernel/linux/linux-6.6/drivers/net/wireless/ralink/rt2x00/
Drt2x00leds.c21 struct rt2x00_led *led = &rt2x00dev->led_qual; in rt2x00leds_led_quality() local
62 static void rt2x00led_led_simple(struct rt2x00_led *led, bool enabled) in rt2x00led_led_simple()
92 struct rt2x00_led *led, in rt2x00leds_register_led()
171 static void rt2x00leds_unregister_led(struct rt2x00_led *led) in rt2x00leds_unregister_led()
197 static inline void rt2x00leds_suspend_led(struct rt2x00_led *led) in rt2x00leds_suspend_led()
216 static inline void rt2x00leds_resume_led(struct rt2x00_led *led) in rt2x00leds_resume_led()
/kernel/linux/linux-5.10/drivers/net/wireless/ralink/rt2x00/
Drt2x00leds.c21 struct rt2x00_led *led = &rt2x00dev->led_qual; in rt2x00leds_led_quality() local
62 static void rt2x00led_led_simple(struct rt2x00_led *led, bool enabled) in rt2x00led_led_simple()
92 struct rt2x00_led *led, in rt2x00leds_register_led()
171 static void rt2x00leds_unregister_led(struct rt2x00_led *led) in rt2x00leds_unregister_led()
197 static inline void rt2x00leds_suspend_led(struct rt2x00_led *led) in rt2x00leds_suspend_led()
216 static inline void rt2x00leds_resume_led(struct rt2x00_led *led) in rt2x00leds_resume_led()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtl818x/rtl8187/
Dleds.c30 struct rtl8187_led *led = &priv->led_tx; in led_turn_on() local
68 struct rtl8187_led *led = &priv->led_tx; in led_turn_off() local
102 struct rtl8187_led *led = container_of(led_dev, struct rtl8187_led, in rtl8187_led_brightness_set() local
132 struct rtl8187_led *led, const char *name, in rtl8187_register_led()
161 static void rtl8187_unregister_led(struct rtl8187_led *led) in rtl8187_unregister_led()
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtl818x/rtl8187/
Dleds.c30 struct rtl8187_led *led = &priv->led_tx; in led_turn_on() local
68 struct rtl8187_led *led = &priv->led_tx; in led_turn_off() local
102 struct rtl8187_led *led = container_of(led_dev, struct rtl8187_led, in rtl8187_led_brightness_set() local
132 struct rtl8187_led *led, const char *name, in rtl8187_register_led()
161 static void rtl8187_unregister_led(struct rtl8187_led *led) in rtl8187_unregister_led()

12345678910>>...17