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; member1138 return as->event_head == as->event_tail; in queue_empty()1143 if (++as->event_tail >= APM_MAX_EVENTS) in get_queued_event()1144 as->event_tail = 0; in get_queued_event()1145 return as->events[as->event_tail]; in get_queued_event()1161 if (as->event_head == as->event_tail) { in queue_event()1166 if (++as->event_tail >= APM_MAX_EVENTS) in queue_event()1167 as->event_tail = 0; in queue_event()1585 as->event_tail = as->event_head = 0; in do_open()