src/dpdk/drivers/net/bnx2x/bnx2x.c
static uint8_t bnx2x_get_load_status(struct bnx2x_softc *sc, int engine)
{
	uint32_t mask = engine ? BNX2X_PATH1_LOAD_CNT_MASK :
	    BNX2X_PATH0_LOAD_CNT_MASK;
	uint32_t shift = engine ? BNX2X_PATH1_LOAD_CNT_SHIFT :
	    BNX2X_PATH0_LOAD_CNT_SHIFT;
	uint32_t val = REG_RD(sc, BNX2X_RECOVERY_GLOB_REG);

	val = ((val & mask) >> shift);

	return val != 0;
}
/* get the load status for an engine, should be run under rtnl lock */
get the load status for an engine, should be run under rtnl lock
get the load status for an engine should be run under rtnl lock
static uint8_t bnx2x_get_load_status(struct bnx2x_softc *sc, int engine)
{
	uint32_t mask = engine ? BNX2X_PATH1_LOAD_CNT_MASK :
	    BNX2X_PATH0_LOAD_CNT_MASK;
	uint32_t shift = engine ? BNX2X_PATH1_LOAD_CNT_SHIFT :
	    BNX2X_PATH0_LOAD_CNT_SHIFT;
	uint32_t val = REG_RD(sc, BNX2X_RECOVERY_GLOB_REG);
	val = ((val & mask) >> shift);
	return val != 0;
}
static uint8_t bnx2x_get_load_status ( struct bnx2x_softc * sc , int engine ) { uint32_t mask = engine ? BNX2X_PATH1_LOAD_CNT_MASK : BNX2X_PATH0_LOAD_CNT_MASK ; uint32_t shift = engine ? BNX2X_PATH1_LOAD_CNT_SHIFT : BNX2X_PATH0_LOAD_CNT_SHIFT ; uint32_t val = REG_RD ( sc , BNX2X_RECOVERY_GLOB_REG ) ; val = ( ( val & mask ) >> shift ) ; return val != 0 ; }
get the load status for an engine, should be run under rtnl lock
get the load status for an engine should be run under rtnl lock