Searched refs:bcnrc_val (Results 1 – 3 of 3) sorted by relevance
1573 u32 bcnrc_val = 0; in ixgbe_set_vf_rate_limit() local1579 bcnrc_val = adapter->vf_rate_link_speed; in ixgbe_set_vf_rate_limit()1582 bcnrc_val <<= IXGBE_RTTBCNRC_RF_INT_SHIFT; in ixgbe_set_vf_rate_limit()1583 bcnrc_val /= tx_rate; in ixgbe_set_vf_rate_limit()1586 bcnrc_val &= IXGBE_RTTBCNRC_RF_INT_MASK | in ixgbe_set_vf_rate_limit()1590 bcnrc_val |= IXGBE_RTTBCNRC_RS_ENA; in ixgbe_set_vf_rate_limit()1617 IXGBE_WRITE_REG(hw, IXGBE_RTTBCNRC, bcnrc_val); in ixgbe_set_vf_rate_limit()
1085 u32 bcnrc_val = ixgbe_link_mbps(adapter); in ixgbe_tx_maxrate() local1091 bcnrc_val <<= IXGBE_RTTBCNRC_RF_INT_SHIFT; in ixgbe_tx_maxrate()1092 bcnrc_val /= maxrate; in ixgbe_tx_maxrate()1095 bcnrc_val &= IXGBE_RTTBCNRC_RF_INT_MASK | in ixgbe_tx_maxrate()1099 bcnrc_val |= IXGBE_RTTBCNRC_RS_ENA; in ixgbe_tx_maxrate()1102 IXGBE_WRITE_REG(hw, IXGBE_RTTBCNRC, bcnrc_val); in ixgbe_tx_maxrate()
9794 u32 bcnrc_val; in igb_set_vf_rate_limit() local9803 bcnrc_val = E1000_RTTBCNRC_RS_ENA; in igb_set_vf_rate_limit()9804 bcnrc_val |= FIELD_PREP(E1000_RTTBCNRC_RF_INT_MASK, rf_int); in igb_set_vf_rate_limit()9805 bcnrc_val |= (rf_dec & E1000_RTTBCNRC_RF_DEC_MASK); in igb_set_vf_rate_limit()9807 bcnrc_val = 0; in igb_set_vf_rate_limit()9815 wr32(E1000_RTTBCNRC, bcnrc_val); in igb_set_vf_rate_limit()