Lines Matching refs:n_descs
130 unsigned int n_descs, wr_p, nop_slots; in nfp_nfdk_tx_maybe_close_block() local
138 n_descs = nfp_nfdk_headlen_to_segs(skb_headlen(skb)); in nfp_nfdk_tx_maybe_close_block()
143 n_descs += DIV_ROUND_UP(skb_frag_size(frag), in nfp_nfdk_tx_maybe_close_block()
146 if (unlikely(n_descs > NFDK_TX_DESC_GATHER_MAX)) { in nfp_nfdk_tx_maybe_close_block()
157 n_descs += !!skb_is_gso(skb); in nfp_nfdk_tx_maybe_close_block()
160 round_down(tx_ring->wr_p + n_descs, NFDK_TX_DESC_BLOCK_CNT)) in nfp_nfdk_tx_maybe_close_block()
484 unsigned int size, n_descs = 1; in nfp_nfdk_tx_complete() local
494 n_descs = D_BLOCK_CPL(rd_p); in nfp_nfdk_tx_complete()
500 n_descs += nfp_nfdk_headlen_to_segs(size); in nfp_nfdk_tx_complete()
509 n_descs += DIV_ROUND_UP(size, in nfp_nfdk_tx_complete()
522 n_descs++; in nfp_nfdk_tx_complete()
527 rd_p += n_descs; in nfp_nfdk_tx_complete()
528 todo -= n_descs; in nfp_nfdk_tx_complete()
875 unsigned int n_descs; in nfp_nfdk_tx_xdp_buf() local
901 n_descs = nfp_nfdk_headlen_to_segs(pkt_len); in nfp_nfdk_tx_xdp_buf()
903 round_down(tx_ring->wr_p + n_descs, NFDK_TX_DESC_BLOCK_CNT)) || in nfp_nfdk_tx_xdp_buf()