Lines Matching defs:nbufs
40 static int oce_rq_charge(struct oce_rq *rq, uint32_t nbufs, boolean_t repost);
47 static void oce_rq_post_buffer(struct oce_rq *rq, int nbufs);
94 for (cnt = 0; cnt < rq->cfg.nbufs; cnt++, rqbd++) {
102 rq->rqb_free = rq->cfg.nbufs;
126 for (cnt = 0; cnt < rq->cfg.nbufs; cnt++, rqbd++) {
208 rq->rqb_next_free = GET_Q_NEXT(free_index, 1, rq->cfg.nbufs);
227 rq->rqb_rc_head = GET_Q_NEXT(free_index, 1, rq->cfg.nbufs);
235 static void oce_rq_post_buffer(struct oce_rq *rq, int nbufs)
245 for (count = nbufs/OCE_MAX_RQ_POSTS; count > 0; count--) {
249 nbufs -= OCE_MAX_RQ_POSTS;
251 if (nbufs > 0) {
252 rxdb_reg.bits.num_posted = nbufs;
254 rq->buf_avail += nbufs;
262 * nbufs - numbers of buffers to be charged
267 oce_rq_charge(struct oce_rq *rq, uint32_t nbufs, boolean_t repost)
280 for (cnt = 0; cnt < nbufs; cnt++) {
505 uint32_t nbufs = 0;
550 nbufs += frag_cnt;