FreeBSD/sys/dev/bxe/ecore_sp.c
/* return a queue object's logical state*/
return a queue object's logical state
return a queue object ' s logical state
int ecore_get_q_logical_state(struct bxe_softc *sc,
			       struct ecore_queue_sp_obj *obj)
{
	switch (obj->state) {
	case ECORE_Q_STATE_ACTIVE:
	case ECORE_Q_STATE_MULTI_COS:
		return ECORE_Q_LOGICAL_STATE_ACTIVE;
	case ECORE_Q_STATE_RESET:
	case ECORE_Q_STATE_INITIALIZED:
	case ECORE_Q_STATE_MCOS_TERMINATED:
	case ECORE_Q_STATE_INACTIVE:
	case ECORE_Q_STATE_STOPPED:
	case ECORE_Q_STATE_TERMINATED:
	case ECORE_Q_STATE_FLRED:
		return ECORE_Q_LOGICAL_STATE_STOPPED;
	default:
		return ECORE_INVAL;
	}
}
int ecore_get_q_logical_state ( struct bxe_softc * sc , struct ecore_queue_sp_obj * obj ) { switch ( obj -> state ) { case ECORE_Q_STATE_ACTIVE : case ECORE_Q_STATE_MULTI_COS : return ECORE_Q_LOGICAL_STATE_ACTIVE ; case ECORE_Q_STATE_RESET : case ECORE_Q_STATE_INITIALIZED : case ECORE_Q_STATE_MCOS_TERMINATED : case ECORE_Q_STATE_INACTIVE : case ECORE_Q_STATE_STOPPED : case ECORE_Q_STATE_TERMINATED : case ECORE_Q_STATE_FLRED : return ECORE_Q_LOGICAL_STATE_STOPPED ; default : return ECORE_INVAL ; } }
return a queue object's logical state
return a queue object ' s logical state