/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | sockopt_qos_to_cc.c | 15 int sockopt_qos_to_cc(struct bpf_sockopt *ctx) in sockopt_qos_to_cc() argument 17 void *optval_end = ctx->optval_end; in sockopt_qos_to_cc() 18 int *optval = ctx->optval; in sockopt_qos_to_cc() 23 if (ctx->level != SOL_IPV6 || ctx->optname != IPV6_TCLASS) in sockopt_qos_to_cc() 29 if (bpf_getsockopt(ctx->sk, SOL_TCP, TCP_CONGESTION, &buf, sizeof(buf))) in sockopt_qos_to_cc() 36 if (bpf_setsockopt(ctx->sk, SOL_TCP, TCP_CONGESTION, &cc_reno, in sockopt_qos_to_cc() 44 if (ctx->optlen > page_size) in sockopt_qos_to_cc() 45 ctx->optlen = 0; in sockopt_qos_to_cc()
|
/third_party/ffmpeg/libavcodec/ |
H A D | v4l2_context.h | 101 * @param[in] ctx A pointer to a V4L2Context. See V4L2Context description for required variables. 104 int ff_v4l2_context_init(V4L2Context* ctx); 109 * @param[in] ctx A pointer to a V4L2Context. See V4L2Context description for required variables. 112 int ff_v4l2_context_set_format(V4L2Context* ctx); 117 * @param[in] ctx A pointer to a V4L2Context. See V4L2Context description for required variables. 121 int ff_v4l2_context_get_format(V4L2Context* ctx, int probe); 126 * @param[in] ctx A pointer to a V4L2Context. 130 void ff_v4l2_context_release(V4L2Context* ctx); 135 * @param[in] ctx A pointer to a V4L2Context. 141 int ff_v4l2_context_set_status(V4L2Context* ctx, uint32_ [all...] |
/third_party/mesa3d/src/mesa/state_tracker/ |
H A D | st_atom_stipple.c | 67 const struct gl_context *ctx = st->ctx; in st_update_polygon_stipple() local 69 assert(sz == sizeof(ctx->PolygonStipple)); in st_update_polygon_stipple() 71 if (memcmp(st->state.poly_stipple, ctx->PolygonStipple, sz)) { in st_update_polygon_stipple() 75 memcpy(st->state.poly_stipple, ctx->PolygonStipple, sz); in st_update_polygon_stipple() 77 if (!ctx->DrawBuffer->FlipY) { in st_update_polygon_stipple() 78 memcpy(newStipple.stipple, ctx->PolygonStipple, sizeof(newStipple.stipple)); in st_update_polygon_stipple() 80 invert_stipple(newStipple.stipple, ctx->PolygonStipple, in st_update_polygon_stipple() 81 ctx->DrawBuffer->Height); in st_update_polygon_stipple()
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_log.h | 70 typedef void (u_auto_log_fn)(void *data, struct u_log_context *ctx); 73 u_log_context_init(struct u_log_context *ctx); 76 u_log_context_destroy(struct u_log_context *ctx); 79 u_log_add_auto_logger(struct u_log_context *ctx, u_auto_log_fn *callback, 83 u_log_flush(struct u_log_context *ctx); 86 u_log_printf(struct u_log_context *ctx, const char *fmt, ...) _util_printf_format(2,3); 89 u_log_chunk(struct u_log_context *ctx, const struct u_log_chunk_type *type, 93 u_log_new_page_print(struct u_log_context *ctx, FILE *stream); 96 u_log_new_page(struct u_log_context *ctx);
|
/third_party/node/deps/openssl/openssl/include/crypto/ |
H A D | siv.h | 17 int ossl_siv128_init(SIV128_CONTEXT *ctx, const unsigned char *key, int klen, 21 int ossl_siv128_aad(SIV128_CONTEXT *ctx, const unsigned char *aad, size_t len); 22 int ossl_siv128_encrypt(SIV128_CONTEXT *ctx, 24 int ossl_siv128_decrypt(SIV128_CONTEXT *ctx, 26 int ossl_siv128_finish(SIV128_CONTEXT *ctx); 27 int ossl_siv128_set_tag(SIV128_CONTEXT *ctx, const unsigned char *tag, 29 int ossl_siv128_get_tag(SIV128_CONTEXT *ctx, unsigned char *tag, size_t len); 30 int ossl_siv128_cleanup(SIV128_CONTEXT *ctx); 31 int ossl_siv128_speed(SIV128_CONTEXT *ctx, int arg);
|
/third_party/openssl/include/crypto/ |
H A D | siv.h | 17 int ossl_siv128_init(SIV128_CONTEXT *ctx, const unsigned char *key, int klen, 21 int ossl_siv128_aad(SIV128_CONTEXT *ctx, const unsigned char *aad, size_t len); 22 int ossl_siv128_encrypt(SIV128_CONTEXT *ctx, 24 int ossl_siv128_decrypt(SIV128_CONTEXT *ctx, 26 int ossl_siv128_finish(SIV128_CONTEXT *ctx); 27 int ossl_siv128_set_tag(SIV128_CONTEXT *ctx, const unsigned char *tag, 29 int ossl_siv128_get_tag(SIV128_CONTEXT *ctx, unsigned char *tag, size_t len); 30 int ossl_siv128_cleanup(SIV128_CONTEXT *ctx); 31 int ossl_siv128_speed(SIV128_CONTEXT *ctx, int arg);
|
/kernel/linux/linux-5.10/crypto/ |
H A D | authenc.c | 87 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_setkey() local 88 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_setkey() 89 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_setkey() 136 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_genicv() local 138 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_genicv() 180 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_copy_assoc() local 181 SYNC_SKCIPHER_REQUEST_ON_STACK(skreq, ctx->null); in crypto_authenc_copy_assoc() 183 skcipher_request_set_sync_tfm(skreq, ctx->null); in crypto_authenc_copy_assoc() 196 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_encrypt() local 199 struct crypto_skcipher *enc = ctx in crypto_authenc_encrypt() 234 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); crypto_authenc_decrypt_tail() local 283 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); crypto_authenc_decrypt() local 311 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(tfm); crypto_authenc_init_tfm() local 356 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(tfm); crypto_authenc_exit_tfm() local 365 struct authenc_instance_ctx *ctx = aead_instance_ctx(inst); crypto_authenc_free() local 377 struct authenc_instance_ctx *ctx; crypto_authenc_create() local [all...] |
/kernel/linux/linux-5.10/arch/x86/crypto/ |
H A D | blowfish_glue.c | 22 asmlinkage void __blowfish_enc_blk(struct bf_ctx *ctx, u8 *dst, const u8 *src, 24 asmlinkage void blowfish_dec_blk(struct bf_ctx *ctx, u8 *dst, const u8 *src); 27 asmlinkage void __blowfish_enc_blk_4way(struct bf_ctx *ctx, u8 *dst, 29 asmlinkage void blowfish_dec_blk_4way(struct bf_ctx *ctx, u8 *dst, 32 static inline void blowfish_enc_blk(struct bf_ctx *ctx, u8 *dst, const u8 *src) in blowfish_enc_blk() argument 34 __blowfish_enc_blk(ctx, dst, src, false); in blowfish_enc_blk() 37 static inline void blowfish_enc_blk_xor(struct bf_ctx *ctx, u8 *dst, in blowfish_enc_blk_xor() argument 40 __blowfish_enc_blk(ctx, dst, src, true); in blowfish_enc_blk_xor() 43 static inline void blowfish_enc_blk_4way(struct bf_ctx *ctx, u8 *dst, in blowfish_enc_blk_4way() argument 46 __blowfish_enc_blk_4way(ctx, ds in blowfish_enc_blk_4way() 49 blowfish_enc_blk_xor_4way(struct bf_ctx *ctx, u8 *dst, const u8 *src) blowfish_enc_blk_xor_4way() argument 77 struct bf_ctx *ctx = crypto_skcipher_ctx(tfm); ecb_crypt() local 128 __cbc_encrypt(struct bf_ctx *ctx, struct skcipher_walk *walk) __cbc_encrypt() argument 154 struct bf_ctx *ctx = crypto_skcipher_ctx(tfm); cbc_encrypt() local 169 __cbc_decrypt(struct bf_ctx *ctx, struct skcipher_walk *walk) __cbc_decrypt() argument 235 struct bf_ctx *ctx = crypto_skcipher_ctx(tfm); cbc_decrypt() local 250 ctr_crypt_final(struct bf_ctx *ctx, struct skcipher_walk *walk) ctr_crypt_final() argument 264 __ctr_crypt(struct bf_ctx *ctx, struct skcipher_walk *walk) __ctr_crypt() argument 321 struct bf_ctx *ctx = crypto_skcipher_ctx(tfm); ctr_crypt() local [all...] |
/kernel/linux/linux-5.10/fs/nfs/ |
H A D | nfs4namespace.c | 131 struct nfs_fs_context *ctx) in nfs4_validate_fspath() 160 __func__, path, ctx->nfs_server.export_path); in nfs4_validate_fspath() 290 struct nfs_fs_context *ctx = nfs_fc2context(fc); in try_location() local 306 kfree(ctx->nfs_server.hostname); in try_location() 307 ctx->nfs_server.hostname = kmalloc(len + 1, GFP_KERNEL); in try_location() 308 if (!ctx->nfs_server.hostname) in try_location() 312 &ctx->nfs_server.export_path_len); in try_location() 316 kfree(ctx->nfs_server.export_path); in try_location() 317 ctx->nfs_server.export_path = export_path; in try_location() 319 source = kmalloc(len + 1 + ctx in try_location() 129 nfs4_validate_fspath(struct dentry *dentry, const struct nfs4_fs_locations *locations, struct nfs_fs_context *ctx) nfs4_validate_fspath() argument 370 struct nfs_fs_context *ctx = nfs_fc2context(fc); nfs_follow_referral() local 406 struct nfs_fs_context *ctx = nfs_fc2context(fc); nfs_do_refmount() local 447 struct nfs_fs_context *ctx = nfs_fc2context(fc); nfs4_submount() local [all...] |
/kernel/linux/linux-6.6/fs/nfs/ |
H A D | nfs4namespace.c | 131 struct nfs_fs_context *ctx) in nfs4_validate_fspath() 160 __func__, path, ctx->nfs_server.export_path); in nfs4_validate_fspath() 291 struct nfs_fs_context *ctx = nfs_fc2context(fc); in try_location() local 307 kfree(ctx->nfs_server.hostname); in try_location() 308 ctx->nfs_server.hostname = kmalloc(len + 1, GFP_KERNEL); in try_location() 309 if (!ctx->nfs_server.hostname) in try_location() 313 &ctx->nfs_server.export_path_len); in try_location() 317 kfree(ctx->nfs_server.export_path); in try_location() 318 ctx->nfs_server.export_path = export_path; in try_location() 320 source = kmalloc(len + 1 + ctx in try_location() 129 nfs4_validate_fspath(struct dentry *dentry, const struct nfs4_fs_locations *locations, struct nfs_fs_context *ctx) nfs4_validate_fspath() argument 371 struct nfs_fs_context *ctx = nfs_fc2context(fc); nfs_follow_referral() local 407 struct nfs_fs_context *ctx = nfs_fc2context(fc); nfs_do_refmount() local 453 struct nfs_fs_context *ctx = nfs_fc2context(fc); nfs4_submount() local [all...] |
/kernel/linux/linux-6.6/drivers/tee/ |
H A D | tee_shm.c | 61 int rc = teedev->desc->ops->shm_unregister(shm->ctx, shm); in tee_shm_release() 70 teedev_ctx_put(shm->ctx); in tee_shm_release() 77 static struct tee_shm *shm_alloc_helper(struct tee_context *ctx, size_t size, in shm_alloc_helper() argument 80 struct tee_device *teedev = ctx->teedev; in shm_alloc_helper() 107 * to call teedev_ctx_get() or clear shm->ctx in case it's not in shm_alloc_helper() 110 shm->ctx = ctx; in shm_alloc_helper() 118 teedev_ctx_get(ctx); in shm_alloc_helper() 129 * @ctx: Context that allocates the shared memory 139 struct tee_shm *tee_shm_alloc_user_buf(struct tee_context *ctx, size_ argument 184 tee_shm_alloc_kernel_buf(struct tee_context *ctx, size_t size) tee_shm_alloc_kernel_buf() argument 208 tee_shm_alloc_priv_buf(struct tee_context *ctx, size_t size) tee_shm_alloc_priv_buf() argument 217 register_shm_helper(struct tee_context *ctx, unsigned long addr, size_t length, u32 flags, int id) register_shm_helper() argument 304 tee_shm_register_user_buf(struct tee_context *ctx, unsigned long addr, size_t length) tee_shm_register_user_buf() argument 351 tee_shm_register_kernel_buf(struct tee_context *ctx, void *addr, size_t length) tee_shm_register_kernel_buf() argument 461 tee_shm_get_from_id(struct tee_context *ctx, int id) tee_shm_get_from_id() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn31/ |
H A D | dcn31_dccg.c | 42 dccg_dcn->base.ctx 44 dccg->ctx->logger 87 if (dccg_dcn->base.ctx->asic_id.chip_family == FAMILY_YELLOW_CARP && in get_phy_mux_symclk() 88 dccg_dcn->base.ctx->asic_id.hw_internal_rev == YELLOW_CARP_B0) { in get_phy_mux_symclk() 123 if (dccg->ctx->dc->debug.root_clock_optimization.bits.dpstream) in dccg31_enable_dpstreamclk() 133 if (dccg->ctx->dc->debug.root_clock_optimization.bits.dpstream) in dccg31_disable_dpstreamclk() 185 if (dccg->ctx->dc->debug.root_clock_optimization.bits.symclk32_se) in dccg31_enable_symclk32_se() 194 if (dccg->ctx->dc->debug.root_clock_optimization.bits.symclk32_se) in dccg31_enable_symclk32_se() 203 if (dccg->ctx->dc->debug.root_clock_optimization.bits.symclk32_se) in dccg31_enable_symclk32_se() 212 if (dccg->ctx in dccg31_enable_symclk32_se() 732 dccg31_create( struct dc_context *ctx, const struct dccg_registers *regs, const struct dccg_shift *dccg_shift, const struct dccg_mask *dccg_mask) dccg31_create() argument [all...] |
/kernel/linux/linux-6.6/crypto/ |
H A D | authenc.c | 87 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_setkey() local 88 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_setkey() 89 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_setkey() 136 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_genicv() local 138 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_genicv() 179 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_copy_assoc() local 180 SYNC_SKCIPHER_REQUEST_ON_STACK(skreq, ctx->null); in crypto_authenc_copy_assoc() 182 skcipher_request_set_sync_tfm(skreq, ctx->null); in crypto_authenc_copy_assoc() 195 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_encrypt() local 198 struct crypto_skcipher *enc = ctx in crypto_authenc_encrypt() 233 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); crypto_authenc_decrypt_tail() local 281 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); crypto_authenc_decrypt() local 309 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(tfm); crypto_authenc_init_tfm() local 354 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(tfm); crypto_authenc_exit_tfm() local 363 struct authenc_instance_ctx *ctx = aead_instance_ctx(inst); crypto_authenc_free() local 375 struct authenc_instance_ctx *ctx; crypto_authenc_create() local [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | af_pan.c | 93 static av_cold int init(AVFilterContext *ctx) in init() argument 95 PanContext *const pan = ctx->priv; in init() 103 av_log(ctx, AV_LOG_ERROR, in init() 112 av_log(ctx, AV_LOG_ERROR, "Channel layout not specified\n"); in init() 117 &pan->nb_output_channels, arg, ctx); in init() 126 av_log(ctx, AV_LOG_ERROR, in init() 133 av_log(ctx, AV_LOG_ERROR, in init() 140 av_log(ctx, AV_LOG_ERROR, in init() 146 av_log(ctx, AV_LOG_ERROR, in init() 159 av_log(ctx, AV_LOG_ERRO in init() 236 query_formats(AVFilterContext *ctx) query_formats() argument 266 AVFilterContext *ctx = link->dst; config_props() local 396 uninit(AVFilterContext *ctx) uninit() argument [all...] |
H A D | vf_subtitles.c | 88 static void ass_log(int ass_level, const char *fmt, va_list args, void *ctx) in ass_log() argument 94 av_vlog(ctx, level, fmt, args); in ass_log() 95 av_log(ctx, level, "\n"); in ass_log() 98 static av_cold int init(AVFilterContext *ctx) in init() argument 100 AssContext *ass = ctx->priv; in init() 103 av_log(ctx, AV_LOG_ERROR, "No filename provided!\n"); in init() 109 av_log(ctx, AV_LOG_ERROR, "Could not initialize libass.\n"); in init() 112 ass_set_message_cb(ass->library, ass_log, ctx); in init() 119 av_log(ctx, AV_LOG_ERROR, "Could not initialize libass renderer.\n"); in init() 126 static av_cold void uninit(AVFilterContext *ctx) in uninit() argument 138 query_formats(AVFilterContext *ctx) query_formats() argument 186 AVFilterContext *ctx = inlink->dst; filter_frame() local 232 init_ass(AVFilterContext *ctx) init_ass() argument 309 init_subtitles(AVFilterContext *ctx) init_subtitles() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/ |
H A D | fd6_texture.c | 136 struct fd_context *ctx = fd_context(pctx); in fd6_sampler_state_delete() local 137 struct fd6_context *fd6_ctx = fd6_context(ctx); in fd6_sampler_state_delete() 140 fd_screen_lock(ctx->screen); in fd6_sampler_state_delete() 153 fd_screen_unlock(ctx->screen); in fd6_sampler_state_delete() 184 struct fd_context *ctx = fd_context(pctx); variable 200 fd6_validate_format(ctx, rsc, so->base.format); 201 fd6_sampler_view_update(ctx, so); 208 fd6_sampler_view_update(struct fd_context *ctx, in fd6_sampler_view_update() argument 216 fd6_validate_format(ctx, rsc, cso->format); in fd6_sampler_view_update() 223 so->seqno = ++fd6_context(ctx) in fd6_sampler_view_update() 290 struct fd_context *ctx = fd_context(pctx); fd6_sampler_view_destroy() local 330 fd6_texture_state(struct fd_context *ctx, enum pipe_shader_type type, struct fd_texture_stateobj *tex) fd6_texture_state() argument 440 struct fd_context *ctx = fd_context(pctx); global() variable 459 struct fd_context *ctx = fd_context(pctx); fd6_texture_fini() local [all...] |
/third_party/node/deps/openssl/openssl/providers/implementations/signature/ |
H A D | dsa_sig.c | 120 static int dsa_setup_md(PROV_DSA_CTX *ctx, in dsa_setup_md() argument 124 mdprops = ctx->propq; in dsa_setup_md() 127 int sha1_allowed = (ctx->operation != EVP_PKEY_OP_SIGN); in dsa_setup_md() 129 EVP_MD *md = EVP_MD_fetch(ctx->libctx, mdname, mdprops); in dsa_setup_md() 130 int md_nid = ossl_digest_get_approved_nid_with_sha1(ctx->libctx, md, in dsa_setup_md() 141 if (mdname_len >= sizeof(ctx->mdname)) in dsa_setup_md() 148 if (!ctx->flag_allow_md) { in dsa_setup_md() 149 if (ctx->mdname[0] != '\0' && !EVP_MD_is_a(md, ctx->mdname)) { in dsa_setup_md() 151 "digest %s != %s", mdname, ctx in dsa_setup_md() 388 PROV_DSA_CTX *ctx = (PROV_DSA_CTX *)vpdsactx; dsa_freectx() local 470 dsa_gettable_ctx_params(ossl_unused void *ctx, ossl_unused void *provctx) dsa_gettable_ctx_params() argument [all...] |
/third_party/node/deps/openssl/openssl/crypto/dh/ |
H A D | dh_pmeth.c | 54 static int pkey_dh_init(EVP_PKEY_CTX *ctx) in pkey_dh_init() argument 67 ctx->data = dctx; in pkey_dh_init() 68 ctx->keygen_info = dctx->gentmp; in pkey_dh_init() 69 ctx->keygen_info_count = 2; in pkey_dh_init() 74 static void pkey_dh_cleanup(EVP_PKEY_CTX *ctx) in pkey_dh_cleanup() argument 76 DH_PKEY_CTX *dctx = ctx->data; in pkey_dh_cleanup() 117 static int pkey_dh_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) in pkey_dh_ctrl() argument 119 DH_PKEY_CTX *dctx = ctx->data; in pkey_dh_ctrl() 224 static int pkey_dh_ctrl_str(EVP_PKEY_CTX *ctx, in pkey_dh_ctrl_str() argument 230 return EVP_PKEY_CTX_set_dh_paramgen_prime_len(ctx, le in pkey_dh_ctrl_str() 322 pkey_dh_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) pkey_dh_paramgen() argument 376 pkey_dh_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) pkey_dh_keygen() argument 398 pkey_dh_derive(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen) pkey_dh_derive() argument [all...] |
/third_party/openssl/crypto/dh/ |
H A D | dh_pmeth.c | 54 static int pkey_dh_init(EVP_PKEY_CTX *ctx) in pkey_dh_init() argument 67 ctx->data = dctx; in pkey_dh_init() 68 ctx->keygen_info = dctx->gentmp; in pkey_dh_init() 69 ctx->keygen_info_count = 2; in pkey_dh_init() 74 static void pkey_dh_cleanup(EVP_PKEY_CTX *ctx) in pkey_dh_cleanup() argument 76 DH_PKEY_CTX *dctx = ctx->data; in pkey_dh_cleanup() 117 static int pkey_dh_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) in pkey_dh_ctrl() argument 119 DH_PKEY_CTX *dctx = ctx->data; in pkey_dh_ctrl() 224 static int pkey_dh_ctrl_str(EVP_PKEY_CTX *ctx, in pkey_dh_ctrl_str() argument 230 return EVP_PKEY_CTX_set_dh_paramgen_prime_len(ctx, le in pkey_dh_ctrl_str() 322 pkey_dh_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) pkey_dh_paramgen() argument 376 pkey_dh_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) pkey_dh_keygen() argument 398 pkey_dh_derive(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen) pkey_dh_derive() argument [all...] |
/third_party/openssl/providers/implementations/signature/ |
H A D | dsa_sig.c | 120 static int dsa_setup_md(PROV_DSA_CTX *ctx, in dsa_setup_md() argument 124 mdprops = ctx->propq; in dsa_setup_md() 127 int sha1_allowed = (ctx->operation != EVP_PKEY_OP_SIGN); in dsa_setup_md() 129 EVP_MD *md = EVP_MD_fetch(ctx->libctx, mdname, mdprops); in dsa_setup_md() 130 int md_nid = ossl_digest_get_approved_nid_with_sha1(ctx->libctx, md, in dsa_setup_md() 141 if (mdname_len >= sizeof(ctx->mdname)) in dsa_setup_md() 148 if (!ctx->flag_allow_md) { in dsa_setup_md() 149 if (ctx->mdname[0] != '\0' && !EVP_MD_is_a(md, ctx->mdname)) { in dsa_setup_md() 151 "digest %s != %s", mdname, ctx in dsa_setup_md() 388 PROV_DSA_CTX *ctx = (PROV_DSA_CTX *)vpdsactx; dsa_freectx() local 470 dsa_gettable_ctx_params(ossl_unused void *ctx, ossl_unused void *provctx) dsa_gettable_ctx_params() argument [all...] |
/third_party/openssl/test/ |
H A D | exptest.c | 51 BN_CTX *ctx = BN_CTX_new(); in test_mod_exp_zero() local 68 if (!TEST_true(BN_mod_exp(r, a, p, m, ctx))) in test_mod_exp_zero() 74 if (!TEST_true(BN_mod_exp_recp(r, a, p, m, ctx))) in test_mod_exp_zero() 80 if (!TEST_true(BN_mod_exp_simple(r, a, p, m, ctx))) in test_mod_exp_zero() 86 if (!TEST_true(BN_mod_exp_mont(r, a, p, m, ctx, NULL))) in test_mod_exp_zero() 92 if (!TEST_true(BN_mod_exp_mont_consttime(r, a, p, m, ctx, NULL))) in test_mod_exp_zero() 103 if (!TEST_false(BN_mod_exp_mont_consttime(r, p, a, m, ctx, mont))) in test_mod_exp_zero() 105 if (!TEST_false(BN_mod_exp_mont(r, p, a, m, ctx, mont))) in test_mod_exp_zero() 109 if (!TEST_true(BN_MONT_CTX_set(mont, m, ctx))) in test_mod_exp_zero() 113 if (!TEST_true(BN_mod_exp_mont_consttime(r, p, a, m, ctx, mon in test_mod_exp_zero() 153 BN_CTX *ctx; test_mod_exp() local 241 BN_CTX *ctx; test_mod_exp_x2() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
H A D | wpa_auth_glue.c | 140 static void hostapd_wpa_auth_logger(void *ctx, const u8 *addr, in hostapd_wpa_auth_logger() argument 144 struct hostapd_data *hapd = ctx; in hostapd_wpa_auth_logger() 165 static void hostapd_wpa_auth_disconnect(void *ctx, const u8 *addr, in hostapd_wpa_auth_disconnect() argument 168 struct hostapd_data *hapd = ctx; in hostapd_wpa_auth_disconnect() 176 static int hostapd_wpa_auth_mic_failure_report(void *ctx, const u8 *addr) in hostapd_wpa_auth_mic_failure_report() argument 178 struct hostapd_data *hapd = ctx; in hostapd_wpa_auth_mic_failure_report() 183 static void hostapd_wpa_auth_psk_failure_report(void *ctx, const u8 *addr) in hostapd_wpa_auth_psk_failure_report() argument 185 struct hostapd_data *hapd = ctx; in hostapd_wpa_auth_psk_failure_report() 191 static void hostapd_wpa_auth_set_eapol(void *ctx, const u8 *addr, in hostapd_wpa_auth_set_eapol() argument 194 struct hostapd_data *hapd = ctx; in hostapd_wpa_auth_set_eapol() 233 hostapd_wpa_auth_get_eapol(void *ctx, const u8 *addr, wpa_eapol_variable var) hostapd_wpa_auth_get_eapol() argument 251 hostapd_wpa_auth_get_psk(void *ctx, const u8 *addr, const u8 *p2p_dev_addr, const u8 *prev_psk, size_t *psk_len, int *vlan_id) hostapd_wpa_auth_get_psk() argument 328 hostapd_wpa_auth_get_msk(void *ctx, const u8 *addr, u8 *msk, size_t *len) hostapd_wpa_auth_get_msk() argument 358 hostapd_wpa_auth_set_key(void *ctx, int vlan_id, enum wpa_alg alg, const u8 *addr, int idx, u8 *key, size_t key_len) hostapd_wpa_auth_set_key() argument 407 hostapd_wpa_auth_get_seqnum(void *ctx, const u8 *addr, int idx, u8 *seq) hostapd_wpa_auth_get_seqnum() argument 415 hostapd_wpa_auth_send_eapol(void *ctx, const u8 *addr, const u8 *data, size_t data_len, int encrypt) hostapd_wpa_auth_send_eapol() argument 447 hostapd_wpa_auth_for_each_sta( void *ctx, int (*cb)(struct wpa_state_machine *sm, void *ctx), void *cb_ctx) hostapd_wpa_auth_for_each_sta() argument 467 wpa_auth_iface_iter(struct hostapd_iface *iface, void *ctx) wpa_auth_iface_iter() argument 480 hostapd_wpa_auth_for_each_auth( void *ctx, int (*cb)(struct wpa_authenticator *sm, void *ctx), void *cb_ctx) hostapd_wpa_auth_for_each_auth() argument 531 hostapd_wpa_auth_ft_iter(struct hostapd_iface *iface, void *ctx) hostapd_wpa_auth_ft_iter() argument 584 hostapd_wpa_auth_send_ether(void *ctx, const u8 *dst, u16 proto, const u8 *data, size_t data_len) hostapd_wpa_auth_send_ether() argument 708 hostapd_wpa_auth_oui_iter(struct hostapd_iface *iface, void *ctx) hostapd_wpa_auth_oui_iter() argument 757 hostapd_wpa_auth_send_oui(void *ctx, const u8 *dst, u8 oui_suffix, const u8 *data, size_t data_len) hostapd_wpa_auth_send_oui() argument 794 hostapd_channel_info(void *ctx, struct wpa_channel_info *ci) hostapd_channel_info() argument 802 hostapd_wpa_auth_update_vlan(void *ctx, const u8 *addr, int vlan_id) hostapd_wpa_auth_update_vlan() argument 842 hostapd_get_sta_tx_params(void *ctx, const u8 *addr, int ap_max_chanwidth, int ap_seg1_idx, int *bandwidth, int *seg1_idx) hostapd_get_sta_tx_params() argument 864 hostapd_wpa_auth_send_ft_action(void *ctx, const u8 *dst, const u8 *data, size_t data_len) hostapd_wpa_auth_send_ft_action() argument 895 hostapd_wpa_auth_add_sta(void *ctx, const u8 *sta_addr) hostapd_wpa_auth_add_sta() argument 928 hostapd_wpa_auth_set_vlan(void *ctx, const u8 *sta_addr, struct vlan_description *vlan) hostapd_wpa_auth_set_vlan() argument 961 hostapd_wpa_auth_get_vlan(void *ctx, const u8 *sta_addr, struct vlan_description *vlan) hostapd_wpa_auth_get_vlan() argument 981 hostapd_wpa_auth_set_identity(void *ctx, const u8 *sta_addr, const u8 *identity, size_t identity_len) hostapd_wpa_auth_set_identity() argument 1022 hostapd_wpa_auth_get_identity(void *ctx, const u8 *sta_addr, const u8 **buf) hostapd_wpa_auth_get_identity() argument 1051 hostapd_wpa_auth_set_radius_cui(void *ctx, const u8 *sta_addr, const u8 *radius_cui, size_t radius_cui_len) hostapd_wpa_auth_set_radius_cui() argument 1090 hostapd_wpa_auth_get_radius_cui(void *ctx, const u8 *sta_addr, const u8 **buf) hostapd_wpa_auth_get_radius_cui() argument 1122 hostapd_wpa_auth_set_session_timeout(void *ctx, const u8 *sta_addr, int session_timeout) hostapd_wpa_auth_set_session_timeout() argument 1144 hostapd_wpa_auth_get_session_timeout(void *ctx, const u8 *sta_addr) hostapd_wpa_auth_get_session_timeout() argument 1166 hostapd_rrb_receive(void *ctx, const u8 *src_addr, const u8 *buf, size_t len) hostapd_rrb_receive() argument 1184 hostapd_rrb_oui_receive(void *ctx, const u8 *src_addr, const u8 *dst_addr, u8 oui_suffix, const u8 *buf, size_t len) hostapd_rrb_oui_receive() argument 1200 hostapd_wpa_auth_add_tspec(void *ctx, const u8 *sta_addr, u8 *tspec_ie, size_t tspec_ielen) hostapd_wpa_auth_add_tspec() argument [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/crypto/ |
H A D | cryp_symc.c | 161 static hi_void cryp_symc_setkey(hi_void *ctx, const hi_u8 *key, hi_u32 keylen, hi_u32 odd) in cryp_symc_setkey() argument 164 cryp_symc_context *hisi_ctx = ctx; in cryp_symc_setkey() 189 static hi_void cryp_symc_setiv(hi_void *ctx, const hi_u8 *iv, hi_u32 ivlen, hi_u32 usage) in cryp_symc_setiv() argument 191 cryp_symc_context *hisi_ctx = ctx; in cryp_symc_setiv() 218 static hi_void cryp_symc_getiv(const hi_void *ctx, hi_u8 *iv, hi_u32 *ivlen) in cryp_symc_getiv() argument 220 const cryp_symc_context *hisi_ctx = ctx; in cryp_symc_getiv() 238 static hi_void cryp_symc_setmode(hi_void *ctx, symc_alg alg, symc_mode mode, symc_width width) in cryp_symc_setmode() argument 240 cryp_symc_context *hisi_ctx = ctx; in cryp_symc_setmode() 256 static hi_void cryp_3des2dma_setmode(hi_void *ctx, symc_alg alg, symc_mode mode, symc_width width) in cryp_3des2dma_setmode() argument 258 cryp_symc_context *hisi_ctx = ctx; in cryp_3des2dma_setmode() 279 cryp_symc_sm1_setsk(hi_void *ctx, const hi_u8 *key) cryp_symc_sm1_setsk() argument 295 cryp_symc_sm1_setround(hi_void *ctx, hi_u32 round) cryp_symc_sm1_setround() argument 308 symc_add_buf(const cryp_symc_context *ctx, symc_node_usage out_usage) symc_add_buf() argument 351 symc_add_next_node(cryp_symc_context *ctx, hi_u32 *total, symc_node_usage usage) symc_add_next_node() argument 410 symc_add_buf_list(hi_void *ctx) symc_add_buf_list() argument 494 cryp_symc_config(hi_void *ctx, hi_u32 decrypt) cryp_symc_config() argument 553 cryp_symc_wait_done(hi_void *ctx, hi_u32 timeout) cryp_symc_wait_done() argument 681 cryp_symc_crypto(hi_void *ctx, hi_u32 operation, symc_multi_pack *pack, hi_u32 wait) cryp_symc_crypto() argument 735 cryp_aead_ccm_setiv(hi_void *ctx, const hi_u8 *iv, hi_u32 ivlen, hi_u32 usage) cryp_aead_ccm_setiv() argument 778 cryp_aead_gcm_setiv(hi_void *ctx, const hi_u8 *iv, hi_u32 ivlen, hi_u32 usage) cryp_aead_gcm_setiv() argument 791 cyp_aead_ccm_n(cryp_symc_context *ctx, hi_u8 *buf, hi_u32 buf_len) cyp_aead_ccm_n() argument 891 cryp_aead_ccm_set_aad(hi_void *ctx, compat_addr aad, hi_u32 alen, hi_u32 tlen) cryp_aead_ccm_set_aad() argument 915 cryp_aead_gcm_set_aad(hi_void *ctx, compat_addr aad, hi_u32 alen, hi_u32 tlen) cryp_aead_gcm_set_aad() argument 1011 cryp_aead_ccm_crypto(hi_void *ctx, hi_u32 operation, symc_multi_pack *pack, hi_u32 wait) cryp_aead_ccm_crypto() argument 1066 cryp_aead_gcm_crypto(hi_void *ctx, hi_u32 operation, symc_multi_pack *pack, hi_u32 wait) cryp_aead_gcm_crypto() argument 1137 cryp_aead_get_tag(hi_void *ctx, hi_u32 tag[AEAD_TAG_SIZE_IN_WORD], hi_u32 *taglen) cryp_aead_get_tag() argument 1227 cryp_aes_setkey(hi_void *ctx, const hi_u8 *fkey, const hi_u8 *skey, hi_u32 *hisi_klen) cryp_aes_setkey() argument 1315 cryp_tdes_setkey(hi_void *ctx, const hi_u8 *fkey, const hi_u8 *skey, hi_u32 *hisi_klen) cryp_tdes_setkey() argument 1379 cryp_des_setkey(hi_void *ctx, const hi_u8 *fkey, const hi_u8 *skey, hi_u32 *hisi_klen) cryp_des_setkey() argument 1405 cryp_3des2dma_setkey(hi_void *ctx, const hi_u8 *fkey, const hi_u8 *skey, hi_u32 *hisi_klen) cryp_3des2dma_setkey() argument 1425 cryp_sm1_setkey(hi_void *ctx, const hi_u8 *fkey, const hi_u8 *skey, hi_u32 *hisi_klen) cryp_sm1_setkey() argument 1459 cryp_sm4_setkey(hi_void *ctx, const hi_u8 *fkey, const hi_u8 *skey, hi_u32 *hisi_klen) cryp_sm4_setkey() argument 1488 cryp_symc_setiv_default(hi_void *ctx, const hi_u8 *iv, hi_u32 ivlen, hi_u32 usage) cryp_symc_setiv_default() argument [all...] |
/kernel/linux/linux-5.10/drivers/scsi/qedf/ |
H A D | drv_fcoe_fw_funcs.c | 25 struct e4_fcoe_task_context *ctx = task_params->context; in init_initiator_rw_fcoe_task() local 26 const u8 val_byte = ctx->ystorm_ag_context.byte0; in init_initiator_rw_fcoe_task() 34 memset(ctx, 0, sizeof(*(ctx))); in init_initiator_rw_fcoe_task() 35 ctx->ystorm_ag_context.byte0 = val_byte; in init_initiator_rw_fcoe_task() 41 /* Ystorm ctx */ in init_initiator_rw_fcoe_task() 42 y_st_ctx = &ctx->ystorm_st_context; in init_initiator_rw_fcoe_task() 49 /* Tstorm ctx */ in init_initiator_rw_fcoe_task() 50 t_st_ctx = &ctx->tstorm_st_context; in init_initiator_rw_fcoe_task() 63 /* Ustorm ctx */ in init_initiator_rw_fcoe_task() 118 struct e4_fcoe_task_context *ctx = task_params->context; init_initiator_midpath_unsolicited_fcoe_task() local [all...] |
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | nft_objref.c | 25 static int nft_objref_init(const struct nft_ctx *ctx, in nft_objref_init() argument 30 u8 genmask = nft_genmask_next(ctx->net); in nft_objref_init() 38 obj = nft_obj_lookup(ctx->net, ctx->table, in nft_objref_init() 67 static void nft_objref_deactivate(const struct nft_ctx *ctx, in nft_objref_deactivate() argument 79 static void nft_objref_activate(const struct nft_ctx *ctx, in nft_objref_activate() argument 124 static int nft_objref_map_init(const struct nft_ctx *ctx, in nft_objref_map_init() argument 129 u8 genmask = nft_genmask_next(ctx->net); in nft_objref_map_init() 133 set = nft_set_lookup_global(ctx->net, ctx in nft_objref_map_init() 171 nft_objref_map_deactivate(const struct nft_ctx *ctx, const struct nft_expr *expr, enum nft_trans_phase phase) nft_objref_map_deactivate() argument 180 nft_objref_map_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) nft_objref_map_activate() argument 188 nft_objref_map_destroy(const struct nft_ctx *ctx, const struct nft_expr *expr) nft_objref_map_destroy() argument 209 nft_objref_select_ops(const struct nft_ctx *ctx, const struct nlattr * const tb[]) nft_objref_select_ops() argument [all...] |