Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sriov.c1519 u32 bcnrc_val = 0; in ixgbe_set_vf_rate_limit() local
1525 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()
Dixgbe_main.c1082 u32 bcnrc_val = ixgbe_link_mbps(adapter); in ixgbe_tx_maxrate() local
1088 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()
/Linux-v5.10/drivers/net/ethernet/intel/igb/
Digb_main.c9613 u32 bcnrc_val; in igb_set_vf_rate_limit() local
9622 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()