Lines Matching refs:leds
78 if (ar->leds[i].registered) { in carl9170_led_update()
79 if (ar->leds[i].last_state || in carl9170_led_update()
80 ar->leds[i].toggled) { in carl9170_led_update()
82 if (ar->leds[i].toggled) in carl9170_led_update()
83 tmp = 70 + 200 / (ar->leds[i].toggled); in carl9170_led_update()
89 ar->leds[i].toggled = 0; in carl9170_led_update()
129 snprintf(ar->leds[i].name, sizeof(ar->leds[i].name), in carl9170_led_register_led()
132 ar->leds[i].ar = ar; in carl9170_led_register_led()
133 ar->leds[i].l.name = ar->leds[i].name; in carl9170_led_register_led()
134 ar->leds[i].l.brightness_set = carl9170_led_set_brightness; in carl9170_led_register_led()
135 ar->leds[i].l.brightness = 0; in carl9170_led_register_led()
136 ar->leds[i].l.default_trigger = trigger; in carl9170_led_register_led()
139 &ar->leds[i].l); in carl9170_led_register_led()
142 ar->leds[i].name, err); in carl9170_led_register_led()
144 ar->leds[i].registered = true; in carl9170_led_register_led()
155 if (ar->leds[i].registered) { in carl9170_led_unregister()
156 led_classdev_unregister(&ar->leds[i].l); in carl9170_led_unregister()
157 ar->leds[i].registered = false; in carl9170_led_unregister()
158 ar->leds[i].toggled = 0; in carl9170_led_unregister()