Lines Matching full:first

242 static void wg_packet_create_data_done(struct sk_buff *first,  in wg_packet_create_data_done()  argument
250 skb_list_walk_safe(first, skb, next) { in wg_packet_create_data_done()
269 struct sk_buff *first; in wg_packet_tx_worker() local
272 while ((first = __ptr_ring_peek(&queue->ring)) != NULL && in wg_packet_tx_worker()
273 (state = atomic_read_acquire(&PACKET_CB(first)->state)) != in wg_packet_tx_worker()
276 peer = PACKET_PEER(first); in wg_packet_tx_worker()
277 keypair = PACKET_CB(first)->keypair; in wg_packet_tx_worker()
280 wg_packet_create_data_done(first, peer); in wg_packet_tx_worker()
282 kfree_skb_list(first); in wg_packet_tx_worker()
295 struct sk_buff *first, *skb, *next; in wg_packet_encrypt_worker() local
297 while ((first = ptr_ring_consume_bh(&queue->ring)) != NULL) { in wg_packet_encrypt_worker()
300 skb_list_walk_safe(first, skb, next) { in wg_packet_encrypt_worker()
302 PACKET_CB(first)->keypair))) { in wg_packet_encrypt_worker()
309 wg_queue_enqueue_per_peer(&PACKET_PEER(first)->tx_queue, first, in wg_packet_encrypt_worker()
316 static void wg_packet_create_data(struct sk_buff *first) in wg_packet_create_data() argument
318 struct wg_peer *peer = PACKET_PEER(first); in wg_packet_create_data()
327 &peer->tx_queue, first, in wg_packet_create_data()
331 wg_queue_enqueue_per_peer(&peer->tx_queue, first, in wg_packet_create_data()
337 wg_noise_keypair_put(PACKET_CB(first)->keypair, false); in wg_packet_create_data()
339 kfree_skb_list(first); in wg_packet_create_data()
364 /* First we make sure we have a valid reference to a valid key. */ in wg_packet_send_staged_packets()