Lines Matching refs:list
757 static inline int skb_queue_empty(const struct sk_buff_head *list) in skb_queue_empty() argument
759 return list->next == (struct sk_buff *)list; in skb_queue_empty()
769 static inline bool skb_queue_is_last(const struct sk_buff_head *list, in skb_queue_is_last() argument
772 return skb->next == (struct sk_buff *)list; in skb_queue_is_last()
782 static inline bool skb_queue_is_first(const struct sk_buff_head *list, in skb_queue_is_first() argument
785 return skb->prev == (struct sk_buff *)list; in skb_queue_is_first()
796 static inline struct sk_buff *skb_queue_next(const struct sk_buff_head *list, in skb_queue_next() argument
802 BUG_ON(skb_queue_is_last(list, skb)); in skb_queue_next()
814 static inline struct sk_buff *skb_queue_prev(const struct sk_buff_head *list, in skb_queue_prev() argument
820 BUG_ON(skb_queue_is_first(list, skb)); in skb_queue_prev()
1057 static inline void __skb_queue_head_init(struct sk_buff_head *list) in __skb_queue_head_init() argument
1059 list->prev = list->next = (struct sk_buff *)list; in __skb_queue_head_init()
1060 list->qlen = 0; in __skb_queue_head_init()
1071 static inline void skb_queue_head_init(struct sk_buff_head *list) in skb_queue_head_init() argument
1073 spin_lock_init(&list->lock); in skb_queue_head_init()
1074 __skb_queue_head_init(list); in skb_queue_head_init()
1077 static inline void skb_queue_head_init_class(struct sk_buff_head *list, in skb_queue_head_init_class() argument
1080 skb_queue_head_init(list); in skb_queue_head_init_class()
1081 lockdep_set_class(&list->lock, class); in skb_queue_head_init_class()
1090 extern void skb_insert(struct sk_buff *old, struct sk_buff *newsk, struct sk_buff_head *list…
1093 struct sk_buff_head *list) in __skb_insert() argument
1098 list->qlen++; in __skb_insert()
1101 static inline void __skb_queue_splice(const struct sk_buff_head *list, in __skb_queue_splice() argument
1105 struct sk_buff *first = list->next; in __skb_queue_splice()
1106 struct sk_buff *last = list->prev; in __skb_queue_splice()
1120 static inline void skb_queue_splice(const struct sk_buff_head *list, in skb_queue_splice() argument
1123 if (!skb_queue_empty(list)) { in skb_queue_splice()
1124 __skb_queue_splice(list, (struct sk_buff *) head, head->next); in skb_queue_splice()
1125 head->qlen += list->qlen; in skb_queue_splice()
1136 static inline void skb_queue_splice_init(struct sk_buff_head *list, in skb_queue_splice_init() argument
1139 if (!skb_queue_empty(list)) { in skb_queue_splice_init()
1140 __skb_queue_splice(list, (struct sk_buff *) head, head->next); in skb_queue_splice_init()
1141 head->qlen += list->qlen; in skb_queue_splice_init()
1142 __skb_queue_head_init(list); in skb_queue_splice_init()
1151 static inline void skb_queue_splice_tail(const struct sk_buff_head *list, in skb_queue_splice_tail() argument
1154 if (!skb_queue_empty(list)) { in skb_queue_splice_tail()
1155 __skb_queue_splice(list, head->prev, (struct sk_buff *) head); in skb_queue_splice_tail()
1156 head->qlen += list->qlen; in skb_queue_splice_tail()
1168 static inline void skb_queue_splice_tail_init(struct sk_buff_head *list, in skb_queue_splice_tail_init() argument
1171 if (!skb_queue_empty(list)) { in skb_queue_splice_tail_init()
1172 __skb_queue_splice(list, head->prev, (struct sk_buff *) head); in skb_queue_splice_tail_init()
1173 head->qlen += list->qlen; in skb_queue_splice_tail_init()
1174 __skb_queue_head_init(list); in skb_queue_splice_tail_init()
1189 static inline void __skb_queue_after(struct sk_buff_head *list, in __skb_queue_after() argument
1193 __skb_insert(newsk, prev, prev->next, list); in __skb_queue_after()
1197 struct sk_buff_head *list);
1199 static inline void __skb_queue_before(struct sk_buff_head *list, in __skb_queue_before() argument
1203 __skb_insert(newsk, next->prev, next, list); in __skb_queue_before()
1216 extern void skb_queue_head(struct sk_buff_head *list, struct sk_buff *newsk);
1217 static inline void __skb_queue_head(struct sk_buff_head *list, in __skb_queue_head() argument
1220 __skb_queue_after(list, (struct sk_buff *)list, newsk); in __skb_queue_head()
1233 extern void skb_queue_tail(struct sk_buff_head *list, struct sk_buff *newsk);
1234 static inline void __skb_queue_tail(struct sk_buff_head *list, in __skb_queue_tail() argument
1237 __skb_queue_before(list, (struct sk_buff *)list, newsk); in __skb_queue_tail()
1244 extern void skb_unlink(struct sk_buff *skb, struct sk_buff_head *list);
1245 static inline void __skb_unlink(struct sk_buff *skb, struct sk_buff_head *list) in __skb_unlink() argument
1249 list->qlen--; in __skb_unlink()
1265 extern struct sk_buff *skb_dequeue(struct sk_buff_head *list);
1266 static inline struct sk_buff *__skb_dequeue(struct sk_buff_head *list) in __skb_dequeue() argument
1268 struct sk_buff *skb = skb_peek(list); in __skb_dequeue()
1270 __skb_unlink(skb, list); in __skb_dequeue()
1282 extern struct sk_buff *skb_dequeue_tail(struct sk_buff_head *list);
1283 static inline struct sk_buff *__skb_dequeue_tail(struct sk_buff_head *list) in __skb_dequeue_tail() argument
1285 struct sk_buff *skb = skb_peek_tail(list); in __skb_dequeue_tail()
1287 __skb_unlink(skb, list); in __skb_dequeue_tail()
1936 extern void skb_queue_purge(struct sk_buff_head *list);
1937 static inline void __skb_queue_purge(struct sk_buff_head *list) in __skb_queue_purge() argument
1940 while ((skb = __skb_dequeue(list)) != NULL) in __skb_queue_purge()