Lines Matching defs:state
40 /* Last rotary encoder state, or U8_MAX for none */
45 * uclogic_inrange_timeout - handle pen in-range state timeout.
61 /* If BTN_TOUCH state is changing */
318 /* If need to, and can, read rotary encoder state change */
326 /* Read Gray-coded state */
327 u8 state = (data[byte] >> bit) & 0x3;
328 /* Encode state change into 2-bit signed integer */
329 if ((prev_state == 1 && state == 0) ||
330 (prev_state == 2 && state == 3)) {
332 } else if ((prev_state == 2 && state == 0) ||
333 (prev_state == 1 && state == 3)) {
341 /* Remember state */
342 drvdata->re_state = state;