Lines Matching refs:free_sgpgs
5305 mod->free_sgpgs = mod->num_sgpgs = cfg->drvcfg.num_sgpgs; in bfa_sgpg_attach()
5373 if (mod->free_sgpgs < nsgpgs) in bfa_sgpg_malloc()
5382 mod->free_sgpgs -= nsgpgs; in bfa_sgpg_malloc()
5392 mod->free_sgpgs += nsgpg; in bfa_sgpg_mfree()
5393 WARN_ON(mod->free_sgpgs > mod->num_sgpgs); in bfa_sgpg_mfree()
5405 if (mod->free_sgpgs < wqe->nsgpg) in bfa_sgpg_mfree()
5406 nsgpg = mod->free_sgpgs; in bfa_sgpg_mfree()
5415 } while (mod->free_sgpgs && !list_empty(&mod->sgpg_wait_q)); in bfa_sgpg_mfree()
5424 WARN_ON(nsgpg <= mod->free_sgpgs); in bfa_sgpg_wait()
5431 if (mod->free_sgpgs) { in bfa_sgpg_wait()
5437 wqe->nsgpg -= mod->free_sgpgs; in bfa_sgpg_wait()
5438 mod->free_sgpgs = 0; in bfa_sgpg_wait()