Lines Matching defs:nbufs
43 static int oce_rq_charge(struct oce_rq *rq, uint32_t nbufs, boolean_t repost);
50 static void oce_rq_post_buffer(struct oce_rq *rq, int nbufs);
97 for (cnt = 0; cnt < rq->cfg.nbufs; cnt++, rqbd++) {
105 rq->rqb_free = rq->cfg.nbufs;
129 for (cnt = 0; cnt < rq->cfg.nbufs; cnt++, rqbd++) {
211 rq->rqb_next_free = GET_Q_NEXT(free_index, 1, rq->cfg.nbufs);
230 rq->rqb_rc_head = GET_Q_NEXT(free_index, 1, rq->cfg.nbufs);
238 static void oce_rq_post_buffer(struct oce_rq *rq, int nbufs)
248 for (count = nbufs/OCE_MAX_RQ_POSTS; count > 0; count--) {
252 nbufs -= OCE_MAX_RQ_POSTS;
254 if (nbufs > 0) {
255 rxdb_reg.bits.num_posted = nbufs;
257 rq->buf_avail += nbufs;
265 * nbufs - numbers of buffers to be charged
270 oce_rq_charge(struct oce_rq *rq, uint32_t nbufs, boolean_t repost)
283 for (cnt = 0; cnt < nbufs; cnt++) {
508 uint32_t nbufs = 0;
547 nbufs += frag_cnt;