FreeBSD/sys/dev/bxe/bxe.c
/* 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
bxe_clear_reset_global(struct bxe_softc *sc)
{
    uint32_t val;
    bxe_acquire_hw_lock(sc, HW_LOCK_RESOURCE_RECOVERY_REG);
    val = REG_RD(sc, BXE_RECOVERY_GLOB_REG);
    REG_WR(sc, BXE_RECOVERY_GLOB_REG, val & (~BXE_GLOBAL_RESET_BIT));
    bxe_release_hw_lock(sc, HW_LOCK_RESOURCE_RECOVERY_REG);
}
static void bxe_clear_reset_global ( struct bxe_softc * sc ) { uint32_t val ; bxe_acquire_hw_lock ( sc , HW_LOCK_RESOURCE_RECOVERY_REG ) ; val = REG_RD ( sc , BXE_RECOVERY_GLOB_REG ) ; REG_WR ( sc , BXE_RECOVERY_GLOB_REG , val & ( ~ BXE_GLOBAL_RESET_BIT ) ) ; bxe_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