led_cdev 198 arch/mips/txx9/rbtx4939/setup.c static void rbtx4939_led_brightness_set(struct led_classdev *led_cdev, led_cdev 202 arch/mips/txx9/rbtx4939/setup.c container_of(led_cdev, struct rbtx4939_led_data, cdev); led_cdev 231 arch/x86/platform/ts5500/ts5500.c static void ts5500_led_set(struct led_classdev *led_cdev, led_cdev 237 arch/x86/platform/ts5500/ts5500.c static enum led_brightness ts5500_led_get(struct led_classdev *led_cdev) led_cdev 349 drivers/hid/hid-asus.c static void asus_kbd_backlight_set(struct led_classdev *led_cdev, led_cdev 352 drivers/hid/hid-asus.c struct asus_kbd_leds *led = container_of(led_cdev, struct asus_kbd_leds, led_cdev 361 drivers/hid/hid-asus.c static enum led_brightness asus_kbd_backlight_get(struct led_classdev *led_cdev) led_cdev 363 drivers/hid/hid-asus.c struct asus_kbd_leds *led = container_of(led_cdev, struct asus_kbd_leds, led_cdev 145 drivers/hid/hid-corsair.c static enum led_brightness k90_backlight_get(struct led_classdev *led_cdev) led_cdev 148 drivers/hid/hid-corsair.c struct k90_led *led = container_of(led_cdev, struct k90_led, cdev); led_cdev 185 drivers/hid/hid-corsair.c static enum led_brightness k90_record_led_get(struct led_classdev *led_cdev) led_cdev 187 drivers/hid/hid-corsair.c struct k90_led *led = container_of(led_cdev, struct k90_led, cdev); led_cdev 192 drivers/hid/hid-corsair.c static void k90_brightness_set(struct led_classdev *led_cdev, led_cdev 195 drivers/hid/hid-corsair.c struct k90_led *led = container_of(led_cdev, struct k90_led, cdev); led_cdev 411 drivers/hid/hid-elan.c static enum led_brightness elan_mute_led_get_brigtness(struct led_classdev *led_cdev) led_cdev 413 drivers/hid/hid-elan.c struct device *dev = led_cdev->dev->parent; led_cdev 420 drivers/hid/hid-elan.c static int elan_mute_led_set_brigtness(struct led_classdev *led_cdev, led_cdev 425 drivers/hid/hid-elan.c struct device *dev = led_cdev->dev->parent; led_cdev 58 drivers/hid/hid-gt683r.c static void gt683r_brightness_set(struct led_classdev *led_cdev, led_cdev 62 drivers/hid/hid-gt683r.c struct device *dev = led_cdev->dev->parent; led_cdev 67 drivers/hid/hid-gt683r.c if (led_cdev == &led->led_devs[i]) led_cdev 646 drivers/hid/hid-lenovo.c struct led_classdev *led_cdev) led_cdev 648 drivers/hid/hid-lenovo.c struct device *dev = led_cdev->dev->parent; led_cdev 653 drivers/hid/hid-lenovo.c if (led_cdev == &data_pointer->led_micmute) led_cdev 661 drivers/hid/hid-lenovo.c static void lenovo_led_brightness_set_tpkbd(struct led_classdev *led_cdev, led_cdev 664 drivers/hid/hid-lenovo.c struct device *dev = led_cdev->dev->parent; led_cdev 670 drivers/hid/hid-lenovo.c if (led_cdev == &data_pointer->led_micmute) led_cdev 1114 drivers/hid/hid-lg4ff.c static void lg4ff_led_set_brightness(struct led_classdev *led_cdev, led_cdev 1117 drivers/hid/hid-lg4ff.c struct device *dev = led_cdev->dev->parent; led_cdev 1136 drivers/hid/hid-lg4ff.c if (led_cdev != entry->wdata.led[i]) led_cdev 1150 drivers/hid/hid-lg4ff.c static enum led_brightness lg4ff_led_get_brightness(struct led_classdev *led_cdev) led_cdev 1152 drivers/hid/hid-lg4ff.c struct device *dev = led_cdev->dev->parent; led_cdev 1171 drivers/hid/hid-lg4ff.c if (led_cdev == entry->wdata.led[i]) { led_cdev 50 drivers/hid/hid-picolcd_leds.c static void picolcd_led_set_brightness(struct led_classdev *led_cdev, led_cdev 58 drivers/hid/hid-picolcd_leds.c dev = led_cdev->dev->parent; led_cdev 64 drivers/hid/hid-picolcd_leds.c if (led_cdev != data->led[i]) led_cdev 78 drivers/hid/hid-picolcd_leds.c static enum led_brightness picolcd_led_get_brightness(struct led_classdev *led_cdev) led_cdev 85 drivers/hid/hid-picolcd_leds.c dev = led_cdev->dev->parent; led_cdev 89 drivers/hid/hid-picolcd_leds.c if (led_cdev == data->led[i]) { led_cdev 137 drivers/hid/hid-steelseries.c static void steelseries_srws1_led_all_set_brightness(struct led_classdev *led_cdev, led_cdev 140 drivers/hid/hid-steelseries.c struct device *dev = led_cdev->dev->parent; led_cdev 157 drivers/hid/hid-steelseries.c static enum led_brightness steelseries_srws1_led_all_get_brightness(struct led_classdev *led_cdev) led_cdev 159 drivers/hid/hid-steelseries.c struct device *dev = led_cdev->dev->parent; led_cdev 173 drivers/hid/hid-steelseries.c static void steelseries_srws1_led_set_brightness(struct led_classdev *led_cdev, led_cdev 176 drivers/hid/hid-steelseries.c struct device *dev = led_cdev->dev->parent; led_cdev 187 drivers/hid/hid-steelseries.c if (led_cdev != drv_data->led[i]) led_cdev 202 drivers/hid/hid-steelseries.c static enum led_brightness steelseries_srws1_led_get_brightness(struct led_classdev *led_cdev) led_cdev 204 drivers/hid/hid-steelseries.c struct device *dev = led_cdev->dev->parent; led_cdev 217 drivers/hid/hid-steelseries.c if (led_cdev == drv_data->led[i]) { led_cdev 929 drivers/hwmon/applesmc.c static void applesmc_brightness_set(struct led_classdev *led_cdev, led_cdev 938 drivers/hwmon/applesmc.c dev_dbg(led_cdev->dev, "work was already on the queue.\n"); led_cdev 299 drivers/hwmon/pmbus/ibm-cffps.c static int ibm_cffps_led_brightness_set(struct led_classdev *led_cdev, led_cdev 304 drivers/hwmon/pmbus/ibm-cffps.c struct ibm_cffps *psu = container_of(led_cdev, struct ibm_cffps, led); led_cdev 328 drivers/hwmon/pmbus/ibm-cffps.c led_cdev->brightness = brightness; led_cdev 333 drivers/hwmon/pmbus/ibm-cffps.c static int ibm_cffps_led_blink_set(struct led_classdev *led_cdev, led_cdev 338 drivers/hwmon/pmbus/ibm-cffps.c struct ibm_cffps *psu = container_of(led_cdev, struct ibm_cffps, led); led_cdev 350 drivers/hwmon/pmbus/ibm-cffps.c led_cdev->brightness = LED_FULL; led_cdev 1336 drivers/input/joystick/xpad.c struct led_classdev led_cdev; led_cdev 1408 drivers/input/joystick/xpad.c led_set_brightness(&xpad->led->led_cdev, (xpad->pad_nr % 4) + 2); led_cdev 1411 drivers/input/joystick/xpad.c static void xpad_led_set(struct led_classdev *led_cdev, led_cdev 1414 drivers/input/joystick/xpad.c struct xpad_led *xpad_led = container_of(led_cdev, led_cdev 1415 drivers/input/joystick/xpad.c struct xpad_led, led_cdev); led_cdev 1423 drivers/input/joystick/xpad.c struct led_classdev *led_cdev; led_cdev 1442 drivers/input/joystick/xpad.c led_cdev = &led->led_cdev; led_cdev 1443 drivers/input/joystick/xpad.c led_cdev->name = led->name; led_cdev 1444 drivers/input/joystick/xpad.c led_cdev->brightness_set = xpad_led_set; led_cdev 1445 drivers/input/joystick/xpad.c led_cdev->flags = LED_CORE_SUSPENDRESUME; led_cdev 1447 drivers/input/joystick/xpad.c error = led_classdev_register(&xpad->udev->dev, led_cdev); led_cdev 1468 drivers/input/joystick/xpad.c led_classdev_unregister(&xpad_led->led_cdev); led_cdev 896 drivers/input/keyboard/applespi.c static void applespi_set_bl_level(struct led_classdev *led_cdev, led_cdev 900 drivers/input/keyboard/applespi.c container_of(led_cdev, struct applespi_data, backlight_info); led_cdev 497 drivers/input/keyboard/lm8323.c static void lm8323_pwm_set_brightness(struct led_classdev *led_cdev, led_cdev 500 drivers/input/keyboard/lm8323.c struct lm8323_pwm *pwm = cdev_to_pwm(led_cdev); led_cdev 525 drivers/input/keyboard/lm8323.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 526 drivers/input/keyboard/lm8323.c struct lm8323_pwm *pwm = cdev_to_pwm(led_cdev); led_cdev 534 drivers/input/keyboard/lm8323.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 535 drivers/input/keyboard/lm8323.c struct lm8323_pwm *pwm = cdev_to_pwm(led_cdev); led_cdev 1039 drivers/input/misc/wistron_btns.c static void wistron_mail_led_set(struct led_classdev *led_cdev, led_cdev 1046 drivers/input/misc/wistron_btns.c static void wistron_wifi_led_set(struct led_classdev *led_cdev, led_cdev 80 drivers/input/touchscreen/stmfts.c struct led_classdev led_cdev; led_cdev 109 drivers/input/touchscreen/stmfts.c static int stmfts_brightness_set(struct led_classdev *led_cdev, led_cdev 112 drivers/input/touchscreen/stmfts.c struct stmfts_data *sdata = container_of(led_cdev, led_cdev 113 drivers/input/touchscreen/stmfts.c struct stmfts_data, led_cdev); led_cdev 134 drivers/input/touchscreen/stmfts.c static enum led_brightness stmfts_brightness_get(struct led_classdev *led_cdev) led_cdev 136 drivers/input/touchscreen/stmfts.c struct stmfts_data *sdata = container_of(led_cdev, led_cdev 137 drivers/input/touchscreen/stmfts.c struct stmfts_data, led_cdev); led_cdev 610 drivers/input/touchscreen/stmfts.c sdata->led_cdev.name = STMFTS_DEV_NAME; led_cdev 611 drivers/input/touchscreen/stmfts.c sdata->led_cdev.max_brightness = LED_ON; led_cdev 612 drivers/input/touchscreen/stmfts.c sdata->led_cdev.brightness = LED_OFF; led_cdev 613 drivers/input/touchscreen/stmfts.c sdata->led_cdev.brightness_set_blocking = stmfts_brightness_set; led_cdev 614 drivers/input/touchscreen/stmfts.c sdata->led_cdev.brightness_get = stmfts_brightness_get; led_cdev 616 drivers/input/touchscreen/stmfts.c err = devm_led_classdev_register(&sdata->client->dev, &sdata->led_cdev); led_cdev 40 drivers/leds/led-class-flash.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 41 drivers/leds/led-class-flash.c struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); led_cdev 45 drivers/leds/led-class-flash.c mutex_lock(&led_cdev->led_access); led_cdev 47 drivers/leds/led-class-flash.c if (led_sysfs_is_disabled(led_cdev)) { led_cdev 62 drivers/leds/led-class-flash.c mutex_unlock(&led_cdev->led_access); led_cdev 69 drivers/leds/led-class-flash.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 70 drivers/leds/led-class-flash.c struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); led_cdev 82 drivers/leds/led-class-flash.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 83 drivers/leds/led-class-flash.c struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); led_cdev 92 drivers/leds/led-class-flash.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 93 drivers/leds/led-class-flash.c struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); led_cdev 97 drivers/leds/led-class-flash.c mutex_lock(&led_cdev->led_access); led_cdev 99 drivers/leds/led-class-flash.c if (led_sysfs_is_disabled(led_cdev)) { led_cdev 118 drivers/leds/led-class-flash.c mutex_unlock(&led_cdev->led_access); led_cdev 125 drivers/leds/led-class-flash.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 126 drivers/leds/led-class-flash.c struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); led_cdev 142 drivers/leds/led-class-flash.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 143 drivers/leds/led-class-flash.c struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); led_cdev 147 drivers/leds/led-class-flash.c mutex_lock(&led_cdev->led_access); led_cdev 149 drivers/leds/led-class-flash.c if (led_sysfs_is_disabled(led_cdev)) { led_cdev 164 drivers/leds/led-class-flash.c mutex_unlock(&led_cdev->led_access); led_cdev 171 drivers/leds/led-class-flash.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 172 drivers/leds/led-class-flash.c struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); led_cdev 181 drivers/leds/led-class-flash.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 182 drivers/leds/led-class-flash.c struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); led_cdev 191 drivers/leds/led-class-flash.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 192 drivers/leds/led-class-flash.c struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); led_cdev 254 drivers/leds/led-class-flash.c static void led_flash_resume(struct led_classdev *led_cdev) led_cdev 256 drivers/leds/led-class-flash.c struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); led_cdev 265 drivers/leds/led-class-flash.c struct led_classdev *led_cdev = &fled_cdev->led_cdev; led_cdev 282 drivers/leds/led-class-flash.c led_cdev->groups = flash_groups; led_cdev 289 drivers/leds/led-class-flash.c struct led_classdev *led_cdev; led_cdev 296 drivers/leds/led-class-flash.c led_cdev = &fled_cdev->led_cdev; led_cdev 298 drivers/leds/led-class-flash.c if (led_cdev->flags & LED_DEV_CAP_FLASH) { led_cdev 299 drivers/leds/led-class-flash.c if (!led_cdev->brightness_set_blocking) led_cdev 306 drivers/leds/led-class-flash.c led_cdev->flash_resume = led_flash_resume; led_cdev 313 drivers/leds/led-class-flash.c ret = led_classdev_register_ext(parent, led_cdev, init_data); led_cdev 326 drivers/leds/led-class-flash.c led_classdev_unregister(&fled_cdev->led_cdev); led_cdev 343 drivers/leds/led-class-flash.c struct led_classdev *led_cdev = &fled_cdev->led_cdev; led_cdev 349 drivers/leds/led-class-flash.c if (!(led_cdev->flags & LED_SUSPENDED)) led_cdev 365 drivers/leds/led-class-flash.c struct led_classdev *led_cdev = &fled_cdev->led_cdev; led_cdev 371 drivers/leds/led-class-flash.c if (!(led_cdev->flags & LED_SUSPENDED)) led_cdev 29 drivers/leds/led-class.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 32 drivers/leds/led-class.c led_update_brightness(led_cdev); led_cdev 34 drivers/leds/led-class.c return sprintf(buf, "%u\n", led_cdev->brightness); led_cdev 40 drivers/leds/led-class.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 44 drivers/leds/led-class.c mutex_lock(&led_cdev->led_access); led_cdev 46 drivers/leds/led-class.c if (led_sysfs_is_disabled(led_cdev)) { led_cdev 56 drivers/leds/led-class.c led_trigger_remove(led_cdev); led_cdev 57 drivers/leds/led-class.c led_set_brightness(led_cdev, state); led_cdev 58 drivers/leds/led-class.c flush_work(&led_cdev->set_brightness_work); led_cdev 62 drivers/leds/led-class.c mutex_unlock(&led_cdev->led_access); led_cdev 70 drivers/leds/led-class.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 72 drivers/leds/led-class.c return sprintf(buf, "%u\n", led_cdev->max_brightness); led_cdev 109 drivers/leds/led-class.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 111 drivers/leds/led-class.c if (led_cdev->brightness_hw_changed == -1) led_cdev 114 drivers/leds/led-class.c return sprintf(buf, "%u\n", led_cdev->brightness_hw_changed); led_cdev 119 drivers/leds/led-class.c static int led_add_brightness_hw_changed(struct led_classdev *led_cdev) led_cdev 121 drivers/leds/led-class.c struct device *dev = led_cdev->dev; led_cdev 130 drivers/leds/led-class.c led_cdev->brightness_hw_changed_kn = led_cdev 132 drivers/leds/led-class.c if (!led_cdev->brightness_hw_changed_kn) { led_cdev 141 drivers/leds/led-class.c static void led_remove_brightness_hw_changed(struct led_classdev *led_cdev) led_cdev 143 drivers/leds/led-class.c sysfs_put(led_cdev->brightness_hw_changed_kn); led_cdev 144 drivers/leds/led-class.c device_remove_file(led_cdev->dev, &dev_attr_brightness_hw_changed); led_cdev 147 drivers/leds/led-class.c void led_classdev_notify_brightness_hw_changed(struct led_classdev *led_cdev, led_cdev 150 drivers/leds/led-class.c if (WARN_ON(!led_cdev->brightness_hw_changed_kn)) led_cdev 153 drivers/leds/led-class.c led_cdev->brightness_hw_changed = brightness; led_cdev 154 drivers/leds/led-class.c sysfs_notify_dirent(led_cdev->brightness_hw_changed_kn); led_cdev 158 drivers/leds/led-class.c static int led_add_brightness_hw_changed(struct led_classdev *led_cdev) led_cdev 162 drivers/leds/led-class.c static void led_remove_brightness_hw_changed(struct led_classdev *led_cdev) led_cdev 171 drivers/leds/led-class.c void led_classdev_suspend(struct led_classdev *led_cdev) led_cdev 173 drivers/leds/led-class.c led_cdev->flags |= LED_SUSPENDED; led_cdev 174 drivers/leds/led-class.c led_set_brightness_nopm(led_cdev, 0); led_cdev 182 drivers/leds/led-class.c void led_classdev_resume(struct led_classdev *led_cdev) led_cdev 184 drivers/leds/led-class.c led_set_brightness_nopm(led_cdev, led_cdev->brightness); led_cdev 186 drivers/leds/led-class.c if (led_cdev->flash_resume) led_cdev 187 drivers/leds/led-class.c led_cdev->flash_resume(led_cdev); led_cdev 189 drivers/leds/led-class.c led_cdev->flags &= ~LED_SUSPENDED; led_cdev 196 drivers/leds/led-class.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 198 drivers/leds/led-class.c if (led_cdev->flags & LED_CORE_SUSPENDRESUME) led_cdev 199 drivers/leds/led-class.c led_classdev_suspend(led_cdev); led_cdev 206 drivers/leds/led-class.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 208 drivers/leds/led-class.c if (led_cdev->flags & LED_CORE_SUSPENDRESUME) led_cdev 209 drivers/leds/led-class.c led_classdev_resume(led_cdev); led_cdev 247 drivers/leds/led-class.c struct led_classdev *led_cdev, led_cdev 264 drivers/leds/led-class.c proposed_name = led_cdev->name; led_cdev 271 drivers/leds/led-class.c mutex_init(&led_cdev->led_access); led_cdev 272 drivers/leds/led-class.c mutex_lock(&led_cdev->led_access); led_cdev 273 drivers/leds/led-class.c led_cdev->dev = device_create_with_groups(leds_class, parent, 0, led_cdev 274 drivers/leds/led-class.c led_cdev, led_cdev->groups, "%s", final_name); led_cdev 275 drivers/leds/led-class.c if (IS_ERR(led_cdev->dev)) { led_cdev 276 drivers/leds/led-class.c mutex_unlock(&led_cdev->led_access); led_cdev 277 drivers/leds/led-class.c return PTR_ERR(led_cdev->dev); led_cdev 280 drivers/leds/led-class.c led_cdev->dev->fwnode = init_data->fwnode; led_cdev 284 drivers/leds/led-class.c proposed_name, dev_name(led_cdev->dev)); led_cdev 286 drivers/leds/led-class.c if (led_cdev->flags & LED_BRIGHT_HW_CHANGED) { led_cdev 287 drivers/leds/led-class.c ret = led_add_brightness_hw_changed(led_cdev); led_cdev 289 drivers/leds/led-class.c device_unregister(led_cdev->dev); led_cdev 290 drivers/leds/led-class.c led_cdev->dev = NULL; led_cdev 291 drivers/leds/led-class.c mutex_unlock(&led_cdev->led_access); led_cdev 296 drivers/leds/led-class.c led_cdev->work_flags = 0; led_cdev 298 drivers/leds/led-class.c init_rwsem(&led_cdev->trigger_lock); led_cdev 301 drivers/leds/led-class.c led_cdev->brightness_hw_changed = -1; led_cdev 305 drivers/leds/led-class.c list_add_tail(&led_cdev->node, &leds_list); led_cdev 308 drivers/leds/led-class.c if (!led_cdev->max_brightness) led_cdev 309 drivers/leds/led-class.c led_cdev->max_brightness = LED_FULL; led_cdev 311 drivers/leds/led-class.c led_update_brightness(led_cdev); led_cdev 313 drivers/leds/led-class.c led_init_core(led_cdev); led_cdev 316 drivers/leds/led-class.c led_trigger_set_default(led_cdev); led_cdev 319 drivers/leds/led-class.c mutex_unlock(&led_cdev->led_access); led_cdev 322 drivers/leds/led-class.c led_cdev->name); led_cdev 334 drivers/leds/led-class.c void led_classdev_unregister(struct led_classdev *led_cdev) led_cdev 336 drivers/leds/led-class.c if (IS_ERR_OR_NULL(led_cdev->dev)) led_cdev 340 drivers/leds/led-class.c down_write(&led_cdev->trigger_lock); led_cdev 341 drivers/leds/led-class.c if (led_cdev->trigger) led_cdev 342 drivers/leds/led-class.c led_trigger_set(led_cdev, NULL); led_cdev 343 drivers/leds/led-class.c up_write(&led_cdev->trigger_lock); led_cdev 346 drivers/leds/led-class.c led_cdev->flags |= LED_UNREGISTERING; led_cdev 349 drivers/leds/led-class.c led_stop_software_blink(led_cdev); led_cdev 351 drivers/leds/led-class.c led_set_brightness(led_cdev, LED_OFF); led_cdev 353 drivers/leds/led-class.c flush_work(&led_cdev->set_brightness_work); led_cdev 355 drivers/leds/led-class.c if (led_cdev->flags & LED_BRIGHT_HW_CHANGED) led_cdev 356 drivers/leds/led-class.c led_remove_brightness_hw_changed(led_cdev); led_cdev 358 drivers/leds/led-class.c device_unregister(led_cdev->dev); led_cdev 361 drivers/leds/led-class.c list_del(&led_cdev->node); led_cdev 364 drivers/leds/led-class.c mutex_destroy(&led_cdev->led_access); led_cdev 381 drivers/leds/led-class.c struct led_classdev *led_cdev, led_cdev 391 drivers/leds/led-class.c rc = led_classdev_register_ext(parent, led_cdev, init_data); led_cdev 397 drivers/leds/led-class.c *dr = led_cdev; led_cdev 406 drivers/leds/led-class.c struct led_cdev **p = res; led_cdev 420 drivers/leds/led-class.c struct led_classdev *led_cdev) led_cdev 424 drivers/leds/led-class.c devm_led_classdev_match, led_cdev)); led_cdev 40 drivers/leds/led-core.c static int __led_set_brightness(struct led_classdev *led_cdev, led_cdev 43 drivers/leds/led-core.c if (!led_cdev->brightness_set) led_cdev 46 drivers/leds/led-core.c led_cdev->brightness_set(led_cdev, value); led_cdev 51 drivers/leds/led-core.c static int __led_set_brightness_blocking(struct led_classdev *led_cdev, led_cdev 54 drivers/leds/led-core.c if (!led_cdev->brightness_set_blocking) led_cdev 57 drivers/leds/led-core.c return led_cdev->brightness_set_blocking(led_cdev, value); led_cdev 62 drivers/leds/led-core.c struct led_classdev *led_cdev = from_timer(led_cdev, t, blink_timer); led_cdev 66 drivers/leds/led-core.c if (!led_cdev->blink_delay_on || !led_cdev->blink_delay_off) { led_cdev 67 drivers/leds/led-core.c led_set_brightness_nosleep(led_cdev, LED_OFF); led_cdev 68 drivers/leds/led-core.c clear_bit(LED_BLINK_SW, &led_cdev->work_flags); led_cdev 73 drivers/leds/led-core.c &led_cdev->work_flags)) { led_cdev 74 drivers/leds/led-core.c clear_bit(LED_BLINK_SW, &led_cdev->work_flags); led_cdev 78 drivers/leds/led-core.c brightness = led_get_brightness(led_cdev); led_cdev 82 drivers/leds/led-core.c &led_cdev->work_flags)) led_cdev 83 drivers/leds/led-core.c brightness = led_cdev->new_blink_brightness; led_cdev 85 drivers/leds/led-core.c brightness = led_cdev->blink_brightness; led_cdev 86 drivers/leds/led-core.c delay = led_cdev->blink_delay_on; led_cdev 91 drivers/leds/led-core.c led_cdev->blink_brightness = brightness; led_cdev 93 drivers/leds/led-core.c delay = led_cdev->blink_delay_off; led_cdev 96 drivers/leds/led-core.c led_set_brightness_nosleep(led_cdev, brightness); led_cdev 102 drivers/leds/led-core.c if (test_bit(LED_BLINK_ONESHOT, &led_cdev->work_flags)) { led_cdev 103 drivers/leds/led-core.c if (test_bit(LED_BLINK_INVERT, &led_cdev->work_flags)) { led_cdev 106 drivers/leds/led-core.c &led_cdev->work_flags); led_cdev 110 drivers/leds/led-core.c &led_cdev->work_flags); led_cdev 114 drivers/leds/led-core.c mod_timer(&led_cdev->blink_timer, jiffies + msecs_to_jiffies(delay)); led_cdev 119 drivers/leds/led-core.c struct led_classdev *led_cdev = led_cdev 123 drivers/leds/led-core.c if (test_and_clear_bit(LED_BLINK_DISABLE, &led_cdev->work_flags)) { led_cdev 124 drivers/leds/led-core.c led_cdev->delayed_set_value = LED_OFF; led_cdev 125 drivers/leds/led-core.c led_stop_software_blink(led_cdev); led_cdev 128 drivers/leds/led-core.c ret = __led_set_brightness(led_cdev, led_cdev->delayed_set_value); led_cdev 130 drivers/leds/led-core.c ret = __led_set_brightness_blocking(led_cdev, led_cdev 131 drivers/leds/led-core.c led_cdev->delayed_set_value); led_cdev 134 drivers/leds/led-core.c !(ret == -ENODEV && (led_cdev->flags & LED_UNREGISTERING) && led_cdev 135 drivers/leds/led-core.c (led_cdev->flags & LED_HW_PLUGGABLE))) led_cdev 136 drivers/leds/led-core.c dev_err(led_cdev->dev, led_cdev 140 drivers/leds/led-core.c static void led_set_software_blink(struct led_classdev *led_cdev, led_cdev 146 drivers/leds/led-core.c current_brightness = led_get_brightness(led_cdev); led_cdev 148 drivers/leds/led-core.c led_cdev->blink_brightness = current_brightness; led_cdev 149 drivers/leds/led-core.c if (!led_cdev->blink_brightness) led_cdev 150 drivers/leds/led-core.c led_cdev->blink_brightness = led_cdev->max_brightness; led_cdev 152 drivers/leds/led-core.c led_cdev->blink_delay_on = delay_on; led_cdev 153 drivers/leds/led-core.c led_cdev->blink_delay_off = delay_off; led_cdev 157 drivers/leds/led-core.c led_set_brightness_nosleep(led_cdev, LED_OFF); led_cdev 163 drivers/leds/led-core.c led_set_brightness_nosleep(led_cdev, led_cdev 164 drivers/leds/led-core.c led_cdev->blink_brightness); led_cdev 168 drivers/leds/led-core.c set_bit(LED_BLINK_SW, &led_cdev->work_flags); led_cdev 169 drivers/leds/led-core.c mod_timer(&led_cdev->blink_timer, jiffies + 1); led_cdev 173 drivers/leds/led-core.c static void led_blink_setup(struct led_classdev *led_cdev, led_cdev 177 drivers/leds/led-core.c if (!test_bit(LED_BLINK_ONESHOT, &led_cdev->work_flags) && led_cdev 178 drivers/leds/led-core.c led_cdev->blink_set && led_cdev 179 drivers/leds/led-core.c !led_cdev->blink_set(led_cdev, delay_on, delay_off)) led_cdev 186 drivers/leds/led-core.c led_set_software_blink(led_cdev, *delay_on, *delay_off); led_cdev 189 drivers/leds/led-core.c void led_init_core(struct led_classdev *led_cdev) led_cdev 191 drivers/leds/led-core.c INIT_WORK(&led_cdev->set_brightness_work, set_brightness_delayed); led_cdev 193 drivers/leds/led-core.c timer_setup(&led_cdev->blink_timer, led_timer_function, 0); led_cdev 197 drivers/leds/led-core.c void led_blink_set(struct led_classdev *led_cdev, led_cdev 201 drivers/leds/led-core.c del_timer_sync(&led_cdev->blink_timer); led_cdev 203 drivers/leds/led-core.c clear_bit(LED_BLINK_SW, &led_cdev->work_flags); led_cdev 204 drivers/leds/led-core.c clear_bit(LED_BLINK_ONESHOT, &led_cdev->work_flags); led_cdev 205 drivers/leds/led-core.c clear_bit(LED_BLINK_ONESHOT_STOP, &led_cdev->work_flags); led_cdev 207 drivers/leds/led-core.c led_blink_setup(led_cdev, delay_on, delay_off); led_cdev 211 drivers/leds/led-core.c void led_blink_set_oneshot(struct led_classdev *led_cdev, led_cdev 216 drivers/leds/led-core.c if (test_bit(LED_BLINK_ONESHOT, &led_cdev->work_flags) && led_cdev 217 drivers/leds/led-core.c timer_pending(&led_cdev->blink_timer)) led_cdev 220 drivers/leds/led-core.c set_bit(LED_BLINK_ONESHOT, &led_cdev->work_flags); led_cdev 221 drivers/leds/led-core.c clear_bit(LED_BLINK_ONESHOT_STOP, &led_cdev->work_flags); led_cdev 224 drivers/leds/led-core.c set_bit(LED_BLINK_INVERT, &led_cdev->work_flags); led_cdev 226 drivers/leds/led-core.c clear_bit(LED_BLINK_INVERT, &led_cdev->work_flags); led_cdev 228 drivers/leds/led-core.c led_blink_setup(led_cdev, delay_on, delay_off); led_cdev 232 drivers/leds/led-core.c void led_stop_software_blink(struct led_classdev *led_cdev) led_cdev 234 drivers/leds/led-core.c del_timer_sync(&led_cdev->blink_timer); led_cdev 235 drivers/leds/led-core.c led_cdev->blink_delay_on = 0; led_cdev 236 drivers/leds/led-core.c led_cdev->blink_delay_off = 0; led_cdev 237 drivers/leds/led-core.c clear_bit(LED_BLINK_SW, &led_cdev->work_flags); led_cdev 241 drivers/leds/led-core.c void led_set_brightness(struct led_classdev *led_cdev, led_cdev 248 drivers/leds/led-core.c if (test_bit(LED_BLINK_SW, &led_cdev->work_flags)) { led_cdev 255 drivers/leds/led-core.c set_bit(LED_BLINK_DISABLE, &led_cdev->work_flags); led_cdev 256 drivers/leds/led-core.c schedule_work(&led_cdev->set_brightness_work); led_cdev 259 drivers/leds/led-core.c &led_cdev->work_flags); led_cdev 260 drivers/leds/led-core.c led_cdev->new_blink_brightness = brightness; led_cdev 265 drivers/leds/led-core.c led_set_brightness_nosleep(led_cdev, brightness); led_cdev 269 drivers/leds/led-core.c void led_set_brightness_nopm(struct led_classdev *led_cdev, led_cdev 273 drivers/leds/led-core.c if (!__led_set_brightness(led_cdev, value)) led_cdev 277 drivers/leds/led-core.c led_cdev->delayed_set_value = value; led_cdev 278 drivers/leds/led-core.c schedule_work(&led_cdev->set_brightness_work); led_cdev 282 drivers/leds/led-core.c void led_set_brightness_nosleep(struct led_classdev *led_cdev, led_cdev 285 drivers/leds/led-core.c led_cdev->brightness = min(value, led_cdev->max_brightness); led_cdev 287 drivers/leds/led-core.c if (led_cdev->flags & LED_SUSPENDED) led_cdev 290 drivers/leds/led-core.c led_set_brightness_nopm(led_cdev, led_cdev->brightness); led_cdev 294 drivers/leds/led-core.c int led_set_brightness_sync(struct led_classdev *led_cdev, led_cdev 297 drivers/leds/led-core.c if (led_cdev->blink_delay_on || led_cdev->blink_delay_off) led_cdev 300 drivers/leds/led-core.c led_cdev->brightness = min(value, led_cdev->max_brightness); led_cdev 302 drivers/leds/led-core.c if (led_cdev->flags & LED_SUSPENDED) led_cdev 305 drivers/leds/led-core.c return __led_set_brightness_blocking(led_cdev, led_cdev->brightness); led_cdev 309 drivers/leds/led-core.c int led_update_brightness(struct led_classdev *led_cdev) led_cdev 313 drivers/leds/led-core.c if (led_cdev->brightness_get) { led_cdev 314 drivers/leds/led-core.c ret = led_cdev->brightness_get(led_cdev); led_cdev 316 drivers/leds/led-core.c led_cdev->brightness = ret; led_cdev 325 drivers/leds/led-core.c u32 *led_get_default_pattern(struct led_classdev *led_cdev, unsigned int *size) led_cdev 327 drivers/leds/led-core.c struct fwnode_handle *fwnode = led_cdev->dev->fwnode; led_cdev 351 drivers/leds/led-core.c void led_sysfs_disable(struct led_classdev *led_cdev) led_cdev 353 drivers/leds/led-core.c lockdep_assert_held(&led_cdev->led_access); led_cdev 355 drivers/leds/led-core.c led_cdev->flags |= LED_SYSFS_DISABLE; led_cdev 360 drivers/leds/led-core.c void led_sysfs_enable(struct led_classdev *led_cdev) led_cdev 362 drivers/leds/led-core.c lockdep_assert_held(&led_cdev->led_access); led_cdev 364 drivers/leds/led-core.c led_cdev->flags &= ~LED_SYSFS_DISABLE; led_cdev 32 drivers/leds/led-triggers.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 36 drivers/leds/led-triggers.c mutex_lock(&led_cdev->led_access); led_cdev 38 drivers/leds/led-triggers.c if (led_sysfs_is_disabled(led_cdev)) { led_cdev 44 drivers/leds/led-triggers.c led_trigger_remove(led_cdev); led_cdev 51 drivers/leds/led-triggers.c down_write(&led_cdev->trigger_lock); led_cdev 52 drivers/leds/led-triggers.c led_trigger_set(led_cdev, trig); led_cdev 53 drivers/leds/led-triggers.c up_write(&led_cdev->trigger_lock); led_cdev 64 drivers/leds/led-triggers.c mutex_unlock(&led_cdev->led_access); led_cdev 72 drivers/leds/led-triggers.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 77 drivers/leds/led-triggers.c down_read(&led_cdev->trigger_lock); led_cdev 79 drivers/leds/led-triggers.c if (!led_cdev->trigger) led_cdev 85 drivers/leds/led-triggers.c if (led_cdev->trigger && !strcmp(led_cdev->trigger->name, led_cdev 93 drivers/leds/led-triggers.c up_read(&led_cdev->trigger_lock); led_cdev 102 drivers/leds/led-triggers.c int led_trigger_set(struct led_classdev *led_cdev, struct led_trigger *trig) led_cdev 110 drivers/leds/led-triggers.c if (!led_cdev->trigger && !trig) led_cdev 117 drivers/leds/led-triggers.c if (led_cdev->trigger) { led_cdev 118 drivers/leds/led-triggers.c write_lock_irqsave(&led_cdev->trigger->leddev_list_lock, flags); led_cdev 119 drivers/leds/led-triggers.c list_del(&led_cdev->trig_list); led_cdev 120 drivers/leds/led-triggers.c write_unlock_irqrestore(&led_cdev->trigger->leddev_list_lock, led_cdev 122 drivers/leds/led-triggers.c cancel_work_sync(&led_cdev->set_brightness_work); led_cdev 123 drivers/leds/led-triggers.c led_stop_software_blink(led_cdev); led_cdev 124 drivers/leds/led-triggers.c if (led_cdev->trigger->deactivate) led_cdev 125 drivers/leds/led-triggers.c led_cdev->trigger->deactivate(led_cdev); led_cdev 126 drivers/leds/led-triggers.c device_remove_groups(led_cdev->dev, led_cdev->trigger->groups); led_cdev 127 drivers/leds/led-triggers.c led_cdev->trigger = NULL; led_cdev 128 drivers/leds/led-triggers.c led_cdev->trigger_data = NULL; led_cdev 129 drivers/leds/led-triggers.c led_cdev->activated = false; led_cdev 130 drivers/leds/led-triggers.c led_set_brightness(led_cdev, LED_OFF); led_cdev 134 drivers/leds/led-triggers.c list_add_tail(&led_cdev->trig_list, &trig->led_cdevs); led_cdev 136 drivers/leds/led-triggers.c led_cdev->trigger = trig; led_cdev 139 drivers/leds/led-triggers.c ret = trig->activate(led_cdev); led_cdev 146 drivers/leds/led-triggers.c ret = device_add_groups(led_cdev->dev, trig->groups); led_cdev 148 drivers/leds/led-triggers.c dev_err(led_cdev->dev, "Failed to add trigger attributes\n"); led_cdev 156 drivers/leds/led-triggers.c if (kobject_uevent_env(&led_cdev->dev->kobj, KOBJ_CHANGE, envp)) led_cdev 157 drivers/leds/led-triggers.c dev_err(led_cdev->dev, led_cdev 167 drivers/leds/led-triggers.c trig->deactivate(led_cdev); led_cdev 170 drivers/leds/led-triggers.c write_lock_irqsave(&led_cdev->trigger->leddev_list_lock, flags); led_cdev 171 drivers/leds/led-triggers.c list_del(&led_cdev->trig_list); led_cdev 172 drivers/leds/led-triggers.c write_unlock_irqrestore(&led_cdev->trigger->leddev_list_lock, flags); led_cdev 173 drivers/leds/led-triggers.c led_cdev->trigger = NULL; led_cdev 174 drivers/leds/led-triggers.c led_cdev->trigger_data = NULL; led_cdev 175 drivers/leds/led-triggers.c led_set_brightness(led_cdev, LED_OFF); led_cdev 182 drivers/leds/led-triggers.c void led_trigger_remove(struct led_classdev *led_cdev) led_cdev 184 drivers/leds/led-triggers.c down_write(&led_cdev->trigger_lock); led_cdev 185 drivers/leds/led-triggers.c led_trigger_set(led_cdev, NULL); led_cdev 186 drivers/leds/led-triggers.c up_write(&led_cdev->trigger_lock); led_cdev 190 drivers/leds/led-triggers.c void led_trigger_set_default(struct led_classdev *led_cdev) led_cdev 194 drivers/leds/led-triggers.c if (!led_cdev->default_trigger) led_cdev 198 drivers/leds/led-triggers.c down_write(&led_cdev->trigger_lock); led_cdev 200 drivers/leds/led-triggers.c if (!strcmp(led_cdev->default_trigger, trig->name)) { led_cdev 201 drivers/leds/led-triggers.c led_cdev->flags |= LED_INIT_DEFAULT_TRIGGER; led_cdev 202 drivers/leds/led-triggers.c led_trigger_set(led_cdev, trig); led_cdev 206 drivers/leds/led-triggers.c up_write(&led_cdev->trigger_lock); led_cdev 228 drivers/leds/led-triggers.c struct led_classdev *led_cdev; led_cdev 248 drivers/leds/led-triggers.c list_for_each_entry(led_cdev, &leds_list, node) { led_cdev 249 drivers/leds/led-triggers.c down_write(&led_cdev->trigger_lock); led_cdev 250 drivers/leds/led-triggers.c if (!led_cdev->trigger && led_cdev->default_trigger && led_cdev 251 drivers/leds/led-triggers.c !strcmp(led_cdev->default_trigger, trig->name)) { led_cdev 252 drivers/leds/led-triggers.c led_cdev->flags |= LED_INIT_DEFAULT_TRIGGER; led_cdev 253 drivers/leds/led-triggers.c led_trigger_set(led_cdev, trig); led_cdev 255 drivers/leds/led-triggers.c up_write(&led_cdev->trigger_lock); led_cdev 265 drivers/leds/led-triggers.c struct led_classdev *led_cdev; led_cdev 277 drivers/leds/led-triggers.c list_for_each_entry(led_cdev, &leds_list, node) { led_cdev 278 drivers/leds/led-triggers.c down_write(&led_cdev->trigger_lock); led_cdev 279 drivers/leds/led-triggers.c if (led_cdev->trigger == trig) led_cdev 280 drivers/leds/led-triggers.c led_trigger_set(led_cdev, NULL); led_cdev 281 drivers/leds/led-triggers.c up_write(&led_cdev->trigger_lock); led_cdev 320 drivers/leds/led-triggers.c struct led_classdev *led_cdev; led_cdev 326 drivers/leds/led-triggers.c list_for_each_entry(led_cdev, &trig->led_cdevs, trig_list) led_cdev 327 drivers/leds/led-triggers.c led_set_brightness(led_cdev, brightness); led_cdev 338 drivers/leds/led-triggers.c struct led_classdev *led_cdev; led_cdev 344 drivers/leds/led-triggers.c list_for_each_entry(led_cdev, &trig->led_cdevs, trig_list) { led_cdev 346 drivers/leds/led-triggers.c led_blink_set_oneshot(led_cdev, delay_on, delay_off, led_cdev 349 drivers/leds/led-triggers.c led_blink_set(led_cdev, delay_on, delay_off); led_cdev 91 drivers/leds/leds-aat1290.c struct led_classdev *led_cdev) led_cdev 93 drivers/leds/leds-aat1290.c return container_of(led_cdev, struct led_classdev_flash, led_cdev); led_cdev 140 drivers/leds/leds-aat1290.c static int aat1290_led_brightness_set(struct led_classdev *led_cdev, led_cdev 143 drivers/leds/leds-aat1290.c struct led_classdev_flash *fled_cdev = led_cdev_to_fled_cdev(led_cdev); led_cdev 176 drivers/leds/leds-aat1290.c struct led_classdev *led_cdev = &fled_cdev->led_cdev; led_cdev 195 drivers/leds/leds-aat1290.c led_cdev->brightness = 0; led_cdev 402 drivers/leds/leds-aat1290.c struct led_classdev *led_cdev = &fled_cdev->led_cdev; led_cdev 409 drivers/leds/leds-aat1290.c led_cdev->brightness = 0; led_cdev 425 drivers/leds/leds-aat1290.c struct led_classdev *led_cdev = &led->fled_cdev.led_cdev; led_cdev 428 drivers/leds/leds-aat1290.c strlcpy(v4l2_sd_cfg->dev_name, led_cdev->dev->kobj.name, led_cdev 464 drivers/leds/leds-aat1290.c struct led_classdev *led_cdev; led_cdev 480 drivers/leds/leds-aat1290.c led_cdev = &fled_cdev->led_cdev; led_cdev 489 drivers/leds/leds-aat1290.c led_cdev->brightness_set_blocking = aat1290_led_brightness_set; led_cdev 490 drivers/leds/leds-aat1290.c led_cdev->max_brightness = led_cfg.max_brightness; led_cdev 491 drivers/leds/leds-aat1290.c led_cdev->flags |= LED_DEV_CAP_FLASH; led_cdev 29 drivers/leds/leds-adp5520.c static int adp5520_led_set(struct led_classdev *led_cdev, led_cdev 34 drivers/leds/leds-adp5520.c led = container_of(led_cdev, struct adp5520_led, cdev); led_cdev 120 drivers/leds/leds-apu.c struct led_classdev *led_cdev = &pled->cdev; led_cdev 122 drivers/leds/leds-apu.c led_cdev->name = apu1_led_profile[i].name; led_cdev 123 drivers/leds/leds-apu.c led_cdev->brightness = apu1_led_profile[i].brightness; led_cdev 124 drivers/leds/leds-apu.c led_cdev->max_brightness = 1; led_cdev 125 drivers/leds/leds-apu.c led_cdev->flags = LED_CORE_SUSPENDRESUME; led_cdev 126 drivers/leds/leds-apu.c led_cdev->brightness_set = apu1_led_brightness_set; led_cdev 135 drivers/leds/leds-apu.c err = led_classdev_register(dev, led_cdev); led_cdev 139 drivers/leds/leds-apu.c apu1_led_brightness_set(led_cdev, apu1_led_profile[i].brightness); led_cdev 571 drivers/leds/leds-as3645a.c struct led_classdev *fled_cdev = &flash->fled.led_cdev; led_cdev 634 drivers/leds/leds-as3645a.c struct led_classdev *led = &fled->led_cdev; led_cdev 122 drivers/leds/leds-bcm6328.c static void bcm6328_led_set(struct led_classdev *led_cdev, led_cdev 126 drivers/leds/leds-bcm6328.c container_of(led_cdev, struct bcm6328_led, cdev); led_cdev 151 drivers/leds/leds-bcm6328.c static int bcm6328_blink_set(struct led_classdev *led_cdev, led_cdev 155 drivers/leds/leds-bcm6328.c container_of(led_cdev, struct bcm6328_led, cdev); led_cdev 166 drivers/leds/leds-bcm6328.c dev_dbg(led_cdev->dev, led_cdev 172 drivers/leds/leds-bcm6328.c dev_dbg(led_cdev->dev, led_cdev 195 drivers/leds/leds-bcm6328.c dev_dbg(led_cdev->dev, led_cdev 75 drivers/leds/leds-bcm6358.c static void bcm6358_led_set(struct led_classdev *led_cdev, led_cdev 79 drivers/leds/leds-bcm6358.c container_of(led_cdev, struct bcm6358_led, cdev); led_cdev 517 drivers/leds/leds-bd2802.c static int bd2802_set_##name##_brightness(struct led_classdev *led_cdev,\ led_cdev 521 drivers/leds/leds-bd2802.c container_of(led_cdev, struct bd2802_led, cdev_##name); \ led_cdev 533 drivers/leds/leds-bd2802.c static int bd2802_set_##name##_blink(struct led_classdev *led_cdev, \ led_cdev 537 drivers/leds/leds-bd2802.c container_of(led_cdev, struct bd2802_led, cdev_##name); \ led_cdev 27 drivers/leds/leds-blinkm.c struct led_classdev led_cdev; led_cdev 31 drivers/leds/leds-blinkm.c #define cdev_to_blmled(c) container_of(c, struct blinkm_led, led_cdev) led_cdev 422 drivers/leds/leds-blinkm.c static int blinkm_led_common_set(struct led_classdev *led_cdev, led_cdev 426 drivers/leds/leds-blinkm.c struct blinkm_led *led = cdev_to_blmled(led_cdev); led_cdev 463 drivers/leds/leds-blinkm.c static int blinkm_led_red_set(struct led_classdev *led_cdev, led_cdev 466 drivers/leds/leds-blinkm.c return blinkm_led_common_set(led_cdev, value, RED); led_cdev 469 drivers/leds/leds-blinkm.c static int blinkm_led_green_set(struct led_classdev *led_cdev, led_cdev 472 drivers/leds/leds-blinkm.c return blinkm_led_common_set(led_cdev, value, GREEN); led_cdev 475 drivers/leds/leds-blinkm.c static int blinkm_led_blue_set(struct led_classdev *led_cdev, led_cdev 478 drivers/leds/leds-blinkm.c return blinkm_led_common_set(led_cdev, value, BLUE); led_cdev 607 drivers/leds/leds-blinkm.c led[i]->led_cdev.max_brightness = 255; led_cdev 608 drivers/leds/leds-blinkm.c led[i]->led_cdev.flags = LED_CORE_SUSPENDRESUME; led_cdev 615 drivers/leds/leds-blinkm.c led[i]->led_cdev.name = blinkm_led_name; led_cdev 616 drivers/leds/leds-blinkm.c led[i]->led_cdev.brightness_set_blocking = led_cdev 619 drivers/leds/leds-blinkm.c &led[i]->led_cdev); led_cdev 623 drivers/leds/leds-blinkm.c led[i]->led_cdev.name); led_cdev 632 drivers/leds/leds-blinkm.c led[i]->led_cdev.name = blinkm_led_name; led_cdev 633 drivers/leds/leds-blinkm.c led[i]->led_cdev.brightness_set_blocking = led_cdev 636 drivers/leds/leds-blinkm.c &led[i]->led_cdev); led_cdev 640 drivers/leds/leds-blinkm.c led[i]->led_cdev.name); led_cdev 649 drivers/leds/leds-blinkm.c led[i]->led_cdev.name = blinkm_led_name; led_cdev 650 drivers/leds/leds-blinkm.c led[i]->led_cdev.brightness_set_blocking = led_cdev 653 drivers/leds/leds-blinkm.c &led[i]->led_cdev); led_cdev 657 drivers/leds/leds-blinkm.c led[i]->led_cdev.name); led_cdev 670 drivers/leds/leds-blinkm.c led_classdev_unregister(&led[GREEN]->led_cdev); led_cdev 673 drivers/leds/leds-blinkm.c led_classdev_unregister(&led[RED]->led_cdev); led_cdev 689 drivers/leds/leds-blinkm.c led_classdev_unregister(&data->blinkm_leds[i].led_cdev); led_cdev 95 drivers/leds/leds-clevo-mail.c static void clevo_mail_led_set(struct led_classdev *led_cdev, led_cdev 111 drivers/leds/leds-clevo-mail.c static int clevo_mail_led_blink(struct led_classdev *led_cdev, led_cdev 20 drivers/leds/leds-cobalt-qube.c static void qube_front_led_set(struct led_classdev *led_cdev, led_cdev 23 drivers/leds/leds-cobalt-raq.c static void raq_web_led_set(struct led_classdev *led_cdev, led_cdev 44 drivers/leds/leds-cobalt-raq.c static void raq_power_off_led_set(struct led_classdev *led_cdev, led_cdev 40 drivers/leds/leds-da903x.c static int da903x_led_set(struct led_classdev *led_cdev, led_cdev 44 drivers/leds/leds-da903x.c container_of(led_cdev, struct da903x_led, cdev); led_cdev 54 drivers/leds/leds-da9052.c static int da9052_led_set(struct led_classdev *led_cdev, led_cdev 58 drivers/leds/leds-da9052.c container_of(led_cdev, struct da9052_led, cdev); led_cdev 32 drivers/leds/leds-fsg.c static void fsg_led_wlan_set(struct led_classdev *led_cdev, led_cdev 44 drivers/leds/leds-fsg.c static void fsg_led_wan_set(struct led_classdev *led_cdev, led_cdev 56 drivers/leds/leds-fsg.c static void fsg_led_sata_set(struct led_classdev *led_cdev, led_cdev 68 drivers/leds/leds-fsg.c static void fsg_led_usb_set(struct led_classdev *led_cdev, led_cdev 80 drivers/leds/leds-fsg.c static void fsg_led_sync_set(struct led_classdev *led_cdev, led_cdev 92 drivers/leds/leds-fsg.c static void fsg_led_ring_set(struct led_classdev *led_cdev, led_cdev 29 drivers/leds/leds-gpio.c cdev_to_gpio_led_data(struct led_classdev *led_cdev) led_cdev 31 drivers/leds/leds-gpio.c return container_of(led_cdev, struct gpio_led_data, cdev); led_cdev 34 drivers/leds/leds-gpio.c static void gpio_led_set(struct led_classdev *led_cdev, led_cdev 37 drivers/leds/leds-gpio.c struct gpio_led_data *led_dat = cdev_to_gpio_led_data(led_cdev); led_cdev 57 drivers/leds/leds-gpio.c static int gpio_led_set_blocking(struct led_classdev *led_cdev, led_cdev 60 drivers/leds/leds-gpio.c gpio_led_set(led_cdev, value); led_cdev 64 drivers/leds/leds-gpio.c static int gpio_blink_set(struct led_classdev *led_cdev, led_cdev 67 drivers/leds/leds-gpio.c struct gpio_led_data *led_dat = cdev_to_gpio_led_data(led_cdev); led_cdev 17 drivers/leds/leds-hp6xx.c static void hp6xxled_green_set(struct led_classdev *led_cdev, led_cdev 29 drivers/leds/leds-hp6xx.c static void hp6xxled_red_set(struct led_classdev *led_cdev, led_cdev 21 drivers/leds/leds-ipaq-micro.c static int micro_leds_brightness_set(struct led_classdev *led_cdev, led_cdev 24 drivers/leds/leds-ipaq-micro.c struct ipaq_micro *micro = dev_get_drvdata(led_cdev->dev->parent->parent); led_cdev 57 drivers/leds/leds-ipaq-micro.c static int micro_leds_blink_set(struct led_classdev *led_cdev, led_cdev 61 drivers/leds/leds-ipaq-micro.c struct ipaq_micro *micro = dev_get_drvdata(led_cdev->dev->parent->parent); led_cdev 222 drivers/leds/leds-is31fl32xx.c static int is31fl32xx_brightness_set(struct led_classdev *led_cdev, led_cdev 226 drivers/leds/leds-is31fl32xx.c container_of(led_cdev, struct is31fl32xx_led_data, cdev); led_cdev 231 drivers/leds/leds-is31fl32xx.c dev_dbg(led_cdev->dev, "%s: %d\n", __func__, brightness); led_cdev 156 drivers/leds/leds-ktd2692.c static int ktd2692_led_brightness_set(struct led_classdev *led_cdev, led_cdev 159 drivers/leds/leds-ktd2692.c struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); led_cdev 202 drivers/leds/leds-ktd2692.c fled_cdev->led_cdev.brightness = LED_OFF; led_cdev 299 drivers/leds/leds-ktd2692.c led->fled_cdev.led_cdev.name = led_cdev 336 drivers/leds/leds-ktd2692.c struct led_classdev *led_cdev; led_cdev 346 drivers/leds/leds-ktd2692.c led_cdev = &fled_cdev->led_cdev; led_cdev 357 drivers/leds/leds-ktd2692.c led_cdev->max_brightness = led_cfg.max_brightness; led_cdev 358 drivers/leds/leds-ktd2692.c led_cdev->brightness_set_blocking = ktd2692_led_brightness_set; led_cdev 359 drivers/leds/leds-ktd2692.c led_cdev->flags |= LED_CORE_SUSPENDRESUME | LED_DEV_CAP_FLASH; led_cdev 367 drivers/leds/leds-ktd2692.c dev_err(&pdev->dev, "can't register LED %s\n", led_cdev->name); led_cdev 304 drivers/leds/leds-lm3530.c static void lm3530_brightness_set(struct led_classdev *led_cdev, led_cdev 309 drivers/leds/leds-lm3530.c container_of(led_cdev, struct lm3530_data, led_dev); led_cdev 312 drivers/leds/leds-lm3530.c u8 max_brightness = led_cdev->max_brightness; led_cdev 352 drivers/leds/leds-lm3530.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 356 drivers/leds/leds-lm3530.c drvdata = container_of(led_cdev, struct lm3530_data, led_dev); led_cdev 371 drivers/leds/leds-lm3530.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 377 drivers/leds/leds-lm3530.c drvdata = container_of(led_cdev, struct lm3530_data, led_dev); led_cdev 379 drivers/leds/leds-lm3530.c max_brightness = led_cdev->max_brightness; led_cdev 347 drivers/leds/leds-lm3532.c static int lm3532_brightness_set(struct led_classdev *led_cdev, led_cdev 351 drivers/leds/leds-lm3532.c container_of(led_cdev, struct lm3532_led, led_dev); led_cdev 314 drivers/leds/leds-lm3533.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 315 drivers/leds/leds-lm3533.c struct lm3533_led *led = to_lm3533_led(led_cdev); led_cdev 336 drivers/leds/leds-lm3533.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 337 drivers/leds/leds-lm3533.c struct lm3533_led *led = to_lm3533_led(led_cdev); led_cdev 368 drivers/leds/leds-lm3533.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 369 drivers/leds/leds-lm3533.c struct lm3533_led *led = to_lm3533_led(led_cdev); led_cdev 404 drivers/leds/leds-lm3533.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 405 drivers/leds/leds-lm3533.c struct lm3533_led *led = to_lm3533_led(led_cdev); led_cdev 425 drivers/leds/leds-lm3533.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 426 drivers/leds/leds-lm3533.c struct lm3533_led *led = to_lm3533_led(led_cdev); led_cdev 454 drivers/leds/leds-lm3533.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 455 drivers/leds/leds-lm3533.c struct lm3533_led *led = to_lm3533_led(led_cdev); led_cdev 475 drivers/leds/leds-lm3533.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 476 drivers/leds/leds-lm3533.c struct lm3533_led *led = to_lm3533_led(led_cdev); led_cdev 504 drivers/leds/leds-lm3533.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 505 drivers/leds/leds-lm3533.c struct lm3533_led *led = to_lm3533_led(led_cdev); led_cdev 528 drivers/leds/leds-lm3533.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 529 drivers/leds/leds-lm3533.c struct lm3533_led *led = to_lm3533_led(led_cdev); led_cdev 558 drivers/leds/leds-lm3533.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 559 drivers/leds/leds-lm3533.c struct lm3533_led *led = to_lm3533_led(led_cdev); led_cdev 574 drivers/leds/leds-lm3533.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 575 drivers/leds/leds-lm3533.c struct lm3533_led *led = to_lm3533_led(led_cdev); led_cdev 612 drivers/leds/leds-lm3533.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 613 drivers/leds/leds-lm3533.c struct lm3533_led *led = to_lm3533_led(led_cdev); led_cdev 357 drivers/leds/leds-lm355x.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 359 drivers/leds/leds-lm355x.c container_of(led_cdev, struct lm355x_chip_data, cdev_indicator); led_cdev 325 drivers/leds/leds-lm3601x.c struct led_classdev *led_cdev; led_cdev 343 drivers/leds/leds-lm3601x.c led_cdev = &led->fled_cdev.led_cdev; led_cdev 344 drivers/leds/leds-lm3601x.c led_cdev->brightness_set_blocking = lm3601x_brightness_set; led_cdev 345 drivers/leds/leds-lm3601x.c led_cdev->max_brightness = DIV_ROUND_UP(led->torch_current_max, led_cdev 347 drivers/leds/leds-lm3601x.c led_cdev->flags |= LED_DEV_CAP_FLASH; led_cdev 43 drivers/leds/leds-lm36274.c static int lm36274_brightness_set(struct led_classdev *led_cdev, led_cdev 46 drivers/leds/leds-lm36274.c struct lm36274 *led = container_of(led_cdev, struct lm36274, led_dev); led_cdev 174 drivers/leds/leds-lm3642.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 176 drivers/leds/leds-lm3642.c container_of(led_cdev, struct lm3642_chip_data, cdev_indicator); led_cdev 225 drivers/leds/leds-lm3642.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 227 drivers/leds/leds-lm3642.c container_of(led_cdev, struct lm3642_chip_data, cdev_indicator); led_cdev 165 drivers/leds/leds-lm3692x.c static int lm3692x_brightness_set(struct led_classdev *led_cdev, led_cdev 169 drivers/leds/leds-lm3692x.c container_of(led_cdev, struct lm3692x_led, led_dev); led_cdev 112 drivers/leds/leds-lm3697.c static int lm3697_brightness_set(struct led_classdev *led_cdev, led_cdev 115 drivers/leds/leds-lm3697.c struct lm3697_led *led = container_of(led_cdev, struct lm3697_led, led_cdev 17 drivers/leds/leds-locomo.c static void locomoled_brightness_set(struct led_classdev *led_cdev, led_cdev 20 drivers/leds/leds-locomo.c struct locomo_dev *locomo_dev = LOCOMO_DEV(led_cdev->dev->parent); led_cdev 31 drivers/leds/leds-locomo.c static void locomoled_brightness_set0(struct led_classdev *led_cdev, led_cdev 34 drivers/leds/leds-locomo.c locomoled_brightness_set(led_cdev, value, LOCOMO_LPT0); led_cdev 37 drivers/leds/leds-locomo.c static void locomoled_brightness_set1(struct led_classdev *led_cdev, led_cdev 40 drivers/leds/leds-locomo.c locomoled_brightness_set(led_cdev, value, LOCOMO_LPT1); led_cdev 223 drivers/leds/leds-lp3944.c static int lp3944_led_set_blink(struct led_classdev *led_cdev, led_cdev 227 drivers/leds/leds-lp3944.c struct lp3944_led_data *led = ldev_to_led(led_cdev); led_cdev 279 drivers/leds/leds-lp3944.c static int lp3944_led_set_brightness(struct led_classdev *led_cdev, led_cdev 282 drivers/leds/leds-lp3944.c struct lp3944_led_data *led = ldev_to_led(led_cdev); led_cdev 285 drivers/leds/leds-lp3944.c __func__, led_cdev->name, brightness); led_cdev 88 drivers/leds/leds-lp8788.c static int lp8788_brightness_set(struct led_classdev *led_cdev, led_cdev 92 drivers/leds/leds-lp8788.c container_of(led_cdev, struct lp8788_led, led_dev); led_cdev 205 drivers/leds/leds-lp8860.c static int lp8860_brightness_set(struct led_classdev *led_cdev, led_cdev 209 drivers/leds/leds-lp8860.c container_of(led_cdev, struct lp8860_led, led_dev); led_cdev 21 drivers/leds/leds-lt3593.c static int lt3593_led_set(struct led_classdev *led_cdev, led_cdev 25 drivers/leds/leds-lt3593.c container_of(led_cdev, struct lt3593_led_data, cdev); led_cdev 461 drivers/leds/leds-max77693.c static int max77693_led_brightness_set(struct led_classdev *led_cdev, led_cdev 464 drivers/leds/leds-max77693.c struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); led_cdev 853 drivers/leds/leds-max77693.c "%s %d-%04x", sub_led->fled_cdev.led_cdev.name, led_cdev 858 drivers/leds/leds-max77693.c s->max = sub_led->fled_cdev.led_cdev.max_brightness * TORCH_IOUT_STEP; led_cdev 889 drivers/leds/leds-max77693.c struct led_classdev *led_cdev; led_cdev 894 drivers/leds/leds-max77693.c led_cdev = &fled_cdev->led_cdev; led_cdev 896 drivers/leds/leds-max77693.c led_cdev->name = led_cfg->label[fled_id]; led_cdev 898 drivers/leds/leds-max77693.c led_cdev->brightness_set_blocking = max77693_led_brightness_set; led_cdev 899 drivers/leds/leds-max77693.c led_cdev->max_brightness = (led->iout_joint ? led_cdev 904 drivers/leds/leds-max77693.c led_cdev->flags |= LED_DEV_CAP_FLASH; led_cdev 148 drivers/leds/leds-max8997.c static void max8997_led_brightness_set(struct led_classdev *led_cdev, led_cdev 152 drivers/leds/leds-max8997.c container_of(led_cdev, struct max8997_led, cdev); led_cdev 166 drivers/leds/leds-max8997.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 168 drivers/leds/leds-max8997.c container_of(led_cdev, struct max8997_led, cdev); led_cdev 200 drivers/leds/leds-max8997.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 202 drivers/leds/leds-max8997.c container_of(led_cdev, struct max8997_led, cdev); led_cdev 52 drivers/leds/leds-mc13783.c static int mc13xxx_led_set(struct led_classdev *led_cdev, led_cdev 56 drivers/leds/leds-mc13783.c container_of(led_cdev, struct mc13xxx_led, cdev); led_cdev 53 drivers/leds/leds-menf21bmc.c menf21bmc_led_set(struct led_classdev *led_cdev, enum led_brightness value) led_cdev 56 drivers/leds/leds-menf21bmc.c struct menf21bmc_led *led = container_of(led_cdev, led_cdev 38 drivers/leds/leds-mlxreg.c struct led_classdev led_cdev; led_cdev 44 drivers/leds/leds-mlxreg.c #define cdev_to_priv(c) container_of(c, struct mlxreg_led_data, led_cdev) led_cdev 118 drivers/leds/leds-mlxreg.c dev_warn(led_data->led_cdev.dev, "Failed to get current brightness, error: %d\n", led_cdev 189 drivers/leds/leds-mlxreg.c struct led_classdev *led_cdev; led_cdev 218 drivers/leds/leds-mlxreg.c led_cdev = &led_data->led_cdev; led_cdev 233 drivers/leds/leds-mlxreg.c led_cdev->name = led_data->led_cdev_name; led_cdev 234 drivers/leds/leds-mlxreg.c led_cdev->brightness = brightness; led_cdev 235 drivers/leds/leds-mlxreg.c led_cdev->max_brightness = LED_ON; led_cdev 236 drivers/leds/leds-mlxreg.c led_cdev->brightness_set_blocking = led_cdev 238 drivers/leds/leds-mlxreg.c led_cdev->brightness_get = mlxreg_led_brightness_get; led_cdev 239 drivers/leds/leds-mlxreg.c led_cdev->blink_set = mlxreg_led_blink_set; led_cdev 240 drivers/leds/leds-mlxreg.c led_cdev->flags = LED_CORE_SUSPENDRESUME; led_cdev 242 drivers/leds/leds-mlxreg.c err = devm_led_classdev_register(&priv->pdev->dev, led_cdev); led_cdev 246 drivers/leds/leds-mlxreg.c if (led_cdev->brightness) led_cdev 247 drivers/leds/leds-mlxreg.c mlxreg_led_brightness_set(led_cdev, led_cdev 248 drivers/leds/leds-mlxreg.c led_cdev->brightness); led_cdev 249 drivers/leds/leds-mlxreg.c dev_info(led_cdev->dev, "label: %s, mask: 0x%02x, offset:0x%02x\n", led_cdev 25 drivers/leds/leds-net48xx.c static void net48xx_error_led_set(struct led_classdev *led_cdev, led_cdev 172 drivers/leds/leds-netxbig.c static int netxbig_led_blink_set(struct led_classdev *led_cdev, led_cdev 177 drivers/leds/leds-netxbig.c container_of(led_cdev, struct netxbig_led_data, cdev); led_cdev 202 drivers/leds/leds-netxbig.c static void netxbig_led_set(struct led_classdev *led_cdev, led_cdev 206 drivers/leds/leds-netxbig.c container_of(led_cdev, struct netxbig_led_data, cdev); led_cdev 245 drivers/leds/leds-netxbig.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 247 drivers/leds/leds-netxbig.c container_of(led_cdev, struct netxbig_led_data, cdev); led_cdev 295 drivers/leds/leds-netxbig.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 297 drivers/leds/leds-netxbig.c container_of(led_cdev, struct netxbig_led_data, cdev); led_cdev 97 drivers/leds/leds-ns2.c static void ns2_led_set(struct led_classdev *led_cdev, led_cdev 101 drivers/leds/leds-ns2.c container_of(led_cdev, struct ns2_led_data, cdev); led_cdev 114 drivers/leds/leds-ns2.c static int ns2_led_set_blocking(struct led_classdev *led_cdev, led_cdev 117 drivers/leds/leds-ns2.c ns2_led_set(led_cdev, value); led_cdev 125 drivers/leds/leds-ns2.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 127 drivers/leds/leds-ns2.c container_of(led_cdev, struct ns2_led_data, cdev); led_cdev 142 drivers/leds/leds-ns2.c if (!led_get_brightness(led_cdev)) led_cdev 157 drivers/leds/leds-ns2.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 159 drivers/leds/leds-ns2.c container_of(led_cdev, struct ns2_led_data, cdev); led_cdev 92 drivers/leds/leds-ot200.c static void ot200_led_brightness_set(struct led_classdev *led_cdev, led_cdev 95 drivers/leds/leds-ot200.c struct ot200_led *led = container_of(led_cdev, struct ot200_led, cdev); led_cdev 172 drivers/leds/leds-pca9532.c static int pca9532_set_brightness(struct led_classdev *led_cdev, led_cdev 176 drivers/leds/leds-pca9532.c struct pca9532_led *led = ldev_to_led(led_cdev); led_cdev 194 drivers/leds/leds-pca9532.c static int pca9532_set_blink(struct led_classdev *led_cdev, led_cdev 197 drivers/leds/leds-pca9532.c struct pca9532_led *led = ldev_to_led(led_cdev); led_cdev 212 drivers/leds/leds-pca9532.c err = pca9532_calcpwm(client, 0, psc, led_cdev->brightness); led_cdev 121 drivers/leds/leds-pca955x.c struct led_classdev led_cdev; led_cdev 232 drivers/leds/leds-pca955x.c static int pca955x_led_set(struct led_classdev *led_cdev, led_cdev 242 drivers/leds/leds-pca955x.c pca955x_led = container_of(led_cdev, struct pca955x_led, led_cdev); led_cdev 323 drivers/leds/leds-pca955x.c return pca955x_led_set(&led->led_cdev, PCA955X_GPIO_HIGH); led_cdev 325 drivers/leds/leds-pca955x.c return pca955x_led_set(&led->led_cdev, PCA955X_GPIO_LOW); led_cdev 353 drivers/leds/leds-pca955x.c return pca955x_led_set(&led->led_cdev, PCA955X_GPIO_INPUT); led_cdev 503 drivers/leds/leds-pca955x.c pca955x_led->led_cdev.default_trigger = led_cdev 506 drivers/leds/leds-pca955x.c pca955x_led->led_cdev.name = pca955x_led->name; led_cdev 507 drivers/leds/leds-pca955x.c pca955x_led->led_cdev.brightness_set_blocking = led_cdev 511 drivers/leds/leds-pca955x.c &pca955x_led->led_cdev); led_cdev 516 drivers/leds/leds-pca955x.c err = pca955x_led_set(&pca955x_led->led_cdev, LED_OFF); led_cdev 111 drivers/leds/leds-pca963x.c struct led_classdev led_cdev; led_cdev 187 drivers/leds/leds-pca963x.c if (pca963x->led_cdev.brightness) led_cdev 199 drivers/leds/leds-pca963x.c static int pca963x_led_set(struct led_classdev *led_cdev, led_cdev 205 drivers/leds/leds-pca963x.c pca963x = container_of(led_cdev, struct pca963x_led, led_cdev); led_cdev 227 drivers/leds/leds-pca963x.c static int pca963x_blink_set(struct led_classdev *led_cdev, led_cdev 234 drivers/leds/leds-pca963x.c pca963x = container_of(led_cdev, struct pca963x_led, led_cdev); led_cdev 415 drivers/leds/leds-pca963x.c pca963x[i].led_cdev.default_trigger = led_cdev 424 drivers/leds/leds-pca963x.c pca963x[i].led_cdev.name = pca963x[i].name; led_cdev 425 drivers/leds/leds-pca963x.c pca963x[i].led_cdev.brightness_set_blocking = pca963x_led_set; led_cdev 428 drivers/leds/leds-pca963x.c pca963x[i].led_cdev.blink_set = pca963x_blink_set; led_cdev 430 drivers/leds/leds-pca963x.c err = led_classdev_register(&client->dev, &pca963x[i].led_cdev); led_cdev 457 drivers/leds/leds-pca963x.c led_classdev_unregister(&pca963x[i].led_cdev); led_cdev 468 drivers/leds/leds-pca963x.c led_classdev_unregister(&pca963x->leds[i].led_cdev); led_cdev 173 drivers/leds/leds-powernv.c static int powernv_brightness_set(struct led_classdev *led_cdev, led_cdev 177 drivers/leds/leds-powernv.c container_of(led_cdev, struct powernv_led_data, cdev); led_cdev 193 drivers/leds/leds-powernv.c static enum led_brightness powernv_brightness_get(struct led_classdev *led_cdev) led_cdev 196 drivers/leds/leds-powernv.c container_of(led_cdev, struct powernv_led_data, cdev); led_cdev 47 drivers/leds/leds-pwm.c static int led_pwm_set(struct led_classdev *led_cdev, led_cdev 51 drivers/leds/leds-pwm.c container_of(led_cdev, struct led_pwm_data, cdev); led_cdev 18 drivers/leds/leds-regulator.c #define to_regulator_led(led_cdev) \ led_cdev 19 drivers/leds/leds-regulator.c container_of(led_cdev, struct regulator_led, cdev) led_cdev 90 drivers/leds/leds-regulator.c static int regulator_led_brightness_set(struct led_classdev *led_cdev, led_cdev 93 drivers/leds/leds-regulator.c struct regulator_led *led = to_regulator_led(led_cdev); led_cdev 29 drivers/leds/leds-s3c24xx.c static inline struct s3c24xx_gpio_led *to_gpio(struct led_classdev *led_cdev) led_cdev 31 drivers/leds/leds-s3c24xx.c return container_of(led_cdev, struct s3c24xx_gpio_led, cdev); led_cdev 34 drivers/leds/leds-s3c24xx.c static void s3c24xx_led_set(struct led_classdev *led_cdev, led_cdev 37 drivers/leds/leds-s3c24xx.c struct s3c24xx_gpio_led *led = to_gpio(led_cdev); led_cdev 128 drivers/leds/leds-ss4200.c struct led_classdev led_cdev; led_cdev 150 drivers/leds/leds-ss4200.c led_classdev_to_nasgpio_led(struct led_classdev *led_cdev) led_cdev 152 drivers/leds/leds-ss4200.c return container_of(led_cdev, struct nasgpio_led, led_cdev); led_cdev 178 drivers/leds/leds-ss4200.c static void __nasgpio_led_set_attr(struct led_classdev *led_cdev, led_cdev 181 drivers/leds/leds-ss4200.c struct nasgpio_led *led = led_classdev_to_nasgpio_led(led_cdev); led_cdev 193 drivers/leds/leds-ss4200.c static void nasgpio_led_set_attr(struct led_classdev *led_cdev, led_cdev 197 drivers/leds/leds-ss4200.c __nasgpio_led_set_attr(led_cdev, port, value); led_cdev 201 drivers/leds/leds-ss4200.c static u32 nasgpio_led_get_attr(struct led_classdev *led_cdev, u32 port) led_cdev 203 drivers/leds/leds-ss4200.c struct nasgpio_led *led = led_classdev_to_nasgpio_led(led_cdev); led_cdev 219 drivers/leds/leds-ss4200.c static void nasgpio_led_set_brightness(struct led_classdev *led_cdev, led_cdev 236 drivers/leds/leds-ss4200.c __nasgpio_led_set_attr(led_cdev, GPO_BLINK, 0); led_cdev 237 drivers/leds/leds-ss4200.c __nasgpio_led_set_attr(led_cdev, GP_LVL, setting); led_cdev 241 drivers/leds/leds-ss4200.c static int nasgpio_led_set_blink(struct led_classdev *led_cdev, led_cdev 255 drivers/leds/leds-ss4200.c nasgpio_led_set_attr(led_cdev, GPO_BLINK, setting); led_cdev 423 drivers/leds/leds-ss4200.c struct led_classdev *led = &nas_led->led_cdev; led_cdev 440 drivers/leds/leds-ss4200.c nasgpio_led_set_brightness(&blue->led_cdev, LED_OFF); led_cdev 441 drivers/leds/leds-ss4200.c nasgpio_led_set_brightness(&amber->led_cdev, LED_FULL); led_cdev 25 drivers/leds/leds-sunfire.c struct led_classdev led_cdev; led_cdev 28 drivers/leds/leds-sunfire.c #define to_sunfire_led(d) container_of(d, struct sunfire_led, led_cdev) led_cdev 30 drivers/leds/leds-sunfire.c static void __clockboard_set(struct led_classdev *led_cdev, led_cdev 33 drivers/leds/leds-sunfire.c struct sunfire_led *p = to_sunfire_led(led_cdev); led_cdev 54 drivers/leds/leds-sunfire.c static void clockboard_left_set(struct led_classdev *led_cdev, led_cdev 57 drivers/leds/leds-sunfire.c __clockboard_set(led_cdev, led_val, CLOCK_CTRL_LLED); led_cdev 60 drivers/leds/leds-sunfire.c static void clockboard_middle_set(struct led_classdev *led_cdev, led_cdev 63 drivers/leds/leds-sunfire.c __clockboard_set(led_cdev, led_val, CLOCK_CTRL_MLED); led_cdev 66 drivers/leds/leds-sunfire.c static void clockboard_right_set(struct led_classdev *led_cdev, led_cdev 69 drivers/leds/leds-sunfire.c __clockboard_set(led_cdev, led_val, CLOCK_CTRL_RLED); led_cdev 72 drivers/leds/leds-sunfire.c static void __fhc_set(struct led_classdev *led_cdev, led_cdev 75 drivers/leds/leds-sunfire.c struct sunfire_led *p = to_sunfire_led(led_cdev); led_cdev 96 drivers/leds/leds-sunfire.c static void fhc_left_set(struct led_classdev *led_cdev, led_cdev 99 drivers/leds/leds-sunfire.c __fhc_set(led_cdev, led_val, FHC_CONTROL_LLED); led_cdev 102 drivers/leds/leds-sunfire.c static void fhc_middle_set(struct led_classdev *led_cdev, led_cdev 105 drivers/leds/leds-sunfire.c __fhc_set(led_cdev, led_val, FHC_CONTROL_MLED); led_cdev 108 drivers/leds/leds-sunfire.c static void fhc_right_set(struct led_classdev *led_cdev, led_cdev 111 drivers/leds/leds-sunfire.c __fhc_set(led_cdev, led_val, FHC_CONTROL_RLED); led_cdev 143 drivers/leds/leds-sunfire.c struct led_classdev *lp = &p->leds[i].led_cdev; led_cdev 156 drivers/leds/leds-sunfire.c led_classdev_unregister(&p->leds[i].led_cdev); led_cdev 172 drivers/leds/leds-sunfire.c led_classdev_unregister(&p->leds[i].led_cdev); led_cdev 35 drivers/leds/leds-syscon.c static void syscon_led_set(struct led_classdev *led_cdev, led_cdev 39 drivers/leds/leds-syscon.c container_of(led_cdev, struct syscon_led, cdev); led_cdev 183 drivers/leds/leds-tca6507.c struct led_classdev led_cdev; led_cdev 394 drivers/leds/leds-tca6507.c int level = TO_LEVEL(led->led_cdev.brightness); led_cdev 401 drivers/leds/leds-tca6507.c led->led_cdev.brightness = TO_BRIGHT(level); led_cdev 438 drivers/leds/leds-tca6507.c led->led_cdev.brightness = LED_FULL; led_cdev 448 drivers/leds/leds-tca6507.c led->led_cdev.brightness = TO_BRIGHT(tca->bank[best].level); led_cdev 527 drivers/leds/leds-tca6507.c led->led_cdev.brightness = TO_BRIGHT(b->level); led_cdev 557 drivers/leds/leds-tca6507.c static void tca6507_brightness_set(struct led_classdev *led_cdev, led_cdev 560 drivers/leds/leds-tca6507.c struct tca6507_led *led = container_of(led_cdev, struct tca6507_led, led_cdev 561 drivers/leds/leds-tca6507.c led_cdev); led_cdev 562 drivers/leds/leds-tca6507.c led->led_cdev.brightness = brightness; led_cdev 568 drivers/leds/leds-tca6507.c static int tca6507_blink_set(struct led_classdev *led_cdev, led_cdev 572 drivers/leds/leds-tca6507.c struct tca6507_led *led = container_of(led_cdev, struct tca6507_led, led_cdev 573 drivers/leds/leds-tca6507.c led_cdev); led_cdev 577 drivers/leds/leds-tca6507.c else if (delay_on != &led_cdev->blink_delay_on) led_cdev 583 drivers/leds/leds-tca6507.c else if (delay_off != &led_cdev->blink_delay_off) led_cdev 592 drivers/leds/leds-tca6507.c if (led->led_cdev.brightness == LED_OFF) led_cdev 593 drivers/leds/leds-tca6507.c led->led_cdev.brightness = LED_FULL; led_cdev 597 drivers/leds/leds-tca6507.c led->led_cdev.brightness = LED_OFF; led_cdev 790 drivers/leds/leds-tca6507.c l->led_cdev.name = pdata->leds.leds[i].name; led_cdev 791 drivers/leds/leds-tca6507.c l->led_cdev.default_trigger led_cdev 793 drivers/leds/leds-tca6507.c l->led_cdev.brightness_set = tca6507_brightness_set; led_cdev 794 drivers/leds/leds-tca6507.c l->led_cdev.blink_set = tca6507_blink_set; led_cdev 797 drivers/leds/leds-tca6507.c &l->led_cdev); led_cdev 812 drivers/leds/leds-tca6507.c if (tca->leds[i].led_cdev.name) led_cdev 813 drivers/leds/leds-tca6507.c led_classdev_unregister(&tca->leds[i].led_cdev); led_cdev 825 drivers/leds/leds-tca6507.c if (tca_leds[i].led_cdev.name) led_cdev 826 drivers/leds/leds-tca6507.c led_classdev_unregister(&tca_leds[i].led_cdev); led_cdev 109 drivers/leds/leds-tlc591xx.c tlc591xx_brightness_set(struct led_classdev *led_cdev, led_cdev 112 drivers/leds/leds-tlc591xx.c struct tlc591xx_led *led = ldev_to_led(led_cdev); led_cdev 35 drivers/leds/leds-wm831x-status.c #define to_wm831x_status(led_cdev) \ led_cdev 36 drivers/leds/leds-wm831x-status.c container_of(led_cdev, struct wm831x_status, cdev) led_cdev 66 drivers/leds/leds-wm831x-status.c static int wm831x_status_brightness_set(struct led_classdev *led_cdev, led_cdev 69 drivers/leds/leds-wm831x-status.c struct wm831x_status *led = to_wm831x_status(led_cdev); led_cdev 82 drivers/leds/leds-wm831x-status.c static int wm831x_status_blink_set(struct led_classdev *led_cdev, led_cdev 86 drivers/leds/leds-wm831x-status.c struct wm831x_status *led = to_wm831x_status(led_cdev); led_cdev 161 drivers/leds/leds-wm831x-status.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 162 drivers/leds/leds-wm831x-status.c struct wm831x_status *led = to_wm831x_status(led_cdev); led_cdev 185 drivers/leds/leds-wm831x-status.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 186 drivers/leds/leds-wm831x-status.c struct wm831x_status *led = to_wm831x_status(led_cdev); led_cdev 85 drivers/leds/leds-wm8350.c #define to_wm8350_led(led_cdev) \ led_cdev 86 drivers/leds/leds-wm8350.c container_of(led_cdev, struct wm8350_led, cdev) led_cdev 141 drivers/leds/leds-wm8350.c static int wm8350_led_set(struct led_classdev *led_cdev, led_cdev 144 drivers/leds/leds-wm8350.c struct wm8350_led *led = to_wm8350_led(led_cdev); led_cdev 26 drivers/leds/leds-wrap.c static void wrap_power_led_set(struct led_classdev *led_cdev, led_cdev 35 drivers/leds/leds-wrap.c static void wrap_error_led_set(struct led_classdev *led_cdev, led_cdev 44 drivers/leds/leds-wrap.c static void wrap_extra_led_set(struct led_classdev *led_cdev, led_cdev 15 drivers/leds/leds.h static inline int led_get_brightness(struct led_classdev *led_cdev) led_cdev 17 drivers/leds/leds.h return led_cdev->brightness; led_cdev 20 drivers/leds/leds.h void led_init_core(struct led_classdev *led_cdev); led_cdev 21 drivers/leds/leds.h void led_stop_software_blink(struct led_classdev *led_cdev); led_cdev 22 drivers/leds/leds.h void led_set_brightness_nopm(struct led_classdev *led_cdev, led_cdev 24 drivers/leds/leds.h void led_set_brightness_nosleep(struct led_classdev *led_cdev, led_cdev 24 drivers/leds/trigger/ledtrig-activity.c struct led_classdev *led_cdev; led_cdev 36 drivers/leds/trigger/ledtrig-activity.c struct led_classdev *led_cdev = activity_data->led_cdev; led_cdev 47 drivers/leds/trigger/ledtrig-activity.c if (test_and_clear_bit(LED_BLINK_BRIGHTNESS_CHANGE, &led_cdev->work_flags)) led_cdev 48 drivers/leds/trigger/ledtrig-activity.c led_cdev->blink_brightness = led_cdev->new_blink_brightness; led_cdev 52 drivers/leds/trigger/ledtrig-activity.c led_set_brightness_nosleep(led_cdev, led_cdev->blink_brightness); led_cdev 125 drivers/leds/trigger/ledtrig-activity.c led_set_brightness_nosleep(led_cdev, led_cdev 127 drivers/leds/trigger/ledtrig-activity.c led_cdev->blink_brightness : LED_OFF); led_cdev 182 drivers/leds/trigger/ledtrig-activity.c static int activity_activate(struct led_classdev *led_cdev) led_cdev 190 drivers/leds/trigger/ledtrig-activity.c led_set_trigger_data(led_cdev, activity_data); led_cdev 192 drivers/leds/trigger/ledtrig-activity.c activity_data->led_cdev = led_cdev; led_cdev 194 drivers/leds/trigger/ledtrig-activity.c if (!led_cdev->blink_brightness) led_cdev 195 drivers/leds/trigger/ledtrig-activity.c led_cdev->blink_brightness = led_cdev->max_brightness; led_cdev 197 drivers/leds/trigger/ledtrig-activity.c set_bit(LED_BLINK_SW, &led_cdev->work_flags); led_cdev 202 drivers/leds/trigger/ledtrig-activity.c static void activity_deactivate(struct led_classdev *led_cdev) led_cdev 204 drivers/leds/trigger/ledtrig-activity.c struct activity_data *activity_data = led_get_trigger_data(led_cdev); led_cdev 208 drivers/leds/trigger/ledtrig-activity.c clear_bit(LED_BLINK_SW, &led_cdev->work_flags); led_cdev 16 drivers/leds/trigger/ledtrig-default-on.c static int defon_trig_activate(struct led_classdev *led_cdev) led_cdev 18 drivers/leds/trigger/ledtrig-default-on.c led_set_brightness_nosleep(led_cdev, led_cdev->max_brightness); led_cdev 25 drivers/leds/trigger/ledtrig-heartbeat.c struct led_classdev *led_cdev; led_cdev 36 drivers/leds/trigger/ledtrig-heartbeat.c struct led_classdev *led_cdev; led_cdev 40 drivers/leds/trigger/ledtrig-heartbeat.c led_cdev = heartbeat_data->led_cdev; led_cdev 43 drivers/leds/trigger/ledtrig-heartbeat.c led_set_brightness_nosleep(led_cdev, LED_OFF); led_cdev 47 drivers/leds/trigger/ledtrig-heartbeat.c if (test_and_clear_bit(LED_BLINK_BRIGHTNESS_CHANGE, &led_cdev->work_flags)) led_cdev 48 drivers/leds/trigger/ledtrig-heartbeat.c led_cdev->blink_brightness = led_cdev->new_blink_brightness; led_cdev 66 drivers/leds/trigger/ledtrig-heartbeat.c brightness = led_cdev->blink_brightness; led_cdev 72 drivers/leds/trigger/ledtrig-heartbeat.c brightness = led_cdev->blink_brightness; led_cdev 78 drivers/leds/trigger/ledtrig-heartbeat.c brightness = led_cdev->blink_brightness; led_cdev 85 drivers/leds/trigger/ledtrig-heartbeat.c brightness = led_cdev->blink_brightness; led_cdev 89 drivers/leds/trigger/ledtrig-heartbeat.c led_set_brightness_nosleep(led_cdev, brightness); led_cdev 127 drivers/leds/trigger/ledtrig-heartbeat.c static int heartbeat_trig_activate(struct led_classdev *led_cdev) led_cdev 135 drivers/leds/trigger/ledtrig-heartbeat.c led_set_trigger_data(led_cdev, heartbeat_data); led_cdev 136 drivers/leds/trigger/ledtrig-heartbeat.c heartbeat_data->led_cdev = led_cdev; led_cdev 140 drivers/leds/trigger/ledtrig-heartbeat.c if (!led_cdev->blink_brightness) led_cdev 141 drivers/leds/trigger/ledtrig-heartbeat.c led_cdev->blink_brightness = led_cdev->max_brightness; led_cdev 143 drivers/leds/trigger/ledtrig-heartbeat.c set_bit(LED_BLINK_SW, &led_cdev->work_flags); led_cdev 148 drivers/leds/trigger/ledtrig-heartbeat.c static void heartbeat_trig_deactivate(struct led_classdev *led_cdev) led_cdev 151 drivers/leds/trigger/ledtrig-heartbeat.c led_get_trigger_data(led_cdev); led_cdev 155 drivers/leds/trigger/ledtrig-heartbeat.c clear_bit(LED_BLINK_SW, &led_cdev->work_flags); led_cdev 45 drivers/leds/trigger/ledtrig-netdev.c struct led_classdev *led_cdev; led_cdev 68 drivers/leds/trigger/ledtrig-netdev.c struct led_classdev *led_cdev = trigger_data->led_cdev; led_cdev 70 drivers/leds/trigger/ledtrig-netdev.c current_brightness = led_cdev->brightness; led_cdev 72 drivers/leds/trigger/ledtrig-netdev.c led_cdev->blink_brightness = current_brightness; led_cdev 73 drivers/leds/trigger/ledtrig-netdev.c if (!led_cdev->blink_brightness) led_cdev 74 drivers/leds/trigger/ledtrig-netdev.c led_cdev->blink_brightness = led_cdev->max_brightness; led_cdev 77 drivers/leds/trigger/ledtrig-netdev.c led_set_brightness(led_cdev, LED_OFF); led_cdev 80 drivers/leds/trigger/ledtrig-netdev.c led_set_brightness(led_cdev, led_cdev 81 drivers/leds/trigger/ledtrig-netdev.c led_cdev->blink_brightness); led_cdev 83 drivers/leds/trigger/ledtrig-netdev.c led_set_brightness(led_cdev, LED_OFF); led_cdev 358 drivers/leds/trigger/ledtrig-netdev.c led_set_brightness(trigger_data->led_cdev, LED_OFF); led_cdev 375 drivers/leds/trigger/ledtrig-netdev.c led_stop_software_blink(trigger_data->led_cdev); led_cdev 381 drivers/leds/trigger/ledtrig-netdev.c led_blink_set_oneshot(trigger_data->led_cdev, led_cdev 392 drivers/leds/trigger/ledtrig-netdev.c static int netdev_trig_activate(struct led_classdev *led_cdev) led_cdev 408 drivers/leds/trigger/ledtrig-netdev.c trigger_data->led_cdev = led_cdev; led_cdev 416 drivers/leds/trigger/ledtrig-netdev.c led_set_trigger_data(led_cdev, trigger_data); led_cdev 425 drivers/leds/trigger/ledtrig-netdev.c static void netdev_trig_deactivate(struct led_classdev *led_cdev) led_cdev 427 drivers/leds/trigger/ledtrig-netdev.c struct led_netdev_data *trigger_data = led_get_trigger_data(led_cdev); led_cdev 28 drivers/leds/trigger/ledtrig-oneshot.c struct led_classdev *led_cdev = led_trigger_get_led(dev); led_cdev 31 drivers/leds/trigger/ledtrig-oneshot.c led_blink_set_oneshot(led_cdev, led_cdev 32 drivers/leds/trigger/ledtrig-oneshot.c &led_cdev->blink_delay_on, &led_cdev->blink_delay_off, led_cdev 49 drivers/leds/trigger/ledtrig-oneshot.c struct led_classdev *led_cdev = led_trigger_get_led(dev); led_cdev 61 drivers/leds/trigger/ledtrig-oneshot.c led_set_brightness_nosleep(led_cdev, LED_FULL); led_cdev 63 drivers/leds/trigger/ledtrig-oneshot.c led_set_brightness_nosleep(led_cdev, LED_OFF); led_cdev 71 drivers/leds/trigger/ledtrig-oneshot.c struct led_classdev *led_cdev = led_trigger_get_led(dev); led_cdev 73 drivers/leds/trigger/ledtrig-oneshot.c return sprintf(buf, "%lu\n", led_cdev->blink_delay_on); led_cdev 79 drivers/leds/trigger/ledtrig-oneshot.c struct led_classdev *led_cdev = led_trigger_get_led(dev); led_cdev 87 drivers/leds/trigger/ledtrig-oneshot.c led_cdev->blink_delay_on = state; led_cdev 95 drivers/leds/trigger/ledtrig-oneshot.c struct led_classdev *led_cdev = led_trigger_get_led(dev); led_cdev 97 drivers/leds/trigger/ledtrig-oneshot.c return sprintf(buf, "%lu\n", led_cdev->blink_delay_off); led_cdev 103 drivers/leds/trigger/ledtrig-oneshot.c struct led_classdev *led_cdev = led_trigger_get_led(dev); led_cdev 111 drivers/leds/trigger/ledtrig-oneshot.c led_cdev->blink_delay_off = state; led_cdev 130 drivers/leds/trigger/ledtrig-oneshot.c static void pattern_init(struct led_classdev *led_cdev) led_cdev 135 drivers/leds/trigger/ledtrig-oneshot.c pattern = led_get_default_pattern(led_cdev, &size); led_cdev 140 drivers/leds/trigger/ledtrig-oneshot.c dev_warn(led_cdev->dev, led_cdev 146 drivers/leds/trigger/ledtrig-oneshot.c led_cdev->blink_delay_on = pattern[0]; led_cdev 147 drivers/leds/trigger/ledtrig-oneshot.c led_cdev->blink_delay_off = pattern[1]; led_cdev 154 drivers/leds/trigger/ledtrig-oneshot.c led_cdev->blink_delay_on = DEFAULT_DELAY; led_cdev 155 drivers/leds/trigger/ledtrig-oneshot.c led_cdev->blink_delay_off = DEFAULT_DELAY; led_cdev 158 drivers/leds/trigger/ledtrig-oneshot.c static int oneshot_trig_activate(struct led_classdev *led_cdev) led_cdev 166 drivers/leds/trigger/ledtrig-oneshot.c led_set_trigger_data(led_cdev, oneshot_data); led_cdev 168 drivers/leds/trigger/ledtrig-oneshot.c if (led_cdev->flags & LED_INIT_DEFAULT_TRIGGER) { led_cdev 169 drivers/leds/trigger/ledtrig-oneshot.c pattern_init(led_cdev); led_cdev 174 drivers/leds/trigger/ledtrig-oneshot.c led_cdev->flags &= ~LED_INIT_DEFAULT_TRIGGER; led_cdev 180 drivers/leds/trigger/ledtrig-oneshot.c static void oneshot_trig_deactivate(struct led_classdev *led_cdev) led_cdev 182 drivers/leds/trigger/ledtrig-oneshot.c struct oneshot_trig_data *oneshot_data = led_get_trigger_data(led_cdev); led_cdev 187 drivers/leds/trigger/ledtrig-oneshot.c led_set_brightness(led_cdev, LED_OFF); led_cdev 21 drivers/leds/trigger/ledtrig-panic.c static void led_trigger_set_panic(struct led_classdev *led_cdev) led_cdev 28 drivers/leds/trigger/ledtrig-panic.c if (led_cdev->trigger) led_cdev 29 drivers/leds/trigger/ledtrig-panic.c list_del(&led_cdev->trig_list); led_cdev 30 drivers/leds/trigger/ledtrig-panic.c list_add_tail(&led_cdev->trig_list, &trig->led_cdevs); led_cdev 33 drivers/leds/trigger/ledtrig-panic.c led_cdev->blink_delay_on = 0; led_cdev 34 drivers/leds/trigger/ledtrig-panic.c led_cdev->blink_delay_off = 0; led_cdev 36 drivers/leds/trigger/ledtrig-panic.c led_cdev->trigger = trig; led_cdev 38 drivers/leds/trigger/ledtrig-panic.c trig->activate(led_cdev); led_cdev 46 drivers/leds/trigger/ledtrig-panic.c struct led_classdev *led_cdev; led_cdev 48 drivers/leds/trigger/ledtrig-panic.c list_for_each_entry(led_cdev, &leds_list, node) led_cdev 49 drivers/leds/trigger/ledtrig-panic.c if (led_cdev->flags & LED_PANIC_INDICATOR) led_cdev 50 drivers/leds/trigger/ledtrig-panic.c led_trigger_set_panic(led_cdev); led_cdev 25 drivers/leds/trigger/ledtrig-pattern.c struct led_classdev *led_cdev; led_cdev 84 drivers/leds/trigger/ledtrig-pattern.c led_set_brightness(data->led_cdev, led_cdev 107 drivers/leds/trigger/ledtrig-pattern.c led_set_brightness(data->led_cdev, led_cdev 120 drivers/leds/trigger/ledtrig-pattern.c static int pattern_trig_start_pattern(struct led_classdev *led_cdev) led_cdev 122 drivers/leds/trigger/ledtrig-pattern.c struct pattern_trig_data *data = led_cdev->trigger_data; led_cdev 128 drivers/leds/trigger/ledtrig-pattern.c return led_cdev->pattern_set(led_cdev, data->patterns, led_cdev 148 drivers/leds/trigger/ledtrig-pattern.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 149 drivers/leds/trigger/ledtrig-pattern.c struct pattern_trig_data *data = led_cdev->trigger_data; led_cdev 164 drivers/leds/trigger/ledtrig-pattern.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 165 drivers/leds/trigger/ledtrig-pattern.c struct pattern_trig_data *data = led_cdev->trigger_data; led_cdev 181 drivers/leds/trigger/ledtrig-pattern.c led_cdev->pattern_clear(led_cdev); led_cdev 190 drivers/leds/trigger/ledtrig-pattern.c err = pattern_trig_start_pattern(led_cdev); led_cdev 259 drivers/leds/trigger/ledtrig-pattern.c static ssize_t pattern_trig_store_patterns(struct led_classdev *led_cdev, led_cdev 263 drivers/leds/trigger/ledtrig-pattern.c struct pattern_trig_data *data = led_cdev->trigger_data; led_cdev 271 drivers/leds/trigger/ledtrig-pattern.c led_cdev->pattern_clear(led_cdev); led_cdev 283 drivers/leds/trigger/ledtrig-pattern.c err = pattern_trig_start_pattern(led_cdev); led_cdev 295 drivers/leds/trigger/ledtrig-pattern.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 296 drivers/leds/trigger/ledtrig-pattern.c struct pattern_trig_data *data = led_cdev->trigger_data; led_cdev 304 drivers/leds/trigger/ledtrig-pattern.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 306 drivers/leds/trigger/ledtrig-pattern.c return pattern_trig_store_patterns(led_cdev, buf, NULL, count, false); led_cdev 314 drivers/leds/trigger/ledtrig-pattern.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 315 drivers/leds/trigger/ledtrig-pattern.c struct pattern_trig_data *data = led_cdev->trigger_data; led_cdev 324 drivers/leds/trigger/ledtrig-pattern.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 326 drivers/leds/trigger/ledtrig-pattern.c return pattern_trig_store_patterns(led_cdev, buf, NULL, count, true); led_cdev 335 drivers/leds/trigger/ledtrig-pattern.c struct led_classdev *led_cdev = dev_get_drvdata(dev); led_cdev 339 drivers/leds/trigger/ledtrig-pattern.c else if (attr == &dev_attr_hw_pattern.attr && led_cdev->pattern_set) led_cdev 362 drivers/leds/trigger/ledtrig-pattern.c static void pattern_init(struct led_classdev *led_cdev) led_cdev 368 drivers/leds/trigger/ledtrig-pattern.c pattern = led_get_default_pattern(led_cdev, &size); led_cdev 373 drivers/leds/trigger/ledtrig-pattern.c dev_warn(led_cdev->dev, "Expected pattern of tuples\n"); led_cdev 377 drivers/leds/trigger/ledtrig-pattern.c err = pattern_trig_store_patterns(led_cdev, NULL, pattern, size, false); led_cdev 379 drivers/leds/trigger/ledtrig-pattern.c dev_warn(led_cdev->dev, led_cdev 386 drivers/leds/trigger/ledtrig-pattern.c static int pattern_trig_activate(struct led_classdev *led_cdev) led_cdev 394 drivers/leds/trigger/ledtrig-pattern.c if (!!led_cdev->pattern_set ^ !!led_cdev->pattern_clear) { led_cdev 395 drivers/leds/trigger/ledtrig-pattern.c dev_warn(led_cdev->dev, led_cdev 397 drivers/leds/trigger/ledtrig-pattern.c led_cdev->pattern_set = NULL; led_cdev 398 drivers/leds/trigger/ledtrig-pattern.c led_cdev->pattern_clear = NULL; led_cdev 404 drivers/leds/trigger/ledtrig-pattern.c data->led_cdev = led_cdev; led_cdev 405 drivers/leds/trigger/ledtrig-pattern.c led_set_trigger_data(led_cdev, data); led_cdev 407 drivers/leds/trigger/ledtrig-pattern.c led_cdev->activated = true; led_cdev 409 drivers/leds/trigger/ledtrig-pattern.c if (led_cdev->flags & LED_INIT_DEFAULT_TRIGGER) { led_cdev 410 drivers/leds/trigger/ledtrig-pattern.c pattern_init(led_cdev); led_cdev 415 drivers/leds/trigger/ledtrig-pattern.c led_cdev->flags &= ~LED_INIT_DEFAULT_TRIGGER; led_cdev 421 drivers/leds/trigger/ledtrig-pattern.c static void pattern_trig_deactivate(struct led_classdev *led_cdev) led_cdev 423 drivers/leds/trigger/ledtrig-pattern.c struct pattern_trig_data *data = led_cdev->trigger_data; led_cdev 425 drivers/leds/trigger/ledtrig-pattern.c if (!led_cdev->activated) led_cdev 428 drivers/leds/trigger/ledtrig-pattern.c if (led_cdev->pattern_clear) led_cdev 429 drivers/leds/trigger/ledtrig-pattern.c led_cdev->pattern_clear(led_cdev); led_cdev 433 drivers/leds/trigger/ledtrig-pattern.c led_set_brightness(led_cdev, LED_OFF); led_cdev 435 drivers/leds/trigger/ledtrig-pattern.c led_cdev->activated = false; led_cdev 21 drivers/leds/trigger/ledtrig-timer.c struct led_classdev *led_cdev = led_trigger_get_led(dev); led_cdev 23 drivers/leds/trigger/ledtrig-timer.c return sprintf(buf, "%lu\n", led_cdev->blink_delay_on); led_cdev 29 drivers/leds/trigger/ledtrig-timer.c struct led_classdev *led_cdev = led_trigger_get_led(dev); led_cdev 37 drivers/leds/trigger/ledtrig-timer.c led_blink_set(led_cdev, &state, &led_cdev->blink_delay_off); led_cdev 38 drivers/leds/trigger/ledtrig-timer.c led_cdev->blink_delay_on = state; led_cdev 46 drivers/leds/trigger/ledtrig-timer.c struct led_classdev *led_cdev = led_trigger_get_led(dev); led_cdev 48 drivers/leds/trigger/ledtrig-timer.c return sprintf(buf, "%lu\n", led_cdev->blink_delay_off); led_cdev 54 drivers/leds/trigger/ledtrig-timer.c struct led_classdev *led_cdev = led_trigger_get_led(dev); led_cdev 62 drivers/leds/trigger/ledtrig-timer.c led_blink_set(led_cdev, &led_cdev->blink_delay_on, &state); led_cdev 63 drivers/leds/trigger/ledtrig-timer.c led_cdev->blink_delay_off = state; led_cdev 78 drivers/leds/trigger/ledtrig-timer.c static void pattern_init(struct led_classdev *led_cdev) led_cdev 83 drivers/leds/trigger/ledtrig-timer.c pattern = led_get_default_pattern(led_cdev, &size); led_cdev 88 drivers/leds/trigger/ledtrig-timer.c dev_warn(led_cdev->dev, led_cdev 94 drivers/leds/trigger/ledtrig-timer.c led_cdev->blink_delay_on = pattern[0]; led_cdev 95 drivers/leds/trigger/ledtrig-timer.c led_cdev->blink_delay_off = pattern[1]; led_cdev 102 drivers/leds/trigger/ledtrig-timer.c static int timer_trig_activate(struct led_classdev *led_cdev) led_cdev 104 drivers/leds/trigger/ledtrig-timer.c if (led_cdev->flags & LED_INIT_DEFAULT_TRIGGER) { led_cdev 105 drivers/leds/trigger/ledtrig-timer.c pattern_init(led_cdev); led_cdev 110 drivers/leds/trigger/ledtrig-timer.c led_cdev->flags &= ~LED_INIT_DEFAULT_TRIGGER; led_cdev 117 drivers/leds/trigger/ledtrig-timer.c flush_work(&led_cdev->set_brightness_work); led_cdev 118 drivers/leds/trigger/ledtrig-timer.c led_blink_set(led_cdev, &led_cdev->blink_delay_on, led_cdev 119 drivers/leds/trigger/ledtrig-timer.c &led_cdev->blink_delay_off); led_cdev 124 drivers/leds/trigger/ledtrig-timer.c static void timer_trig_deactivate(struct led_classdev *led_cdev) led_cdev 127 drivers/leds/trigger/ledtrig-timer.c led_set_brightness(led_cdev, LED_OFF); led_cdev 29 drivers/leds/trigger/ledtrig-transient.c struct led_classdev *led_cdev; led_cdev 36 drivers/leds/trigger/ledtrig-transient.c struct led_classdev *led_cdev = transient_data->led_cdev; led_cdev 39 drivers/leds/trigger/ledtrig-transient.c led_set_brightness_nosleep(led_cdev, transient_data->restore_state); led_cdev 54 drivers/leds/trigger/ledtrig-transient.c struct led_classdev *led_cdev = led_trigger_get_led(dev); led_cdev 71 drivers/leds/trigger/ledtrig-transient.c led_set_brightness_nosleep(led_cdev, led_cdev 80 drivers/leds/trigger/ledtrig-transient.c led_set_brightness_nosleep(led_cdev, transient_data->state); led_cdev 163 drivers/leds/trigger/ledtrig-transient.c static int transient_trig_activate(struct led_classdev *led_cdev) led_cdev 171 drivers/leds/trigger/ledtrig-transient.c led_set_trigger_data(led_cdev, tdata); led_cdev 172 drivers/leds/trigger/ledtrig-transient.c tdata->led_cdev = led_cdev; led_cdev 179 drivers/leds/trigger/ledtrig-transient.c static void transient_trig_deactivate(struct led_classdev *led_cdev) led_cdev 181 drivers/leds/trigger/ledtrig-transient.c struct transient_trig_data *transient_data = led_get_trigger_data(led_cdev); led_cdev 184 drivers/leds/trigger/ledtrig-transient.c led_set_brightness_nosleep(led_cdev, transient_data->restore_state); led_cdev 29 drivers/leds/uleds.c struct led_classdev led_cdev; led_cdev 39 drivers/leds/uleds.c static void uleds_brightness_set(struct led_classdev *led_cdev, led_cdev 42 drivers/leds/uleds.c struct uleds_device *udev = container_of(led_cdev, struct uleds_device, led_cdev 43 drivers/leds/uleds.c led_cdev); led_cdev 60 drivers/leds/uleds.c udev->led_cdev.name = udev->user_dev.name; led_cdev 61 drivers/leds/uleds.c udev->led_cdev.brightness_set = uleds_brightness_set; led_cdev 114 drivers/leds/uleds.c udev->led_cdev.max_brightness = udev->user_dev.max_brightness; led_cdev 117 drivers/leds/uleds.c &udev->led_cdev); led_cdev 189 drivers/leds/uleds.c &udev->led_cdev); led_cdev 50 drivers/macintosh/via-pmu-led.c static void pmu_led_set(struct led_classdev *led_cdev, led_cdev 182 drivers/media/radio/radio-shark.c static void shark_led_set_blue(struct led_classdev *led_cdev, led_cdev 186 drivers/media/radio/radio-shark.c container_of(led_cdev, struct shark_device, leds[BLUE_LED]); led_cdev 194 drivers/media/radio/radio-shark.c static void shark_led_set_blue_pulse(struct led_classdev *led_cdev, led_cdev 197 drivers/media/radio/radio-shark.c struct shark_device *shark = container_of(led_cdev, led_cdev 206 drivers/media/radio/radio-shark.c static void shark_led_set_red(struct led_classdev *led_cdev, led_cdev 210 drivers/media/radio/radio-shark.c container_of(led_cdev, struct shark_device, leds[RED_LED]); led_cdev 167 drivers/media/radio/radio-shark2.c static void shark_led_set_blue(struct led_classdev *led_cdev, led_cdev 171 drivers/media/radio/radio-shark2.c container_of(led_cdev, struct shark_device, leds[BLUE_LED]); led_cdev 178 drivers/media/radio/radio-shark2.c static void shark_led_set_red(struct led_classdev *led_cdev, led_cdev 182 drivers/media/radio/radio-shark2.c container_of(led_cdev, struct shark_device, leds[RED_LED]); led_cdev 259 drivers/media/rc/winbond-cir.c wbcir_led_brightness_get(struct led_classdev *led_cdev) led_cdev 261 drivers/media/rc/winbond-cir.c struct wbcir_data *data = container_of(led_cdev, led_cdev 272 drivers/media/rc/winbond-cir.c wbcir_led_brightness_set(struct led_classdev *led_cdev, led_cdev 275 drivers/media/rc/winbond-cir.c struct wbcir_data *data = container_of(led_cdev, led_cdev 107 drivers/media/v4l2-core/v4l2-flash-led-class.c led_set_brightness_sync(&v4l2_flash->fled_cdev->led_cdev, led_cdev 119 drivers/media/v4l2-core/v4l2-flash-led-class.c struct led_classdev *led_cdev; led_cdev 131 drivers/media/v4l2-core/v4l2-flash-led-class.c led_cdev = &v4l2_flash->fled_cdev->led_cdev; led_cdev 133 drivers/media/v4l2-core/v4l2-flash-led-class.c led_cdev = v4l2_flash->iled_cdev; led_cdev 136 drivers/media/v4l2-core/v4l2-flash-led-class.c ret = led_update_brightness(led_cdev); led_cdev 143 drivers/media/v4l2-core/v4l2-flash-led-class.c led_cdev->brightness); led_cdev 146 drivers/media/v4l2-core/v4l2-flash-led-class.c led_cdev->brightness); led_cdev 197 drivers/media/v4l2-core/v4l2-flash-led-class.c struct led_classdev *led_cdev = fled_cdev ? &fled_cdev->led_cdev : NULL; led_cdev 206 drivers/media/v4l2-core/v4l2-flash-led-class.c led_set_brightness_sync(led_cdev, LED_OFF); led_cdev 210 drivers/media/v4l2-core/v4l2-flash-led-class.c led_set_brightness_sync(led_cdev, LED_OFF); led_cdev 299 drivers/media/v4l2-core/v4l2-flash-led-class.c struct led_classdev *led_cdev = fled_cdev ? &fled_cdev->led_cdev : NULL; led_cdev 316 drivers/media/v4l2-core/v4l2-flash-led-class.c if (!led_cdev || WARN_ON(!(led_cdev->flags & LED_DEV_CAP_FLASH))) led_cdev 332 drivers/media/v4l2-core/v4l2-flash-led-class.c if (led_cdev->flags & LED_DEV_CAP_FLASH) led_cdev 530 drivers/media/v4l2-core/v4l2-flash-led-class.c struct led_classdev *led_cdev = fled_cdev ? &fled_cdev->led_cdev : NULL; led_cdev 537 drivers/media/v4l2-core/v4l2-flash-led-class.c if (led_cdev) { led_cdev 538 drivers/media/v4l2-core/v4l2-flash-led-class.c mutex_lock(&led_cdev->led_access); led_cdev 540 drivers/media/v4l2-core/v4l2-flash-led-class.c led_sysfs_disable(led_cdev); led_cdev 541 drivers/media/v4l2-core/v4l2-flash-led-class.c led_trigger_remove(led_cdev); led_cdev 543 drivers/media/v4l2-core/v4l2-flash-led-class.c mutex_unlock(&led_cdev->led_access); led_cdev 561 drivers/media/v4l2-core/v4l2-flash-led-class.c if (led_cdev) { led_cdev 562 drivers/media/v4l2-core/v4l2-flash-led-class.c mutex_lock(&led_cdev->led_access); led_cdev 563 drivers/media/v4l2-core/v4l2-flash-led-class.c led_sysfs_enable(led_cdev); led_cdev 564 drivers/media/v4l2-core/v4l2-flash-led-class.c mutex_unlock(&led_cdev->led_access); led_cdev 580 drivers/media/v4l2-core/v4l2-flash-led-class.c struct led_classdev *led_cdev = fled_cdev ? &fled_cdev->led_cdev : NULL; led_cdev 587 drivers/media/v4l2-core/v4l2-flash-led-class.c if (led_cdev) { led_cdev 588 drivers/media/v4l2-core/v4l2-flash-led-class.c mutex_lock(&led_cdev->led_access); led_cdev 594 drivers/media/v4l2-core/v4l2-flash-led-class.c led_sysfs_enable(led_cdev); led_cdev 596 drivers/media/v4l2-core/v4l2-flash-led-class.c mutex_unlock(&led_cdev->led_access); led_cdev 66 drivers/net/arcnet/com20020-pci.c static void led_tx_set(struct led_classdev *led_cdev, led_cdev 73 drivers/net/arcnet/com20020-pci.c card = container_of(led_cdev, struct com20020_dev, tx_led); led_cdev 81 drivers/net/arcnet/com20020-pci.c static void led_recon_set(struct led_classdev *led_cdev, led_cdev 88 drivers/net/arcnet/com20020-pci.c card = container_of(led_cdev, struct com20020_dev, recon_led); led_cdev 1037 drivers/net/wireless/ath/ath9k/ath9k.h struct led_classdev led_cdev; led_cdev 51 drivers/net/wireless/ath/ath9k/gpio.c static void ath_led_brightness(struct led_classdev *led_cdev, led_cdev 54 drivers/net/wireless/ath/ath9k/gpio.c struct ath_softc *sc = container_of(led_cdev, struct ath_softc, led_cdev); led_cdev 68 drivers/net/wireless/ath/ath9k/gpio.c ath_led_brightness(&sc->led_cdev, LED_OFF); led_cdev 69 drivers/net/wireless/ath/ath9k/gpio.c led_classdev_unregister(&sc->led_cdev); led_cdev 84 drivers/net/wireless/ath/ath9k/gpio.c sc->led_cdev.default_trigger = led_cdev 89 drivers/net/wireless/ath/ath9k/gpio.c sc->led_cdev.name = sc->led_name; led_cdev 90 drivers/net/wireless/ath/ath9k/gpio.c sc->led_cdev.brightness_set = ath_led_brightness; led_cdev 92 drivers/net/wireless/ath/ath9k/gpio.c ret = led_classdev_register(wiphy_dev(sc->hw->wiphy), &sc->led_cdev); led_cdev 517 drivers/net/wireless/ath/ath9k/htc.h struct led_classdev led_cdev; led_cdev 236 drivers/net/wireless/ath/ath9k/htc_drv_gpio.c static void ath9k_led_brightness(struct led_classdev *led_cdev, led_cdev 239 drivers/net/wireless/ath/ath9k/htc_drv_gpio.c struct ath9k_htc_priv *priv = container_of(led_cdev, led_cdev 241 drivers/net/wireless/ath/ath9k/htc_drv_gpio.c led_cdev); led_cdev 253 drivers/net/wireless/ath/ath9k/htc_drv_gpio.c ath9k_led_brightness(&priv->led_cdev, LED_OFF); led_cdev 254 drivers/net/wireless/ath/ath9k/htc_drv_gpio.c led_classdev_unregister(&priv->led_cdev); led_cdev 285 drivers/net/wireless/ath/ath9k/htc_drv_gpio.c priv->led_cdev.default_trigger = led_cdev 292 drivers/net/wireless/ath/ath9k/htc_drv_gpio.c priv->led_cdev.name = priv->led_name; led_cdev 293 drivers/net/wireless/ath/ath9k/htc_drv_gpio.c priv->led_cdev.brightness_set = ath9k_led_brightness; led_cdev 295 drivers/net/wireless/ath/ath9k/htc_drv_gpio.c ret = led_classdev_register(wiphy_dev(priv->hw->wiphy), &priv->led_cdev); led_cdev 872 drivers/net/wireless/ath/ath9k/htc_drv_init.c priv->led_cdev.default_trigger = ieee80211_create_tpt_led_trigger(priv->hw, led_cdev 1057 drivers/net/wireless/ath/ath9k/init.c sc->led_cdev.default_trigger = ieee80211_create_tpt_led_trigger(sc->hw, led_cdev 512 drivers/net/wireless/intel/iwlegacy/common.c il_led_brightness_set(struct led_classdev *led_cdev, led_cdev 515 drivers/net/wireless/intel/iwlegacy/common.c struct il_priv *il = container_of(led_cdev, struct il_priv, led); led_cdev 525 drivers/net/wireless/intel/iwlegacy/common.c il_led_blink_set(struct led_classdev *led_cdev, unsigned long *delay_on, led_cdev 528 drivers/net/wireless/intel/iwlegacy/common.c struct il_priv *il = container_of(led_cdev, struct il_priv, led); led_cdev 136 drivers/net/wireless/intel/iwlwifi/dvm/led.c static void iwl_led_brightness_set(struct led_classdev *led_cdev, led_cdev 139 drivers/net/wireless/intel/iwlwifi/dvm/led.c struct iwl_priv *priv = container_of(led_cdev, struct iwl_priv, led); led_cdev 151 drivers/net/wireless/intel/iwlwifi/dvm/led.c static int iwl_led_blink_set(struct led_classdev *led_cdev, led_cdev 155 drivers/net/wireless/intel/iwlwifi/dvm/led.c struct iwl_priv *priv = container_of(led_cdev, struct iwl_priv, led); led_cdev 102 drivers/net/wireless/intel/iwlwifi/mvm/led.c static void iwl_led_brightness_set(struct led_classdev *led_cdev, led_cdev 105 drivers/net/wireless/intel/iwlwifi/mvm/led.c struct iwl_mvm *mvm = container_of(led_cdev, struct iwl_mvm, led); led_cdev 88 drivers/net/wireless/mediatek/mt76/mac80211.c if (!dev->led_cdev.brightness_set && !dev->led_cdev.blink_set) led_cdev 94 drivers/net/wireless/mediatek/mt76/mac80211.c dev->led_cdev.name = dev->led_name; led_cdev 95 drivers/net/wireless/mediatek/mt76/mac80211.c dev->led_cdev.default_trigger = led_cdev 108 drivers/net/wireless/mediatek/mt76/mac80211.c return devm_led_classdev_register(dev->dev, &dev->led_cdev); led_cdev 487 drivers/net/wireless/mediatek/mt76/mt76.h struct led_classdev led_cdev; led_cdev 381 drivers/net/wireless/mediatek/mt76/mt7603/init.c static int mt7603_led_set_blink(struct led_classdev *led_cdev, led_cdev 385 drivers/net/wireless/mediatek/mt76/mt7603/init.c struct mt76_dev *mt76 = container_of(led_cdev, struct mt76_dev, led_cdev 386 drivers/net/wireless/mediatek/mt76/mt7603/init.c led_cdev); led_cdev 396 drivers/net/wireless/mediatek/mt76/mt7603/init.c static void mt7603_led_set_brightness(struct led_classdev *led_cdev, led_cdev 399 drivers/net/wireless/mediatek/mt76/mt7603/init.c struct mt76_dev *mt76 = container_of(led_cdev, struct mt76_dev, led_cdev 400 drivers/net/wireless/mediatek/mt76/mt7603/init.c led_cdev); led_cdev 560 drivers/net/wireless/mediatek/mt76/mt7603/init.c dev->mt76.led_cdev.brightness_set = mt7603_led_set_brightness; led_cdev 561 drivers/net/wireless/mediatek/mt76/mt7603/init.c dev->mt76.led_cdev.blink_set = mt7603_led_set_blink; led_cdev 114 drivers/net/wireless/mediatek/mt76/mt76x02_util.c mt76x02_led_set_blink(struct led_classdev *led_cdev, led_cdev 118 drivers/net/wireless/mediatek/mt76/mt76x02_util.c struct mt76_dev *mdev = container_of(led_cdev, struct mt76_dev, led_cdev 119 drivers/net/wireless/mediatek/mt76/mt76x02_util.c led_cdev); led_cdev 131 drivers/net/wireless/mediatek/mt76/mt76x02_util.c mt76x02_led_set_brightness(struct led_classdev *led_cdev, led_cdev 134 drivers/net/wireless/mediatek/mt76/mt76x02_util.c struct mt76_dev *mdev = container_of(led_cdev, struct mt76_dev, led_cdev 135 drivers/net/wireless/mediatek/mt76/mt76x02_util.c led_cdev); led_cdev 181 drivers/net/wireless/mediatek/mt76/mt76x02_util.c dev->mt76.led_cdev.brightness_set = led_cdev 183 drivers/net/wireless/mediatek/mt76/mt76x02_util.c dev->mt76.led_cdev.blink_set = mt76x02_led_set_blink; led_cdev 202 drivers/net/wireless/ralink/rt2x00/rt2400pci.c static void rt2400pci_brightness_set(struct led_classdev *led_cdev, led_cdev 206 drivers/net/wireless/ralink/rt2x00/rt2400pci.c container_of(led_cdev, struct rt2x00_led, led_dev); led_cdev 220 drivers/net/wireless/ralink/rt2x00/rt2400pci.c static int rt2400pci_blink_set(struct led_classdev *led_cdev, led_cdev 225 drivers/net/wireless/ralink/rt2x00/rt2400pci.c container_of(led_cdev, struct rt2x00_led, led_dev); led_cdev 202 drivers/net/wireless/ralink/rt2x00/rt2500pci.c static void rt2500pci_brightness_set(struct led_classdev *led_cdev, led_cdev 206 drivers/net/wireless/ralink/rt2x00/rt2500pci.c container_of(led_cdev, struct rt2x00_led, led_dev); led_cdev 220 drivers/net/wireless/ralink/rt2x00/rt2500pci.c static int rt2500pci_blink_set(struct led_classdev *led_cdev, led_cdev 225 drivers/net/wireless/ralink/rt2x00/rt2500pci.c container_of(led_cdev, struct rt2x00_led, led_dev); led_cdev 265 drivers/net/wireless/ralink/rt2x00/rt2500usb.c static void rt2500usb_brightness_set(struct led_classdev *led_cdev, led_cdev 269 drivers/net/wireless/ralink/rt2x00/rt2500usb.c container_of(led_cdev, struct rt2x00_led, led_dev); led_cdev 283 drivers/net/wireless/ralink/rt2x00/rt2500usb.c static int rt2500usb_blink_set(struct led_classdev *led_cdev, led_cdev 288 drivers/net/wireless/ralink/rt2x00/rt2500usb.c container_of(led_cdev, struct rt2x00_led, led_dev); led_cdev 1506 drivers/net/wireless/ralink/rt2x00/rt2800lib.c static void rt2800_brightness_set(struct led_classdev *led_cdev, led_cdev 1510 drivers/net/wireless/ralink/rt2x00/rt2800lib.c container_of(led_cdev, struct rt2x00_led, led_dev); led_cdev 240 drivers/net/wireless/ralink/rt2x00/rt61pci.c static void rt61pci_brightness_set(struct led_classdev *led_cdev, led_cdev 244 drivers/net/wireless/ralink/rt2x00/rt61pci.c container_of(led_cdev, struct rt2x00_led, led_dev); led_cdev 278 drivers/net/wireless/ralink/rt2x00/rt61pci.c static int rt61pci_blink_set(struct led_classdev *led_cdev, led_cdev 283 drivers/net/wireless/ralink/rt2x00/rt61pci.c container_of(led_cdev, struct rt2x00_led, led_dev); led_cdev 185 drivers/net/wireless/ralink/rt2x00/rt73usb.c static void rt73usb_brightness_set(struct led_classdev *led_cdev, led_cdev 189 drivers/net/wireless/ralink/rt2x00/rt73usb.c container_of(led_cdev, struct rt2x00_led, led_dev); led_cdev 225 drivers/net/wireless/ralink/rt2x00/rt73usb.c static int rt73usb_blink_set(struct led_classdev *led_cdev, led_cdev 230 drivers/net/wireless/ralink/rt2x00/rt73usb.c container_of(led_cdev, struct rt2x00_led, led_dev); led_cdev 1409 drivers/platform/x86/acer-wmi.c static void mail_led_set(struct led_classdev *led_cdev, led_cdev 370 drivers/platform/x86/alienware-wmi.c static void global_led_set(struct led_classdev *led_cdev, led_cdev 383 drivers/platform/x86/alienware-wmi.c static enum led_brightness global_led_get(struct led_classdev *led_cdev) led_cdev 554 drivers/platform/x86/asus-laptop.c static void asus_led_cdev_set(struct led_classdev *led_cdev, led_cdev 557 drivers/platform/x86/asus-laptop.c struct asus_led *led = container_of(led_cdev, struct asus_led, led); led_cdev 572 drivers/platform/x86/asus-laptop.c static enum led_brightness asus_led_cdev_get(struct led_classdev *led_cdev) led_cdev 574 drivers/platform/x86/asus-laptop.c return led_cdev->brightness; led_cdev 615 drivers/platform/x86/asus-laptop.c static void asus_kled_cdev_set(struct led_classdev *led_cdev, led_cdev 618 drivers/platform/x86/asus-laptop.c struct asus_led *led = container_of(led_cdev, struct asus_led, led); led_cdev 633 drivers/platform/x86/asus-laptop.c static enum led_brightness asus_kled_cdev_get(struct led_classdev *led_cdev) led_cdev 635 drivers/platform/x86/asus-laptop.c struct asus_led *led = container_of(led_cdev, struct asus_led, led); led_cdev 670 drivers/platform/x86/asus-laptop.c struct led_classdev *led_cdev = &led->led; led_cdev 679 drivers/platform/x86/asus-laptop.c led_cdev->name = name; led_cdev 680 drivers/platform/x86/asus-laptop.c led_cdev->brightness_set = asus_led_cdev_set; led_cdev 681 drivers/platform/x86/asus-laptop.c led_cdev->brightness_get = asus_led_cdev_get; led_cdev 682 drivers/platform/x86/asus-laptop.c led_cdev->max_brightness = 1; led_cdev 683 drivers/platform/x86/asus-laptop.c return led_classdev_register(&asus->platform_device->dev, led_cdev); led_cdev 489 drivers/platform/x86/asus-wmi.c static void tpd_led_set(struct led_classdev *led_cdev, led_cdev 494 drivers/platform/x86/asus-wmi.c asus = container_of(led_cdev, struct asus_wmi, tpd_led); led_cdev 505 drivers/platform/x86/asus-wmi.c static enum led_brightness tpd_led_get(struct led_classdev *led_cdev) led_cdev 509 drivers/platform/x86/asus-wmi.c asus = container_of(led_cdev, struct asus_wmi, tpd_led); led_cdev 549 drivers/platform/x86/asus-wmi.c static void do_kbd_led_set(struct led_classdev *led_cdev, int value) led_cdev 554 drivers/platform/x86/asus-wmi.c asus = container_of(led_cdev, struct asus_wmi, kbd_led); led_cdev 561 drivers/platform/x86/asus-wmi.c static void kbd_led_set(struct led_classdev *led_cdev, led_cdev 565 drivers/platform/x86/asus-wmi.c if (led_cdev->flags & LED_UNREGISTERING) led_cdev 568 drivers/platform/x86/asus-wmi.c do_kbd_led_set(led_cdev, value); led_cdev 573 drivers/platform/x86/asus-wmi.c struct led_classdev *led_cdev = &asus->kbd_led; led_cdev 575 drivers/platform/x86/asus-wmi.c do_kbd_led_set(led_cdev, value); led_cdev 576 drivers/platform/x86/asus-wmi.c led_classdev_notify_brightness_hw_changed(led_cdev, asus->kbd_led_wk); led_cdev 579 drivers/platform/x86/asus-wmi.c static enum led_brightness kbd_led_get(struct led_classdev *led_cdev) led_cdev 584 drivers/platform/x86/asus-wmi.c asus = container_of(led_cdev, struct asus_wmi, kbd_led); led_cdev 613 drivers/platform/x86/asus-wmi.c static void wlan_led_set(struct led_classdev *led_cdev, led_cdev 618 drivers/platform/x86/asus-wmi.c asus = container_of(led_cdev, struct asus_wmi, wlan_led); led_cdev 624 drivers/platform/x86/asus-wmi.c static enum led_brightness wlan_led_get(struct led_classdev *led_cdev) led_cdev 629 drivers/platform/x86/asus-wmi.c asus = container_of(led_cdev, struct asus_wmi, wlan_led); led_cdev 646 drivers/platform/x86/asus-wmi.c static void lightbar_led_set(struct led_classdev *led_cdev, led_cdev 651 drivers/platform/x86/asus-wmi.c asus = container_of(led_cdev, struct asus_wmi, lightbar_led); led_cdev 657 drivers/platform/x86/asus-wmi.c static enum led_brightness lightbar_led_get(struct led_classdev *led_cdev) led_cdev 662 drivers/platform/x86/asus-wmi.c asus = container_of(led_cdev, struct asus_wmi, lightbar_led); led_cdev 966 drivers/platform/x86/dell-laptop.c static void touchpad_led_set(struct led_classdev *led_cdev, led_cdev 1986 drivers/platform/x86/dell-laptop.c static enum led_brightness kbd_led_level_get(struct led_classdev *led_cdev) led_cdev 2017 drivers/platform/x86/dell-laptop.c static int kbd_led_level_set(struct led_classdev *led_cdev, led_cdev 2090 drivers/platform/x86/dell-laptop.c static void brightness_set_exit(struct led_classdev *led_cdev, led_cdev 2136 drivers/platform/x86/dell-laptop.c static int micmute_led_set(struct led_classdev *led_cdev, led_cdev 122 drivers/platform/x86/dell-wmi-led.c static void dell_led_set(struct led_classdev *led_cdev, led_cdev 131 drivers/platform/x86/dell-wmi-led.c static int dell_led_blink(struct led_classdev *led_cdev, led_cdev 494 drivers/platform/x86/eeepc-laptop.c static void tpd_led_set(struct led_classdev *led_cdev, led_cdev 499 drivers/platform/x86/eeepc-laptop.c eeepc = container_of(led_cdev, struct eeepc_laptop, tpd_led); led_cdev 505 drivers/platform/x86/eeepc-laptop.c static enum led_brightness tpd_led_get(struct led_classdev *led_cdev) led_cdev 509 drivers/platform/x86/eeepc-laptop.c eeepc = container_of(led_cdev, struct eeepc_laptop, tpd_led); led_cdev 54 drivers/platform/x86/hp_accel.c static inline void delayed_sysfs_set(struct led_classdev *led_cdev, led_cdev 57 drivers/platform/x86/hp_accel.c struct delayed_led_classdev *data = container_of(led_cdev, led_cdev 255 drivers/platform/x86/hp_accel.c static void hpled_set(struct delayed_led_classdev *led_cdev, enum led_brightness value) led_cdev 47 drivers/platform/x86/huawei-wmi.c static int huawei_wmi_micmute_led_set(struct led_classdev *led_cdev, led_cdev 50 drivers/platform/x86/huawei-wmi.c struct huawei_wmi_priv *priv = dev_get_drvdata(led_cdev->dev->parent); led_cdev 1115 drivers/platform/x86/samsung-laptop.c static void kbd_led_set(struct led_classdev *led_cdev, led_cdev 1120 drivers/platform/x86/samsung-laptop.c samsung = container_of(led_cdev, struct samsung_laptop, kbd_led); led_cdev 1131 drivers/platform/x86/samsung-laptop.c static enum led_brightness kbd_led_get(struct led_classdev *led_cdev) led_cdev 1135 drivers/platform/x86/samsung-laptop.c samsung = container_of(led_cdev, struct samsung_laptop, kbd_led); led_cdev 5379 drivers/platform/x86/thinkpad_acpi.c static int kbdlight_sysfs_set(struct led_classdev *led_cdev, led_cdev 5385 drivers/platform/x86/thinkpad_acpi.c static enum led_brightness kbdlight_sysfs_get(struct led_classdev *led_cdev) led_cdev 5444 drivers/platform/x86/thinkpad_acpi.c struct led_classdev *led_cdev; led_cdev 5447 drivers/platform/x86/thinkpad_acpi.c led_cdev = &tpacpi_led_kbdlight.led_classdev; led_cdev 5449 drivers/platform/x86/thinkpad_acpi.c if (ret == 0 && !(led_cdev->flags & LED_SUSPENDED)) led_cdev 5450 drivers/platform/x86/thinkpad_acpi.c led_cdev->brightness = level; led_cdev 5500 drivers/platform/x86/thinkpad_acpi.c struct led_classdev *led_cdev; led_cdev 5505 drivers/platform/x86/thinkpad_acpi.c led_cdev = &tpacpi_led_kbdlight.led_classdev; led_cdev 5506 drivers/platform/x86/thinkpad_acpi.c led_update_brightness(led_cdev); led_cdev 5507 drivers/platform/x86/thinkpad_acpi.c led_classdev_suspend(led_cdev); led_cdev 5567 drivers/platform/x86/thinkpad_acpi.c static int light_sysfs_set(struct led_classdev *led_cdev, led_cdev 5574 drivers/platform/x86/thinkpad_acpi.c static enum led_brightness light_sysfs_get(struct led_classdev *led_cdev) led_cdev 5897 drivers/platform/x86/thinkpad_acpi.c static int led_sysfs_set(struct led_classdev *led_cdev, led_cdev 5900 drivers/platform/x86/thinkpad_acpi.c struct tpacpi_led_classdev *data = container_of(led_cdev, led_cdev 5914 drivers/platform/x86/thinkpad_acpi.c static int led_sysfs_blink_set(struct led_classdev *led_cdev, led_cdev 5917 drivers/platform/x86/thinkpad_acpi.c struct tpacpi_led_classdev *data = container_of(led_cdev, led_cdev 5931 drivers/platform/x86/thinkpad_acpi.c static enum led_brightness led_sysfs_get(struct led_classdev *led_cdev) led_cdev 5935 drivers/platform/x86/thinkpad_acpi.c struct tpacpi_led_classdev *data = container_of(led_cdev, led_cdev 9233 drivers/platform/x86/thinkpad_acpi.c static int tpacpi_led_mute_set(struct led_classdev *led_cdev, led_cdev 9239 drivers/platform/x86/thinkpad_acpi.c static int tpacpi_led_micmute_set(struct led_classdev *led_cdev, led_cdev 97 drivers/staging/greybus/light.c return &channel->fled.led_cdev; led_cdev 549 drivers/staging/greybus/light.c iled = &channel_ind->fled.led_cdev; led_cdev 777 drivers/staging/greybus/light.c fled->led_cdev.flags |= LED_DEV_CAP_FLASH; led_cdev 17 drivers/staging/nvec/nvec_paz00.c #define to_nvec_led(led_cdev) \ led_cdev 18 drivers/staging/nvec/nvec_paz00.c container_of(led_cdev, struct nvec_led, cdev) led_cdev 29 drivers/staging/nvec/nvec_paz00.c static void nvec_led_brightness_set(struct led_classdev *led_cdev, led_cdev 32 drivers/staging/nvec/nvec_paz00.c struct nvec_led *led = to_nvec_led(led_cdev); led_cdev 17 drivers/usb/core/ledtrig-usbport.c struct led_classdev *led_cdev; led_cdev 72 drivers/usb/core/ledtrig-usbport.c struct led_classdev *led_cdev = usbport_data->led_cdev; led_cdev 76 drivers/usb/core/ledtrig-usbport.c led_set_brightness(led_cdev, usbport_data->count ? LED_FULL : LED_OFF); led_cdev 132 drivers/usb/core/ledtrig-usbport.c struct device *dev = usbport_data->led_cdev->dev; led_cdev 187 drivers/usb/core/ledtrig-usbport.c struct led_classdev *led_cdev = usbport_data->led_cdev; led_cdev 218 drivers/usb/core/ledtrig-usbport.c err = sysfs_add_file_to_group(&led_cdev->dev->kobj, &port->attr.attr, led_cdev 251 drivers/usb/core/ledtrig-usbport.c struct led_classdev *led_cdev = usbport_data->led_cdev; led_cdev 254 drivers/usb/core/ledtrig-usbport.c sysfs_remove_file_from_group(&led_cdev->dev->kobj, &port->attr.attr, led_cdev 280 drivers/usb/core/ledtrig-usbport.c struct led_classdev *led_cdev = usbport_data->led_cdev; led_cdev 290 drivers/usb/core/ledtrig-usbport.c led_set_brightness(led_cdev, LED_FULL); led_cdev 295 drivers/usb/core/ledtrig-usbport.c led_set_brightness(led_cdev, LED_OFF); led_cdev 302 drivers/usb/core/ledtrig-usbport.c static int usbport_trig_activate(struct led_classdev *led_cdev) led_cdev 310 drivers/usb/core/ledtrig-usbport.c usbport_data->led_cdev = led_cdev; led_cdev 314 drivers/usb/core/ledtrig-usbport.c err = sysfs_create_group(&led_cdev->dev->kobj, &ports_group); led_cdev 322 drivers/usb/core/ledtrig-usbport.c led_set_trigger_data(led_cdev, usbport_data); led_cdev 331 drivers/usb/core/ledtrig-usbport.c static void usbport_trig_deactivate(struct led_classdev *led_cdev) led_cdev 333 drivers/usb/core/ledtrig-usbport.c struct usbport_trig_data *usbport_data = led_get_trigger_data(led_cdev); led_cdev 340 drivers/usb/core/ledtrig-usbport.c sysfs_remove_group(&led_cdev->dev->kobj, &ports_group); led_cdev 188 drivers/video/backlight/adp8860_bl.c static void adp8860_led_set(struct led_classdev *led_cdev, led_cdev 193 drivers/video/backlight/adp8860_bl.c led = container_of(led_cdev, struct adp8860_led, cdev); led_cdev 203 drivers/video/backlight/adp8870_bl.c static void adp8870_led_set(struct led_classdev *led_cdev, led_cdev 208 drivers/video/backlight/adp8870_bl.c led = container_of(led_cdev, struct adp8870_led, cdev); led_cdev 67 include/linux/led-class-flash.h struct led_classdev led_cdev; led_cdev 85 include/linux/led-class-flash.h return container_of(lcdev, struct led_classdev_flash, led_cdev); led_cdev 91 include/linux/leds.h void (*brightness_set)(struct led_classdev *led_cdev, led_cdev 97 include/linux/leds.h int (*brightness_set_blocking)(struct led_classdev *led_cdev, led_cdev 100 include/linux/leds.h enum led_brightness (*brightness_get)(struct led_classdev *led_cdev); led_cdev 110 include/linux/leds.h int (*blink_set)(struct led_classdev *led_cdev, led_cdev 114 include/linux/leds.h int (*pattern_set)(struct led_classdev *led_cdev, led_cdev 116 include/linux/leds.h int (*pattern_clear)(struct led_classdev *led_cdev); led_cdev 128 include/linux/leds.h void (*flash_resume)(struct led_classdev *led_cdev); led_cdev 165 include/linux/leds.h struct led_classdev *led_cdev, led_cdev 179 include/linux/leds.h struct led_classdev *led_cdev) led_cdev 181 include/linux/leds.h return led_classdev_register_ext(parent, led_cdev, NULL); led_cdev 185 include/linux/leds.h struct led_classdev *led_cdev, led_cdev 189 include/linux/leds.h struct led_classdev *led_cdev) led_cdev 191 include/linux/leds.h return devm_led_classdev_register_ext(parent, led_cdev, NULL); led_cdev 193 include/linux/leds.h extern void led_classdev_unregister(struct led_classdev *led_cdev); led_cdev 195 include/linux/leds.h struct led_classdev *led_cdev); led_cdev 196 include/linux/leds.h extern void led_classdev_suspend(struct led_classdev *led_cdev); led_cdev 197 include/linux/leds.h extern void led_classdev_resume(struct led_classdev *led_cdev); led_cdev 214 include/linux/leds.h extern void led_blink_set(struct led_classdev *led_cdev, led_cdev 231 include/linux/leds.h extern void led_blink_set_oneshot(struct led_classdev *led_cdev, led_cdev 244 include/linux/leds.h extern void led_set_brightness(struct led_classdev *led_cdev, led_cdev 258 include/linux/leds.h extern int led_set_brightness_sync(struct led_classdev *led_cdev, led_cdev 270 include/linux/leds.h extern int led_update_brightness(struct led_classdev *led_cdev); led_cdev 282 include/linux/leds.h extern u32 *led_get_default_pattern(struct led_classdev *led_cdev, led_cdev 291 include/linux/leds.h extern void led_sysfs_disable(struct led_classdev *led_cdev); led_cdev 299 include/linux/leds.h extern void led_sysfs_enable(struct led_classdev *led_cdev); led_cdev 322 include/linux/leds.h static inline bool led_sysfs_is_disabled(struct led_classdev *led_cdev) led_cdev 324 include/linux/leds.h return led_cdev->flags & LED_SYSFS_DISABLE; led_cdev 341 include/linux/leds.h int (*activate)(struct led_classdev *led_cdev); led_cdev 342 include/linux/leds.h void (*deactivate)(struct led_classdev *led_cdev); led_cdev 386 include/linux/leds.h extern void led_trigger_set_default(struct led_classdev *led_cdev); led_cdev 387 include/linux/leds.h extern int led_trigger_set(struct led_classdev *led_cdev, led_cdev 389 include/linux/leds.h extern void led_trigger_remove(struct led_classdev *led_cdev); led_cdev 391 include/linux/leds.h static inline void led_set_trigger_data(struct led_classdev *led_cdev, led_cdev 394 include/linux/leds.h led_cdev->trigger_data = trigger_data; led_cdev 397 include/linux/leds.h static inline void *led_get_trigger_data(struct led_classdev *led_cdev) led_cdev 399 include/linux/leds.h return led_cdev->trigger_data; led_cdev 442 include/linux/leds.h static inline void led_trigger_set_default(struct led_classdev *led_cdev) {} led_cdev 443 include/linux/leds.h static inline int led_trigger_set(struct led_classdev *led_cdev, led_cdev 449 include/linux/leds.h static inline void led_trigger_remove(struct led_classdev *led_cdev) {} led_cdev 450 include/linux/leds.h static inline void led_set_trigger_data(struct led_classdev *led_cdev) {} led_cdev 451 include/linux/leds.h static inline void *led_get_trigger_data(struct led_classdev *led_cdev) led_cdev 563 include/linux/leds.h struct led_classdev *led_cdev, enum led_brightness brightness); led_cdev 566 include/linux/leds.h struct led_classdev *led_cdev, enum led_brightness brightness) { } led_cdev 43 net/bluetooth/leds.c static int power_activate(struct led_classdev *led_cdev) led_cdev 48 net/bluetooth/leds.c htrig = to_hci_basic_led_trigger(led_cdev->trigger); led_cdev 51 net/bluetooth/leds.c led_trigger_event(led_cdev->trigger, powered ? LED_FULL : LED_OFF); led_cdev 57 net/bluetooth/leds.c int (*activate)(struct led_classdev *led_cdev), led_cdev 52 net/mac80211/led.c static int ieee80211_tx_led_activate(struct led_classdev *led_cdev) led_cdev 54 net/mac80211/led.c struct ieee80211_local *local = container_of(led_cdev->trigger, led_cdev 63 net/mac80211/led.c static void ieee80211_tx_led_deactivate(struct led_classdev *led_cdev) led_cdev 65 net/mac80211/led.c struct ieee80211_local *local = container_of(led_cdev->trigger, led_cdev 72 net/mac80211/led.c static int ieee80211_rx_led_activate(struct led_classdev *led_cdev) led_cdev 74 net/mac80211/led.c struct ieee80211_local *local = container_of(led_cdev->trigger, led_cdev 83 net/mac80211/led.c static void ieee80211_rx_led_deactivate(struct led_classdev *led_cdev) led_cdev 85 net/mac80211/led.c struct ieee80211_local *local = container_of(led_cdev->trigger, led_cdev 92 net/mac80211/led.c static int ieee80211_assoc_led_activate(struct led_classdev *led_cdev) led_cdev 94 net/mac80211/led.c struct ieee80211_local *local = container_of(led_cdev->trigger, led_cdev 103 net/mac80211/led.c static void ieee80211_assoc_led_deactivate(struct led_classdev *led_cdev) led_cdev 105 net/mac80211/led.c struct ieee80211_local *local = container_of(led_cdev->trigger, led_cdev 112 net/mac80211/led.c static int ieee80211_radio_led_activate(struct led_classdev *led_cdev) led_cdev 114 net/mac80211/led.c struct ieee80211_local *local = container_of(led_cdev->trigger, led_cdev 123 net/mac80211/led.c static void ieee80211_radio_led_deactivate(struct led_classdev *led_cdev) led_cdev 125 net/mac80211/led.c struct ieee80211_local *local = container_of(led_cdev->trigger, led_cdev 132 net/mac80211/led.c static int ieee80211_tpt_led_activate(struct led_classdev *led_cdev) led_cdev 134 net/mac80211/led.c struct ieee80211_local *local = container_of(led_cdev->trigger, led_cdev 143 net/mac80211/led.c static void ieee80211_tpt_led_deactivate(struct led_classdev *led_cdev) led_cdev 145 net/mac80211/led.c struct ieee80211_local *local = container_of(led_cdev->trigger, led_cdev 262 net/mac80211/led.c struct led_classdev *led_cdev; led_cdev 287 net/mac80211/led.c list_for_each_entry(led_cdev, &local->tpt_led.led_cdevs, trig_list) led_cdev 288 net/mac80211/led.c led_blink_set(led_cdev, &on, &off); led_cdev 344 net/mac80211/led.c struct led_classdev *led_cdev; led_cdev 353 net/mac80211/led.c list_for_each_entry(led_cdev, &local->tpt_led.led_cdevs, trig_list) led_cdev 354 net/mac80211/led.c led_set_brightness(led_cdev, LED_OFF); led_cdev 295 sound/usb/line6/toneport.c static void toneport_led_brightness_set(struct led_classdev *led_cdev, led_cdev 299 sound/usb/line6/toneport.c container_of(led_cdev, struct toneport_led, dev);