Lines Matching refs:list_head
24 struct list_head name = LIST_HEAD_INIT(name)
26 static inline void INIT_LIST_HEAD(struct list_head *list) in INIT_LIST_HEAD()
33 extern bool __list_add_valid(struct list_head *new,
34 struct list_head *prev,
35 struct list_head *next);
36 extern bool __list_del_entry_valid(struct list_head *entry);
38 static inline bool __list_add_valid(struct list_head *new, in __list_add_valid()
39 struct list_head *prev, in __list_add_valid()
40 struct list_head *next) in __list_add_valid()
44 static inline bool __list_del_entry_valid(struct list_head *entry) in __list_del_entry_valid()
56 static inline void __list_add(struct list_head *new, in __list_add()
57 struct list_head *prev, in __list_add()
58 struct list_head *next) in __list_add()
77 static inline void list_add(struct list_head *new, struct list_head *head) in list_add()
91 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail()
103 static inline void __list_del(struct list_head * prev, struct list_head * next) in __list_del()
117 static inline void __list_del_clearprev(struct list_head *entry) in __list_del_clearprev()
129 static inline void __list_del_entry(struct list_head *entry) in __list_del_entry()
137 static inline void list_del(struct list_head *entry) in list_del()
151 static inline void list_replace(struct list_head *old, in list_replace()
152 struct list_head *new) in list_replace()
160 static inline void list_replace_init(struct list_head *old, in list_replace_init()
161 struct list_head *new) in list_replace_init()
172 static inline void list_swap(struct list_head *entry1, in list_swap()
173 struct list_head *entry2) in list_swap()
175 struct list_head *pos = entry2->prev; in list_swap()
188 static inline void list_del_init(struct list_head *entry) in list_del_init()
199 static inline void list_move(struct list_head *list, struct list_head *head) in list_move()
210 static inline void list_move_tail(struct list_head *list, in list_move_tail()
211 struct list_head *head) in list_move_tail()
226 static inline void list_bulk_move_tail(struct list_head *head, in list_bulk_move_tail()
227 struct list_head *first, in list_bulk_move_tail()
228 struct list_head *last) in list_bulk_move_tail()
245 static inline int list_is_first(const struct list_head *list, in list_is_first()
246 const struct list_head *head) in list_is_first()
256 static inline int list_is_last(const struct list_head *list, in list_is_last()
257 const struct list_head *head) in list_is_last()
266 static inline int list_empty(const struct list_head *head) in list_empty()
284 static inline int list_empty_careful(const struct list_head *head) in list_empty_careful()
286 struct list_head *next = head->next; in list_empty_careful()
294 static inline void list_rotate_left(struct list_head *head) in list_rotate_left()
296 struct list_head *first; in list_rotate_left()
311 static inline void list_rotate_to_front(struct list_head *list, in list_rotate_to_front()
312 struct list_head *head) in list_rotate_to_front()
326 static inline int list_is_singular(const struct list_head *head) in list_is_singular()
331 static inline void __list_cut_position(struct list_head *list, in __list_cut_position()
332 struct list_head *head, struct list_head *entry) in __list_cut_position()
334 struct list_head *new_first = entry->next; in __list_cut_position()
357 static inline void list_cut_position(struct list_head *list, in list_cut_position()
358 struct list_head *head, struct list_head *entry) in list_cut_position()
385 static inline void list_cut_before(struct list_head *list, in list_cut_before()
386 struct list_head *head, in list_cut_before()
387 struct list_head *entry) in list_cut_before()
401 static inline void __list_splice(const struct list_head *list, in __list_splice()
402 struct list_head *prev, in __list_splice()
403 struct list_head *next) in __list_splice()
405 struct list_head *first = list->next; in __list_splice()
406 struct list_head *last = list->prev; in __list_splice()
420 static inline void list_splice(const struct list_head *list, in list_splice()
421 struct list_head *head) in list_splice()
432 static inline void list_splice_tail(struct list_head *list, in list_splice_tail()
433 struct list_head *head) in list_splice_tail()
446 static inline void list_splice_init(struct list_head *list, in list_splice_init()
447 struct list_head *head) in list_splice_init()
463 static inline void list_splice_tail_init(struct list_head *list, in list_splice_tail_init()
464 struct list_head *head) in list_splice_tail_init()
512 struct list_head *head__ = (ptr); \
513 struct list_head *pos__ = READ_ONCE(head__->next); \