sled 38 drivers/leds/leds-syscon.c struct syscon_led *sled = sled 45 drivers/leds/leds-syscon.c sled->state = false; sled 47 drivers/leds/leds-syscon.c val = sled->mask; sled 48 drivers/leds/leds-syscon.c sled->state = true; sled 51 drivers/leds/leds-syscon.c ret = regmap_update_bits(sled->map, sled->offset, sled->mask, val); sled 53 drivers/leds/leds-syscon.c dev_err(sled->cdev.dev, "error updating LED status\n"); sled 62 drivers/leds/leds-syscon.c struct syscon_led *sled; sled 77 drivers/leds/leds-syscon.c sled = devm_kzalloc(dev, sizeof(*sled), GFP_KERNEL); sled 78 drivers/leds/leds-syscon.c if (!sled) sled 81 drivers/leds/leds-syscon.c sled->map = map; sled 83 drivers/leds/leds-syscon.c if (of_property_read_u32(np, "offset", &sled->offset)) sled 85 drivers/leds/leds-syscon.c if (of_property_read_u32(np, "mask", &sled->mask)) sled 87 drivers/leds/leds-syscon.c sled->cdev.name = sled 89 drivers/leds/leds-syscon.c sled->cdev.default_trigger = sled 97 drivers/leds/leds-syscon.c ret = regmap_read(map, sled->offset, &val); sled 100 drivers/leds/leds-syscon.c sled->state = !!(val & sled->mask); sled 102 drivers/leds/leds-syscon.c sled->state = true; sled 103 drivers/leds/leds-syscon.c ret = regmap_update_bits(map, sled->offset, sled 104 drivers/leds/leds-syscon.c sled->mask, sled 105 drivers/leds/leds-syscon.c sled->mask); sled 109 drivers/leds/leds-syscon.c sled->state = false; sled 110 drivers/leds/leds-syscon.c ret = regmap_update_bits(map, sled->offset, sled 111 drivers/leds/leds-syscon.c sled->mask, 0); sled 116 drivers/leds/leds-syscon.c sled->cdev.brightness_set = syscon_led_set; sled 118 drivers/leds/leds-syscon.c ret = devm_led_classdev_register(dev, &sled->cdev); sled 122 drivers/leds/leds-syscon.c platform_set_drvdata(pdev, sled); sled 123 drivers/leds/leds-syscon.c dev_info(dev, "registered LED %s\n", sled->cdev.name);