Searched refs:evbuf (Results 1 – 2 of 2) sorted by relevance
40 static inline int evbuf_empty(const struct mtdev_evbuf *evbuf) in evbuf_empty() argument42 return evbuf->head == evbuf->tail; in evbuf_empty()45 static inline void evbuf_put(struct mtdev_evbuf *evbuf, in evbuf_put() argument48 evbuf->buffer[evbuf->head++] = *ev; in evbuf_put()49 evbuf->head &= DIM_EVENTS - 1; in evbuf_put()52 static inline void evbuf_get(struct mtdev_evbuf *evbuf, in evbuf_get() argument55 *ev = evbuf->buffer[evbuf->tail++]; in evbuf_get()56 evbuf->tail &= DIM_EVENTS - 1; in evbuf_get()
9 evbuf.h \