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