Searched refs:last_stable (Results 1 – 2 of 2) sorted by relevance
53 unsigned int last_stable; member147 encoder->dir = ((encoder->last_stable - state + 1) % 4) - 1; in rotary_encoder_half_period_irq()149 if (state != encoder->last_stable) { in rotary_encoder_half_period_irq()151 encoder->last_stable = state; in rotary_encoder_half_period_irq()169 if ((encoder->last_stable + 1) % 4 == state) in rotary_encoder_quarter_period_irq()171 else if (encoder->last_stable == (state + 1) % 4) in rotary_encoder_quarter_period_irq()179 encoder->last_stable = state; in rotary_encoder_quarter_period_irq()269 encoder->last_stable = rotary_encoder_get_state(encoder); in rotary_encoder_probe()273 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()