Searched refs:event_tail (Results 1 – 2 of 2) sorted by relevance
57 unsigned int event_tail; member179 return q->event_head == q->event_tail; in queue_empty()184 q->event_tail = (q->event_tail + 1) % APM_MAX_EVENTS; in queue_get_event()185 return q->events[q->event_tail]; in queue_get_event()191 if (q->event_head == q->event_tail) { in queue_add_event()196 q->event_tail = (q->event_tail + 1) % APM_MAX_EVENTS; in queue_add_event()
351 int event_tail; member1161 return as->event_head == as->event_tail; in queue_empty()1166 if (++as->event_tail >= APM_MAX_EVENTS) in get_queued_event()1167 as->event_tail = 0; in get_queued_event()1168 return as->events[as->event_tail]; in get_queued_event()1184 if (as->event_head == as->event_tail) { in queue_event()1189 if (++as->event_tail >= APM_MAX_EVENTS) in queue_event()1190 as->event_tail = 0; in queue_event()1615 as->event_tail = as->event_head = 0; in do_open()