Lines Matching defs:nsgpg
5256 bfa_sgpg_mfree(struct bfa_s *bfa, struct list_head *sgpg_q, int nsgpg)
5261 mod->free_sgpgs += nsgpg;
5274 if (mod->free_sgpgs < wqe->nsgpg)
5275 nsgpg = mod->free_sgpgs;
5277 nsgpg = wqe->nsgpg;
5278 bfa_sgpg_malloc(bfa, &wqe->sgpg_q, nsgpg);
5279 wqe->nsgpg -= nsgpg;
5280 if (wqe->nsgpg == 0) {
5288 bfa_sgpg_wait(struct bfa_s *bfa, struct bfa_sgpg_wqe_s *wqe, int nsgpg)
5292 WARN_ON(nsgpg <= 0);
5293 WARN_ON(nsgpg <= mod->free_sgpgs);
5295 wqe->nsgpg_total = wqe->nsgpg = nsgpg;
5306 wqe->nsgpg -= mod->free_sgpgs;
5321 if (wqe->nsgpg_total != wqe->nsgpg)
5323 wqe->nsgpg_total - wqe->nsgpg);