Lines Matching refs:ctx_ptr_array
668 ASSERT(cpu_ctx->ctx_ptr_array == NULL || cpu_ctx->ctx_ptr_array_sz > 0);
670 if (cpu_ctx->nctx <= 0 || cpu_ctx->ctx_ptr_array == NULL ||
687 ctx = cpu_ctx->ctx_ptr_array[cpu_ctx->cur_index];
827 if (cpu_ctx->nctx <= 0 || cpu_ctx->ctx_ptr_array == NULL ||
833 ctx = cpu_ctx->ctx_ptr_array[cpu_ctx->cur_index];
1078 kcpc_ctx_t **ctx_ptr_array;
1112 if (cpu_ctx->nctx > 0 && cpu_ctx->ctx_ptr_array != NULL &&
1120 ASSERT(cpu_ctx->nctx == 0 && cpu_ctx->ctx_ptr_array == NULL &&
1154 ctx_ptr_array = NULL;
1156 n = kcpc_cpu_ctx_create(cp, reqs, KM_NOSLEEP, &ctx_ptr_array,
1166 ASSERT(n > 0 && ctx_ptr_array != NULL && ctx_ptr_array_sz > 0);
1167 if (ctx_ptr_array == NULL || ctx_ptr_array_sz <= 0) {
1177 cpu_ctx->ctx_ptr_array = ctx_ptr_array;
1251 if (cpu_ctx != NULL && cpu_ctx->ctx_ptr_array != NULL &&
1257 ctx = cpu_ctx->ctx_ptr_array[i];
1266 kmem_free(cpu_ctx->ctx_ptr_array, cpu_ctx->ctx_ptr_array_sz);