Searched refs:txd_cnt (Results 1 – 5 of 5) sorted by relevance
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/nfdk/ |
D | rings.c | 97 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.1.9/drivers/net/ethernet/netronome/nfp/nfd3/ |
D | rings.c | 131 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.1.9/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_ethtool.c | 434 ring->tx_pending = nn->dp.txd_cnt; in nfp_net_get_ringparam() 437 static int nfp_net_set_ring_size(struct nfp_net *nn, u32 rxd_cnt, u32 txd_cnt) in nfp_net_set_ring_size() argument 446 dp->txd_cnt = txd_cnt; in nfp_net_set_ring_size() 456 u32 tx_dpp, qc_min, qc_max, rxd_cnt, txd_cnt; in nfp_net_set_ringparam() local 468 txd_cnt = roundup_pow_of_two(ring->tx_pending); in nfp_net_set_ringparam() 471 txd_cnt < qc_min / tx_dpp || txd_cnt > qc_max / tx_dpp) in nfp_net_set_ringparam() 474 if (nn->dp.rxd_cnt == rxd_cnt && nn->dp.txd_cnt == txd_cnt) in nfp_net_set_ringparam() 478 nn->dp.rxd_cnt, rxd_cnt, nn->dp.txd_cnt, txd_cnt); in nfp_net_set_ringparam() 480 return nfp_net_set_ring_size(nn, rxd_cnt, txd_cnt); in nfp_net_set_ringparam()
|
D | nfp_net.h | 523 unsigned int txd_cnt; member
|
D | nfp_net_common.c | 2222 nn->dp.txd_cnt = NFP_NET_TX_DESCS_DEFAULT; in nfp_net_alloc()
|