Lines Matching defs:nsgpg
5262 bfa_sgpg_mfree(struct bfa_s *bfa, struct list_head *sgpg_q, int nsgpg)
5267 mod->free_sgpgs += nsgpg;
5280 if (mod->free_sgpgs < wqe->nsgpg)
5281 nsgpg = mod->free_sgpgs;
5283 nsgpg = wqe->nsgpg;
5284 bfa_sgpg_malloc(bfa, &wqe->sgpg_q, nsgpg);
5285 wqe->nsgpg -= nsgpg;
5286 if (wqe->nsgpg == 0) {
5294 bfa_sgpg_wait(struct bfa_s *bfa, struct bfa_sgpg_wqe_s *wqe, int nsgpg)
5298 WARN_ON(nsgpg <= 0);
5299 WARN_ON(nsgpg <= mod->free_sgpgs);
5301 wqe->nsgpg_total = wqe->nsgpg = nsgpg;
5312 wqe->nsgpg -= mod->free_sgpgs;
5327 if (wqe->nsgpg_total != wqe->nsgpg)
5329 wqe->nsgpg_total - wqe->nsgpg);