Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sriov.c1493 u32 bcnrc_val = 0; in ixgbe_set_vf_rate_limit() local
1499 bcnrc_val = adapter->vf_rate_link_speed; in ixgbe_set_vf_rate_limit()
1502 bcnrc_val <<= IXGBE_RTTBCNRC_RF_INT_SHIFT; in ixgbe_set_vf_rate_limit()
1503 bcnrc_val /= tx_rate; in ixgbe_set_vf_rate_limit()
1506 bcnrc_val &= IXGBE_RTTBCNRC_RF_INT_MASK | in ixgbe_set_vf_rate_limit()
1510 bcnrc_val |= IXGBE_RTTBCNRC_RS_ENA; in ixgbe_set_vf_rate_limit()
1537 IXGBE_WRITE_REG(hw, IXGBE_RTTBCNRC, bcnrc_val); in ixgbe_set_vf_rate_limit()
Dixgbe_main.c1079 u32 bcnrc_val = ixgbe_link_mbps(adapter); in ixgbe_tx_maxrate() local
1085 bcnrc_val <<= IXGBE_RTTBCNRC_RF_INT_SHIFT; in ixgbe_tx_maxrate()
1086 bcnrc_val /= maxrate; in ixgbe_tx_maxrate()
1089 bcnrc_val &= IXGBE_RTTBCNRC_RF_INT_MASK | in ixgbe_tx_maxrate()
1093 bcnrc_val |= IXGBE_RTTBCNRC_RS_ENA; in ixgbe_tx_maxrate()
1096 IXGBE_WRITE_REG(hw, IXGBE_RTTBCNRC, bcnrc_val); in ixgbe_tx_maxrate()
/Linux-v4.19/drivers/net/ethernet/intel/igb/
Digb_main.c9274 u32 bcnrc_val; in igb_set_vf_rate_limit() local
9283 bcnrc_val = E1000_RTTBCNRC_RS_ENA; in igb_set_vf_rate_limit()
9284 bcnrc_val |= ((rf_int << E1000_RTTBCNRC_RF_INT_SHIFT) & in igb_set_vf_rate_limit()
9286 bcnrc_val |= (rf_dec & E1000_RTTBCNRC_RF_DEC_MASK); in igb_set_vf_rate_limit()
9288 bcnrc_val = 0; in igb_set_vf_rate_limit()
9296 wr32(E1000_RTTBCNRC, bcnrc_val); in igb_set_vf_rate_limit()