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()
345 int event_tail; member1173 return as->event_head == as->event_tail; in queue_empty()1178 if (++as->event_tail >= APM_MAX_EVENTS) in get_queued_event()1179 as->event_tail = 0; in get_queued_event()1180 return as->events[as->event_tail]; in get_queued_event()1196 if (as->event_head == as->event_tail) { in queue_event()1201 if (++as->event_tail >= APM_MAX_EVENTS) in queue_event()1202 as->event_tail = 0; in queue_event()1620 as->event_tail = as->event_head = 0; in do_open()