Home
last modified time | relevance | path

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

12345678910>>...12

/openbmc/linux/drivers/leds/
H A Dleds-bd2802.c73 struct led_state led[2]; member
132 static inline int bd2802_is_all_off(struct bd2802_led *led) in bd2802_is_all_off()
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()
388 static void bd2802_enable_adv_conf(struct bd2802_led *led) in bd2802_enable_adv_conf()
415 static void bd2802_disable_adv_conf(struct bd2802_led *led) in bd2802_disable_adv_conf()
661 struct bd2802_led *led; in bd2802_probe() local
726 struct bd2802_led *led = i2c_get_clientdata(client); in bd2802_remove() local
738 static void bd2802_restore_state(struct bd2802_led *led) in bd2802_restore_state()
755 struct bd2802_led *led = i2c_get_clientdata(client); in bd2802_suspend() local
[all …]
H A Dleds-lm3533.c121 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
285 struct lm3533_led *led = to_lm3533_led(cdev); in lm3533_led_blink_set() local
315 struct lm3533_led *led = to_lm3533_led(led_cdev); in show_id() local
337 struct lm3533_led *led = to_lm3533_led(led_cdev); in show_risefalltime() local
369 struct lm3533_led *led = to_lm3533_led(led_cdev); in store_risefalltime() local
405 struct lm3533_led *led = to_lm3533_led(led_cdev); in show_als_channel() local
426 struct lm3533_led *led = to_lm3533_led(led_cdev); in store_als_channel() local
455 struct lm3533_led *led = to_lm3533_led(led_cdev); in show_als_en() local
476 struct lm3533_led *led = to_lm3533_led(led_cdev); in store_als_en() local
[all …]
H A 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
H A 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
H A Dleds-max8997.c47 static void max8997_led_set_mode(struct max8997_led *led, in max8997_led_set_mode()
97 static void max8997_led_enable(struct max8997_led *led, bool enable) in max8997_led_enable()
116 static void max8997_led_set_current(struct max8997_led *led, in max8997_led_set_current()
151 struct max8997_led *led = in max8997_led_brightness_set() local
167 struct max8997_led *led = in mode_show() local
201 struct max8997_led *led = in mode_store() local
237 struct max8997_led *led; in max8997_led_probe() local
H A Dleds-pca9532.c27 #define LED_REG(m, led) (PCA9532_REG_OFFSET(m) + 0x5 + (led >> 2)) argument
28 #define LED_NUM(led) (led & 0x3) argument
29 #define LED_SHIFT(led) (LED_NUM(led) * 2) argument
30 #define LED_MASK(led) (0x3 << LED_SHIFT(led)) argument
155 static void pca9532_setled(struct pca9532_led *led) in pca9532_setled()
176 struct pca9532_led *led = ldev_to_led(led_cdev); in pca9532_set_brightness() local
197 struct pca9532_led *led = ldev_to_led(led_cdev); in pca9532_set_blink() local
253 static enum pca9532_state pca9532_getled(struct pca9532_led *led) in pca9532_getled()
272 struct pca9532_led *led = &data->leds[offset]; in pca9532_gpio_request_pin() local
283 struct pca9532_led *led = &data->leds[offset]; in pca9532_gpio_set_value() local
[all …]
H A Dleds-mt6323.c149 struct mt6323_led *led[MAX_SUPPORTED_LEDS]; member
155 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev); in mt6323_led_hw_brightness() local
180 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev); in mt6323_led_hw_off() local
206 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev); in mt6323_get_led_hw_brightness() local
238 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev); in mt6323_led_hw_on() local
293 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev); in mt6323_led_set_blink() local
362 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev); in mt6323_led_set_brightness() local
391 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev); in mtk_wled_hw_on() local
425 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev); in mtk_wled_hw_off() local
456 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev); in mt6323_get_wled_brightness() local
[all …]
H A Dleds-lp5523.c107 #define LED_ACTIVE(mux, led) (!!(mux & (0x0001 << led))) argument
396 struct lp55xx_led *led = i2c_get_clientdata(to_i2c_client(dev)); in show_engine_mode() local
418 struct lp55xx_led *led = i2c_get_clientdata(to_i2c_client(dev)); in store_engine_mode() local
486 struct lp55xx_led *led = i2c_get_clientdata(to_i2c_client(dev)); in show_engine_leds() local
530 struct lp55xx_led *led = i2c_get_clientdata(to_i2c_client(dev)); in store_engine_leds() local
563 struct lp55xx_led *led = i2c_get_clientdata(to_i2c_client(dev)); in store_engine_load() local
585 struct lp55xx_led *led = i2c_get_clientdata(to_i2c_client(dev)); in lp5523_selftest() local
802 static int lp5523_multicolor_brightness(struct lp55xx_led *led) in lp5523_multicolor_brightness()
821 static int lp5523_led_brightness(struct lp55xx_led *led) in lp5523_led_brightness()
899 struct lp55xx_led *led; in lp5523_probe() local
[all …]
/openbmc/phosphor-led-sysfs/test/
H A Dphysical.cpp79 auto led = std::make_unique<NiceMock<MockLed>>(); in TEST() local
89 auto led = std::make_unique<NiceMock<MockLed>>(); in TEST() local
101 auto led = std::make_unique<NiceMock<MockLed>>(); in TEST() local
113 auto led = std::make_unique<NiceMock<MockLed>>(); in TEST() local
125 auto led = std::make_unique<NiceMock<MockLed>>(); in TEST() local
136 auto led = std::make_unique<NiceMock<MockLed>>(); in TEST() local
147 auto led = std::make_unique<NiceMock<MockLed>>(); in TEST() local
163 auto led = std::make_unique<NiceMock<MockLed>>(); in TEST() local
176 auto led = std::make_unique<NiceMock<MockLed>>(); in TEST() local
189 auto led = std::make_unique<NiceMock<MockLed>>(); in TEST() local
[all …]
/openbmc/linux/drivers/leds/flash/
H A Dleds-max77693.c355 struct max77693_led_device *led = sub_led_to_led(sub_led); in max77693_get_flash_faults() local
390 static int max77693_setup(struct max77693_led_device *led, in max77693_setup()
466 struct max77693_led_device *led = sub_led_to_led(sub_led); in max77693_led_brightness_set() local
504 struct max77693_led_device *led = sub_led_to_led(sub_led); in max77693_led_flash_brightness_set() local
519 struct max77693_led_device *led = sub_led_to_led(sub_led); in max77693_led_flash_strobe_set() local
565 struct max77693_led_device *led = sub_led_to_led(sub_led); in max77693_led_flash_strobe_get() local
587 struct max77693_led_device *led = sub_led_to_led(sub_led); in max77693_led_flash_timeout_set() local
796 struct max77693_led_device *led = sub_led_to_led(sub_led); in max77693_init_flash_settings() local
826 struct max77693_led_device *led = sub_led_to_led(sub_led); in max77693_led_external_strobe_set() local
846 struct max77693_led_device *led = sub_led_to_led(sub_led); in max77693_init_v4l2_flash_config() local
[all …]
H A Dleds-aat1290.c126 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()
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
392 struct aat1290_led *led = fled_cdev_to_led(fled_cdev); in aat1290_brightness_to_intensity() local
463 struct aat1290_led *led; in aat1290_led_probe() local
[all …]
H A 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
347 struct ktd2692_context *led; in ktd2692_probe() local
[all …]
H A 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 …]
H A Dleds-mt6360.c159 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()
613 static int mt6360_init_isnk_properties(struct mt6360_led *led, in mt6360_init_isnk_properties()
694 static int mt6360_init_flash_properties(struct mt6360_led *led, in mt6360_init_flash_properties()
767 struct mt6360_led *led = priv->leds + i; in mt6360_v4l2_flash_release() local
[all …]
H A Dleds-qcom-flash.c293 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
460 struct qcom_flash_led *led = flcdev_to_qcom_fled(fled_cdev); in qcom_flash_external_strobe_set() local
477 struct qcom_flash_led *led = flcdev_to_qcom_fled(fled_cdev); in qcom_flash_intensity_to_led_brightness() local
491 struct qcom_flash_led *led = flcdev_to_qcom_fled(fled_cdev); in qcom_flash_brightness_to_led_intensity() local
543 struct fwnode_handle *node, struct qcom_flash_led *led) in qcom_flash_register_led_device()
[all …]
H A Dleds-mt6370-flash.c89 struct mt6370_led *led = to_mt6370_led(lcdev, flash.led_cdev); in mt6370_torch_brightness_set() local
166 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash); in _mt6370_flash_brightness_set() local
197 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash); in mt6370_strobe_set() local
262 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash); in mt6370_strobe_get() local
274 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash); in mt6370_timeout_set() local
284 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash); in mt6370_fault_get() local
347 struct mt6370_led *led = to_mt6370_led(flash, flash); in mt6370_flash_external_strobe_set() local
374 static void mt6370_init_v4l2_flash_config(struct mt6370_led *led, struct v4l2_flash_config *cfg) in mt6370_init_v4l2_flash_config()
403 static int mt6370_led_register(struct device *parent, struct mt6370_led *led, in mt6370_led_register()
435 static int mt6370_init_flash_properties(struct device *dev, struct mt6370_led *led, in mt6370_init_flash_properties()
[all …]
/openbmc/linux/drivers/net/dsa/qca/
H A 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
/openbmc/linux/drivers/hid/
H A 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
/openbmc/linux/drivers/net/wireless/ralink/rt2x00/
H A 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()
/openbmc/u-boot/board/alliedtelesis/SBx81LIFKW/
H A Dsbx81lifkw.c38 struct led { struct
44 struct led amber_solid = { argument
68 static void status_led_set(struct led *led) in status_led_set()
/openbmc/linux/drivers/net/wireless/realtek/rtl818x/rtl8187/
H A 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()
/openbmc/linux/drivers/leds/trigger/
H A Dledtrig-backlight.c21 struct led_classdev *led; member
33 struct led_classdev *led = n->led; in fb_notifier_callback() local
71 struct led_classdev *led = led_trigger_get_led(dev); in bl_trig_invert_store() local
101 static int bl_trig_activate(struct led_classdev *led) in bl_trig_activate()
124 static void bl_trig_deactivate(struct led_classdev *led) in bl_trig_deactivate()
H A Dledtrig-gpio.c18 struct led_classdev *led; member
27 struct led_classdev *led = _led; in gpio_trig_irq() local
87 struct led_classdev *led = led_trigger_get_led(dev); in gpio_trig_inverted_store() local
121 struct led_classdev *led = led_trigger_get_led(dev); in gpio_trig_gpio_store() local
167 static int gpio_trig_activate(struct led_classdev *led) in gpio_trig_activate()
183 static void gpio_trig_deactivate(struct led_classdev *led) in gpio_trig_deactivate()
/openbmc/phosphor-led-manager/test/
H A Dutest-led-yaml-group-priority.cpp32 for (const auto& led : group.actionSet) in TEST() local
50 for (const auto& led : group.actionSet) in TEST() local
68 for (const auto& led : group.actionSet) in TEST() local
89 for (const auto& led : group.actionSet) in TEST() local
/openbmc/phosphor-led-sysfs/
H A Dphysical.hpp16 namespace led namespace
49 std::unique_ptr<phosphor::led::SysfsLed> led, in Physical()
82 std::unique_ptr<phosphor::led::SysfsLed> led; member in phosphor::led::Physical

12345678910>>...12