Searched refs:last_stable (Results 1 – 2 of 2) sorted by relevance
53 unsigned int last_stable; member145 encoder->dir = ((encoder->last_stable - state + 1) % 4) - 1; in rotary_encoder_half_period_irq()147 if (state != encoder->last_stable) { in rotary_encoder_half_period_irq()149 encoder->last_stable = state; in rotary_encoder_half_period_irq()165 if ((encoder->last_stable + 1) % 4 == state) { in rotary_encoder_quarter_period_irq()168 } else if (encoder->last_stable == (state + 1) % 4) { in rotary_encoder_quarter_period_irq()173 encoder->last_stable = state; in rotary_encoder_quarter_period_irq()257 encoder->last_stable = rotary_encoder_get_state(encoder); in rotary_encoder_probe()261 encoder->last_stable = rotary_encoder_get_state(encoder); in rotary_encoder_probe()
21 u32 last_stable; member52 if (state >= 0 && state != decoder->last_stable) { in gpio_decoder_poll_gpios()55 decoder->last_stable = state; in gpio_decoder_poll_gpios()