| /linux/drivers/leds/ |
| H A D | leds-lm3533.c | 59 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 …]
|
| H A D | leds-wm8350.c | 88 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 D | leds-max8997.c | 47 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 D | leds-mt6323.c | 149 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 D | leds-regulator.c | 58 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 128 struct regulator_led *led; in regulator_led_probe() local 177 struct regulator_led *led = platform_get_drvdata(pdev); in regulator_led_remove() local
|
| H A D | leds-ns2.c | 56 static int ns2_led_get_mode(struct ns2_led *led, enum ns2_led_modes *mode) in ns2_led_get_mode() 76 static void ns2_led_set_mode(struct ns2_led *led, enum ns2_led_modes mode) in ns2_led_set_mode() 106 struct ns2_led *led = container_of(led_cdev, struct ns2_led, cdev); in ns2_led_set() local 131 struct ns2_led *led = container_of(led_cdev, struct ns2_led, cdev); in ns2_led_sata_store() local 162 struct ns2_led *led = container_of(led_cdev, struct ns2_led, cdev); in ns2_led_sata_show() local 176 struct ns2_led *led) in ns2_led_register()
|
| H A D | leds-lm3692x.c | 147 static int lm3692x_fault_check(struct lm3692x_led *led) in lm3692x_fault_check() 170 static int lm3692x_leds_enable(struct lm3692x_led *led) in lm3692x_leds_enable() 298 static int lm3692x_leds_disable(struct lm3692x_led *led) in lm3692x_leds_disable() 329 struct lm3692x_led *led = in lm3692x_brightness_set() local 366 static enum led_brightness lm3692x_max_brightness(struct lm3692x_led *led, in lm3692x_max_brightness() 379 static int lm3692x_probe_dt(struct lm3692x_led *led) in lm3692x_probe_dt() 464 struct lm3692x_led *led; in lm3692x_probe() local 498 struct lm3692x_led *led = i2c_get_clientdata(client); in lm3692x_remove() local
|
| H A D | leds-adp5520.c | 32 struct adp5520_led *led; in adp5520_led_set() local 39 static int adp5520_led_setup(struct adp5520_led *led) in adp5520_led_setup() 95 struct adp5520_led *led, *led_dat; in adp5520_led_probe() local 169 struct adp5520_led *led; in adp5520_led_remove() local
|
| H A D | leds-el15203000.c | 87 static int el15203000_cmd(struct el15203000_led *led, u8 brightness) in el15203000_cmd() 133 struct el15203000_led *led = to_el15203000_led(ldev); in el15203000_set_blocking() local 142 struct el15203000_led *led = to_el15203000_led(ldev); in el15203000_pattern_set_S() local 193 struct el15203000_led *led = to_el15203000_led(ldev); in el15203000_pattern_set_P() local 231 struct el15203000_led *led = to_el15203000_led(ldev); in el15203000_pattern_clear() local 238 struct el15203000_led *led = priv->leds; in el15203000_probe_dt() local
|
| H A D | leds-ss4200.c | 181 struct nasgpio_led *led = led_classdev_to_nasgpio_led(led_cdev); in __nasgpio_led_set_attr() local 203 struct nasgpio_led *led = led_classdev_to_nasgpio_led(led_cdev); in nasgpio_led_get_attr() local 426 struct led_classdev *led = &nas_led->led_cdev; in get_classdev_for_led_nr() local 450 struct led_classdev *led = dev_get_drvdata(dev); in blink_show() local 462 struct led_classdev *led = dev_get_drvdata(dev); in blink_store() local 485 struct led_classdev *led = get_classdev_for_led_nr(led_nr); in register_nasgpio_led() local 500 struct led_classdev *led = get_classdev_for_led_nr(led_nr); in unregister_nasgpio_led() local
|
| H A D | leds-wm831x-status.c | 38 static void wm831x_status_set(struct wm831x_status *led) in wm831x_status_set() 69 struct wm831x_status *led = to_wm831x_status(led_cdev); in wm831x_status_brightness_set() local 86 struct wm831x_status *led = to_wm831x_status(led_cdev); in wm831x_status_blink_set() local 162 struct wm831x_status *led = to_wm831x_status(led_cdev); in src_show() local 186 struct wm831x_status *led = to_wm831x_status(led_cdev); in src_store() local
|
| /linux/drivers/leds/flash/ |
| H A D | leds-max77693.c | 140 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 …]
|
| H A D | leds-aat1290.c | 95 static void aat1290_as2cwire_write(struct aat1290_led *led, int addr, int value) in aat1290_as2cwire_write() 125 static void aat1290_set_flash_safety_timer(struct aat1290_led *led, in aat1290_set_flash_safety_timer() 143 struct aat1290_led *led = fled_cdev_to_led(fled_cdev); in aat1290_led_brightness_set() local 174 struct aat1290_led *led = fled_cdev_to_led(fled_cdev); in aat1290_led_flash_strobe_set() local 214 static int aat1290_led_parse_dt(struct aat1290_led *led, in aat1290_led_parse_dt() 287 static void aat1290_led_validate_mm_current(struct aat1290_led *led, in aat1290_led_validate_mm_current() 304 static int init_mm_current_scale(struct aat1290_led *led, in init_mm_current_scale() 327 static int aat1290_led_get_configuration(struct aat1290_led *led, in aat1290_led_get_configuration() 354 static void aat1290_init_flash_timeout(struct aat1290_led *led, in aat1290_init_flash_timeout() 374 struct aat1290_led *led = fled_cdev_to_led(fled_cdev); in aat1290_intensity_to_brightness() local [all …]
|
| H A D | leds-mt6360.c | 101 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 312 struct mt6360_led *led = in mt6360_strobe_get() local 325 struct mt6360_led *led = in mt6360_timeout_set() local 342 struct mt6360_led *led = in mt6360_fault_get() local 394 static int mt6360_isnk_init_default_state(struct mt6360_led *led) in mt6360_isnk_init_default_state() 427 static int mt6360_flash_init_default_state(struct mt6360_led *led) in mt6360_flash_init_default_state() [all …]
|
| H A D | leds-mt6370-flash.c | 89 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() 393 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() [all …]
|
| /linux/drivers/net/dsa/qca/ |
| H A D | qca8k-leds.c | 95 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
|
| /linux/drivers/hid/ |
| H A D | hid-gt683r.c | 65 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
|
| /linux/drivers/net/wireless/ralink/rt2x00/ |
| H A D | rt2x00leds.c | 21 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()
|
| /linux/drivers/net/wireless/realtek/rtl818x/rtl8187/ |
| H A D | leds.c | 30 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()
|
| /linux/drivers/leds/trigger/ |
| H A D | ledtrig-backlight.c | 20 struct led_classdev *led; member 33 struct led_classdev *led = n->led; in ledtrig_backlight_notify_blank() 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() 120 static void bl_trig_deactivate(struct led_classdev *led) in bl_trig_deactivate()
|
| /linux/drivers/net/dsa/mv88e6xxx/ |
| H A D | leds.c | 34 static int mv88e6xxx_led_brightness_set(struct mv88e6xxx_port *p, int led, in mv88e6xxx_led_brightness_set() 97 int led; member 337 static int mv88e6xxx_led_match_selector(struct mv88e6xxx_port *p, int led, bool blink_activity, in mv88e6xxx_led_match_selector() 389 mv88e6xxx_led_match_rule(struct mv88e6xxx_port *p, u16 selector, int led, unsigned long *rules) in mv88e6xxx_led_match_rule() 425 static int mv88e6xxx_led_get_selector(struct mv88e6xxx_port *p, int led, in mv88e6xxx_led_get_selector() 443 static int mv88e6xxx_led_set_blinking_period(struct mv88e6xxx_port *p, int led, in mv88e6xxx_led_set_blinking_period() 509 static int mv88e6xxx_led_blink_set(struct mv88e6xxx_port *p, int led, in mv88e6xxx_led_blink_set() 598 int led, unsigned long rules) in mv88e6xxx_led_hw_control_set() 633 mv88e6xxx_led_hw_control_get(struct mv88e6xxx_port *p, int led, unsigned long *rules) in mv88e6xxx_led_hw_control_get() 747 struct fwnode_handle *led = NULL, *leds = NULL; in mv88e6xxx_port_setup_leds() local
|
| /linux/drivers/net/dsa/realtek/ |
| H A D | rtl8366rb-leds.c | 25 static int rb8366rb_get_port_led(struct rtl8366rb_led *led) in rb8366rb_get_port_led() 44 static int rb8366rb_set_port_led(struct rtl8366rb_led *led, bool enable) in rb8366rb_set_port_led() 79 struct rtl8366rb_led *led = container_of(ldev, struct rtl8366rb_led, in rtl8366rb_cled_brightness_set_blocking() local 91 struct rtl8366rb_led *led; in rtl8366rb_setup_led() local
|
| /linux/drivers/leds/rgb/ |
| H A D | leds-mt6370-rgb.c | 422 struct mt6370_led *led = container_of(mccdev, struct mt6370_led, mc); in mt6370_mc_brightness_set() local 484 struct mt6370_led *led = container_of(mccdev, struct mt6370_led, mc); in mt6370_mc_blink_set() local 536 struct mt6370_led *led = container_of(mccdev, struct mt6370_led, mc); in mt6370_mc_pattern_set() local 586 struct mt6370_led *led = container_of(mccdev, struct mt6370_led, mc); in mt6370_mc_pattern_clear() local 609 struct mt6370_led *led = container_of(lcdev, struct mt6370_led, isink); in mt6370_isnk_brightness_set() local 645 struct mt6370_led *led = container_of(lcdev, struct mt6370_led, isink); in mt6370_isnk_blink_set() local 673 struct mt6370_led *led = container_of(lcdev, struct mt6370_led, isink); in mt6370_isnk_pattern_set() local 701 struct mt6370_led *led = container_of(lcdev, struct mt6370_led, isink); in mt6370_isnk_pattern_clear() local 712 static int mt6370_assign_multicolor_info(struct device *dev, struct mt6370_led *led, in mt6370_assign_multicolor_info() 757 static int mt6370_init_led_properties(struct device *dev, struct mt6370_led *led, in mt6370_init_led_properties() [all …]
|
| /linux/drivers/input/ |
| H A D | input-leds.c | 58 struct input_led *led = container_of(cdev, struct input_led, cdev); in input_leds_brightness_get() local 67 struct input_led *led = container_of(cdev, struct input_led, cdev); in input_leds_brightness_set() local 94 struct input_led *led; in input_leds_connect() local 160 struct input_led *led = &leds->leds[led_no]; in input_leds_connect() local 182 struct input_led *led = &leds->leds[i]; in input_leds_disconnect() local
|
| /linux/drivers/net/wireless/broadcom/b43/ |
| H A D | leds.c | 48 struct b43_led *led) in b43_led_update() 99 struct b43_led *led = container_of(led_dev, struct b43_led, led_dev); in b43_led_brightness_set() local 108 static int b43_register_led(struct b43_wldev *dev, struct b43_led *led, in b43_register_led() 138 static void b43_unregister_led(struct b43_led *led) in b43_unregister_led() 251 struct b43_led *led; in b43_leds_init() local
|