sys/dev/cxgbe/t4_sge.c
/*
 * Allocate and initialize the firmware event queue and the management queue.
 *
 * Returns errno on failure.  Resources allocated up to that point may still be
 * allocated.  Caller is responsible for cleanup in case this function fails.
 */
Allocate and initialize the firmware event queue and the management queue.
Returns errno on failure.  Resources allocated up to that point may still be
allocated.  Caller is responsible for cleanup in case this function fails.
Allocate and initialize the firmware event queue and the management queue . Returns errno on failure . Resources allocated up to that point may still be allocated . Caller is responsible for cleanup in case this function fails .
int
t4_setup_adapter_queues(struct adapter *sc)
{
	int rc;
	ADAPTER_LOCK_ASSERT_NOTOWNED(sc);
	sysctl_ctx_init(&sc->ctx);
	sc->flags |= ADAP_SYSCTL_CTX;
	rc = alloc_fwq(sc);
	if (rc != 0)
		return (rc);
	rc = alloc_mgmtq(sc);
	return (rc);
}
int t4_setup_adapter_queues ( struct adapter * sc ) { int rc ; ADAPTER_LOCK_ASSERT_NOTOWNED ( sc ) ; sysctl_ctx_init ( & sc -> ctx ) ; sc -> flags |= ADAP_SYSCTL_CTX ; rc = alloc_fwq ( sc ) ; if ( rc != 0 ) return ( rc ) ; rc = alloc_mgmtq ( sc ) ; return ( rc ) ; }
Allocate and initialize the firmware event queue and the management queue.
Allocate and initialize the firmware event queue and the management queue .
/*
	 * Firmware event queue
	 */ /*
	 * Management queue.  This is just a control queue that uses the fwq as
	 * its associated iq.
	 */