Lines Matching refs:tx_credits
3857 u16 pcifunc, u64 tx_credits) in nix_config_link_credits() argument
3874 if (tx_credits == nix_hw->tx_credits[link]) in nix_config_link_credits()
3904 } while (credits != nix_hw->tx_credits[link]); in nix_config_link_credits()
3907 cfg |= (tx_credits << 12); in nix_config_link_credits()
3911 nix_hw->tx_credits[link] = tx_credits; in nix_config_link_credits()
4072 u64 tx_credits, cfg; in nix_link_config() local
4120 tx_credits = (lmac_fifo_len - lmac_max_frs) / 16; in nix_link_config()
4122 cfg = (tx_credits << 12) | (0x1FF << 2) | BIT_ULL(1); in nix_link_config()
4125 nix_hw->tx_credits[link] = tx_credits; in nix_link_config()
4134 tx_credits = rvu_get_lbk_link_credits(rvu, lbk_max_frs); in nix_link_config()
4135 nix_hw->tx_credits[link] = tx_credits; in nix_link_config()
4137 tx_credits = (tx_credits << 12) | (0x1FF << 2) | BIT_ULL(1); in nix_link_config()
4139 NIX_AF_TX_LINKX_NORM_CREDIT(link), tx_credits); in nix_link_config()
4408 nix_hw->tx_credits = kcalloc(hw->cgx_links + hw->lbk_links, in rvu_nix_block_init()
4410 if (!nix_hw->tx_credits) in rvu_nix_block_init()
4470 kfree(nix_hw->tx_credits); in rvu_nix_block_freemem()