Lines Matching refs:nsgpg
5242 bfa_sgpg_mfree(struct bfa_s *bfa, struct list_head *sgpg_q, int nsgpg) in bfa_sgpg_mfree() argument
5247 mod->free_sgpgs += nsgpg; in bfa_sgpg_mfree()
5260 if (mod->free_sgpgs < wqe->nsgpg) in bfa_sgpg_mfree()
5261 nsgpg = mod->free_sgpgs; in bfa_sgpg_mfree()
5263 nsgpg = wqe->nsgpg; in bfa_sgpg_mfree()
5264 bfa_sgpg_malloc(bfa, &wqe->sgpg_q, nsgpg); in bfa_sgpg_mfree()
5265 wqe->nsgpg -= nsgpg; in bfa_sgpg_mfree()
5266 if (wqe->nsgpg == 0) { in bfa_sgpg_mfree()
5274 bfa_sgpg_wait(struct bfa_s *bfa, struct bfa_sgpg_wqe_s *wqe, int nsgpg) in bfa_sgpg_wait() argument
5278 WARN_ON(nsgpg <= 0); in bfa_sgpg_wait()
5279 WARN_ON(nsgpg <= mod->free_sgpgs); in bfa_sgpg_wait()
5281 wqe->nsgpg_total = wqe->nsgpg = nsgpg; in bfa_sgpg_wait()
5292 wqe->nsgpg -= mod->free_sgpgs; in bfa_sgpg_wait()
5307 if (wqe->nsgpg_total != wqe->nsgpg) in bfa_sgpg_wcancel()
5309 wqe->nsgpg_total - wqe->nsgpg); in bfa_sgpg_wcancel()