Home
last modified time | relevance | path

Searched refs:rxd_cnt (Results 1 – 5 of 5) sorted by relevance

/drivers/net/ethernet/netronome/nfp/
Dnfp_net_debugfs.c16 int fl_rd_p, fl_wr_p, rxd_cnt; in nfp_rx_q_show() local
31 rxd_cnt = rx_ring->cnt; in nfp_rx_q_show()
41 for (i = 0; i < rxd_cnt; i++) { in nfp_rx_q_show()
60 if (i == rx_ring->rd_p % rxd_cnt) in nfp_rx_q_show()
62 if (i == rx_ring->wr_p % rxd_cnt) in nfp_rx_q_show()
64 if (i == fl_rd_p % rxd_cnt) in nfp_rx_q_show()
66 if (i == fl_wr_p % rxd_cnt) in nfp_rx_q_show()
Dnfp_net_ethtool.c628 ring->rx_pending = nn->dp.rxd_cnt; in nfp_net_get_ringparam()
632 static int nfp_net_set_ring_size(struct nfp_net *nn, u32 rxd_cnt, u32 txd_cnt) in nfp_net_set_ring_size() argument
640 dp->rxd_cnt = rxd_cnt; in nfp_net_set_ring_size()
651 u32 tx_dpp, qc_min, qc_max, rxd_cnt, txd_cnt; in nfp_net_set_ringparam() local
662 rxd_cnt = roundup_pow_of_two(ring->rx_pending); in nfp_net_set_ringparam()
665 if (rxd_cnt < qc_min || rxd_cnt > qc_max || in nfp_net_set_ringparam()
669 if (nn->dp.rxd_cnt == rxd_cnt && nn->dp.txd_cnt == txd_cnt) in nfp_net_set_ringparam()
673 nn->dp.rxd_cnt, rxd_cnt, nn->dp.txd_cnt, txd_cnt); in nfp_net_set_ringparam()
675 return nfp_net_set_ring_size(nn, rxd_cnt, txd_cnt); in nfp_net_set_ringparam()
Dnfp_net_dp.c309 rx_ring->cnt = dp->rxd_cnt; in nfp_net_rx_ring_alloc()
Dnfp_net.h524 unsigned int rxd_cnt; member
Dnfp_net_common.c2223 nn->dp.rxd_cnt = NFP_NET_RX_DESCS_DEFAULT; in nfp_net_alloc()