• Home
  • Raw
  • Download

Lines Matching refs:list

992 static inline int skb_queue_empty(const struct sk_buff_head *list)  in skb_queue_empty()  argument
994 return list->next == (const struct sk_buff *) list; in skb_queue_empty()
1004 static inline bool skb_queue_is_last(const struct sk_buff_head *list, in skb_queue_is_last() argument
1007 return skb->next == (const struct sk_buff *) list; in skb_queue_is_last()
1017 static inline bool skb_queue_is_first(const struct sk_buff_head *list, in skb_queue_is_first() argument
1020 return skb->prev == (const struct sk_buff *) list; in skb_queue_is_first()
1031 static inline struct sk_buff *skb_queue_next(const struct sk_buff_head *list, in skb_queue_next() argument
1037 BUG_ON(skb_queue_is_last(list, skb)); in skb_queue_next()
1049 static inline struct sk_buff *skb_queue_prev(const struct sk_buff_head *list, in skb_queue_prev() argument
1055 BUG_ON(skb_queue_is_first(list, skb)); in skb_queue_prev()
1312 static inline void __skb_queue_head_init(struct sk_buff_head *list) in __skb_queue_head_init() argument
1314 list->prev = list->next = (struct sk_buff *)list; in __skb_queue_head_init()
1315 list->qlen = 0; in __skb_queue_head_init()
1326 static inline void skb_queue_head_init(struct sk_buff_head *list) in skb_queue_head_init() argument
1328 spin_lock_init(&list->lock); in skb_queue_head_init()
1329 __skb_queue_head_init(list); in skb_queue_head_init()
1332 static inline void skb_queue_head_init_class(struct sk_buff_head *list, in skb_queue_head_init_class() argument
1335 skb_queue_head_init(list); in skb_queue_head_init_class()
1336 lockdep_set_class(&list->lock, class); in skb_queue_head_init_class()
1346 struct sk_buff_head *list);
1349 struct sk_buff_head *list) in __skb_insert() argument
1354 list->qlen++; in __skb_insert()
1357 static inline void __skb_queue_splice(const struct sk_buff_head *list, in __skb_queue_splice() argument
1361 struct sk_buff *first = list->next; in __skb_queue_splice()
1362 struct sk_buff *last = list->prev; in __skb_queue_splice()
1376 static inline void skb_queue_splice(const struct sk_buff_head *list, in skb_queue_splice() argument
1379 if (!skb_queue_empty(list)) { in skb_queue_splice()
1380 __skb_queue_splice(list, (struct sk_buff *) head, head->next); in skb_queue_splice()
1381 head->qlen += list->qlen; in skb_queue_splice()
1392 static inline void skb_queue_splice_init(struct sk_buff_head *list, in skb_queue_splice_init() argument
1395 if (!skb_queue_empty(list)) { in skb_queue_splice_init()
1396 __skb_queue_splice(list, (struct sk_buff *) head, head->next); in skb_queue_splice_init()
1397 head->qlen += list->qlen; in skb_queue_splice_init()
1398 __skb_queue_head_init(list); in skb_queue_splice_init()
1407 static inline void skb_queue_splice_tail(const struct sk_buff_head *list, in skb_queue_splice_tail() argument
1410 if (!skb_queue_empty(list)) { in skb_queue_splice_tail()
1411 __skb_queue_splice(list, head->prev, (struct sk_buff *) head); in skb_queue_splice_tail()
1412 head->qlen += list->qlen; in skb_queue_splice_tail()
1424 static inline void skb_queue_splice_tail_init(struct sk_buff_head *list, in skb_queue_splice_tail_init() argument
1427 if (!skb_queue_empty(list)) { in skb_queue_splice_tail_init()
1428 __skb_queue_splice(list, head->prev, (struct sk_buff *) head); in skb_queue_splice_tail_init()
1429 head->qlen += list->qlen; in skb_queue_splice_tail_init()
1430 __skb_queue_head_init(list); in skb_queue_splice_tail_init()
1445 static inline void __skb_queue_after(struct sk_buff_head *list, in __skb_queue_after() argument
1449 __skb_insert(newsk, prev, prev->next, list); in __skb_queue_after()
1453 struct sk_buff_head *list);
1455 static inline void __skb_queue_before(struct sk_buff_head *list, in __skb_queue_before() argument
1459 __skb_insert(newsk, next->prev, next, list); in __skb_queue_before()
1472 void skb_queue_head(struct sk_buff_head *list, struct sk_buff *newsk);
1473 static inline void __skb_queue_head(struct sk_buff_head *list, in __skb_queue_head() argument
1476 __skb_queue_after(list, (struct sk_buff *)list, newsk); in __skb_queue_head()
1489 void skb_queue_tail(struct sk_buff_head *list, struct sk_buff *newsk);
1490 static inline void __skb_queue_tail(struct sk_buff_head *list, in __skb_queue_tail() argument
1493 __skb_queue_before(list, (struct sk_buff *)list, newsk); in __skb_queue_tail()
1500 void skb_unlink(struct sk_buff *skb, struct sk_buff_head *list);
1501 static inline void __skb_unlink(struct sk_buff *skb, struct sk_buff_head *list) in __skb_unlink() argument
1505 list->qlen--; in __skb_unlink()
1521 struct sk_buff *skb_dequeue(struct sk_buff_head *list);
1522 static inline struct sk_buff *__skb_dequeue(struct sk_buff_head *list) in __skb_dequeue() argument
1524 struct sk_buff *skb = skb_peek(list); in __skb_dequeue()
1526 __skb_unlink(skb, list); in __skb_dequeue()
1538 struct sk_buff *skb_dequeue_tail(struct sk_buff_head *list);
1539 static inline struct sk_buff *__skb_dequeue_tail(struct sk_buff_head *list) in __skb_dequeue_tail() argument
1541 struct sk_buff *skb = skb_peek_tail(list); in __skb_dequeue_tail()
1543 __skb_unlink(skb, list); in __skb_dequeue_tail()
2115 void skb_queue_purge(struct sk_buff_head *list);
2116 static inline void __skb_queue_purge(struct sk_buff_head *list) in __skb_queue_purge() argument
2119 while ((skb = __skb_dequeue(list)) != NULL) in __skb_queue_purge()