Lines Matching refs:wr_idx

122 	unsigned int wr_idx;  in nfp_nfdk_tx_maybe_close_block()  local
160 wr_idx = D_IDX(tx_ring, wr_p); in nfp_nfdk_tx_maybe_close_block()
161 tx_ring->ktxbufs[wr_idx].skb = NULL; in nfp_nfdk_tx_maybe_close_block()
162 txd = &tx_ring->ktxds[wr_idx]; in nfp_nfdk_tx_maybe_close_block()
244 int nr_frags, wr_idx; in nfp_nfdk_tx() local
278 wr_idx = D_IDX(tx_ring, tx_ring->wr_p); in nfp_nfdk_tx()
279 txd = &tx_ring->ktxds[wr_idx]; in nfp_nfdk_tx()
280 txbuf = &tx_ring->ktxbufs[wr_idx]; in nfp_nfdk_tx()
381 cnt = txd - tx_ring->ktxds - wr_idx; in nfp_nfdk_tx()
382 if (unlikely(round_down(wr_idx, NFDK_TX_DESC_BLOCK_CNT) != in nfp_nfdk_tx()
383 round_down(wr_idx + cnt - 1, NFDK_TX_DESC_BLOCK_CNT))) in nfp_nfdk_tx()
405 wr_idx, skb_headlen(skb), nr_frags, cnt); in nfp_nfdk_tx()
412 txbuf = &tx_ring->ktxbufs[wr_idx + 1]; in nfp_nfdk_tx()
583 unsigned int wr_idx; in nfp_nfdk_rx_give_one() local
585 wr_idx = D_IDX(rx_ring, rx_ring->wr_p); in nfp_nfdk_rx_give_one()
590 rx_ring->rxbufs[wr_idx].frag = frag; in nfp_nfdk_rx_give_one()
591 rx_ring->rxbufs[wr_idx].dma_addr = dma_addr; in nfp_nfdk_rx_give_one()
594 rx_ring->rxds[wr_idx].fld.reserved = 0; in nfp_nfdk_rx_give_one()
595 rx_ring->rxds[wr_idx].fld.meta_len_dd = 0; in nfp_nfdk_rx_give_one()
596 nfp_desc_set_dma_addr_48b(&rx_ring->rxds[wr_idx].fld, in nfp_nfdk_rx_give_one()
873 int wr_idx; in nfp_nfdk_tx_xdp_buf() local
904 wr_idx = D_IDX(tx_ring, tx_ring->wr_p); in nfp_nfdk_tx_xdp_buf()
905 txd = &tx_ring->ktxds[wr_idx]; in nfp_nfdk_tx_xdp_buf()
914 wr_idx = D_IDX(tx_ring, tx_ring->wr_p); in nfp_nfdk_tx_xdp_buf()
916 txbuf = &tx_ring->ktxbufs[wr_idx]; in nfp_nfdk_tx_xdp_buf()
926 txd = &tx_ring->ktxds[wr_idx]; in nfp_nfdk_tx_xdp_buf()
968 cnt = txd - tx_ring->ktxds - wr_idx; in nfp_nfdk_tx_xdp_buf()
1284 int wr_idx; in nfp_nfdk_ctrl_tx_one() local
1323 wr_idx = D_IDX(tx_ring, tx_ring->wr_p); in nfp_nfdk_ctrl_tx_one()
1324 txd = &tx_ring->ktxds[wr_idx]; in nfp_nfdk_ctrl_tx_one()
1325 txbuf = &tx_ring->ktxbufs[wr_idx]; in nfp_nfdk_ctrl_tx_one()
1375 cnt = txd - tx_ring->ktxds - wr_idx; in nfp_nfdk_ctrl_tx_one()
1376 if (unlikely(round_down(wr_idx, NFDK_TX_DESC_BLOCK_CNT) != in nfp_nfdk_ctrl_tx_one()
1377 round_down(wr_idx + cnt - 1, NFDK_TX_DESC_BLOCK_CNT))) in nfp_nfdk_ctrl_tx_one()
1393 wr_idx, skb_headlen(skb), 0, cnt); in nfp_nfdk_ctrl_tx_one()