Lines Matching refs:__item

11 #define containerOf(__item, __type, __field)				\  argument
12 ((__type *)(((char *) (__item)) - offsetof(__type, __field)))
21 #define WSBMINITLISTHEAD(__item) \ argument
23 (__item)->prev = (__item); \
24 (__item)->next = (__item); \
27 #define WSBMLISTADD(__item, __list) \ argument
29 (__item)->prev = (__list); \
30 (__item)->next = (__list)->next; \
31 (__list)->next->prev = (__item); \
32 (__list)->next = (__item); \
35 #define WSBMLISTADDTAIL(__item, __list) \ argument
37 (__item)->next = (__list); \
38 (__item)->prev = (__list)->prev; \
39 (__list)->prev->next = (__item); \
40 (__list)->prev = (__item); \
43 #define WSBMLISTDEL(__item) \ argument
45 (__item)->prev->next = (__item)->next; \
46 (__item)->next->prev = (__item)->prev; \
49 #define WSBMLISTDELINIT(__item) \ argument
51 (__item)->prev->next = (__item)->next; \
52 (__item)->next->prev = (__item)->prev; \
53 (__item)->next = (__item); \
54 (__item)->prev = (__item); \
57 #define WSBMLISTFOREACH(__item, __list) \ argument
58 for((__item) = (__list)->next; (__item) != (__list); (__item) = (__item)->next)
60 #define WSBMLISTFOREACHPREV(__item, __list) \ argument
61 for((__item) = (__list)->prev; (__item) != (__list); (__item) = (__item)->prev)
63 #define WSBMLISTFOREACHSAFE(__item, __next, __list) \ argument
64 for((__item) = (__list)->next, (__next) = (__item)->next; \
65 (__item) != (__list); \
66 (__item) = (__next), (__next) = (__item)->next)
68 #define WSBMLISTFOREACHPREVSAFE(__item, __prev, __list) \ argument
69 for((__item) = (__list)->prev, (__prev) = (__item->prev); \
70 (__item) != (__list); \
71 (__item) = (__prev), (__prev) = (__item)->prev)
73 #define WSBMLISTENTRY(__item, __type, __field) \ argument
74 containerOf(__item, __type, __field)