Home
last modified time | relevance | path

Searched refs:new_ctx (Results 1 – 25 of 53) sorted by relevance

123

/netbsd-src/crypto/external/bsd/openssl/dist/crypto/ec/
H A Dec_check.c23 BN_CTX *new_ctx = NULL; in EC_GROUP_check_named_curve() local
31 ctx = new_ctx = BN_CTX_new_ex(NULL); in EC_GROUP_check_named_curve()
42 BN_CTX_free(new_ctx); in EC_GROUP_check_named_curve()
57 BN_CTX *new_ctx = NULL; in EC_GROUP_check()
70 ctx = new_ctx = BN_CTX_new(); in EC_GROUP_check()
114 BN_CTX_free(new_ctx); in EC_GROUP_check()
H A Dec2_oct.c47 BN_CTX *new_ctx = NULL; in ossl_ec_GF2m_simple_set_compressed_coordinates() local
50 ctx = new_ctx = BN_CTX_new(); in ossl_ec_GF2m_simple_set_compressed_coordinates()
115 BN_CTX_free(new_ctx); in ossl_ec_GF2m_simple_set_compressed_coordinates()
135 BN_CTX *new_ctx = NULL; in ossl_ec_GF2m_simple_point2oct() local
172 ctx = new_ctx = BN_CTX_new(); in ossl_ec_GF2m_simple_point2oct()
239 BN_CTX_free(new_ctx); in ossl_ec_GF2m_simple_point2oct()
247 BN_CTX_free(new_ctx); in ossl_ec_GF2m_simple_point2oct()
266 BN_CTX *new_ctx = NULL; in ossl_ec_GF2m_simple_oct2point() local
322 ctx = new_ctx = BN_CTX_new(); in ossl_ec_GF2m_simple_oct2point()
386 BN_CTX_free(new_ctx); in ossl_ec_GF2m_simple_oct2point()
H A Decp_oct.c27 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_simple_set_compressed_coordinates() local
32 ctx = new_ctx = BN_CTX_new_ex(group->libctx); in ossl_ec_GFp_simple_set_compressed_coordinates()
155 BN_CTX_free(new_ctx); in ossl_ec_GFp_simple_set_compressed_coordinates()
164 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_simple_point2oct() local
202 ctx = new_ctx = BN_CTX_new_ex(group->libctx); in ossl_ec_GFp_simple_point2oct()
264 BN_CTX_free(new_ctx); in ossl_ec_GFp_simple_point2oct()
270 BN_CTX_free(new_ctx); in ossl_ec_GFp_simple_point2oct()
280 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_simple_oct2point() local
323 ctx = new_ctx = BN_CTX_new_ex(group->libctx); in ossl_ec_GFp_simple_oct2point()
370 BN_CTX_free(new_ctx); in ossl_ec_GFp_simple_oct2point()
H A Decp_smpl.c146 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_simple_group_set_curve() local
156 ctx = new_ctx = BN_CTX_new_ex(group->libctx); in ossl_ec_GFp_simple_group_set_curve()
196 BN_CTX_free(new_ctx); in ossl_ec_GFp_simple_group_set_curve()
204 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_simple_group_get_curve() local
214 ctx = new_ctx = BN_CTX_new_ex(group->libctx); in ossl_ec_GFp_simple_group_get_curve()
241 BN_CTX_free(new_ctx); in ossl_ec_GFp_simple_group_get_curve()
256 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_simple_group_check_discriminant() local
259 ctx = new_ctx = BN_CTX_new_ex(group->libctx); in ossl_ec_GFp_simple_group_check_discriminant()
318 BN_CTX_free(new_ctx); in ossl_ec_GFp_simple_group_check_discriminant()
382 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp() local
[all …]
H A Decp_mont.c146 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_mont_group_set_curve() local
157 ctx = new_ctx = BN_CTX_new_ex(group->libctx); in ossl_ec_GFp_mont_group_set_curve()
191 BN_CTX_free(new_ctx); in ossl_ec_GFp_mont_group_set_curve()
227 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_mont_field_inv() local
234 && (ctx = new_ctx = BN_CTX_secure_new_ex(group->libctx)) == NULL) in ossl_ec_GFp_mont_field_inv()
263 BN_CTX_free(new_ctx); in ossl_ec_GFp_mont_field_inv()
H A Dec2_smpl.c186 BN_CTX *new_ctx = NULL; in ossl_ec_GF2m_simple_group_check_discriminant() local
189 ctx = new_ctx = BN_CTX_new(); in ossl_ec_GF2m_simple_group_check_discriminant()
216 BN_CTX_free(new_ctx); in ossl_ec_GF2m_simple_group_check_discriminant()
362 BN_CTX *new_ctx = NULL; in ossl_ec_GF2m_simple_add() local
379 ctx = new_ctx = BN_CTX_new(); in ossl_ec_GF2m_simple_add()
468 BN_CTX_free(new_ctx); in ossl_ec_GF2m_simple_add()
517 BN_CTX *new_ctx = NULL; in ossl_ec_GF2m_simple_is_on_curve() local
532 ctx = new_ctx = BN_CTX_new(); in ossl_ec_GF2m_simple_is_on_curve()
569 BN_CTX_free(new_ctx); in ossl_ec_GF2m_simple_is_on_curve()
587 BN_CTX *new_ctx = NULL; in ossl_ec_GF2m_simple_cmp() local
[all …]
H A Decp_nist.c97 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_nist_group_set_curve() local
100 if ((ctx = new_ctx = BN_CTX_new_ex(group->libctx)) == NULL) in ossl_ec_GFp_nist_group_set_curve()
124 BN_CTX_free(new_ctx); in ossl_ec_GFp_nist_group_set_curve()
H A Dec_lib.c1074 BN_CTX *new_ctx = NULL; in EC_POINTs_mul() local
1094 ctx = new_ctx = BN_CTX_secure_new(); in EC_POINTs_mul()
1108 BN_CTX_free(new_ctx); in EC_POINTs_mul()
1120 BN_CTX *new_ctx = NULL; in EC_POINT_mul() local
1134 ctx = new_ctx = BN_CTX_secure_new(); in EC_POINT_mul()
1149 BN_CTX_free(new_ctx); in EC_POINT_mul()
1239 BN_CTX *new_ctx = NULL; in ec_field_inverse_mod_ord() local
1247 ctx = new_ctx = BN_CTX_secure_new(); in ec_field_inverse_mod_ord()
1276 BN_CTX_free(new_ctx); in ec_field_inverse_mod_ord()
H A Decp_s390x_nistp.c57 BN_CTX *new_ctx = NULL; in ec_GFp_s390x_nistp_mul() local
61 ctx = new_ctx = BN_CTX_new_ex(group->libctx); in ec_GFp_s390x_nistp_mul()
121 BN_CTX_free(new_ctx); in ec_GFp_s390x_nistp_mul()
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/ec/
H A Dec2_oct.c38 BN_CTX *new_ctx = NULL; in ec_GF2m_simple_set_compressed_coordinates() local
46 ctx = new_ctx = BN_CTX_new(); in ec_GF2m_simple_set_compressed_coordinates()
104 BN_CTX_free(new_ctx); in ec_GF2m_simple_set_compressed_coordinates()
118 BN_CTX *new_ctx = NULL; in ec_GF2m_simple_point2oct() local
156 ctx = new_ctx = BN_CTX_new(); in ec_GF2m_simple_point2oct()
221 BN_CTX_free(new_ctx); in ec_GF2m_simple_point2oct()
227 BN_CTX_free(new_ctx); in ec_GF2m_simple_point2oct()
241 BN_CTX *new_ctx = NULL; in ec_GF2m_simple_oct2point() local
298 ctx = new_ctx = BN_CTX_new(); in ec_GF2m_simple_oct2point()
360 BN_CTX_free(new_ctx); in ec_GF2m_simple_oct2point()
H A Decp_oct.c21 BN_CTX *new_ctx = NULL; in ec_GFp_simple_set_compressed_coordinates() local
29 ctx = new_ctx = BN_CTX_new(); in ec_GFp_simple_set_compressed_coordinates()
150 BN_CTX_free(new_ctx); in ec_GFp_simple_set_compressed_coordinates()
159 BN_CTX *new_ctx = NULL; in ec_GFp_simple_point2oct() local
197 ctx = new_ctx = BN_CTX_new(); in ec_GFp_simple_point2oct()
259 BN_CTX_free(new_ctx); in ec_GFp_simple_point2oct()
265 BN_CTX_free(new_ctx); in ec_GFp_simple_point2oct()
274 BN_CTX *new_ctx = NULL; in ec_GFp_simple_oct2point() local
317 ctx = new_ctx = BN_CTX_new(); in ec_GFp_simple_oct2point()
364 BN_CTX_free(new_ctx); in ec_GFp_simple_oct2point()
H A Decp_smpl.c139 BN_CTX *new_ctx = NULL; in ec_GFp_simple_group_set_curve() local
149 ctx = new_ctx = BN_CTX_new(); in ec_GFp_simple_group_set_curve()
189 BN_CTX_free(new_ctx); in ec_GFp_simple_group_set_curve()
197 BN_CTX *new_ctx = NULL; in ec_GFp_simple_group_get_curve() local
207 ctx = new_ctx = BN_CTX_new(); in ec_GFp_simple_group_get_curve()
234 BN_CTX_free(new_ctx); in ec_GFp_simple_group_get_curve()
248 BN_CTX *new_ctx = NULL; in ec_GFp_simple_group_check_discriminant() local
251 ctx = new_ctx = BN_CTX_new(); in ec_GFp_simple_group_check_discriminant()
311 BN_CTX_free(new_ctx); in ec_GFp_simple_group_check_discriminant()
375 BN_CTX *new_ctx = NULL; in ec_GFp_simple_set_Jprojective_coordinates_GFp() local
[all …]
H A Decp_mont.c138 BN_CTX *new_ctx = NULL; in ec_GFp_mont_group_set_curve() local
149 ctx = new_ctx = BN_CTX_new(); in ec_GFp_mont_group_set_curve()
183 BN_CTX_free(new_ctx); in ec_GFp_mont_group_set_curve()
219 BN_CTX *new_ctx = NULL; in ec_GFp_mont_field_inv() local
225 if (ctx == NULL && (ctx = new_ctx = BN_CTX_secure_new()) == NULL) in ec_GFp_mont_field_inv()
254 BN_CTX_free(new_ctx); in ec_GFp_mont_field_inv()
H A Dec2_smpl.c179 BN_CTX *new_ctx = NULL; in ec_GF2m_simple_group_check_discriminant() local
182 ctx = new_ctx = BN_CTX_new(); in ec_GF2m_simple_group_check_discriminant()
208 BN_CTX_free(new_ctx); in ec_GF2m_simple_group_check_discriminant()
352 BN_CTX *new_ctx = NULL; in ec_GF2m_simple_add() local
369 ctx = new_ctx = BN_CTX_new(); in ec_GF2m_simple_add()
456 BN_CTX_free(new_ctx); in ec_GF2m_simple_add()
497 BN_CTX *new_ctx = NULL; in ec_GF2m_simple_is_on_curve() local
514 ctx = new_ctx = BN_CTX_new(); in ec_GF2m_simple_is_on_curve()
549 BN_CTX_free(new_ctx); in ec_GF2m_simple_is_on_curve()
564 BN_CTX *new_ctx = NULL; in ec_GF2m_simple_cmp() local
[all …]
H A Dec_check.c17 BN_CTX *new_ctx = NULL; in EC_GROUP_check() local
25 ctx = new_ctx = BN_CTX_new(); in EC_GROUP_check()
69 BN_CTX_free(new_ctx); in EC_GROUP_check()
H A Decp_nist.c89 BN_CTX *new_ctx = NULL; in ec_GFp_nist_group_set_curve() local
92 if ((ctx = new_ctx = BN_CTX_new()) == NULL) in ec_GFp_nist_group_set_curve()
116 BN_CTX_free(new_ctx); in ec_GFp_nist_group_set_curve()
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/display/dc/core/
H A Damdgpu_dc_resource.c1717 struct dc_state *new_ctx, in dc_add_stream_to_ctx() argument
1723 if (new_ctx->stream_count >= dc->res_pool->timing_generator_count) { in dc_add_stream_to_ctx()
1728 new_ctx->streams[new_ctx->stream_count] = stream; in dc_add_stream_to_ctx()
1730 new_ctx->stream_count++; in dc_add_stream_to_ctx()
1732 res = dc->res_pool->funcs->add_stream_to_ctx(dc, new_ctx, stream); in dc_add_stream_to_ctx()
1744 struct dc_state *new_ctx, in dc_remove_stream_from_ctx() argument
1749 struct pipe_ctx *del_pipe = resource_get_head_pipe_for_stream(&new_ctx->res_ctx, stream); in dc_remove_stream_from_ctx()
1762 &new_ctx->res_ctx, in dc_remove_stream_from_ctx()
1769 &new_ctx->res_ctx, in dc_remove_stream_from_ctx()
1774 resource_unreference_clock_source(&new_ctx->res_ctx, in dc_remove_stream_from_ctx()
[all …]
H A Damdgpu_dc.c1378 struct dc_state *new_ctx = kvmalloc(sizeof(struct dc_state), GFP_KERNEL); in dc_copy_state() local
1380 if (!new_ctx) in dc_copy_state()
1382 memcpy(new_ctx, src_ctx, sizeof(struct dc_state)); in dc_copy_state()
1385 struct pipe_ctx *cur_pipe = &new_ctx->res_ctx.pipe_ctx[i]; in dc_copy_state()
1388 cur_pipe->top_pipe = &new_ctx->res_ctx.pipe_ctx[cur_pipe->top_pipe->pipe_idx]; in dc_copy_state()
1391 cur_pipe->bottom_pipe = &new_ctx->res_ctx.pipe_ctx[cur_pipe->bottom_pipe->pipe_idx]; in dc_copy_state()
1394 cur_pipe->prev_odm_pipe = &new_ctx->res_ctx.pipe_ctx[cur_pipe->prev_odm_pipe->pipe_idx]; in dc_copy_state()
1397 cur_pipe->next_odm_pipe = &new_ctx->res_ctx.pipe_ctx[cur_pipe->next_odm_pipe->pipe_idx]; in dc_copy_state()
1401 for (i = 0; i < new_ctx->stream_count; i++) { in dc_copy_state()
1402 dc_stream_retain(new_ctx->streams[i]); in dc_copy_state()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/cp/
H A Dconstexpr.c1317 constexpr_ctx new_ctx = *ctx; in cxx_eval_builtin_function_call() local
1318 new_ctx.quiet = true; in cxx_eval_builtin_function_call()
1343 arg = cxx_eval_constant_expression (&new_ctx, arg, false, in cxx_eval_builtin_function_call()
1417 return cxx_eval_constant_expression (&new_ctx, new_call, lval, in cxx_eval_builtin_function_call()
2349 constexpr_ctx new_ctx = *ctx; in cxx_eval_call_expression() local
2355 new_ctx.object = AGGR_INIT_EXPR_SLOT (t); in cxx_eval_call_expression()
2356 tree ctor = new_ctx.ctor = build_constructor (DECL_CONTEXT (fun), NULL); in cxx_eval_call_expression()
2358 ctx->global->values.put (new_ctx.object, ctor); in cxx_eval_call_expression()
2359 ctx = &new_ctx; in cxx_eval_call_expression()
2379 new_ctx.call = &new_call; in cxx_eval_call_expression()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/cp/
H A Dconstexpr.cc1436 constexpr_ctx new_ctx = *ctx; in cxx_eval_builtin_function_call() local
1437 new_ctx.quiet = true; in cxx_eval_builtin_function_call()
1462 arg = cxx_eval_constant_expression (&new_ctx, arg, false, in cxx_eval_builtin_function_call()
1560 return cxx_eval_constant_expression (&new_ctx, new_call, lval, in cxx_eval_builtin_function_call()
2598 constexpr_ctx new_ctx = *ctx; in cxx_eval_call_expression() local
2604 new_ctx.object = AGGR_INIT_EXPR_SLOT (t); in cxx_eval_call_expression()
2605 tree ctor = new_ctx.ctor = build_constructor (DECL_CONTEXT (fun), NULL); in cxx_eval_call_expression()
2607 ctx->global->values.put (new_ctx.object, ctor); in cxx_eval_call_expression()
2608 ctx = &new_ctx; in cxx_eval_call_expression()
2628 new_ctx.call = &new_call; in cxx_eval_call_expression()
[all …]
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/display/dc/dcn20/
H A Ddcn20_resource.h132 bool dcn20_validate_dsc(struct dc *dc, struct dc_state *new_ctx);
161 enum dc_status dcn20_add_stream_to_ctx(struct dc *dc, struct dc_state *new_ctx, struct dc_stream_st…
163 enum dc_status dcn20_remove_stream_from_ctx(struct dc *dc, struct dc_state *new_ctx, struct dc_stre…
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/display/dc/dce100/
H A Ddce100_resource.h48 struct dc_state *new_ctx,
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/bn/
H A Dbn_gcd.c518 BN_CTX *new_ctx = NULL; in BN_mod_inverse() local
523 ctx = new_ctx = BN_CTX_new(); in BN_mod_inverse()
533 BN_CTX_free(new_ctx); in BN_mod_inverse()
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/bn/
H A Dbn_gcd.c518 BN_CTX *new_ctx = NULL; in BN_mod_inverse() local
523 ctx = new_ctx = BN_CTX_new_ex(NULL); in BN_mod_inverse()
533 BN_CTX_free(new_ctx); in BN_mod_inverse()
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/display/dc/dce112/
H A Ddce112_resource.h54 struct dc_state *new_ctx,

123