Lines Matching refs:free_sgpgs
5180 mod->free_sgpgs = mod->num_sgpgs = cfg->drvcfg.num_sgpgs;
5228 if (mod->free_sgpgs < nsgpgs)
5237 mod->free_sgpgs -= nsgpgs;
5247 mod->free_sgpgs += nsgpg;
5248 WARN_ON(mod->free_sgpgs > mod->num_sgpgs);
5260 if (mod->free_sgpgs < wqe->nsgpg)
5261 nsgpg = mod->free_sgpgs;
5270 } while (mod->free_sgpgs && !list_empty(&mod->sgpg_wait_q));
5279 WARN_ON(nsgpg <= mod->free_sgpgs);
5286 if (mod->free_sgpgs) {
5292 wqe->nsgpg -= mod->free_sgpgs;
5293 mod->free_sgpgs = 0;