Lines Matching defs:active_idx
207 if (!(mask & ((2u<<m->mem->active_idx)-1))) {
212 int cnt = m->mem->active_idx + 2;
222 m->mem->active_idx = cnt-1;
250 int active_idx;
326 active_idx = (4096-UNIT)/size-1;
327 if (active_idx > cnt-1) active_idx = cnt-1;
328 if (active_idx < 0) active_idx = 0;
342 active_idx = cnt-1;
345 m->avail_mask = (2u<<active_idx)-1;
349 m->mem->active_idx = active_idx;