Lines Matching refs:n_descs
122 unsigned int n_descs, wr_p, nop_slots; in nfp_nfdk_tx_maybe_close_block() local
130 n_descs = nfp_nfdk_headlen_to_segs(skb_headlen(skb)); in nfp_nfdk_tx_maybe_close_block()
135 n_descs += DIV_ROUND_UP(skb_frag_size(frag), in nfp_nfdk_tx_maybe_close_block()
138 if (unlikely(n_descs > NFDK_TX_DESC_GATHER_MAX)) { in nfp_nfdk_tx_maybe_close_block()
149 n_descs += !!skb_is_gso(skb); in nfp_nfdk_tx_maybe_close_block()
152 round_down(tx_ring->wr_p + n_descs, NFDK_TX_DESC_BLOCK_CNT)) in nfp_nfdk_tx_maybe_close_block()
497 unsigned int size, n_descs = 1; in nfp_nfdk_tx_complete() local
507 n_descs = D_BLOCK_CPL(rd_p); in nfp_nfdk_tx_complete()
513 n_descs += nfp_nfdk_headlen_to_segs(size); in nfp_nfdk_tx_complete()
522 n_descs += DIV_ROUND_UP(size, in nfp_nfdk_tx_complete()
535 n_descs++; in nfp_nfdk_tx_complete()
540 rd_p += n_descs; in nfp_nfdk_tx_complete()
541 todo -= n_descs; in nfp_nfdk_tx_complete()
908 unsigned int n_descs; in nfp_nfdk_tx_xdp_buf() local
934 n_descs = nfp_nfdk_headlen_to_segs(pkt_len); in nfp_nfdk_tx_xdp_buf()
936 round_down(tx_ring->wr_p + n_descs, NFDK_TX_DESC_BLOCK_CNT)) || in nfp_nfdk_tx_xdp_buf()