FreeBSD/sys/dev/bxe/bxe.c
/* 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
bxe_set_reset_in_progress(struct bxe_softc *sc)
{
    uint32_t val;
    uint32_t bit = SC_PATH(sc) ? BXE_PATH1_RST_IN_PROG_BIT :
                                 BXE_PATH0_RST_IN_PROG_BIT;
    bxe_acquire_hw_lock(sc, HW_LOCK_RESOURCE_RECOVERY_REG);
    val = REG_RD(sc, BXE_RECOVERY_GLOB_REG);
    val |= bit;
    REG_WR(sc, BXE_RECOVERY_GLOB_REG, val);
    bxe_release_hw_lock(sc, HW_LOCK_RESOURCE_RECOVERY_REG);
}
static void bxe_set_reset_in_progress ( struct bxe_softc * sc ) { uint32_t val ; uint32_t bit = SC_PATH ( sc ) ? BXE_PATH1_RST_IN_PROG_BIT : BXE_PATH0_RST_IN_PROG_BIT ; bxe_acquire_hw_lock ( sc , HW_LOCK_RESOURCE_RECOVERY_REG ) ; val = REG_RD ( sc , BXE_RECOVERY_GLOB_REG ) ; val |= bit ; REG_WR ( sc , BXE_RECOVERY_GLOB_REG , val ) ; bxe_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 */