Lines Matching refs:tx_ring

174 		int closing, int tx_ring);
1279 po->tx_ring.pending_refcnt = alloc_percpu(unsigned int); in packet_alloc_pending()
1280 if (unlikely(po->tx_ring.pending_refcnt == NULL)) in packet_alloc_pending()
1288 free_percpu(po->tx_ring.pending_refcnt); in packet_free_pending()
2567 if (likely(po->tx_ring.pg_vec)) { in tpacket_destruct_skb()
2572 packet_dec_pending(&po->tx_ring); in tpacket_destruct_skb()
2734 off_max = po->tx_ring.frame_size - tp_len; in tpacket_parse_header()
2795 if (unlikely(!po->tx_ring.pg_vec)) { in tpacket_snd()
2836 size_max = po->tx_ring.frame_size in tpacket_snd()
2846 ph = packet_current_frame(po, &po->tx_ring, in tpacket_snd()
2854 if (need_wait && packet_read_pending(&po->tx_ring)) { in tpacket_snd()
2911 packet_increment_head(&po->tx_ring); in tpacket_snd()
2931 packet_inc_pending(&po->tx_ring); in tpacket_snd()
2950 packet_increment_head(&po->tx_ring); in tpacket_snd()
3159 if (data_race(po->tx_ring.pg_vec)) in packet_sendmsg()
3208 if (po->tx_ring.pg_vec) { in packet_release()
3925 if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) { in packet_setsockopt()
3945 if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) { in packet_setsockopt()
3964 if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) { in packet_setsockopt()
4018 if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) { in packet_setsockopt()
4082 if (!po->rx_ring.pg_vec && !po->tx_ring.pg_vec) in packet_setsockopt()
4358 if (po->tx_ring.pg_vec) { in packet_poll()
4359 if (packet_current_frame(po, &po->tx_ring, TP_STATUS_AVAILABLE)) in packet_poll()
4465 int closing, int tx_ring) in packet_set_ring() argument
4478 rb = tx_ring ? &po->tx_ring : &po->rx_ring; in packet_set_ring()
4479 rb_queue = tx_ring ? &sk->sk_write_queue : &sk->sk_receive_queue; in packet_set_ring()
4541 if (!tx_ring) { in packet_set_ring()
4555 if (!tx_ring) { in packet_set_ring()
4618 if (!tx_ring) in packet_set_ring()
4648 for (rb = &po->rx_ring; rb <= &po->tx_ring; rb++) { in packet_mmap()
4664 for (rb = &po->rx_ring; rb <= &po->tx_ring; rb++) { in packet_mmap()