mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 21:18:59 +00:00
move inline function above use so that -O works
This commit is contained in:
parent
a0490929c3
commit
8db477416c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167655
@ -168,8 +168,6 @@ int cxgb_debug = 0;
|
||||
static void t3_free_qset(adapter_t *sc, struct sge_qset *q);
|
||||
static void sge_timer_cb(void *arg);
|
||||
static void sge_timer_reclaim(void *arg, int ncount);
|
||||
static __inline void refill_rspq(adapter_t *sc, const struct sge_rspq *q,
|
||||
u_int credits);
|
||||
static int free_tx_desc(adapter_t *sc, struct sge_txq *q, int n, struct mbuf **m_vec);
|
||||
|
||||
/**
|
||||
@ -639,6 +637,24 @@ t3_sge_deinit_sw(adapter_t *sc)
|
||||
taskqueue_drain(sc->tq, &sc->slow_intr_task);
|
||||
}
|
||||
|
||||
/**
|
||||
* refill_rspq - replenish an SGE response queue
|
||||
* @adapter: the adapter
|
||||
* @q: the response queue to replenish
|
||||
* @credits: how many new responses to make available
|
||||
*
|
||||
* Replenishes a response queue by making the supplied number of responses
|
||||
* available to HW.
|
||||
*/
|
||||
static __inline void
|
||||
refill_rspq(adapter_t *sc, const struct sge_rspq *q, u_int credits)
|
||||
{
|
||||
|
||||
/* mbufs are allocated on demand when a rspq entry is processed. */
|
||||
t3_write_reg(sc, A_SG_RSPQ_CREDIT_RETURN,
|
||||
V_RSPQ(q->cntxt_id) | V_CREDITS(credits));
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
sge_timer_reclaim(void *arg, int ncount)
|
||||
@ -1562,24 +1578,6 @@ t3_sge_start(adapter_t *sc)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* refill_rspq - replenish an SGE response queue
|
||||
* @adapter: the adapter
|
||||
* @q: the response queue to replenish
|
||||
* @credits: how many new responses to make available
|
||||
*
|
||||
* Replenishes a response queue by making the supplied number of responses
|
||||
* available to HW.
|
||||
*/
|
||||
static __inline void
|
||||
refill_rspq(adapter_t *sc, const struct sge_rspq *q, u_int credits)
|
||||
{
|
||||
|
||||
/* mbufs are allocated on demand when a rspq entry is processed. */
|
||||
t3_write_reg(sc, A_SG_RSPQ_CREDIT_RETURN,
|
||||
V_RSPQ(q->cntxt_id) | V_CREDITS(credits));
|
||||
}
|
||||
|
||||
/**
|
||||
* free_tx_desc - reclaims Tx descriptors and their buffers
|
||||
* @adapter: the adapter
|
||||
|
Loading…
Reference in New Issue
Block a user