• Home
  • Raw
  • Download

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()
53 extern bool __list_valid_slowpath __list_add_valid_or_report(struct list_head *new,
54 struct list_head *prev,
55 struct list_head *next);
65 static __always_inline bool __list_add_valid(struct list_head *new, in __list_add_valid()
66 struct list_head *prev, in __list_add_valid()
67 struct list_head *next) in __list_add_valid()
96 extern bool __list_valid_slowpath __list_del_entry_valid_or_report(struct list_head *entry);
106 static __always_inline bool __list_del_entry_valid(struct list_head *entry) in __list_del_entry_valid()
111 struct list_head *prev = entry->prev; in __list_del_entry_valid()
112 struct list_head *next = entry->next; in __list_del_entry_valid()
128 static inline bool __list_add_valid(struct list_head *new, in __list_add_valid()
129 struct list_head *prev, in __list_add_valid()
130 struct list_head *next) in __list_add_valid()
134 static inline bool __list_del_entry_valid(struct list_head *entry) in __list_del_entry_valid()
146 static inline void __list_add(struct list_head *new, in __list_add()
147 struct list_head *prev, in __list_add()
148 struct list_head *next) in __list_add()
167 static inline void list_add(struct list_head *new, struct list_head *head) in list_add()
181 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail()
193 static inline void __list_del(struct list_head * prev, struct list_head * next) in __list_del()
207 static inline void __list_del_clearprev(struct list_head *entry) in __list_del_clearprev()
213 static inline void __list_del_entry(struct list_head *entry) in __list_del_entry()
227 static inline void list_del(struct list_head *entry) in list_del()
241 static inline void list_replace(struct list_head *old, in list_replace()
242 struct list_head *new) in list_replace()
257 static inline void list_replace_init(struct list_head *old, in list_replace_init()
258 struct list_head *new) in list_replace_init()
269 static inline void list_swap(struct list_head *entry1, in list_swap()
270 struct list_head *entry2) in list_swap()
272 struct list_head *pos = entry2->prev; in list_swap()
285 static inline void list_del_init(struct list_head *entry) in list_del_init()
296 static inline void list_move(struct list_head *list, struct list_head *head) in list_move()
307 static inline void list_move_tail(struct list_head *list, in list_move_tail()
308 struct list_head *head) in list_move_tail()
323 static inline void list_bulk_move_tail(struct list_head *head, in list_bulk_move_tail()
324 struct list_head *first, in list_bulk_move_tail()
325 struct list_head *last) in list_bulk_move_tail()
342 static inline int list_is_first(const struct list_head *list, const struct list_head *head) in list_is_first()
352 static inline int list_is_last(const struct list_head *list, const struct list_head *head) in list_is_last()
362 static inline int list_is_head(const struct list_head *list, const struct list_head *head) in list_is_head()
371 static inline int list_empty(const struct list_head *head) in list_empty()
387 static inline void list_del_init_careful(struct list_head *entry) in list_del_init_careful()
407 static inline int list_empty_careful(const struct list_head *head) in list_empty_careful()
409 struct list_head *next = smp_load_acquire(&head->next); in list_empty_careful()
417 static inline void list_rotate_left(struct list_head *head) in list_rotate_left()
419 struct list_head *first; in list_rotate_left()
434 static inline void list_rotate_to_front(struct list_head *list, in list_rotate_to_front()
435 struct list_head *head) in list_rotate_to_front()
449 static inline int list_is_singular(const struct list_head *head) in list_is_singular()
454 static inline void __list_cut_position(struct list_head *list, in __list_cut_position()
455 struct list_head *head, struct list_head *entry) in __list_cut_position()
457 struct list_head *new_first = entry->next; in __list_cut_position()
480 static inline void list_cut_position(struct list_head *list, in list_cut_position()
481 struct list_head *head, struct list_head *entry) in list_cut_position()
507 static inline void list_cut_before(struct list_head *list, in list_cut_before()
508 struct list_head *head, in list_cut_before()
509 struct list_head *entry) in list_cut_before()
523 static inline void __list_splice(const struct list_head *list, in __list_splice()
524 struct list_head *prev, in __list_splice()
525 struct list_head *next) in __list_splice()
527 struct list_head *first = list->next; in __list_splice()
528 struct list_head *last = list->prev; in __list_splice()
542 static inline void list_splice(const struct list_head *list, in list_splice()
543 struct list_head *head) in list_splice()
554 static inline void list_splice_tail(struct list_head *list, in list_splice_tail()
555 struct list_head *head) in list_splice_tail()
568 static inline void list_splice_init(struct list_head *list, in list_splice_init()
569 struct list_head *head) in list_splice_init()
585 static inline void list_splice_tail_init(struct list_head *list, in list_splice_tail_init()
586 struct list_head *head) in list_splice_tail_init()
634 struct list_head *head__ = (ptr); \
635 struct list_head *pos__ = READ_ONCE(head__->next); \
751 static inline size_t list_count_nodes(struct list_head *head) in list_count_nodes()
753 struct list_head *pos; in list_count_nodes()