Lines Matching defs:list
12 * notice, this list of conditions and the following disclaimer.
14 * notice, this list of conditions and the following disclaimer in the
1195 int offset, int dsz, int mtu, struct sk_buff_head *list);
1199 bool tipc_msg_assemble(struct sk_buff_head *list);
1200 bool tipc_msg_reassemble(struct sk_buff_head *list, struct sk_buff_head *rcvq);
1203 bool __tipc_skb_queue_sorted(struct sk_buff_head *list, u16 seqno,
1217 /* tipc_skb_peek(): peek and reserve first buffer in list
1218 * @list: list to be peeked in
1219 * Returns pointer to first buffer in list, if any
1221 static inline struct sk_buff *tipc_skb_peek(struct sk_buff_head *list,
1227 skb = skb_peek(list);
1238 * @list: list to be peeked in
1242 static inline u32 tipc_skb_peek_port(struct sk_buff_head *list, u32 filter)
1248 spin_lock_bh(&list->lock);
1249 skb_queue_walk(list, skb) {
1251 if (!filter || skb_queue_is_last(list, skb))
1258 spin_unlock_bh(&list->lock);
1262 /* tipc_skb_dequeue(): unlink first buffer with dest 'dport' from list
1263 * @list: list to be unlinked from
1266 static inline struct sk_buff *tipc_skb_dequeue(struct sk_buff_head *list,
1271 spin_lock_bh(&list->lock);
1272 skb_queue_walk_safe(list, _skb, tmp) {
1274 __skb_unlink(_skb, list);
1279 spin_unlock_bh(&list->lock);
1283 /* tipc_skb_queue_splice_tail - append an skb list to lock protected list
1284 * @list: the new list to append. Not lock protected
1285 * @head: target list. Lock protected.
1287 static inline void tipc_skb_queue_splice_tail(struct sk_buff_head *list,
1291 skb_queue_splice_tail(list, head);
1296 * @list: the new list to add. Lock protected. Will be reinitialized
1297 * @head: target list. Lock protected.
1299 static inline void tipc_skb_queue_splice_tail_init(struct sk_buff_head *list,
1306 spin_lock_bh(&list->lock);
1307 skb_queue_splice_tail_init(list, &tmp);
1308 spin_unlock_bh(&list->lock);
1313 * @list: list to be dequeued from
1316 * returns skb dequeued from the list if its seqno is less than or equal to
1321 static inline struct sk_buff *__tipc_skb_dequeue(struct sk_buff_head *list,
1324 struct sk_buff *skb = skb_peek(list);
1327 __skb_unlink(skb, list);