Lines Matching refs:qsize

1408 	limit = budget ? budget : iq->qsize / 16;  in service_iq()
1452 if (service_iq_fl(q, q->qsize / 16) == 0) { in service_iq()
1500 if (service_iq_fl(q, q->qsize / 8) == 0) in service_iq()
1615 limit = budget ? budget : iq->qsize / 16; in service_iq_fl()
3353 int qsize, int intr_idx, int cong, int qtype) in init_iq() argument
3375 iq->qsize = roundup2(qsize, 16); /* See FW_IQ_CMD/iqsize */ in init_iq()
3376 iq->sidx = iq->qsize - sc->params.sge.spg_len / IQ_ESIZE; in init_iq()
3382 init_fl(struct adapter *sc, struct sge_fl *fl, int qsize, int maxp, char *name) in init_fl() argument
3386 fl->qsize = qsize; in init_fl()
3387 fl->sidx = qsize - sc->params.sge.spg_len / EQ_ESIZE; in init_fl()
3408 init_eq(struct adapter *sc, struct sge_eq *eq, int eqtype, int qsize, in init_eq() argument
3418 eq->sidx = qsize - sc->params.sge.spg_len / EQ_ESIZE; in init_eq()
3485 len = iq->qsize * IQ_ESIZE; in alloc_iq_fl()
3492 len = fl->qsize * EQ_ESIZE; in alloc_iq_fl()
3575 bzero(iq->desc, iq->qsize * IQ_ESIZE); in alloc_iq_fl_hwq()
3584 c.iqsize = htobe16(iq->qsize); in alloc_iq_fl_hwq()
3611 c.fl0size = htobe16(fl->qsize); in alloc_iq_fl_hwq()
3723 iq->qsize * IQ_ESIZE, "descriptor ring size in bytes"); in add_iq_sysctls()
4244 qsize_to_fthresh(int qsize) in qsize_to_fthresh() argument
4248 fthresh = qsize == 0 ? 0 : order_base_2(qsize); in qsize_to_fthresh()
4260 int qsize = eq->sidx + sc->params.sge.spg_len / EQ_ESIZE; in ctrl_eq_alloc() local
4279 V_FW_EQ_CTRL_CMD_CIDXFTHRESH(qsize_to_fthresh(qsize)) | in ctrl_eq_alloc()
4280 V_FW_EQ_CTRL_CMD_EQSIZE(qsize)); in ctrl_eq_alloc()
4306 int qsize = eq->sidx + sc->params.sge.spg_len / EQ_ESIZE; in eth_eq_alloc() local
4325 V_FW_EQ_ETH_CMD_EQSIZE(qsize)); in eth_eq_alloc()
4352 int qsize = eq->sidx + sc->params.sge.spg_len / EQ_ESIZE; in ofld_eq_alloc() local
4369 V_FW_EQ_OFLD_CMD_CIDXFTHRESH(qsize_to_fthresh(qsize)) | in ofld_eq_alloc()
4370 V_FW_EQ_OFLD_CMD_EQSIZE(qsize)); in ofld_eq_alloc()
4397 int rc, qsize; in alloc_eq() local
4402 qsize = eq->sidx + sc->params.sge.spg_len / EQ_ESIZE; in alloc_eq()
4403 len = qsize * EQ_ESIZE; in alloc_eq()