src/dpdk/drivers/net/txgbe/base/txgbe_mbx.c
s32 txgbe_check_for_rst_pf(struct txgbe_hw *hw, u16 vf_number)
{
	u32 reg_offset = (vf_number < 32) ? 0 : 1;
	u32 vf_shift = vf_number % 32;
	u32 vflre = 0;
	s32 ret_val = TXGBE_ERR_MBX;

	DEBUGFUNC("txgbe_check_for_rst_pf");

	vflre = rd32(hw, TXGBE_FLRVFE(reg_offset));
	if (vflre & (1 << vf_shift)) {
		ret_val = 0;
		wr32(hw, TXGBE_FLRVFEC(reg_offset), (1 << vf_shift));
		hw->mbx.stats.rsts++;
	}

	return ret_val;
}
/**
 *  txgbe_check_for_rst_pf - checks to see if the VF has reset
 *  @hw: pointer to the HW structure
 *  @vf_number: the VF index
 *
 *  returns 0 if the VF has set the Status bit or else ERR_MBX
 **/
checks to see if the VF has reset
@hw: pointer to the HW structure
@vf_number: the VF index

returns 0 if the VF has set the Status bit or else ERR_MBX
checks to see if the VF has reset @hw : pointer to the HW structure @vf_number : the VF index returns 0 if the VF has set the Status bit or else ERR_MBX
s32 txgbe_check_for_rst_pf(struct txgbe_hw *hw, u16 vf_number)
{
	u32 reg_offset = (vf_number < 32) ? 0 : 1;
	u32 vf_shift = vf_number % 32;
	u32 vflre = 0;
	s32 ret_val = TXGBE_ERR_MBX;
	DEBUGFUNC("txgbe_check_for_rst_pf");
	vflre = rd32(hw, TXGBE_FLRVFE(reg_offset));
	if (vflre & (1 << vf_shift)) {
		ret_val = 0;
		wr32(hw, TXGBE_FLRVFEC(reg_offset), (1 << vf_shift));
		hw->mbx.stats.rsts++;
	}
	return ret_val;
}
s32 txgbe_check_for_rst_pf ( struct txgbe_hw * hw , u16 vf_number ) { u32 reg_offset = ( vf_number < 32 ) ? 0 : 1 ; u32 vf_shift = vf_number % 32 ; u32 vflre = 0 ; s32 ret_val = TXGBE_ERR_MBX ; DEBUGFUNC ( " " ) ; vflre = rd32 ( hw , TXGBE_FLRVFE ( reg_offset ) ) ; if ( vflre & ( 1 << vf_shift ) ) { ret_val = 0 ; wr32 ( hw , TXGBE_FLRVFEC ( reg_offset ) , ( 1 << vf_shift ) ) ; hw -> mbx . stats . rsts ++ ; } return ret_val ; }
txgbe_check_for_rst_pf - checks to see if the VF has reset
  @hw: pointer to the HW structure
  @vf_number: the VF index
txgbe_check_for_rst_pf - checks to see if the VF has reset @hw : pointer to the HW structure @vf_number : the VF index