Lines Matching refs:entry
27 static inline void list_add(struct List *entry, struct List *node) in list_add() argument
30 node->next = entry->next; in list_add()
32 node->prev = entry; in list_add()
36 entry->next = node; in list_add()
44 static inline void list_append(struct List *entry, struct List *node) in list_append() argument
47 struct List *tail = entry->prev; in list_append()
55 static inline void list_del(struct List *entry) in list_del() argument
58 entry->next->prev = entry->prev; in list_del()
59 entry->prev->next = entry->next; in list_del()
66 #define list_del_init(entry) \ argument
67 list_del(entry); \
68 list_init(entry);
89 static inline bool list_empty(struct List *entry) in list_empty() argument
96 if (entry == entry->next && entry->prev == entry) in list_empty()
108 static inline struct List *list_prev(struct List *entry) in list_prev() argument
110 if (entry->prev != NULL) in list_prev()
111 return entry->prev; in list_prev()
122 static inline struct List *list_next(struct List *entry) in list_next() argument
124 if (entry->next != NULL) in list_next()
125 return entry->next; in list_next()