Lines Matching defs:state
64 uint8_t state;
120 * state. Intermediate states should start / bump the refcount on the
148 if (each[n].state == LBCS_IDLE) {
155 each[n].state = LBCS_MIN_DOWN_QUALIFY;
170 * the switch to a deterministic-ish state.
172 * If the switch remains in that state, well, it makes no
177 * network charge state itself.
183 * to the switch state. But if an interrupt comes and we have
186 * telling us. We can't trust the gpio state if we read it now
217 if (each[n].state == LBCS_IDLE)
231 // lwsl_notice("%d\n", each[n].state);
233 switch (each[n].state) {
256 each[n].state = LBCS_UP_SETTLE2;
268 each[n].state = LBCS_ASSESS_DOWN_HOLD;
282 each[n].state = LBCS_WAIT_UP;
304 each[n].state = LBCS_UP_SETTLE1;
313 each[n].state = LBCS_WAIT_DOUBLECLICK;
324 each[n].state = LBCS_MIN_DOWN_QUALIFY2;
351 each[n].state = LBCS_UP_SETTLE2;
360 each[n].state = LBCS_WAIT_UP;
368 each[n].state = LBCS_UP_SETTLE2;
376 each[n].state = LBCS_IDLE;