Lines Matching refs:list

33 static inline void INIT_LIST_HEAD(struct list_head *list)  in INIT_LIST_HEAD()  argument
35 WRITE_ONCE(list->next, list); in INIT_LIST_HEAD()
36 list->prev = list; in INIT_LIST_HEAD()
213 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument
215 __list_del_entry(list); in list_move()
216 list_add(list, head); in list_move()
224 static inline void list_move_tail(struct list_head *list, in list_move_tail() argument
227 __list_del_entry(list); in list_move_tail()
228 list_add_tail(list, head); in list_move_tail()
259 static inline int list_is_first(const struct list_head *list, in list_is_first() argument
262 return list->prev == head; in list_is_first()
270 static inline int list_is_last(const struct list_head *list, in list_is_last() argument
273 return list->next == head; in list_is_last()
343 static inline void list_rotate_to_front(struct list_head *list, in list_rotate_to_front() argument
351 list_move_tail(head, list); in list_rotate_to_front()
363 static inline void __list_cut_position(struct list_head *list, in __list_cut_position() argument
367 list->next = head->next; in __list_cut_position()
368 list->next->prev = list; in __list_cut_position()
369 list->prev = entry; in __list_cut_position()
370 entry->next = list; in __list_cut_position()
389 static inline void list_cut_position(struct list_head *list, in list_cut_position() argument
398 INIT_LIST_HEAD(list); in list_cut_position()
400 __list_cut_position(list, head, entry); in list_cut_position()
417 static inline void list_cut_before(struct list_head *list, in list_cut_before() argument
422 INIT_LIST_HEAD(list); in list_cut_before()
425 list->next = head->next; in list_cut_before()
426 list->next->prev = list; in list_cut_before()
427 list->prev = entry->prev; in list_cut_before()
428 list->prev->next = list; in list_cut_before()
433 static inline void __list_splice(const struct list_head *list, in __list_splice() argument
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() argument
455 if (!list_empty(list)) in list_splice()
456 __list_splice(list, head, head->next); in list_splice()
464 static inline void list_splice_tail(struct list_head *list, in list_splice_tail() argument
467 if (!list_empty(list)) in list_splice_tail()
468 __list_splice(list, head->prev, head); in list_splice_tail()
478 static inline void list_splice_init(struct list_head *list, in list_splice_init() argument
481 if (!list_empty(list)) { in list_splice_init()
482 __list_splice(list, head, head->next); in list_splice_init()
483 INIT_LIST_HEAD(list); in list_splice_init()
495 static inline void list_splice_tail_init(struct list_head *list, in list_splice_tail_init() argument
498 if (!list_empty(list)) { in list_splice_tail_init()
499 __list_splice(list, head->prev, head); in list_splice_tail_init()
500 INIT_LIST_HEAD(list); in list_splice_tail_init()