Lines Matching refs:MAX_EVENTS
21 #define MAX_EVENTS 256*4
56 unsigned events[MAX_EVENTS];
123 enqueued += MAX_EVENTS;
125 if (enqueued + 3 > MAX_EVENTS) {
141 s->last = (s->last + 1) & (MAX_EVENTS-1);
143 s->last = (s->last + 1) & (MAX_EVENTS-1);
145 s->last = (s->last + 1) & (MAX_EVENTS-1);
158 s->first = (s->first + 1) & (MAX_EVENTS - 1);
174 else if (((s->first + 2) & (MAX_EVENTS - 1)) < s->last ||
175 (s->first & (MAX_EVENTS - 1)) > s->last) { /* if there still is an event */