• Home
  • Raw
  • Download

Lines Matching refs:head

78 static inline void list_add(struct list_head *new, struct list_head *head)  in list_add()  argument
80 __list_add(new, head, head->next); in list_add()
91 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail() argument
93 __list_add(new, head->prev, head); in list_add_tail()
137 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument
140 list_add(list, head); in list_move()
149 struct list_head *head) in list_move_tail() argument
152 list_add_tail(list, head); in list_move_tail()
159 static inline int list_empty(struct list_head *head) in list_empty() argument
161 return head->next == head; in list_empty()
165 struct list_head *head) in __list_splice() argument
169 struct list_head *at = head->next; in __list_splice()
171 first->prev = head; in __list_splice()
172 head->next = first; in __list_splice()
183 static inline void list_splice(struct list_head *list, struct list_head *head) in list_splice() argument
186 __list_splice(list, head); in list_splice()
197 struct list_head *head) in list_splice_init() argument
200 __list_splice(list, head); in list_splice_init()
219 #define list_for_each(pos, head) \ argument
220 for (pos = (head)->next; pos != (head); \
233 #define __list_for_each(pos, head) \ argument
234 for (pos = (head)->next; pos != (head); pos = pos->next)
241 #define list_for_each_prev(pos, head) \ argument
242 for (pos = (head)->prev; pos != (head); pos = pos->prev)
250 #define list_for_each_safe(pos, n, head) \ argument
251 for (pos = (head)->next, n = pos->next; pos != (head); \
260 #define list_for_each_entry(pos, head, member) \ argument
261 for (pos = list_entry((head)->next, typeof(*pos), member); \
262 &pos->member != (head); \
271 #define list_for_each_entry_reverse(pos, head, member) \ argument
272 for (pos = list_entry((head)->prev, typeof(*pos), member); \
273 &pos->member != (head); \
283 #define list_for_each_entry_safe(pos, n, head, member) \ argument
284 for (pos = list_entry((head)->next, typeof(*pos), member), \
286 &pos->member != (head); \