Lines Matching refs:list
31 static inline void INIT_LIST_HEAD(struct list_head *list) in INIT_LIST_HEAD() argument
33 list->next = list; in INIT_LIST_HEAD()
34 list->prev = list; in INIT_LIST_HEAD()
143 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument
145 __list_del(list->prev, list->next); in list_move()
146 list_add(list, head); in list_move()
154 static inline void list_move_tail(struct list_head *list, in list_move_tail() argument
157 __list_del(list->prev, list->next); in list_move_tail()
158 list_add_tail(list, head); in list_move_tail()
166 static inline int list_is_last(const struct list_head *list, in list_is_last() argument
169 return list->next == head; in list_is_last()
209 static inline void __list_cut_position(struct list_head *list, in __list_cut_position() argument
213 list->next = head->next; in __list_cut_position()
214 list->next->prev = list; in __list_cut_position()
215 list->prev = entry; in __list_cut_position()
216 entry->next = list; in __list_cut_position()
235 static inline void list_cut_position(struct list_head *list, in list_cut_position() argument
244 INIT_LIST_HEAD(list); in list_cut_position()
246 __list_cut_position(list, head, entry); in list_cut_position()
249 static inline void __list_splice(const struct list_head *list, in __list_splice() argument
253 struct list_head *first = list->next; in __list_splice()
254 struct list_head *last = list->prev; in __list_splice()
268 static inline void list_splice(const struct list_head *list, in list_splice() argument
271 if (!list_empty(list)) in list_splice()
272 __list_splice(list, head, head->next); in list_splice()
280 static inline void list_splice_tail(struct list_head *list, in list_splice_tail() argument
283 if (!list_empty(list)) in list_splice_tail()
284 __list_splice(list, head->prev, head); in list_splice_tail()
294 static inline void list_splice_init(struct list_head *list, in list_splice_init() argument
297 if (!list_empty(list)) { in list_splice_init()
298 __list_splice(list, head, head->next); in list_splice_init()
299 INIT_LIST_HEAD(list); in list_splice_init()
311 static inline void list_splice_tail_init(struct list_head *list, in list_splice_tail_init() argument
314 if (!list_empty(list)) { in list_splice_tail_init()
315 __list_splice(list, head->prev, head); in list_splice_tail_init()
316 INIT_LIST_HEAD(list); in list_splice_tail_init()