Lines Matching refs:__list
46 #define DRMLISTADD(__item, __list) \ argument
48 (__item)->prev = (__list); \
49 (__item)->next = (__list)->next; \
50 (__list)->next->prev = (__item); \
51 (__list)->next = (__item); \
54 #define DRMLISTADDTAIL(__item, __list) \ argument
56 (__item)->next = (__list); \
57 (__item)->prev = (__list)->prev; \
58 (__list)->prev->next = (__item); \
59 (__list)->prev = (__item); \
81 #define DRMLISTSINGLE(__list) \ argument
82 (!DRMLISTEMPTY(__list) && ((__list)->next == (__list)->prev))
84 #define DRMLISTFOREACH(__item, __list) \ argument
85 for ((__item) = (__list)->next; \
86 (__item) != (__list); (__item) = (__item)->next)
88 #define DRMLISTFOREACHSAFE(__item, __temp, __list) \ argument
89 for ((__item) = (__list)->next, (__temp) = (__item)->next; \
90 (__item) != (__list); \
93 #define DRMLISTFOREACHSAFEREVERSE(__item, __temp, __list) \ argument
94 for ((__item) = (__list)->prev, (__temp) = (__item)->prev; \
95 (__item) != (__list); \
98 #define DRMLISTFOREACHENTRY(__item, __list, __head) \ argument
99 for ((__item) = DRMLISTENTRY(typeof(*__item), (__list)->next, __head); \
100 &(__item)->__head != (__list); \
104 #define DRMLISTFOREACHENTRYSAFE(__item, __temp, __list, __head) \ argument
105 for ((__item) = DRMLISTENTRY(typeof(*__item), (__list)->next, __head), \
108 &(__item)->__head != (__list); \
113 #define DRMLISTJOIN(__list, __join) if (!DRMLISTEMPTY(__list)) { \ argument
114 (__list)->next->prev = (__join); \
115 (__list)->prev->next = (__join)->next; \
116 (__join)->next->prev = (__list)->prev; \
117 (__join)->next = (__list)->next; \