Home
last modified time | relevance | path

Searched refs:led_dev (Results 1 – 25 of 32) sorted by relevance

12

/Linux-v5.4/drivers/net/wireless/ralink/rt2x00/
Drt2x00leds.c56 if (brightness != led->led_dev.brightness) { in rt2x00leds_led_quality()
57 led->led_dev.brightness_set(&led->led_dev, brightness); in rt2x00leds_led_quality()
58 led->led_dev.brightness = brightness; in rt2x00leds_led_quality()
69 led->led_dev.brightness_set(&led->led_dev, brightness); in rt2x00led_led_simple()
70 led->led_dev.brightness = brightness; in rt2x00led_led_simple()
98 led->led_dev.name = name; in rt2x00leds_register_led()
99 led->led_dev.brightness = LED_OFF; in rt2x00leds_register_led()
101 retval = led_classdev_register(device, &led->led_dev); in rt2x00leds_register_led()
158 if (rt2x00dev->led_radio.led_dev.blink_set) { in rt2x00leds_register()
161 rt2x00dev->led_radio.led_dev.blink_set( in rt2x00leds_register()
[all …]
Drt2x00leds.h25 struct led_classdev led_dev; member
Drt2400pci.c206 container_of(led_cdev, struct rt2x00_led, led_dev); in rt2400pci_brightness_set()
225 container_of(led_cdev, struct rt2x00_led, led_dev); in rt2400pci_blink_set()
242 led->led_dev.brightness_set = rt2400pci_brightness_set; in rt2400pci_init_led()
243 led->led_dev.blink_set = rt2400pci_blink_set; in rt2400pci_init_led()
Drt2500usb.c269 container_of(led_cdev, struct rt2x00_led, led_dev); in rt2500usb_brightness_set()
288 container_of(led_cdev, struct rt2x00_led, led_dev); in rt2500usb_blink_set()
305 led->led_dev.brightness_set = rt2500usb_brightness_set; in rt2500usb_init_led()
306 led->led_dev.blink_set = rt2500usb_blink_set; in rt2500usb_init_led()
/Linux-v5.4/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dled.c36 static void brcms_led_brightness_set(struct led_classdev *led_dev, in brcms_led_brightness_set() argument
39 struct brcms_info *wl = container_of(led_dev, in brcms_led_brightness_set()
40 struct brcms_info, led_dev); in brcms_led_brightness_set()
46 if (wl->led_dev.dev) in brcms_led_unregister()
47 led_classdev_unregister(&wl->led_dev); in brcms_led_unregister()
108 wl->led_dev.name = wl->radio_led.name; in brcms_led_register()
109 wl->led_dev.default_trigger = in brcms_led_register()
111 wl->led_dev.brightness_set = brcms_led_brightness_set; in brcms_led_register()
112 err = led_classdev_register(wiphy_dev(wl->wiphy), &wl->led_dev); in brcms_led_register()
Dmac80211_if.h87 struct led_classdev led_dev; member
/Linux-v5.4/drivers/net/wireless/intersil/p54/
Dled.c46 if (priv->leds[i].led_dev.brightness == LED_OFF) in p54_update_leds()
50 !!priv->leds[i].led_dev.brightness; in p54_update_leds()
64 static void p54_led_brightness_set(struct led_classdev *led_dev, in p54_led_brightness_set() argument
67 struct p54_led_dev *led = container_of(led_dev, struct p54_led_dev, in p54_led_brightness_set()
68 led_dev); in p54_led_brightness_set()
95 led->led_dev.name = led->name; in p54_register_led()
96 led->led_dev.default_trigger = trigger; in p54_register_led()
97 led->led_dev.brightness_set = p54_led_brightness_set; in p54_register_led()
99 err = led_classdev_register(wiphy_dev(priv->hw->wiphy), &led->led_dev); in p54_register_led()
153 led_classdev_unregister(&priv->leds[i].led_dev); in p54_unregister_leds()
Dp54.h148 struct led_classdev led_dev; member
/Linux-v5.4/drivers/leds/
Dleds-lm3530.c106 struct led_classdev led_dev; member
198 dev_err(drvdata->led_dev.dev, "Failed to enable vin:%d\n", ret); in lm3530_led_enable()
215 dev_err(drvdata->led_dev.dev, "Failed to disable vin:%d\n", in lm3530_led_disable()
263 if (brightness > drvdata->led_dev.max_brightness) in lm3530_init_registers()
264 brightness = drvdata->led_dev.max_brightness; in lm3530_init_registers()
291 drvdata->led_dev.max_brightness); in lm3530_init_registers()
309 container_of(led_cdev, struct lm3530_data, led_dev); in lm3530_brightness_set()
356 drvdata = container_of(led_cdev, struct lm3530_data, led_dev); in lm3530_mode_get()
377 drvdata = container_of(led_cdev, struct lm3530_data, led_dev); in lm3530_mode_set()
441 drvdata->led_dev.name = LM3530_LED_DEV; in lm3530_probe()
[all …]
Dleds-lm36274.c34 struct led_classdev led_dev; member
46 struct lm36274 *led = container_of(led_cdev, struct lm36274, led_dev); in lm36274_brightness_set()
106 &lm36274_data->led_dev.default_trigger); in lm36274_parse_dt()
115 lm36274_data->led_dev.name = label; in lm36274_parse_dt()
116 lm36274_data->led_dev.max_brightness = MAX_BRIGHTNESS_11BIT; in lm36274_parse_dt()
117 lm36274_data->led_dev.brightness_set_blocking = lm36274_brightness_set; in lm36274_parse_dt()
151 &lm36274_data->led_dev); in lm36274_probe()
Dleds-lp8788.c25 struct led_classdev led_dev; member
92 container_of(led_cdev, struct lp8788_led, led_dev); in lp8788_brightness_set()
133 led->led_dev.max_brightness = MAX_BRIGHTNESS; in lp8788_led_probe()
134 led->led_dev.brightness_set_blocking = lp8788_brightness_set; in lp8788_led_probe()
139 led->led_dev.name = DEFAULT_LED_NAME; in lp8788_led_probe()
141 led->led_dev.name = led_pdata->name; in lp8788_led_probe()
151 ret = devm_led_classdev_register(dev, &led->led_dev); in lp8788_led_probe()
Dleds-lm3697.c54 struct led_classdev led_dev; member
116 led_dev); in lm3697_brightness_set()
272 &led->led_dev.default_trigger); in lm3697_probe_dt()
283 led->led_dev.name = led->label; in lm3697_probe_dt()
284 led->led_dev.max_brightness = led->lmu_data.max_brightness; in lm3697_probe_dt()
285 led->led_dev.brightness_set_blocking = lm3697_brightness_set; in lm3697_probe_dt()
287 ret = devm_led_classdev_register(priv->dev, &led->led_dev); in lm3697_probe_dt()
Dleds-lp8860.c100 struct led_classdev led_dev; member
209 container_of(led_cdev, struct lp8860_led, led_dev); in lp8860_brightness_set()
395 led->led_dev.default_trigger = of_get_property(child_node, in lp8860_probe()
412 led->led_dev.brightness_set_blocking = lp8860_brightness_set; in lp8860_probe()
442 ret = devm_led_classdev_register_ext(&client->dev, &led->led_dev, in lp8860_probe()
Dleds-lm3692x.c111 struct led_classdev led_dev; member
169 container_of(led_cdev, struct lm3692x_led, led_dev); in lm3692x_brightness_set()
348 &led->led_dev.default_trigger); in lm3692x_probe_dt()
360 ret = devm_led_classdev_register_ext(&led->client->dev, &led->led_dev, in lm3692x_probe_dt()
382 led->led_dev.brightness_set_blocking = lm3692x_brightness_set; in lm3692x_probe()
Dleds-lm3532.c134 struct led_classdev led_dev; member
351 container_of(led_cdev, struct lm3532_led, led_dev); in lm3532_brightness_set()
640 &led->led_dev.default_trigger); in lm3532_parse_node()
651 led->led_dev.name = led->label; in lm3532_parse_node()
652 led->led_dev.brightness_set_blocking = lm3532_brightness_set; in lm3532_parse_node()
654 ret = devm_led_classdev_register(priv->dev, &led->led_dev); in lm3532_parse_node()
/Linux-v5.4/drivers/input/keyboard/
Dtm2-touchkey.c49 struct led_classdev led_dev; member
78 static int tm2_touchkey_led_brightness_set(struct led_classdev *led_dev, in tm2_touchkey_led_brightness_set() argument
82 container_of(led_dev, struct tm2_touchkey_data, led_dev); in tm2_touchkey_led_brightness_set()
166 if (touchkey->led_dev.brightness == LED_OFF) in tm2_touchkey_irq_handler()
167 tm2_touchkey_led_brightness_set(&touchkey->led_dev, in tm2_touchkey_irq_handler()
266 touchkey->led_dev.name = TM2_TOUCHKEY_DEV_NAME; in tm2_touchkey_probe()
267 touchkey->led_dev.brightness = LED_ON; in tm2_touchkey_probe()
268 touchkey->led_dev.max_brightness = LED_ON; in tm2_touchkey_probe()
269 touchkey->led_dev.brightness_set_blocking = in tm2_touchkey_probe()
272 error = devm_led_classdev_register(&client->dev, &touchkey->led_dev); in tm2_touchkey_probe()
[all …]
/Linux-v5.4/drivers/net/wireless/ath/ath5k/
Dled.c113 ath5k_led_brightness_set(struct led_classdev *led_dev, in ath5k_led_brightness_set() argument
116 struct ath5k_led *led = container_of(led_dev, struct ath5k_led, in ath5k_led_brightness_set()
117 led_dev); in ath5k_led_brightness_set()
134 led->led_dev.name = led->name; in ath5k_register_led()
135 led->led_dev.default_trigger = trigger; in ath5k_register_led()
136 led->led_dev.brightness_set = ath5k_led_brightness_set; in ath5k_register_led()
138 err = led_classdev_register(ah->dev, &led->led_dev); in ath5k_register_led()
151 led_classdev_unregister(&led->led_dev); in ath5k_unregister_led()
/Linux-v5.4/drivers/net/wireless/realtek/rtl818x/rtl8187/
Dleds.c99 static void rtl8187_led_brightness_set(struct led_classdev *led_dev, in rtl8187_led_brightness_set() argument
102 struct rtl8187_led *led = container_of(led_dev, struct rtl8187_led, in rtl8187_led_brightness_set()
103 led_dev); in rtl8187_led_brightness_set()
148 led->led_dev.name = led->name; in rtl8187_register_led()
149 led->led_dev.default_trigger = default_trigger; in rtl8187_register_led()
150 led->led_dev.brightness_set = rtl8187_led_brightness_set; in rtl8187_register_led()
152 err = led_classdev_register(&priv->udev->dev, &led->led_dev); in rtl8187_register_led()
166 led_classdev_unregister(&led->led_dev); in rtl8187_unregister_led()
Dleds.h42 struct led_classdev led_dev; member
/Linux-v5.4/drivers/net/wireless/broadcom/b43legacy/
Dleds.c56 static void b43legacy_led_brightness_set(struct led_classdev *led_dev, in b43legacy_led_brightness_set() argument
59 struct b43legacy_led *led = container_of(led_dev, struct b43legacy_led, in b43legacy_led_brightness_set()
60 led_dev); in b43legacy_led_brightness_set()
93 led->led_dev.name = led->name; in b43legacy_register_led()
94 led->led_dev.default_trigger = default_trigger; in b43legacy_register_led()
95 led->led_dev.brightness_set = b43legacy_led_brightness_set; in b43legacy_register_led()
97 err = led_classdev_register(dev->dev->dev, &led->led_dev); in b43legacy_register_led()
110 led_classdev_unregister(&led->led_dev); in b43legacy_unregister_led()
Dleds.h18 struct led_classdev led_dev; member
/Linux-v5.4/drivers/net/wireless/broadcom/b43/
Dleds.c96 static void b43_led_brightness_set(struct led_classdev *led_dev, in b43_led_brightness_set() argument
99 struct b43_led *led = container_of(led_dev, struct b43_led, led_dev); in b43_led_brightness_set()
124 led->led_dev.name = led->name; in b43_register_led()
125 led->led_dev.default_trigger = default_trigger; in b43_register_led()
126 led->led_dev.brightness_set = b43_led_brightness_set; in b43_register_led()
128 err = led_classdev_register(dev->dev->dev, &led->led_dev); in b43_register_led()
142 led_classdev_unregister(&led->led_dev); in b43_unregister_led()
Dleds.h20 struct led_classdev led_dev; member
/Linux-v5.4/drivers/media/rc/
Dttusbir.c43 static enum led_brightness ttusbir_brightness_get(struct led_classdev *led_dev) in ttusbir_brightness_get() argument
45 struct ttusbir *tt = container_of(led_dev, struct ttusbir, led); in ttusbir_brightness_get()
68 static void ttusbir_brightness_set(struct led_classdev *led_dev, enum in ttusbir_brightness_set() argument
71 struct ttusbir *tt = container_of(led_dev, struct ttusbir, led); in ttusbir_brightness_set()
/Linux-v5.4/drivers/platform/x86/
Dtoshiba_acpi.c167 struct led_classdev led_dev; member
483 struct toshiba_acpi_dev, led_dev); in toshiba_illumination_set()
502 struct toshiba_acpi_dev, led_dev); in toshiba_illumination_get()
3001 led_classdev_unregister(&dev->led_dev); in toshiba_acpi_remove()
3095 dev->led_dev.name = "toshiba::illumination"; in toshiba_acpi_add()
3096 dev->led_dev.max_brightness = 1; in toshiba_acpi_add()
3097 dev->led_dev.brightness_set = toshiba_illumination_set; in toshiba_acpi_add()
3098 dev->led_dev.brightness_get = toshiba_illumination_get; in toshiba_acpi_add()
3099 if (!led_classdev_register(&acpi_dev->dev, &dev->led_dev)) in toshiba_acpi_add()

12