Lines Matching defs:state
20 * struct syscon_led - state container for syscon based LEDs
25 * @state: current state of the LED
32 bool state;
45 sled->state = false;
48 sled->state = true;
64 const char *state;
89 state = of_get_property(np, "default-state", NULL);
90 if (state) {
91 if (!strcmp(state, "keep")) {
97 sled->state = !!(val & sled->mask);
98 } else if (!strcmp(state, "on")) {
99 sled->state = true;
106 sled->state = false;