Home
last modified time | relevance | path

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

/openbmc/linux/drivers/input/misc/
H A Drotary_encoder.c53 unsigned int last_stable; member
147 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()
264 encoder->last_stable = rotary_encoder_get_state(encoder); in rotary_encoder_probe()
268 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()