Home
last modified time | relevance | path

Searched refs:gctx (Results 1 – 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/arch/x86/crypto/
Dglue_helper.c21 int glue_ecb_req_128bit(const struct common_glue_ctx *gctx, in glue_ecb_req_128bit() argument
39 fpu_enabled = glue_fpu_begin(bsize, gctx->fpu_blocks_limit, in glue_ecb_req_128bit()
41 for (i = 0; i < gctx->num_funcs; i++) { in glue_ecb_req_128bit()
42 func_bytes = bsize * gctx->funcs[i].num_blocks; in glue_ecb_req_128bit()
49 gctx->funcs[i].fn_u.ecb(ctx, dst, src); in glue_ecb_req_128bit()
98 int glue_cbc_decrypt_req_128bit(const struct common_glue_ctx *gctx, in glue_cbc_decrypt_req_128bit() argument
117 fpu_enabled = glue_fpu_begin(bsize, gctx->fpu_blocks_limit, in glue_cbc_decrypt_req_128bit()
125 for (i = 0; i < gctx->num_funcs; i++) { in glue_cbc_decrypt_req_128bit()
126 num_blocks = gctx->funcs[i].num_blocks; in glue_cbc_decrypt_req_128bit()
137 gctx->funcs[i].fn_u.cbc(ctx, (u8 *)dst, in glue_cbc_decrypt_req_128bit()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Datom.c186 struct atom_context *gctx = ctx->ctx; in atom_get_src_int() local
195 idx += gctx->reg_block; in atom_get_src_int()
196 switch (gctx->io_mode) { in atom_get_src_int()
198 val = gctx->card->reg_read(gctx->card, idx); in atom_get_src_int()
207 if (!(gctx->io_mode & 0x80)) { in atom_get_src_int()
211 if (!gctx->iio[gctx->io_mode & 0x7F]) { in atom_get_src_int()
213 gctx->io_mode & 0x7F); in atom_get_src_int()
217 atom_iio_execute(gctx, in atom_get_src_int()
218 gctx->iio[gctx->io_mode & 0x7F], in atom_get_src_int()
238 val = gctx->divmul[0]; in atom_get_src_int()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Datom.c182 struct atom_context *gctx = ctx->ctx; in atom_get_src_int() local
191 idx += gctx->reg_block; in atom_get_src_int()
192 switch (gctx->io_mode) { in atom_get_src_int()
194 val = gctx->card->reg_read(gctx->card, idx); in atom_get_src_int()
203 if (!(gctx->io_mode & 0x80)) { in atom_get_src_int()
207 if (!gctx->iio[gctx->io_mode & 0x7F]) { in atom_get_src_int()
209 gctx->io_mode & 0x7F); in atom_get_src_int()
213 atom_iio_execute(gctx, in atom_get_src_int()
214 gctx->iio[gctx->io_mode & 0x7F], in atom_get_src_int()
234 val = gctx->divmul[0]; in atom_get_src_int()
[all …]
/kernel/linux/linux-5.10/arch/x86/include/asm/crypto/
Dglue_helper.h97 extern int glue_ecb_req_128bit(const struct common_glue_ctx *gctx,
103 extern int glue_cbc_decrypt_req_128bit(const struct common_glue_ctx *gctx,
106 extern int glue_ctr_req_128bit(const struct common_glue_ctx *gctx,
109 extern int glue_xts_req_128bit(const struct common_glue_ctx *gctx,
/kernel/linux/linux-5.10/crypto/
Dgcm.c227 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_hash_len() local
231 lengths.b = cpu_to_be64(gctx->cryptlen * 8); in gcm_hash_len()
244 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_hash_len_continue() local
246 return gctx->complete(req, flags); in gcm_hash_len_continue()
289 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_hash_crypt_continue() local
292 remain = gcm_remain(gctx->cryptlen); in gcm_hash_crypt_continue()
319 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_hash_assoc_remain_continue() local
321 if (gctx->cryptlen) in gcm_hash_assoc_remain_continue()
323 gctx->src, gctx->cryptlen, flags) ?: in gcm_hash_assoc_remain_continue()
427 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_encrypt_continue() local
[all …]
/kernel/linux/linux-5.10/net/sunrpc/auth_gss/
Dgss_krb5_wrap.c561 gss_wrap_kerberos(struct gss_ctx *gctx, int offset, in gss_wrap_kerberos() argument
564 struct krb5_ctx *kctx = gctx->internal_ctx_id; in gss_wrap_kerberos()
579 gss_unwrap_kerberos(struct gss_ctx *gctx, int offset, in gss_unwrap_kerberos() argument
582 struct krb5_ctx *kctx = gctx->internal_ctx_id; in gss_unwrap_kerberos()
590 &gctx->slack, &gctx->align); in gss_unwrap_kerberos()
594 &gctx->slack, &gctx->align); in gss_unwrap_kerberos()
/kernel/linux/linux-5.10/drivers/crypto/mediatek/
Dmtk-aes.c847 struct mtk_aes_gcm_ctx *gctx = mtk_aes_gcm_ctx_cast(ctx); in mtk_aes_gcm_info_init() local
857 info->cmd[cnt++] = AES_GCM_CMD3 | cpu_to_le32(gctx->textlen); in mtk_aes_gcm_info_init()
860 info->cmd[cnt++] = AES_GCM_CMD4 | cpu_to_le32(gctx->authsize); in mtk_aes_gcm_info_init()
863 info->cmd[cnt++] = AES_GCM_CMD5 | cpu_to_le32(gctx->authsize); in mtk_aes_gcm_info_init()
864 info->cmd[cnt++] = AES_GCM_CMD6 | cpu_to_le32(gctx->authsize); in mtk_aes_gcm_info_init()
924 struct mtk_aes_gcm_ctx *gctx = mtk_aes_gcm_ctx_cast(aes->ctx); in mtk_aes_gcm_start() local
936 aes->total = len + gctx->authsize; in mtk_aes_gcm_start()
938 scatterwalk_map_and_copy(tag, req->dst, len, gctx->authsize, 1); in mtk_aes_gcm_start()
950 struct mtk_aes_gcm_ctx *gctx = mtk_aes_gcm_ctx_cast(ctx); in mtk_aes_gcm_crypt() local
960 gctx->textlen = req->cryptlen - (enc ? 0 : gctx->authsize); in mtk_aes_gcm_crypt()
[all …]
/kernel/linux/linux-5.10/kernel/events/
Dcore.c11701 struct perf_event_context *gctx; in __perf_event_ctx_lock_double() local
11705 gctx = READ_ONCE(group_leader->ctx); in __perf_event_ctx_lock_double()
11706 if (!refcount_inc_not_zero(&gctx->refcount)) { in __perf_event_ctx_lock_double()
11712 mutex_lock_double(&gctx->mutex, &ctx->mutex); in __perf_event_ctx_lock_double()
11714 if (group_leader->ctx != gctx) { in __perf_event_ctx_lock_double()
11716 mutex_unlock(&gctx->mutex); in __perf_event_ctx_lock_double()
11717 put_ctx(gctx); in __perf_event_ctx_lock_double()
11721 return gctx; in __perf_event_ctx_lock_double()
11739 struct perf_event_context *ctx, *gctx; in SYSCALL_DEFINE5() local
11985 gctx = __perf_event_ctx_lock_double(group_leader, ctx); in SYSCALL_DEFINE5()
[all …]
/kernel/linux/linux-5.10/drivers/crypto/chelsio/
Dchcr_algo.c113 static inline struct chcr_gcm_ctx *GCM_CTX(struct chcr_aead_ctx *gctx) in GCM_CTX() argument
115 return gctx->ctx->gcm; in GCM_CTX()
118 static inline struct chcr_authenc_ctx *AUTHENC_CTX(struct chcr_aead_ctx *gctx) in AUTHENC_CTX() argument
120 return gctx->ctx->authenc; in AUTHENC_CTX()
3496 struct chcr_gcm_ctx *gctx = GCM_CTX(aeadctx); in chcr_gcm_setkey() local
3542 memset(gctx->ghash_h, 0, AEAD_H_SIZE); in chcr_gcm_setkey()
3543 aes_encrypt(&aes, gctx->ghash_h, gctx->ghash_h); in chcr_gcm_setkey()