Lines Matching refs:tx_ring
169 int closing, int tx_ring);
521 int tx_ring, in prb_shutdown_retire_blk_timer() argument
526 pkc = tx_ring ? GET_PBDQC_FROM_RB(&po->tx_ring) : in prb_shutdown_retire_blk_timer()
546 static void prb_setup_retire_blk_timer(struct packet_sock *po, int tx_ring) in prb_setup_retire_blk_timer() argument
550 if (tx_ring) in prb_setup_retire_blk_timer()
553 pkc = tx_ring ? GET_PBDQC_FROM_RB(&po->tx_ring) : in prb_setup_retire_blk_timer()
610 union tpacket_req_u *req_u, int tx_ring) in init_prb_bdqc() argument
637 prb_setup_retire_blk_timer(po, tx_ring); in init_prb_bdqc()
1225 po->tx_ring.pending_refcnt = alloc_percpu(unsigned int); in packet_alloc_pending()
1226 if (unlikely(po->tx_ring.pending_refcnt == NULL)) in packet_alloc_pending()
1234 free_percpu(po->tx_ring.pending_refcnt); in packet_free_pending()
2098 if (likely(po->tx_ring.pg_vec)) { in tpacket_destruct_skb()
2103 packet_dec_pending(&po->tx_ring); in tpacket_destruct_skb()
2172 off_max = po->tx_ring.frame_size - tp_len; in tpacket_fill_skb()
2298 size_max = po->tx_ring.frame_size in tpacket_snd()
2305 ph = packet_current_frame(po, &po->tx_ring, in tpacket_snd()
2337 packet_increment_head(&po->tx_ring); in tpacket_snd()
2351 packet_inc_pending(&po->tx_ring); in tpacket_snd()
2369 packet_increment_head(&po->tx_ring); in tpacket_snd()
2378 (need_wait && packet_read_pending(&po->tx_ring)))); in tpacket_snd()
2614 if (po->tx_ring.pg_vec) in packet_sendmsg()
2663 if (po->tx_ring.pg_vec) { in packet_release()
3351 if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) in packet_setsockopt()
3371 if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) in packet_setsockopt()
3384 if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) in packet_setsockopt()
3421 if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) in packet_setsockopt()
3460 if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) in packet_setsockopt()
3707 if (po->tx_ring.pg_vec) { in packet_poll()
3708 if (packet_current_frame(po, &po->tx_ring, TP_STATUS_AVAILABLE)) in packet_poll()
3814 int closing, int tx_ring) in packet_set_ring() argument
3827 if (!closing && tx_ring && (po->tp_version > TPACKET_V2)) { in packet_set_ring()
3832 rb = tx_ring ? &po->tx_ring : &po->rx_ring; in packet_set_ring()
3833 rb_queue = tx_ring ? &sk->sk_write_queue : &sk->sk_receive_queue; in packet_set_ring()
3893 if (!tx_ring) in packet_set_ring()
3894 init_prb_bdqc(po, rb, pg_vec, req_u, tx_ring); in packet_set_ring()
3953 if (!tx_ring) in packet_set_ring()
3954 prb_shutdown_retire_blk_timer(po, tx_ring, rb_queue); in packet_set_ring()
3981 for (rb = &po->rx_ring; rb <= &po->tx_ring; rb++) { in packet_mmap()
3997 for (rb = &po->rx_ring; rb <= &po->tx_ring; rb++) { in packet_mmap()