Home
last modified time | relevance | path

Searched refs:last_stable (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/input/misc/
H A Drotary_encoder.c53 unsigned int last_stable; member
145 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()
H A Dgpio_decoder.c21 u32 last_stable; member
52 if (state >= 0 && state != decoder->last_stable) { in gpio_decoder_poll_gpios()
55 decoder->last_stable = state; in gpio_decoder_poll_gpios()