Lines Matching refs:tx_ring
170 int closing, int tx_ring);
1222 po->tx_ring.pending_refcnt = alloc_percpu(unsigned int); in packet_alloc_pending()
1223 if (unlikely(po->tx_ring.pending_refcnt == NULL)) in packet_alloc_pending()
1231 free_percpu(po->tx_ring.pending_refcnt); in packet_free_pending()
2319 if (likely(po->tx_ring.pg_vec)) { in tpacket_destruct_skb()
2324 packet_dec_pending(&po->tx_ring); in tpacket_destruct_skb()
2381 off_max = po->tx_ring.frame_size - tp_len; in tpacket_fill_skb()
2507 size_max = po->tx_ring.frame_size in tpacket_snd()
2514 ph = packet_current_frame(po, &po->tx_ring, in tpacket_snd()
2546 packet_increment_head(&po->tx_ring); in tpacket_snd()
2560 packet_inc_pending(&po->tx_ring); in tpacket_snd()
2578 packet_increment_head(&po->tx_ring); in tpacket_snd()
2587 (need_wait && packet_read_pending(&po->tx_ring)))); in tpacket_snd()
2834 if (po->tx_ring.pg_vec) in packet_sendmsg()
2883 if (po->tx_ring.pg_vec) { in packet_release()
3576 if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) in packet_setsockopt()
3596 if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) in packet_setsockopt()
3609 if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) in packet_setsockopt()
3646 if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) in packet_setsockopt()
3692 if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) in packet_setsockopt()
3951 if (po->tx_ring.pg_vec) { in packet_poll()
3952 if (packet_current_frame(po, &po->tx_ring, TP_STATUS_AVAILABLE)) in packet_poll()
4058 int closing, int tx_ring) in packet_set_ring() argument
4071 if (!closing && tx_ring && (po->tp_version > TPACKET_V2)) { in packet_set_ring()
4076 rb = tx_ring ? &po->tx_ring : &po->rx_ring; in packet_set_ring()
4077 rb_queue = tx_ring ? &sk->sk_write_queue : &sk->sk_receive_queue; in packet_set_ring()
4137 if (!tx_ring) in packet_set_ring()
4197 if (!tx_ring) in packet_set_ring()
4225 for (rb = &po->rx_ring; rb <= &po->tx_ring; rb++) { in packet_mmap()
4241 for (rb = &po->rx_ring; rb <= &po->tx_ring; rb++) { in packet_mmap()