Lines Matching refs:list_head

26 	struct list_head name = LIST_HEAD_INIT(name)
35 static inline void INIT_LIST_HEAD(struct list_head *list) in INIT_LIST_HEAD()
42 extern bool __list_add_valid(struct list_head *new,
43 struct list_head *prev,
44 struct list_head *next);
45 extern bool __list_del_entry_valid(struct list_head *entry);
47 static inline bool __list_add_valid(struct list_head *new, in __list_add_valid()
48 struct list_head *prev, in __list_add_valid()
49 struct list_head *next) in __list_add_valid()
53 static inline bool __list_del_entry_valid(struct list_head *entry) in __list_del_entry_valid()
65 static inline void __list_add(struct list_head *new, in __list_add()
66 struct list_head *prev, in __list_add()
67 struct list_head *next) in __list_add()
86 static inline void list_add(struct list_head *new, struct list_head *head) in list_add()
100 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail()
112 static inline void __list_del(struct list_head * prev, struct list_head * next) in __list_del()
126 static inline void __list_del_clearprev(struct list_head *entry) in __list_del_clearprev()
132 static inline void __list_del_entry(struct list_head *entry) in __list_del_entry()
146 static inline void list_del(struct list_head *entry) in list_del()
160 static inline void list_replace(struct list_head *old, in list_replace()
161 struct list_head *new) in list_replace()
176 static inline void list_replace_init(struct list_head *old, in list_replace_init()
177 struct list_head *new) in list_replace_init()
188 static inline void list_swap(struct list_head *entry1, in list_swap()
189 struct list_head *entry2) in list_swap()
191 struct list_head *pos = entry2->prev; in list_swap()
204 static inline void list_del_init(struct list_head *entry) in list_del_init()
215 static inline void list_move(struct list_head *list, struct list_head *head) in list_move()
226 static inline void list_move_tail(struct list_head *list, in list_move_tail()
227 struct list_head *head) in list_move_tail()
242 static inline void list_bulk_move_tail(struct list_head *head, in list_bulk_move_tail()
243 struct list_head *first, in list_bulk_move_tail()
244 struct list_head *last) in list_bulk_move_tail()
261 static inline int list_is_first(const struct list_head *list, const struct list_head *head) in list_is_first()
271 static inline int list_is_last(const struct list_head *list, const struct list_head *head) in list_is_last()
281 static inline int list_is_head(const struct list_head *list, const struct list_head *head) in list_is_head()
290 static inline int list_empty(const struct list_head *head) in list_empty()
306 static inline void list_del_init_careful(struct list_head *entry) in list_del_init_careful()
326 static inline int list_empty_careful(const struct list_head *head) in list_empty_careful()
328 struct list_head *next = smp_load_acquire(&head->next); in list_empty_careful()
336 static inline void list_rotate_left(struct list_head *head) in list_rotate_left()
338 struct list_head *first; in list_rotate_left()
353 static inline void list_rotate_to_front(struct list_head *list, in list_rotate_to_front()
354 struct list_head *head) in list_rotate_to_front()
368 static inline int list_is_singular(const struct list_head *head) in list_is_singular()
373 static inline void __list_cut_position(struct list_head *list, in __list_cut_position()
374 struct list_head *head, struct list_head *entry) in __list_cut_position()
376 struct list_head *new_first = entry->next; in __list_cut_position()
399 static inline void list_cut_position(struct list_head *list, in list_cut_position()
400 struct list_head *head, struct list_head *entry) in list_cut_position()
426 static inline void list_cut_before(struct list_head *list, in list_cut_before()
427 struct list_head *head, in list_cut_before()
428 struct list_head *entry) in list_cut_before()
442 static inline void __list_splice(const struct list_head *list, in __list_splice()
443 struct list_head *prev, in __list_splice()
444 struct list_head *next) in __list_splice()
446 struct list_head *first = list->next; in __list_splice()
447 struct list_head *last = list->prev; in __list_splice()
461 static inline void list_splice(const struct list_head *list, in list_splice()
462 struct list_head *head) in list_splice()
473 static inline void list_splice_tail(struct list_head *list, in list_splice_tail()
474 struct list_head *head) in list_splice_tail()
487 static inline void list_splice_init(struct list_head *list, in list_splice_init()
488 struct list_head *head) in list_splice_init()
504 static inline void list_splice_tail_init(struct list_head *list, in list_splice_tail_init()
505 struct list_head *head) in list_splice_tail_init()
553 struct list_head *head__ = (ptr); \
554 struct list_head *pos__ = READ_ONCE(head__->next); \