Searched refs:n_cached (Results 1 – 3 of 3) sorted by relevance
80 if (n && ctx->n_cached) { in isl_blk_alloc()82 for (i = 1; ctx->cache[best].size != n && i < ctx->n_cached; ++i) { in isl_blk_alloc()92 if (--ctx->n_cached != best) in isl_blk_alloc()93 ctx->cache[best] = ctx->cache[ctx->n_cached]; in isl_blk_alloc()98 if (--ctx->n_cached != 0) in isl_blk_alloc()99 ctx->cache[0] = ctx->cache[ctx->n_cached]; in isl_blk_alloc()121 if (ctx->n_cached < ISL_BLK_CACHE_SIZE) in isl_blk_free()122 ctx->cache[ctx->n_cached++] = block; in isl_blk_free()131 for (i = 0; i < ctx->n_cached; ++i) in isl_blk_clear_cache()133 ctx->n_cached = 0; in isl_blk_clear_cache()
28 int n_cached; member
244 ctx->n_cached = 0; in isl_ctx_alloc_with_options()