Lines Matching refs:list

134 	struct sk_buff_head * list;		/* List we are on				*/  member
259 static inline int skb_queue_empty(struct sk_buff_head *list) in skb_queue_empty() argument
261 return (list->next == (struct sk_buff *) list); in skb_queue_empty()
400 struct sk_buff *list = ((struct sk_buff *)list_)->next; in skb_peek() local
401 if (list == (struct sk_buff *)list_) in skb_peek()
402 list = NULL; in skb_peek()
403 return list; in skb_peek()
422 struct sk_buff *list = ((struct sk_buff *)list_)->prev; in skb_peek_tail() local
423 if (list == (struct sk_buff *)list_) in skb_peek_tail()
424 list = NULL; in skb_peek_tail()
425 return list; in skb_peek_tail()
440 static inline void skb_queue_head_init(struct sk_buff_head *list) in skb_queue_head_init() argument
442 spin_lock_init(&list->lock); in skb_queue_head_init()
443 list->prev = (struct sk_buff *)list; in skb_queue_head_init()
444 list->next = (struct sk_buff *)list; in skb_queue_head_init()
445 list->qlen = 0; in skb_queue_head_init()
466 static inline void __skb_queue_head(struct sk_buff_head *list, struct sk_buff *newsk) in __skb_queue_head() argument
470 newsk->list = list; in __skb_queue_head()
471 list->qlen++; in __skb_queue_head()
472 prev = (struct sk_buff *)list; in __skb_queue_head()
493 static inline void skb_queue_head(struct sk_buff_head *list, struct sk_buff *newsk) in skb_queue_head() argument
497 spin_lock_irqsave(&list->lock, flags); in skb_queue_head()
498 __skb_queue_head(list, newsk); in skb_queue_head()
499 spin_unlock_irqrestore(&list->lock, flags); in skb_queue_head()
514 static inline void __skb_queue_tail(struct sk_buff_head *list, struct sk_buff *newsk) in __skb_queue_tail() argument
518 newsk->list = list; in __skb_queue_tail()
519 list->qlen++; in __skb_queue_tail()
520 next = (struct sk_buff *)list; in __skb_queue_tail()
540 static inline void skb_queue_tail(struct sk_buff_head *list, struct sk_buff *newsk) in skb_queue_tail() argument
544 spin_lock_irqsave(&list->lock, flags); in skb_queue_tail()
545 __skb_queue_tail(list, newsk); in skb_queue_tail()
546 spin_unlock_irqrestore(&list->lock, flags); in skb_queue_tail()
558 static inline struct sk_buff *__skb_dequeue(struct sk_buff_head *list) in __skb_dequeue() argument
562 prev = (struct sk_buff *) list; in __skb_dequeue()
568 list->qlen--; in __skb_dequeue()
573 result->list = NULL; in __skb_dequeue()
587 static inline struct sk_buff *skb_dequeue(struct sk_buff_head *list) in skb_dequeue() argument
592 spin_lock_irqsave(&list->lock, flags); in skb_dequeue()
593 result = __skb_dequeue(list); in skb_dequeue()
594 spin_unlock_irqrestore(&list->lock, flags); in skb_dequeue()
604 struct sk_buff_head * list) in __skb_insert() argument
610 newsk->list = list; in __skb_insert()
611 list->qlen++; in __skb_insert()
628 spin_lock_irqsave(&old->list->lock, flags); in skb_insert()
629 __skb_insert(newsk, old->prev, old, old->list); in skb_insert()
630 spin_unlock_irqrestore(&old->list->lock, flags); in skb_insert()
639 __skb_insert(newsk, old, old->next, old->list); in __skb_append()
657 spin_lock_irqsave(&old->list->lock, flags); in skb_append()
659 spin_unlock_irqrestore(&old->list->lock, flags); in skb_append()
667 static inline void __skb_unlink(struct sk_buff *skb, struct sk_buff_head *list) in __skb_unlink() argument
671 list->qlen--; in __skb_unlink()
676 skb->list = NULL; in __skb_unlink()
696 struct sk_buff_head *list = skb->list; in skb_unlink() local
698 if(list) { in skb_unlink()
701 spin_lock_irqsave(&list->lock, flags); in skb_unlink()
702 if(skb->list == list) in skb_unlink()
703 __skb_unlink(skb, skb->list); in skb_unlink()
704 spin_unlock_irqrestore(&list->lock, flags); in skb_unlink()
719 static inline struct sk_buff *__skb_dequeue_tail(struct sk_buff_head *list) in __skb_dequeue_tail() argument
721 struct sk_buff *skb = skb_peek_tail(list); in __skb_dequeue_tail()
723 __skb_unlink(skb, list); in __skb_dequeue_tail()
736 static inline struct sk_buff *skb_dequeue_tail(struct sk_buff_head *list) in skb_dequeue_tail() argument
741 spin_lock_irqsave(&list->lock, flags); in skb_dequeue_tail()
742 result = __skb_dequeue_tail(list); in skb_dequeue_tail()
743 spin_unlock_irqrestore(&list->lock, flags); in skb_dequeue_tail()
990 static inline void skb_queue_purge(struct sk_buff_head *list) in skb_queue_purge() argument
993 while ((skb=skb_dequeue(list))!=NULL) in skb_queue_purge()
1007 static inline void __skb_queue_purge(struct sk_buff_head *list) in __skb_queue_purge() argument
1010 while ((skb=__skb_dequeue(list))!=NULL) in __skb_queue_purge()