Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/net/ethernet/netronome/nfp/nfdk/
Drings.c97 tx_ring->cnt = dp->txd_cnt * NFDK_TX_DESC_PER_SIMPLE_PKT; in nfp_nfdk_tx_ring_alloc()
144 u32 txd_cnt = tx_ring->cnt; in nfp_nfdk_print_tx_descs() local
147 for (i = 0; i < txd_cnt; i++) { in nfp_nfdk_print_tx_descs()
153 if (i == tx_ring->rd_p % txd_cnt) in nfp_nfdk_print_tx_descs()
155 if (i == tx_ring->wr_p % txd_cnt) in nfp_nfdk_print_tx_descs()
157 if (i == d_rd_p % txd_cnt) in nfp_nfdk_print_tx_descs()
159 if (i == d_wr_p % txd_cnt) in nfp_nfdk_print_tx_descs()
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/nfd3/
Drings.c131 tx_ring->cnt = dp->txd_cnt; in nfp_nfd3_tx_ring_alloc()
205 u32 txd_cnt = tx_ring->cnt; in nfp_nfd3_print_tx_descs() local
208 for (i = 0; i < txd_cnt; i++) { in nfp_nfd3_print_tx_descs()
232 if (i == tx_ring->rd_p % txd_cnt) in nfp_nfd3_print_tx_descs()
234 if (i == tx_ring->wr_p % txd_cnt) in nfp_nfd3_print_tx_descs()
236 if (i == d_rd_p % txd_cnt) in nfp_nfd3_print_tx_descs()
238 if (i == d_wr_p % txd_cnt) in nfp_nfd3_print_tx_descs()
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/
Dnfp_net_ethtool.c633 ring->tx_pending = nn->dp.txd_cnt; in nfp_net_get_ringparam()
636 static int nfp_net_set_ring_size(struct nfp_net *nn, u32 rxd_cnt, u32 txd_cnt) in nfp_net_set_ring_size() argument
645 dp->txd_cnt = txd_cnt; in nfp_net_set_ring_size()
655 u32 tx_dpp, qc_min, qc_max, rxd_cnt, txd_cnt; in nfp_net_set_ringparam() local
667 txd_cnt = roundup_pow_of_two(ring->tx_pending); in nfp_net_set_ringparam()
670 txd_cnt < qc_min / tx_dpp || txd_cnt > qc_max / tx_dpp) in nfp_net_set_ringparam()
673 if (nn->dp.rxd_cnt == rxd_cnt && nn->dp.txd_cnt == txd_cnt) in nfp_net_set_ringparam()
677 nn->dp.rxd_cnt, rxd_cnt, nn->dp.txd_cnt, txd_cnt); in nfp_net_set_ringparam()
679 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.c2366 nn->dp.txd_cnt = NFP_NET_TX_DESCS_DEFAULT; in nfp_net_alloc()