Lines Matching refs:list_head
24 struct list_head name = LIST_HEAD_INIT(name)
33 static inline void INIT_LIST_HEAD(struct list_head *list) in INIT_LIST_HEAD()
40 extern bool __list_add_valid(struct list_head *new,
41 struct list_head *prev,
42 struct list_head *next);
43 extern bool __list_del_entry_valid(struct list_head *entry);
45 static inline bool __list_add_valid(struct list_head *new, in __list_add_valid()
46 struct list_head *prev, in __list_add_valid()
47 struct list_head *next) in __list_add_valid()
51 static inline bool __list_del_entry_valid(struct list_head *entry) in __list_del_entry_valid()
63 static inline void __list_add(struct list_head *new, in __list_add()
64 struct list_head *prev, in __list_add()
65 struct list_head *next) in __list_add()
84 static inline void list_add(struct list_head *new, struct list_head *head) in list_add()
98 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail()
110 static inline void __list_del(struct list_head * prev, struct list_head * next) in __list_del()
124 static inline void __list_del_clearprev(struct list_head *entry) in __list_del_clearprev()
130 static inline void __list_del_entry(struct list_head *entry) in __list_del_entry()
144 static inline void list_del(struct list_head *entry) in list_del()
158 static inline void list_replace(struct list_head *old, in list_replace()
159 struct list_head *new) in list_replace()
174 static inline void list_replace_init(struct list_head *old, in list_replace_init()
175 struct list_head *new) in list_replace_init()
186 static inline void list_swap(struct list_head *entry1, in list_swap()
187 struct list_head *entry2) in list_swap()
189 struct list_head *pos = entry2->prev; in list_swap()
202 static inline void list_del_init(struct list_head *entry) in list_del_init()
213 static inline void list_move(struct list_head *list, struct list_head *head) in list_move()
224 static inline void list_move_tail(struct list_head *list, in list_move_tail()
225 struct list_head *head) in list_move_tail()
240 static inline void list_bulk_move_tail(struct list_head *head, in list_bulk_move_tail()
241 struct list_head *first, in list_bulk_move_tail()
242 struct list_head *last) in list_bulk_move_tail()
259 static inline int list_is_first(const struct list_head *list, in list_is_first()
260 const struct list_head *head) in list_is_first()
270 static inline int list_is_last(const struct list_head *list, in list_is_last()
271 const struct list_head *head) in list_is_last()
280 static inline int list_empty(const struct list_head *head) in list_empty()
296 static inline void list_del_init_careful(struct list_head *entry) in list_del_init_careful()
316 static inline int list_empty_careful(const struct list_head *head) in list_empty_careful()
318 struct list_head *next = smp_load_acquire(&head->next); in list_empty_careful()
326 static inline void list_rotate_left(struct list_head *head) in list_rotate_left()
328 struct list_head *first; in list_rotate_left()
343 static inline void list_rotate_to_front(struct list_head *list, in list_rotate_to_front()
344 struct list_head *head) in list_rotate_to_front()
358 static inline int list_is_singular(const struct list_head *head) in list_is_singular()
363 static inline void __list_cut_position(struct list_head *list, in __list_cut_position()
364 struct list_head *head, struct list_head *entry) in __list_cut_position()
366 struct list_head *new_first = entry->next; in __list_cut_position()
389 static inline void list_cut_position(struct list_head *list, in list_cut_position()
390 struct list_head *head, struct list_head *entry) in list_cut_position()
417 static inline void list_cut_before(struct list_head *list, in list_cut_before()
418 struct list_head *head, in list_cut_before()
419 struct list_head *entry) in list_cut_before()
433 static inline void __list_splice(const struct list_head *list, in __list_splice()
434 struct list_head *prev, in __list_splice()
435 struct list_head *next) in __list_splice()
437 struct list_head *first = list->next; in __list_splice()
438 struct list_head *last = list->prev; in __list_splice()
452 static inline void list_splice(const struct list_head *list, in list_splice()
453 struct list_head *head) in list_splice()
464 static inline void list_splice_tail(struct list_head *list, in list_splice_tail()
465 struct list_head *head) in list_splice_tail()
478 static inline void list_splice_init(struct list_head *list, in list_splice_init()
479 struct list_head *head) in list_splice_init()
495 static inline void list_splice_tail_init(struct list_head *list, in list_splice_tail_init()
496 struct list_head *head) in list_splice_tail_init()
544 struct list_head *head__ = (ptr); \
545 struct list_head *pos__ = READ_ONCE(head__->next); \