/linux-6.12.1/arch/powerpc/crypto/ |
D | aes-gcm-p10-glue.c | 87 static void set_aad(struct gcm_ctx *gctx, struct Hash_ctx *hash, in set_aad() argument 93 gctx->aadLen = alen; in set_aad() 104 memset(gctx->aad_hash, 0, 16); in set_aad() 105 gcm_ghash_p10(gctx->aad_hash, hash->Htable+32, nXi, 16); in set_aad() 107 memcpy(gctx->aad_hash, nXi, 16); in set_aad() 110 memcpy(hash->Htable, gctx->aad_hash, 16); in set_aad() 113 static void gcmp10_init(struct gcm_ctx *gctx, u8 *iv, unsigned char *rdkey, in gcmp10_init() argument 124 gctx->Plen = 0; in gcmp10_init() 129 aes_p10_encrypt(iv, gctx->ivtag, rdkey); in gcmp10_init() 133 memcpy(gctx->iv, iv, 16); in gcmp10_init() [all …]
|
/linux-6.12.1/drivers/gpu/drm/radeon/ |
D | atom.c | 184 struct atom_context *gctx = ctx->ctx; in atom_get_src_int() local 193 idx += gctx->reg_block; in atom_get_src_int() 194 switch (gctx->io_mode) { in atom_get_src_int() 196 val = gctx->card->reg_read(gctx->card, idx); in atom_get_src_int() 205 if (!(gctx->io_mode & 0x80)) { in atom_get_src_int() 209 if (!gctx->iio[gctx->io_mode & 0x7F]) { in atom_get_src_int() 211 gctx->io_mode & 0x7F); in atom_get_src_int() 215 atom_iio_execute(gctx, in atom_get_src_int() 216 gctx->iio[gctx->io_mode & 0x7F], in atom_get_src_int() 239 val = gctx->divmul[0]; in atom_get_src_int() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/ |
D | atom.c | 186 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() 241 val = gctx->divmul[0]; in atom_get_src_int() [all …]
|
/linux-6.12.1/crypto/ |
D | gcm.c | 227 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() 288 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_hash_crypt_continue() local 291 remain = gcm_remain(gctx->cryptlen); in gcm_hash_crypt_continue() 318 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_hash_assoc_remain_continue() local 320 if (gctx->cryptlen) in gcm_hash_assoc_remain_continue() 322 gctx->src, gctx->cryptlen, flags) ?: in gcm_hash_assoc_remain_continue() 425 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_encrypt_continue() local [all …]
|
/linux-6.12.1/net/sunrpc/auth_gss/ |
D | gss_krb5_mech.c | 523 static u32 gss_krb5_get_mic(struct gss_ctx *gctx, struct xdr_buf *text, in gss_krb5_get_mic() argument 526 struct krb5_ctx *kctx = gctx->internal_ctx_id; in gss_krb5_get_mic() 544 static u32 gss_krb5_verify_mic(struct gss_ctx *gctx, in gss_krb5_verify_mic() argument 548 struct krb5_ctx *kctx = gctx->internal_ctx_id; in gss_krb5_verify_mic() 565 static u32 gss_krb5_wrap(struct gss_ctx *gctx, int offset, in gss_krb5_wrap() argument 568 struct krb5_ctx *kctx = gctx->internal_ctx_id; in gss_krb5_wrap() 587 static u32 gss_krb5_unwrap(struct gss_ctx *gctx, int offset, in gss_krb5_unwrap() argument 590 struct krb5_ctx *kctx = gctx->internal_ctx_id; in gss_krb5_unwrap() 593 &gctx->slack, &gctx->align); in gss_krb5_unwrap()
|
/linux-6.12.1/drivers/accel/ivpu/ |
D | ivpu_fw.c | 292 fw->mem = ivpu_bo_create(vdev, &vdev->gctx, &fw_range, fw->runtime_size, in ivpu_fw_mem_init() 299 ret = ivpu_mmu_context_set_pages_ro(vdev, &vdev->gctx, fw->read_only_addr, in ivpu_fw_mem_init() 328 fw->mem_shave_nn = ivpu_bo_create(vdev, &vdev->gctx, &vdev->hw->ranges.shave, in ivpu_fw_mem_init()
|
D | ivpu_drv.h | 130 struct ivpu_mmu_context gctx; member
|
D | ivpu_mmu_context.c | 576 return ivpu_mmu_context_init(vdev, &vdev->gctx, IVPU_GLOBAL_CONTEXT_MMU_SSID); in ivpu_mmu_global_context_init() 581 return ivpu_mmu_context_fini(vdev, &vdev->gctx); in ivpu_mmu_global_context_fini()
|
D | ivpu_gem.c | 338 return ivpu_bo_create(vdev, &vdev->gctx, &vdev->hw->ranges.global, size, flags); in ivpu_bo_create_global()
|
D | ivpu_mmu.c | 765 ret = ivpu_mmu_cd_add(vdev, 0, vdev->gctx.pgtable.pgd_dma); in ivpu_mmu_cd_add_gbl()
|
/linux-6.12.1/drivers/crypto/chelsio/ |
D | chcr_algo.c | 114 static inline struct chcr_gcm_ctx *GCM_CTX(struct chcr_aead_ctx *gctx) in GCM_CTX() argument 116 return gctx->ctx->gcm; in GCM_CTX() 119 static inline struct chcr_authenc_ctx *AUTHENC_CTX(struct chcr_aead_ctx *gctx) in AUTHENC_CTX() argument 121 return gctx->ctx->authenc; in AUTHENC_CTX() 3499 struct chcr_gcm_ctx *gctx = GCM_CTX(aeadctx); in chcr_gcm_setkey() local 3545 memset(gctx->ghash_h, 0, AEAD_H_SIZE); in chcr_gcm_setkey() 3546 aes_encrypt(&aes, gctx->ghash_h, gctx->ghash_h); in chcr_gcm_setkey()
|