Lines Matching refs:__item
40 #define DRMINITLISTHEAD(__item) \ argument
42 (__item)->prev = (__item); \
43 (__item)->next = (__item); \
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); \
62 #define DRMLISTDEL(__item) \ argument
64 (__item)->prev->next = (__item)->next; \
65 (__item)->next->prev = (__item)->prev; \
68 #define DRMLISTDELINIT(__item) \ argument
70 (__item)->prev->next = (__item)->next; \
71 (__item)->next->prev = (__item)->prev; \
72 (__item)->next = (__item); \
73 (__item)->prev = (__item); \
76 #define DRMLISTENTRY(__type, __item, __field) \ argument
77 ((__type *)(((char *) (__item)) - offsetof(__type, __field)))
79 #define DRMLISTEMPTY(__item) ((__item)->next == (__item)) argument
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); \
91 (__item) = (__temp), (__temp) = (__item)->next)
93 #define DRMLISTFOREACHSAFEREVERSE(__item, __temp, __list) \ argument
94 for ((__item) = (__list)->prev, (__temp) = (__item)->prev; \
95 (__item) != (__list); \
96 (__item) = (__temp), (__temp) = (__item)->prev)
98 #define DRMLISTFOREACHENTRY(__item, __list, __head) \ argument
99 for ((__item) = DRMLISTENTRY(typeof(*__item), (__list)->next, __head); \
100 &(__item)->__head != (__list); \
101 (__item) = DRMLISTENTRY(typeof(*__item), \
102 (__item)->__head.next, __head))
104 #define DRMLISTFOREACHENTRYSAFE(__item, __temp, __list, __head) \ argument
105 for ((__item) = DRMLISTENTRY(typeof(*__item), (__list)->next, __head), \
106 (__temp) = DRMLISTENTRY(typeof(*__item), \
107 (__item)->__head.next, __head); \
108 &(__item)->__head != (__list); \
109 (__item) = (__temp), \
110 (__temp) = DRMLISTENTRY(typeof(*__item), \