Lines Matching refs:list
12 * notice, this list of conditions and the following disclaimer.
14 * notice, this list of conditions and the following disclaimer in the
1172 int offset, int dsz, int mtu, struct sk_buff_head *list);
1176 bool tipc_msg_assemble(struct sk_buff_head *list);
1177 bool tipc_msg_reassemble(struct sk_buff_head *list, struct sk_buff_head *rcvq);
1180 bool __tipc_skb_queue_sorted(struct sk_buff_head *list, u16 seqno,
1194 /* tipc_skb_peek(): peek and reserve first buffer in list
1195 * @list: list to be peeked in
1196 * Returns pointer to first buffer in list, if any
1198 static inline struct sk_buff *tipc_skb_peek(struct sk_buff_head *list,
1204 skb = skb_peek(list);
1215 * @list: list to be peeked in
1219 static inline u32 tipc_skb_peek_port(struct sk_buff_head *list, u32 filter)
1225 spin_lock_bh(&list->lock);
1226 skb_queue_walk(list, skb) {
1228 if (!filter || skb_queue_is_last(list, skb))
1235 spin_unlock_bh(&list->lock);
1239 /* tipc_skb_dequeue(): unlink first buffer with dest 'dport' from list
1240 * @list: list to be unlinked from
1243 static inline struct sk_buff *tipc_skb_dequeue(struct sk_buff_head *list,
1248 spin_lock_bh(&list->lock);
1249 skb_queue_walk_safe(list, _skb, tmp) {
1251 __skb_unlink(_skb, list);
1256 spin_unlock_bh(&list->lock);
1260 /* tipc_skb_queue_splice_tail - append an skb list to lock protected list
1261 * @list: the new list to append. Not lock protected
1262 * @head: target list. Lock protected.
1264 static inline void tipc_skb_queue_splice_tail(struct sk_buff_head *list,
1268 skb_queue_splice_tail(list, head);
1273 * @list: the new list to add. Lock protected. Will be reinitialized
1274 * @head: target list. Lock protected.
1276 static inline void tipc_skb_queue_splice_tail_init(struct sk_buff_head *list,
1283 spin_lock_bh(&list->lock);
1284 skb_queue_splice_tail_init(list, &tmp);
1285 spin_unlock_bh(&list->lock);
1290 * @list: list to be dequeued from
1293 * returns skb dequeued from the list if its seqno is less than or equal to
1298 static inline struct sk_buff *__tipc_skb_dequeue(struct sk_buff_head *list,
1301 struct sk_buff *skb = skb_peek(list);
1304 __skb_unlink(skb, list);