Home
last modified time | relevance | path

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

/openbmc/qemu/hw/input/
H A Dhid.c126 e = &hs->ptr.queue[(hs->head + hs->n) & QUEUE_MASK]; in hid_pointer_event()
182 prev = &hs->ptr.queue[(hs->head + hs->n - 1) & QUEUE_MASK]; in hid_pointer_sync()
183 curr = &hs->ptr.queue[(hs->head + hs->n) & QUEUE_MASK]; in hid_pointer_sync()
184 next = &hs->ptr.queue[(hs->head + hs->n + 1) & QUEUE_MASK]; in hid_pointer_sync()
244 slot = (hs->head + hs->n) & QUEUE_MASK; hs->n++; in hid_keyboard_event()
258 slot = hs->head & QUEUE_MASK; QUEUE_INCR(hs->head); hs->n--; in hid_keyboard_process_keycode()
371 e = &hs->ptr.queue[index & QUEUE_MASK]; in hid_pointer_poll()
568 evt = s->ptr.queue[(s->head+s->n) & QUEUE_MASK]; in hid_post_load()
/openbmc/qemu/include/hw/input/
H A Dhid.h16 #define QUEUE_MASK (QUEUE_LENGTH-1u) macro
17 #define QUEUE_INCR(v) ((v)++, (v) &= QUEUE_MASK)