Home
last modified time | relevance | path

Searched refs:tx_cp (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_xdp.c389 int tx_xdp = 0, tx_cp, rc, tc; in bnxt_xdp_set() local
437 tx_cp = bnxt_num_tx_to_cp(bp, bp->tx_nr_rings); in bnxt_xdp_set()
438 bp->cp_nr_rings = max_t(int, tx_cp, bp->rx_nr_rings); in bnxt_xdp_set()
Dbnxt.c7630 int tx_cp; in __bnxt_reserve_rings() local
7692 tx_cp = bnxt_num_tx_to_cp(bp, hwr.tx); in __bnxt_reserve_rings()
7693 hwr.cp = sh ? max_t(int, tx_cp, rx_rings) : tx_cp + rx_rings; in __bnxt_reserve_rings()
10565 static int bnxt_num_cp_to_tx(struct bnxt *bp, int tx_cp) in bnxt_num_cp_to_tx() argument
10569 return (tx_cp - bp->tx_nr_rings_xdp) * tcs + in bnxt_num_cp_to_tx()
10576 int tx_cp = bnxt_num_tx_to_cp(bp, *tx); in bnxt_trim_rings() local
10578 if (tx_cp != *tx) { in bnxt_trim_rings()
10579 int tx_saved = tx_cp, rc; in bnxt_trim_rings()
10581 rc = __bnxt_trim_rings(bp, rx, &tx_cp, max, sh); in bnxt_trim_rings()
10584 if (tx_cp != tx_saved) in bnxt_trim_rings()
[all …]
Dbnxt_ethtool.c927 int tx_cp; in bnxt_set_channels() local
995 tx_cp = bnxt_num_tx_to_cp(bp, bp->tx_nr_rings); in bnxt_set_channels()
996 bp->cp_nr_rings = sh ? max_t(int, tx_cp, bp->rx_nr_rings) : in bnxt_set_channels()
997 tx_cp + bp->rx_nr_rings; in bnxt_set_channels()