Lines Matching refs:nsgpg
145 bfa_sgpg_mfree(struct bfa_s *bfa, struct list_head *sgpg_q, int nsgpg)
150 bfa_trc_fp(bfa, nsgpg);
152 mod->free_sgpgs += nsgpg;
165 if (mod->free_sgpgs < wqe->nsgpg)
166 nsgpg = mod->free_sgpgs;
168 nsgpg = wqe->nsgpg;
169 bfa_sgpg_malloc(bfa, &wqe->sgpg_q, nsgpg);
170 wqe->nsgpg -= nsgpg;
171 if (wqe->nsgpg == 0) {
179 bfa_sgpg_wait(struct bfa_s *bfa, struct bfa_sgpg_wqe_s *wqe, int nsgpg)
183 bfa_assert(nsgpg > 0);
184 bfa_assert(nsgpg > mod->free_sgpgs);
186 wqe->nsgpg_total = wqe->nsgpg = nsgpg;
197 wqe->nsgpg -= mod->free_sgpgs;
212 if (wqe->nsgpg_total != wqe->nsgpg)
214 wqe->nsgpg_total - wqe->nsgpg);