Searched refs:event_tail (Results 1 – 2 of 2) sorted by relevance
47 unsigned int event_tail; member168 return q->event_head == q->event_tail; in queue_empty()173 q->event_tail = (q->event_tail + 1) % APM_MAX_EVENTS; in queue_get_event()174 return q->events[q->event_tail]; in queue_get_event()180 if (q->event_head == q->event_tail) { in queue_add_event()185 q->event_tail = (q->event_tail + 1) % APM_MAX_EVENTS; in queue_add_event()
339 int event_tail; member1167 return as->event_head == as->event_tail; in queue_empty()1172 if (++as->event_tail >= APM_MAX_EVENTS) in get_queued_event()1173 as->event_tail = 0; in get_queued_event()1174 return as->events[as->event_tail]; in get_queued_event()1190 if (as->event_head == as->event_tail) { in queue_event()1195 if (++as->event_tail >= APM_MAX_EVENTS) in queue_event()1196 as->event_tail = 0; in queue_event()1614 as->event_tail = as->event_head = 0; in do_open()