Lines Matching refs:nsgpg
5270 bfa_sgpg_mfree(struct bfa_s *bfa, struct list_head *sgpg_q, int nsgpg) in bfa_sgpg_mfree() argument
5275 mod->free_sgpgs += nsgpg; in bfa_sgpg_mfree()
5288 if (mod->free_sgpgs < wqe->nsgpg) in bfa_sgpg_mfree()
5289 nsgpg = mod->free_sgpgs; in bfa_sgpg_mfree()
5291 nsgpg = wqe->nsgpg; in bfa_sgpg_mfree()
5292 bfa_sgpg_malloc(bfa, &wqe->sgpg_q, nsgpg); in bfa_sgpg_mfree()
5293 wqe->nsgpg -= nsgpg; in bfa_sgpg_mfree()
5294 if (wqe->nsgpg == 0) { in bfa_sgpg_mfree()
5302 bfa_sgpg_wait(struct bfa_s *bfa, struct bfa_sgpg_wqe_s *wqe, int nsgpg) in bfa_sgpg_wait() argument
5306 WARN_ON(nsgpg <= 0); in bfa_sgpg_wait()
5307 WARN_ON(nsgpg <= mod->free_sgpgs); in bfa_sgpg_wait()
5309 wqe->nsgpg_total = wqe->nsgpg = nsgpg; in bfa_sgpg_wait()
5320 wqe->nsgpg -= mod->free_sgpgs; in bfa_sgpg_wait()
5335 if (wqe->nsgpg_total != wqe->nsgpg) in bfa_sgpg_wcancel()
5337 wqe->nsgpg_total - wqe->nsgpg); in bfa_sgpg_wcancel()