/Linux-v6.6/drivers/net/wireless/ralink/rt2x00/ |
D | rt2x00leds.c | 56 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 …]
|
D | rt2x00leds.h | 25 struct led_classdev led_dev; member
|
/Linux-v6.6/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
D | led.c | 36 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() 97 wl->led_dev.name = wl->radio_led.name; in brcms_led_register() 98 wl->led_dev.default_trigger = in brcms_led_register() 100 wl->led_dev.brightness_set = brcms_led_brightness_set; in brcms_led_register() 101 err = led_classdev_register(wiphy_dev(wl->wiphy), &wl->led_dev); in brcms_led_register()
|
D | mac80211_if.h | 87 struct led_classdev led_dev; member
|
/Linux-v6.6/drivers/net/wireless/intersil/p54/ |
D | led.c | 46 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()
|
D | p54.h | 148 struct led_classdev led_dev; member
|
/Linux-v6.6/drivers/leds/ |
D | leds-lm3530.c | 106 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() 440 drvdata->led_dev.name = LM3530_LED_DEV; in lm3530_probe() [all …]
|
D | leds-lp8788.c | 25 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()
|
D | leds-lm36274.c | 35 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()
|
D | led-class.c | 233 static struct led_classdev *led_module_get(struct device *led_dev) in led_module_get() argument 237 if (!led_dev) in led_module_get() 240 led_cdev = dev_get_drvdata(led_dev); in led_module_get() 266 struct device *led_dev; in of_led_get() local 273 led_dev = class_find_device_by_of_node(&leds_class, led_node); in of_led_get() 275 put_device(led_dev); in of_led_get() 277 return led_module_get(led_dev); in of_led_get() 353 struct device *led_dev; in led_get() local 368 led_dev = class_find_device_by_name(&leds_class, provider); in led_get() 371 return led_module_get(led_dev); in led_get()
|
D | leds-lm3697.c | 61 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()
|
D | leds-lm3692x.c | 111 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()
|
D | leds-lp8860.c | 99 struct led_classdev led_dev; member 208 container_of(led_cdev, struct lp8860_led, led_dev); in lp8860_brightness_set() 404 led->led_dev.brightness_set_blocking = lp8860_brightness_set; in lp8860_probe() 434 ret = devm_led_classdev_register_ext(&client->dev, &led->led_dev, in lp8860_probe()
|
D | leds-lm3532.c | 134 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-v6.6/drivers/net/wireless/ath/ath5k/ |
D | led.c | 115 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-v6.6/drivers/input/keyboard/ |
D | tm2-touchkey.c | 48 struct led_classdev led_dev; member 85 static int tm2_touchkey_led_brightness_set(struct led_classdev *led_dev, in tm2_touchkey_led_brightness_set() argument 89 container_of(led_dev, struct tm2_touchkey_data, led_dev); in tm2_touchkey_led_brightness_set() 175 if (touchkey->led_dev.brightness == LED_OFF) in tm2_touchkey_irq_handler() 176 tm2_touchkey_led_brightness_set(&touchkey->led_dev, in tm2_touchkey_irq_handler() 280 touchkey->led_dev.name = TM2_TOUCHKEY_DEV_NAME; in tm2_touchkey_probe() 281 touchkey->led_dev.brightness = LED_ON; in tm2_touchkey_probe() 282 touchkey->led_dev.max_brightness = LED_ON; in tm2_touchkey_probe() 283 touchkey->led_dev.brightness_set_blocking = in tm2_touchkey_probe() 286 error = devm_led_classdev_register(&client->dev, &touchkey->led_dev); in tm2_touchkey_probe() [all …]
|
/Linux-v6.6/drivers/net/wireless/realtek/rtl818x/rtl8187/ |
D | leds.c | 99 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()
|
D | leds.h | 42 struct led_classdev led_dev; member
|
/Linux-v6.6/drivers/net/wireless/broadcom/b43legacy/ |
D | leds.c | 56 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()
|
D | leds.h | 18 struct led_classdev led_dev; member
|
/Linux-v6.6/drivers/net/wireless/broadcom/b43/ |
D | leds.c | 96 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()
|
D | leds.h | 20 struct led_classdev led_dev; member
|
/Linux-v6.6/drivers/media/rc/ |
D | ttusbir.c | 43 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-v6.6/drivers/hid/ |
D | hid-nvidia-shield.c | 213 struct led_classdev led_dev; member 799 struct led_classdev *led = &ts->led_dev; in thunderstrike_led_create() 1080 led_classdev_unregister(&ts->led_dev); in shield_probe() 1096 led_classdev_unregister(&ts->led_dev); in shield_remove()
|
/Linux-v6.6/drivers/platform/x86/ |
D | toshiba_acpi.c | 177 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() 3349 dev->led_dev.name = "toshiba::illumination"; in toshiba_acpi_add() 3350 dev->led_dev.max_brightness = 1; in toshiba_acpi_add() 3351 dev->led_dev.brightness_set = toshiba_illumination_set; in toshiba_acpi_add() 3352 dev->led_dev.brightness_get = toshiba_illumination_get; in toshiba_acpi_add() 3353 led_classdev_register(&acpi_dev->dev, &dev->led_dev); in toshiba_acpi_add()
|