• Home
  • Raw
  • Download

Lines Matching refs:list

25 static inline void INIT_LIST_HEAD(struct list_head *list)  in INIT_LIST_HEAD()  argument
27 list->next = list; in INIT_LIST_HEAD()
28 list->prev = list; in INIT_LIST_HEAD()
154 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument
156 __list_del_entry(list); in list_move()
157 list_add(list, head); in list_move()
165 static inline void list_move_tail(struct list_head *list, in list_move_tail() argument
168 __list_del_entry(list); in list_move_tail()
169 list_add_tail(list, head); in list_move_tail()
177 static inline int list_is_last(const struct list_head *list, in list_is_last() argument
180 return list->next == head; in list_is_last()
234 static inline void __list_cut_position(struct list_head *list, in __list_cut_position() argument
238 list->next = head->next; in __list_cut_position()
239 list->next->prev = list; in __list_cut_position()
240 list->prev = entry; in __list_cut_position()
241 entry->next = list; in __list_cut_position()
260 static inline void list_cut_position(struct list_head *list, in list_cut_position() argument
269 INIT_LIST_HEAD(list); in list_cut_position()
271 __list_cut_position(list, head, entry); in list_cut_position()
274 static inline void __list_splice(const struct list_head *list, in __list_splice() argument
278 struct list_head *first = list->next; in __list_splice()
279 struct list_head *last = list->prev; in __list_splice()
293 static inline void list_splice(const struct list_head *list, in list_splice() argument
296 if (!list_empty(list)) in list_splice()
297 __list_splice(list, head, head->next); in list_splice()
305 static inline void list_splice_tail(struct list_head *list, in list_splice_tail() argument
308 if (!list_empty(list)) in list_splice_tail()
309 __list_splice(list, head->prev, head); in list_splice_tail()
319 static inline void list_splice_init(struct list_head *list, in list_splice_init() argument
322 if (!list_empty(list)) { in list_splice_init()
323 __list_splice(list, head, head->next); in list_splice_init()
324 INIT_LIST_HEAD(list); in list_splice_init()
336 static inline void list_splice_tail_init(struct list_head *list, in list_splice_tail_init() argument
339 if (!list_empty(list)) { in list_splice_tail_init()
340 __list_splice(list, head->prev, head); in list_splice_tail_init()
341 INIT_LIST_HEAD(list); in list_splice_tail_init()