src/dpdk/drivers/net/bnx2x/bnx2x.c
static void bnx2x_set_reset_in_progress(struct bnx2x_softc *sc)
{
	uint32_t val;
	uint32_t bit = SC_PATH(sc) ? BNX2X_PATH1_RST_IN_PROG_BIT :
	    BNX2X_PATH0_RST_IN_PROG_BIT;

	bnx2x_acquire_hw_lock(sc, HW_LOCK_RESOURCE_RECOVERY_REG);

	val = REG_RD(sc, BNX2X_RECOVERY_GLOB_REG);
	/* Set the bit */
	val |= bit;
	REG_WR(sc, BNX2X_RECOVERY_GLOB_REG, val);

	bnx2x_release_hw_lock(sc, HW_LOCK_RESOURCE_RECOVERY_REG);
}
/* set RESET_IN_PROGRESS for the engine, should be run under rtnl lock */
set RESET_IN_PROGRESS for the engine, should be run under rtnl lock
set RESET_IN_PROGRESS for the engine should be run under rtnl lock
static void bnx2x_set_reset_in_progress(struct bnx2x_softc *sc)
{
	uint32_t val;
	uint32_t bit = SC_PATH(sc) ? BNX2X_PATH1_RST_IN_PROG_BIT :
	    BNX2X_PATH0_RST_IN_PROG_BIT;
	bnx2x_acquire_hw_lock(sc, HW_LOCK_RESOURCE_RECOVERY_REG);
	val = REG_RD(sc, BNX2X_RECOVERY_GLOB_REG);
	val |= bit;
	REG_WR(sc, BNX2X_RECOVERY_GLOB_REG, val);
	bnx2x_release_hw_lock(sc, HW_LOCK_RESOURCE_RECOVERY_REG);
}
static void bnx2x_set_reset_in_progress ( struct bnx2x_softc * sc ) { uint32_t val ; uint32_t bit = SC_PATH ( sc ) ? BNX2X_PATH1_RST_IN_PROG_BIT : BNX2X_PATH0_RST_IN_PROG_BIT ; bnx2x_acquire_hw_lock ( sc , HW_LOCK_RESOURCE_RECOVERY_REG ) ; val = REG_RD ( sc , BNX2X_RECOVERY_GLOB_REG ) ; val |= bit ; REG_WR ( sc , BNX2X_RECOVERY_GLOB_REG , val ) ; bnx2x_release_hw_lock ( sc , HW_LOCK_RESOURCE_RECOVERY_REG ) ; }
set RESET_IN_PROGRESS for the engine, should be run under rtnl lock
set RESET_IN_PROGRESS for the engine should be run under rtnl lock
/* Set the bit */