Lines Matching defs:ctx
57 static int realloc_context_ids(mm_context_t *ctx)
62 * id 0 (aka. ctx->id) is special, we always allocate a new one, even if
64 * case where ctx is newly allocated).
73 for (i = 0; i < ARRAY_SIZE(ctx->extended_id); i++) {
74 if (i == 0 || ctx->extended_id[i]) {
79 ctx->extended_id[i] = id;
84 return ctx->id;
88 if (ctx->extended_id[i])
89 ida_free(&mmu_context_ida, ctx->extended_id[i]);
226 static void destroy_contexts(mm_context_t *ctx)
229 ida_free(&mmu_context_ida, ctx->id);
234 for (index = 0; index < ARRAY_SIZE(ctx->extended_id); index++) {
235 context_id = ctx->extended_id[index];
239 kfree(ctx->hash_context);