src/dpdk/drivers/net/bnx2x/bnx2x.c
static void bnx2x_clear_reset_global(struct bnx2x_softc *sc)
{
	uint32_t val;
	bnx2x_acquire_hw_lock(sc, HW_LOCK_RESOURCE_RECOVERY_REG);
	val = REG_RD(sc, BNX2X_RECOVERY_GLOB_REG);
	REG_WR(sc, BNX2X_RECOVERY_GLOB_REG, val & (~BNX2X_GLOBAL_RESET_BIT));
	bnx2x_release_hw_lock(sc, HW_LOCK_RESOURCE_RECOVERY_REG);
}
/* clear the GLOBAL_RESET bit, should be run under rtnl lock */
clear the GLOBAL_RESET bit, should be run under rtnl lock
clear the GLOBAL_RESET bit should be run under rtnl lock
static void bnx2x_clear_reset_global(struct bnx2x_softc *sc)
{
	uint32_t val;
	bnx2x_acquire_hw_lock(sc, HW_LOCK_RESOURCE_RECOVERY_REG);
	val = REG_RD(sc, BNX2X_RECOVERY_GLOB_REG);
	REG_WR(sc, BNX2X_RECOVERY_GLOB_REG, val & (~BNX2X_GLOBAL_RESET_BIT));
	bnx2x_release_hw_lock(sc, HW_LOCK_RESOURCE_RECOVERY_REG);
}
static void bnx2x_clear_reset_global ( struct bnx2x_softc * sc ) { uint32_t val ; bnx2x_acquire_hw_lock ( sc , HW_LOCK_RESOURCE_RECOVERY_REG ) ; val = REG_RD ( sc , BNX2X_RECOVERY_GLOB_REG ) ; REG_WR ( sc , BNX2X_RECOVERY_GLOB_REG , val & ( ~ BNX2X_GLOBAL_RESET_BIT ) ) ; bnx2x_release_hw_lock ( sc , HW_LOCK_RESOURCE_RECOVERY_REG ) ; }
clear the GLOBAL_RESET bit, should be run under rtnl lock
clear the GLOBAL_RESET bit should be run under rtnl lock