Home
last modified time | relevance | path

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

/linux/drivers/input/keyboard/
H A Dpxa27x_keypad.c477 static inline int rotary_delta(uint32_t kprec) in rotary_delta() argument
479 if (kprec & KPREC_OF0) in rotary_delta()
480 return (kprec & 0xff) + 0x7f; in rotary_delta()
481 else if (kprec & KPREC_UF0) in rotary_delta()
482 return (kprec & 0xff) - 0x7f - 0xff; in rotary_delta()
484 return (kprec & 0xff) - 0x7f; in rotary_delta()
514 uint32_t kprec; in pxa27x_keypad_scan_rotary() local
517 kprec = keypad_readl(KPREC); in pxa27x_keypad_scan_rotary()
521 report_rotary_event(keypad, 0, rotary_delta(kprec)); in pxa27x_keypad_scan_rotary()
524 report_rotary_event(keypad, 1, rotary_delta(kprec >> 16)); in pxa27x_keypad_scan_rotary()