Lines Matching refs:free_sgpgs
5200 mod->free_sgpgs = mod->num_sgpgs = cfg->drvcfg.num_sgpgs; in bfa_sgpg_attach()
5248 if (mod->free_sgpgs < nsgpgs) in bfa_sgpg_malloc()
5257 mod->free_sgpgs -= nsgpgs; in bfa_sgpg_malloc()
5267 mod->free_sgpgs += nsgpg; in bfa_sgpg_mfree()
5268 WARN_ON(mod->free_sgpgs > mod->num_sgpgs); in bfa_sgpg_mfree()
5280 if (mod->free_sgpgs < wqe->nsgpg) in bfa_sgpg_mfree()
5281 nsgpg = mod->free_sgpgs; in bfa_sgpg_mfree()
5290 } while (mod->free_sgpgs && !list_empty(&mod->sgpg_wait_q)); in bfa_sgpg_mfree()
5299 WARN_ON(nsgpg <= mod->free_sgpgs); in bfa_sgpg_wait()
5306 if (mod->free_sgpgs) { in bfa_sgpg_wait()
5312 wqe->nsgpg -= mod->free_sgpgs; in bfa_sgpg_wait()
5313 mod->free_sgpgs = 0; in bfa_sgpg_wait()