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