Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sriov.c1577 u32 bcnrc_val = 0; in ixgbe_set_vf_rate_limit() local
1583 bcnrc_val = adapter->vf_rate_link_speed; in ixgbe_set_vf_rate_limit()
1586 bcnrc_val <<= IXGBE_RTTBCNRC_RF_INT_SHIFT; in ixgbe_set_vf_rate_limit()
1587 bcnrc_val /= tx_rate; in ixgbe_set_vf_rate_limit()
1590 bcnrc_val &= IXGBE_RTTBCNRC_RF_INT_MASK | in ixgbe_set_vf_rate_limit()
1594 bcnrc_val |= IXGBE_RTTBCNRC_RS_ENA; in ixgbe_set_vf_rate_limit()
1621 IXGBE_WRITE_REG(hw, IXGBE_RTTBCNRC, bcnrc_val); in ixgbe_set_vf_rate_limit()
Dixgbe_main.c1086 u32 bcnrc_val = ixgbe_link_mbps(adapter); in ixgbe_tx_maxrate() local
1092 bcnrc_val <<= IXGBE_RTTBCNRC_RF_INT_SHIFT; in ixgbe_tx_maxrate()
1093 bcnrc_val /= maxrate; in ixgbe_tx_maxrate()
1096 bcnrc_val &= IXGBE_RTTBCNRC_RF_INT_MASK | in ixgbe_tx_maxrate()
1100 bcnrc_val |= IXGBE_RTTBCNRC_RS_ENA; in ixgbe_tx_maxrate()
1103 IXGBE_WRITE_REG(hw, IXGBE_RTTBCNRC, bcnrc_val); in ixgbe_tx_maxrate()
/Linux-v6.6/drivers/net/ethernet/intel/igb/
Digb_main.c9804 u32 bcnrc_val; in igb_set_vf_rate_limit() local
9813 bcnrc_val = E1000_RTTBCNRC_RS_ENA; in igb_set_vf_rate_limit()
9814 bcnrc_val |= ((rf_int << E1000_RTTBCNRC_RF_INT_SHIFT) & in igb_set_vf_rate_limit()
9816 bcnrc_val |= (rf_dec & E1000_RTTBCNRC_RF_DEC_MASK); in igb_set_vf_rate_limit()
9818 bcnrc_val = 0; in igb_set_vf_rate_limit()
9826 wr32(E1000_RTTBCNRC, bcnrc_val); in igb_set_vf_rate_limit()