Lines Matching refs:prev
29 #define LWRES_LINK(type) struct { type *prev, *next; }
32 (elt)->link.prev = (void *)(-1); \
36 ((void *)((elt)->link.prev) != (void *)(-1))
45 (list).head->link.prev = (elt); \
48 (elt)->link.prev = NULL; \
59 (elt)->link.prev = (list).tail; \
67 (elt)->link.next->link.prev = (elt)->link.prev; \
69 (list).tail = (elt)->link.prev; \
70 if ((elt)->link.prev != NULL) \
71 (elt)->link.prev->link.next = (elt)->link.next; \
74 (elt)->link.prev = (void *)(-1); \
78 #define LWRES_LIST_PREV(elt, link) ((elt)->link.prev)
83 if ((before)->link.prev == NULL) \
86 (elt)->link.prev = (before)->link.prev; \
87 (before)->link.prev = (elt); \
88 (elt)->link.prev->link.next = (elt); \
100 (elt)->link.next->link.prev = (elt); \
101 (elt)->link.prev = (after); \
111 (list2).head->link.prev = (list1).tail; \