Home
last modified time | relevance | path

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

12

/linux-6.1.9/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()
/linux-6.1.9/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dled.c35 static void brcms_led_brightness_set(struct led_classdev *led_dev, in brcms_led_brightness_set() argument
38 struct brcms_info *wl = container_of(led_dev, in brcms_led_brightness_set()
39 struct brcms_info, led_dev); in brcms_led_brightness_set()
45 if (wl->led_dev.dev) in brcms_led_unregister()
46 led_classdev_unregister(&wl->led_dev); in brcms_led_unregister()
99 wl->led_dev.name = wl->radio_led.name; in brcms_led_register()
100 wl->led_dev.default_trigger = in brcms_led_register()
102 wl->led_dev.brightness_set = brcms_led_brightness_set; in brcms_led_register()
103 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-6.1.9/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-6.1.9/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 mode_show()
377 drvdata = container_of(led_cdev, struct lm3530_data, led_dev); in mode_store()
441 drvdata->led_dev.name = LM3530_LED_DEV; in lm3530_probe()
[all …]
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-lm36274.c35 struct led_classdev led_dev; member
47 struct lm36274 *chip = container_of(led_cdev, struct lm36274, led_dev); in lm36274_brightness_set()
141 chip->led_dev.max_brightness = MAX_BRIGHTNESS_11BIT; in lm36274_probe()
142 chip->led_dev.brightness_set_blocking = lm36274_brightness_set; in lm36274_probe()
144 ret = devm_led_classdev_register_ext(chip->dev, &chip->led_dev, in lm36274_probe()
Dleds-lm3697.c61 struct led_classdev led_dev; member
126 led_dev); in lm3697_brightness_set()
282 led->led_dev.max_brightness = led->lmu_data.max_brightness; in lm3697_probe_dt()
283 led->led_dev.brightness_set_blocking = lm3697_brightness_set; in lm3697_probe_dt()
285 ret = devm_led_classdev_register_ext(dev, &led->led_dev, in lm3697_probe_dt()
Dleds-lm3692x.c111 struct led_classdev led_dev; member
328 container_of(led_cdev, struct lm3692x_led, led_dev); in lm3692x_brightness_set()
443 led->led_dev.max_brightness = ret ? LED_FULL : in lm3692x_probe_dt()
450 ret = devm_led_classdev_register_ext(&led->client->dev, &led->led_dev, in lm3692x_probe_dt()
471 led->led_dev.brightness_set_blocking = lm3692x_brightness_set; in lm3692x_probe()
Dleds-lp8860.c100 struct led_classdev led_dev; member
209 container_of(led_cdev, struct lp8860_led, led_dev); in lp8860_brightness_set()
408 led->led_dev.brightness_set_blocking = lp8860_brightness_set; in lp8860_probe()
438 ret = devm_led_classdev_register_ext(&client->dev, &led->led_dev, in lp8860_probe()
Dled-class.c228 struct device *led_dev; in of_led_get() local
236 led_dev = class_find_device_by_of_node(leds_class, led_node); in of_led_get()
239 if (!led_dev) in of_led_get()
242 led_cdev = dev_get_drvdata(led_dev); in of_led_get()
Dleds-lm3532.c134 struct led_classdev led_dev; member
350 container_of(led_cdev, struct lm3532_led, led_dev); in lm3532_brightness_set()
641 led->led_dev.brightness_set_blocking = lm3532_brightness_set; in lm3532_parse_node()
643 ret = devm_led_classdev_register_ext(priv->dev, &led->led_dev, &idata); in lm3532_parse_node()
/linux-6.1.9/drivers/net/wireless/ath/ath5k/
Dled.c115 ath5k_led_brightness_set(struct led_classdev *led_dev, in ath5k_led_brightness_set() argument
118 struct ath5k_led *led = container_of(led_dev, struct ath5k_led, in ath5k_led_brightness_set()
119 led_dev); in ath5k_led_brightness_set()
136 led->led_dev.name = led->name; in ath5k_register_led()
137 led->led_dev.default_trigger = trigger; in ath5k_register_led()
138 led->led_dev.brightness_set = ath5k_led_brightness_set; in ath5k_register_led()
140 err = led_classdev_register(ah->dev, &led->led_dev); in ath5k_register_led()
153 led_classdev_unregister(&led->led_dev); in ath5k_unregister_led()
/linux-6.1.9/drivers/input/keyboard/
Dtm2-touchkey.c49 struct led_classdev led_dev; member
86 static int tm2_touchkey_led_brightness_set(struct led_classdev *led_dev, in tm2_touchkey_led_brightness_set() argument
90 container_of(led_dev, struct tm2_touchkey_data, led_dev); in tm2_touchkey_led_brightness_set()
176 if (touchkey->led_dev.brightness == LED_OFF) in tm2_touchkey_irq_handler()
177 tm2_touchkey_led_brightness_set(&touchkey->led_dev, in tm2_touchkey_irq_handler()
282 touchkey->led_dev.name = TM2_TOUCHKEY_DEV_NAME; in tm2_touchkey_probe()
283 touchkey->led_dev.brightness = LED_ON; in tm2_touchkey_probe()
284 touchkey->led_dev.max_brightness = LED_ON; in tm2_touchkey_probe()
285 touchkey->led_dev.brightness_set_blocking = in tm2_touchkey_probe()
288 error = devm_led_classdev_register(&client->dev, &touchkey->led_dev); in tm2_touchkey_probe()
[all …]
/linux-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/drivers/platform/x86/
Dtoshiba_acpi.c177 struct led_classdev led_dev; member
486 struct toshiba_acpi_dev, led_dev); in toshiba_illumination_set()
505 struct toshiba_acpi_dev, led_dev); in toshiba_illumination_get()
3221 led_classdev_unregister(&dev->led_dev); in toshiba_acpi_remove()
3351 dev->led_dev.name = "toshiba::illumination"; in toshiba_acpi_add()
3352 dev->led_dev.max_brightness = 1; in toshiba_acpi_add()
3353 dev->led_dev.brightness_set = toshiba_illumination_set; in toshiba_acpi_add()
3354 dev->led_dev.brightness_get = toshiba_illumination_get; in toshiba_acpi_add()
3355 led_classdev_register(&acpi_dev->dev, &dev->led_dev); in toshiba_acpi_add()

12