Lines Matching refs:list

26 static inline void INIT_LIST_HEAD(struct list_head *list)  in INIT_LIST_HEAD()  argument
28 WRITE_ONCE(list->next, list); in INIT_LIST_HEAD()
29 list->prev = list; in INIT_LIST_HEAD()
168 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument
170 __list_del_entry(list); in list_move()
171 list_add(list, head); in list_move()
179 static inline void list_move_tail(struct list_head *list, in list_move_tail() argument
182 __list_del_entry(list); in list_move_tail()
183 list_add_tail(list, head); in list_move_tail()
191 static inline int list_is_last(const struct list_head *list, in list_is_last() argument
194 return list->next == head; in list_is_last()
248 static inline void __list_cut_position(struct list_head *list, in __list_cut_position() argument
252 list->next = head->next; in __list_cut_position()
253 list->next->prev = list; in __list_cut_position()
254 list->prev = entry; in __list_cut_position()
255 entry->next = list; in __list_cut_position()
274 static inline void list_cut_position(struct list_head *list, in list_cut_position() argument
283 INIT_LIST_HEAD(list); in list_cut_position()
285 __list_cut_position(list, head, entry); in list_cut_position()
302 static inline void list_cut_before(struct list_head *list, in list_cut_before() argument
307 INIT_LIST_HEAD(list); in list_cut_before()
310 list->next = head->next; in list_cut_before()
311 list->next->prev = list; in list_cut_before()
312 list->prev = entry->prev; in list_cut_before()
313 list->prev->next = list; in list_cut_before()
318 static inline void __list_splice(const struct list_head *list, in __list_splice() argument
322 struct list_head *first = list->next; in __list_splice()
323 struct list_head *last = list->prev; in __list_splice()
337 static inline void list_splice(const struct list_head *list, in list_splice() argument
340 if (!list_empty(list)) in list_splice()
341 __list_splice(list, head, head->next); in list_splice()
349 static inline void list_splice_tail(struct list_head *list, in list_splice_tail() argument
352 if (!list_empty(list)) in list_splice_tail()
353 __list_splice(list, head->prev, head); in list_splice_tail()
363 static inline void list_splice_init(struct list_head *list, in list_splice_init() argument
366 if (!list_empty(list)) { in list_splice_init()
367 __list_splice(list, head, head->next); in list_splice_init()
368 INIT_LIST_HEAD(list); in list_splice_init()
380 static inline void list_splice_tail_init(struct list_head *list, in list_splice_tail_init() argument
383 if (!list_empty(list)) { in list_splice_tail_init()
384 __list_splice(list, head->prev, head); in list_splice_tail_init()
385 INIT_LIST_HEAD(list); in list_splice_tail_init()