Home
last modified time | relevance | path

Searched refs:txd_cnt (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/netronome/nfp/
Dnfp_net_debugfs.c127 int d_rd_p, d_wr_p, txd_cnt; in nfp_net_debugfs_tx_q_read() local
143 txd_cnt = tx_ring->cnt; in nfp_net_debugfs_tx_q_read()
154 for (i = 0; i < txd_cnt; i++) { in nfp_net_debugfs_tx_q_read()
175 if (i == tx_ring->rd_p % txd_cnt) in nfp_net_debugfs_tx_q_read()
177 if (i == tx_ring->wr_p % txd_cnt) in nfp_net_debugfs_tx_q_read()
179 if (i == d_rd_p % txd_cnt) in nfp_net_debugfs_tx_q_read()
181 if (i == d_wr_p % txd_cnt) in nfp_net_debugfs_tx_q_read()
Dnfp_net_ethtool.c394 ring->tx_pending = nn->dp.txd_cnt; in nfp_net_get_ringparam()
397 static int nfp_net_set_ring_size(struct nfp_net *nn, u32 rxd_cnt, u32 txd_cnt) in nfp_net_set_ring_size() argument
406 dp->txd_cnt = txd_cnt; in nfp_net_set_ring_size()
415 u32 rxd_cnt, txd_cnt; in nfp_net_set_ringparam() local
423 txd_cnt = roundup_pow_of_two(ring->tx_pending); in nfp_net_set_ringparam()
426 txd_cnt < NFP_NET_MIN_TX_DESCS || txd_cnt > NFP_NET_MAX_TX_DESCS) in nfp_net_set_ringparam()
429 if (nn->dp.rxd_cnt == rxd_cnt && nn->dp.txd_cnt == txd_cnt) in nfp_net_set_ringparam()
433 nn->dp.rxd_cnt, rxd_cnt, nn->dp.txd_cnt, txd_cnt); in nfp_net_set_ringparam()
435 return nfp_net_set_ring_size(nn, rxd_cnt, txd_cnt); in nfp_net_set_ringparam()
Dnfp_net.h532 unsigned int txd_cnt; member
Dnfp_net_common.c2186 tx_ring->cnt = dp->txd_cnt; in nfp_net_tx_ring_alloc()
3624 nn->dp.txd_cnt = NFP_NET_TX_DESCS_DEFAULT; in nfp_net_alloc()