Lines Matching defs:item
32 static inline void dl_list_add(struct dl_list *list, struct dl_list *item)
34 item->next = list->next;
35 item->prev = list;
36 list->next->prev = item;
37 list->next = item;
40 static inline void dl_list_add_tail(struct dl_list *list, struct dl_list *item)
42 dl_list_add(list->prev, item);
45 static inline void dl_list_del(struct dl_list *item)
47 item->next->prev = item->prev;
48 item->prev->next = item->next;
49 item->next = NULL;
50 item->prev = NULL;
60 struct dl_list *item;
62 for (item = list->next; item != list; item = item->next)
71 #define dl_list_entry(item, type, member) \
72 ((type *) ((char *) item - offsetof(type, member)))
78 #define dl_list_for_each(item, list, type, member) \
79 for (item = dl_list_entry((list)->next, type, member); \
80 &item->member != (list); \
81 item = dl_list_entry(item->member.next, type, member))
83 #define dl_list_for_each_safe(item, n, list, type, member) \
84 for (item = dl_list_entry((list)->next, type, member), \
85 n = dl_list_entry(item->member.next, type, member); \
86 &item->member != (list); \
87 item = n, n = dl_list_entry(n->member.next, type, member))