Lines Matching refs:h
24 #define uv__queue_foreach(q, h) \ argument
25 for ((q) = (h)->next; (q) != (h); (q) = (q)->next)
44 static inline void uv__queue_add(struct uv__queue* h, struct uv__queue* n) { in uv__queue_add() argument
45 h->prev->next = n->next; in uv__queue_add()
46 n->next->prev = h->prev; in uv__queue_add()
47 h->prev = n->prev; in uv__queue_add()
48 h->prev->next = h; in uv__queue_add()
51 static inline void uv__queue_split(struct uv__queue* h, in uv__queue_split() argument
54 n->prev = h->prev; in uv__queue_split()
57 h->prev = q->prev; in uv__queue_split()
58 h->prev->next = h; in uv__queue_split()
62 static inline void uv__queue_move(struct uv__queue* h, struct uv__queue* n) { in uv__queue_move() argument
63 if (uv__queue_empty(h)) in uv__queue_move()
66 uv__queue_split(h, h->next, n); in uv__queue_move()
69 static inline void uv__queue_insert_head(struct uv__queue* h, in uv__queue_insert_head() argument
71 q->next = h->next; in uv__queue_insert_head()
72 q->prev = h; in uv__queue_insert_head()
74 h->next = q; in uv__queue_insert_head()
77 static inline void uv__queue_insert_tail(struct uv__queue* h, in uv__queue_insert_tail() argument
79 q->next = h; in uv__queue_insert_tail()
80 q->prev = h->prev; in uv__queue_insert_tail()
82 h->prev = q; in uv__queue_insert_tail()