Searched refs:bcnrc_val (Results 1 – 3 of 3) sorted by relevance
1519 u32 bcnrc_val = 0; in ixgbe_set_vf_rate_limit() local1525 bcnrc_val = adapter->vf_rate_link_speed; in ixgbe_set_vf_rate_limit()1528 bcnrc_val <<= IXGBE_RTTBCNRC_RF_INT_SHIFT; in ixgbe_set_vf_rate_limit()1529 bcnrc_val /= tx_rate; in ixgbe_set_vf_rate_limit()1532 bcnrc_val &= IXGBE_RTTBCNRC_RF_INT_MASK | in ixgbe_set_vf_rate_limit()1536 bcnrc_val |= IXGBE_RTTBCNRC_RS_ENA; in ixgbe_set_vf_rate_limit()1563 IXGBE_WRITE_REG(hw, IXGBE_RTTBCNRC, bcnrc_val); in ixgbe_set_vf_rate_limit()
1082 u32 bcnrc_val = ixgbe_link_mbps(adapter); in ixgbe_tx_maxrate() local1088 bcnrc_val <<= IXGBE_RTTBCNRC_RF_INT_SHIFT; in ixgbe_tx_maxrate()1089 bcnrc_val /= maxrate; in ixgbe_tx_maxrate()1092 bcnrc_val &= IXGBE_RTTBCNRC_RF_INT_MASK | in ixgbe_tx_maxrate()1096 bcnrc_val |= IXGBE_RTTBCNRC_RS_ENA; in ixgbe_tx_maxrate()1099 IXGBE_WRITE_REG(hw, IXGBE_RTTBCNRC, bcnrc_val); in ixgbe_tx_maxrate()
9613 u32 bcnrc_val; in igb_set_vf_rate_limit() local9622 bcnrc_val = E1000_RTTBCNRC_RS_ENA; in igb_set_vf_rate_limit()9623 bcnrc_val |= ((rf_int << E1000_RTTBCNRC_RF_INT_SHIFT) & in igb_set_vf_rate_limit()9625 bcnrc_val |= (rf_dec & E1000_RTTBCNRC_RF_DEC_MASK); in igb_set_vf_rate_limit()9627 bcnrc_val = 0; in igb_set_vf_rate_limit()9635 wr32(E1000_RTTBCNRC, bcnrc_val); in igb_set_vf_rate_limit()