/arch/x86/mm/ |
D | mem_encrypt_amd.c | 94 unsigned long size, bool enc) in __sme_early_enc_dec() argument 115 src = enc ? early_memremap_decrypted_wp(paddr, len) : in __sme_early_enc_dec() 118 dst = enc ? early_memremap_encrypted(paddr, len) : in __sme_early_enc_dec() 133 snp_memcpy(sme_early_buffer, src, len, paddr, enc); in __sme_early_enc_dec() 134 snp_memcpy(dst, sme_early_buffer, len, paddr, !enc); in __sme_early_enc_dec() 282 static bool amd_enc_tlb_flush_required(bool enc) in amd_enc_tlb_flush_required() argument 292 static void enc_dec_hypercall(unsigned long vaddr, unsigned long size, bool enc) in enc_dec_hypercall() argument 315 notify_page_enc_status_changed(pfn, psize >> PAGE_SHIFT, enc); in enc_dec_hypercall() 322 static bool amd_enc_status_change_prepare(unsigned long vaddr, int npages, bool enc) in amd_enc_status_change_prepare() argument 328 if (cc_platform_has(CC_ATTR_GUEST_SEV_SNP) && !enc) in amd_enc_status_change_prepare() [all …]
|
/arch/riscv/crypto/ |
D | aes-riscv64-zvkned.S | 59 .macro __aes_crypt_zvkned enc, keylen 61 aes_crypt v16, \enc, \keylen 66 .macro aes_crypt_zvkned enc argument 68 __aes_crypt_zvkned \enc, 256 70 __aes_crypt_zvkned \enc, 128 72 __aes_crypt_zvkned \enc, 192 86 .macro __aes_ecb_crypt enc, keylen 94 aes_crypt v16, \enc, \keylen 103 .macro aes_ecb_crypt enc argument 105 __aes_ecb_crypt \enc, 256 [all …]
|
D | aes-riscv64-zvkned-zvbb-zvkg.S | 169 .macro __aes_xts_crypt enc, keylen 180 aes_crypt TMP0, \enc, \keylen 236 .if \enc 247 aes_crypt TMP0, \enc, \keylen 263 aes_crypt TMP0, \enc, \keylen 270 .macro aes_xts_crypt enc argument 289 __aes_xts_crypt \enc, 256 291 __aes_xts_crypt \enc, 128 293 __aes_xts_crypt \enc, 192
|
D | aes-riscv64-glue.c | 47 const u8 iv[AES_BLOCK_SIZE], bool enc); 135 static inline int riscv64_aes_ecb_crypt(struct skcipher_request *req, bool enc) in riscv64_aes_ecb_crypt() argument 146 if (enc) in riscv64_aes_ecb_crypt() 173 static int riscv64_aes_cbc_crypt(struct skcipher_request *req, bool enc) in riscv64_aes_cbc_crypt() argument 184 if (enc) in riscv64_aes_cbc_crypt() 213 static int riscv64_aes_cbc_cts_crypt(struct skcipher_request *req, bool enc) in riscv64_aes_cbc_cts_crypt() argument 246 err = riscv64_aes_cbc_crypt(&subreq, enc); in riscv64_aes_cbc_cts_crypt() 260 walk.nbytes, req->iv, enc); in riscv64_aes_cbc_cts_crypt() 354 static int riscv64_aes_xts_crypt(struct skcipher_request *req, bool enc) in riscv64_aes_xts_crypt() argument 405 if (enc) in riscv64_aes_xts_crypt() [all …]
|
D | aes-macros.S | 150 .macro aes_crypt data, enc, keylen 151 .if \enc
|
/arch/arm64/crypto/ |
D | aes-ce.S | 77 .macro round_Nx, enc, k, i0, i1, i2, i3, i4 78 .ifc \enc, e 112 .macro do_block_Nx, enc, rounds, i0, i1, i2, i3, i4 116 round_Nx \enc, v17, \i0, \i1, \i2, \i3, \i4 117 round_Nx \enc, v18, \i0, \i1, \i2, \i3, \i4 118 1111: round_Nx \enc, v19, \i0, \i1, \i2, \i3, \i4 119 round_Nx \enc, v20, \i0, \i1, \i2, \i3, \i4 121 round_Nx \enc, \key, \i0, \i1, \i2, \i3, \i4 123 fin_round_Nx \enc, v30, v31, \i0, \i1, \i2, \i3, \i4
|
D | aes-cipher-core.S | 56 .macro __hround, out0, out1, in0, in1, in2, in3, t0, t1, enc, sz, op 59 __pair\enc \sz, \op, w12, w13, \in0, \in1, \in3, 0 60 __pair\enc \sz, \op, w14, w15, \in1, \in2, \in0, 8 61 __pair\enc \sz, \op, w16, w17, \in2, \in3, \in1, 16 62 __pair\enc \sz, \op, \t0, \t1, \in3, \in0, \in2, 24
|
D | aes-neon.S | 81 .macro mix_columns, in, enc argument 82 .if \enc == 0 98 .macro do_block, enc, in, rounds, rk, rkp, i 109 mix_columns \in, \enc 180 .macro mix_columns_2x, in0, in1, enc argument 181 .if \enc == 0 205 .macro do_block_4x, enc, in0, in1, in2, in3, rounds, rk, rkp, i 222 mix_columns_2x \in0, \in1, \enc 223 mix_columns_2x \in2, \in3, \enc
|
D | aes-neonbs-glue.c | 65 u32 enc[AES_MAX_KEYLENGTH_U32]; member 146 memcpy(ctx->enc, rk.key_enc, sizeof(ctx->enc)); in aesbs_cbc_ctr_setkey() 171 ctx->enc, ctx->key.rounds, blocks, in cbc_encrypt() 237 neon_aes_ctr_encrypt(dst, src, ctx->enc, ctx->key.rounds, in ctr_encrypt()
|
D | aes-ce-ccm-core.S | 125 .macro aes_ccm_do_crypt,enc argument 169 .if \enc == 1 191 .if \enc == 1
|
/arch/powerpc/mm/nohash/ |
D | tlb.c | 56 .enc = BOOK3E_PAGESZ_4K, 60 .enc = BOOK3E_PAGESZ_2M, 64 .enc = BOOK3E_PAGESZ_4M, 68 .enc = BOOK3E_PAGESZ_16M, 72 .enc = BOOK3E_PAGESZ_64M, 76 .enc = BOOK3E_PAGESZ_256M, 80 .enc = BOOK3E_PAGESZ_1GB, 86 return mmu_psize_defs[psize].enc; in mmu_get_tsize() 374 int tsize = mmu_psize_defs[mmu_pte_psize].enc; in tlb_flush_pgtable()
|
D | book3e_pgtable.c | 32 BUG_ON(mmu_psize_defs[mmu_vmemmap_psize].enc > 0xf); in vmemmap_create_mapping() 35 flags |= mmu_psize_defs[mmu_vmemmap_psize].enc << 8; in vmemmap_create_mapping()
|
/arch/x86/crypto/ |
D | des3_ede_glue.c | 20 struct des3_ede_ctx enc; member 35 u32 *enc_ctx = ctx->enc.expkey; in des3_ede_enc_blk() 115 return ecb_crypt(req, ctx->enc.expkey); in ecb_encrypt() 253 err = des3_ede_expand_key(&ctx->enc, key, keylen); in des3_ede_x86_setkey() 270 tmp = ror32(ctx->enc.expkey[i + 1], 4); in des3_ede_x86_setkey() 271 ctx->enc.expkey[i + 1] = tmp; in des3_ede_x86_setkey() 273 ctx->dec.expkey[j + 0] = ctx->enc.expkey[i + 0]; in des3_ede_x86_setkey()
|
/arch/x86/coco/tdx/ |
D | tdx.c | 711 static bool tdx_enc_status_changed(unsigned long vaddr, int numpages, bool enc) in tdx_enc_status_changed() argument 716 if (!enc) { in tdx_enc_status_changed() 731 if (enc) in tdx_enc_status_changed() 738 bool enc) in tdx_enc_status_change_prepare() argument 744 if (enc) in tdx_enc_status_change_prepare() 745 return tdx_enc_status_changed(vaddr, numpages, enc); in tdx_enc_status_change_prepare() 750 bool enc) in tdx_enc_status_change_finish() argument 756 if (!enc) in tdx_enc_status_change_finish() 757 return tdx_enc_status_changed(vaddr, numpages, enc); in tdx_enc_status_change_finish()
|
/arch/x86/kernel/ |
D | x86_init.c | 136 static bool enc_status_change_prepare_noop(unsigned long vaddr, int npages, bool enc) { return true… in enc_status_change_prepare_noop() argument 137 static bool enc_status_change_finish_noop(unsigned long vaddr, int npages, bool enc) { return true;… in enc_status_change_finish_noop() argument 138 static bool enc_tlb_flush_required_noop(bool enc) { return false; } in enc_tlb_flush_required_noop() argument
|
/arch/x86/include/asm/ |
D | x86_init.h | 154 bool (*enc_status_change_prepare)(unsigned long vaddr, int npages, bool enc); 155 bool (*enc_status_change_finish)(unsigned long vaddr, int npages, bool enc); 156 bool (*enc_tlb_flush_required)(bool enc);
|
D | mem_encrypt.h | 55 unsigned long size, bool enc); 94 early_set_mem_enc_dec_hypercall(unsigned long vaddr, unsigned long size, bool enc) {} in early_set_mem_enc_dec_hypercall() argument
|
/arch/powerpc/crypto/ |
D | aes-gcm-p10-glue.c | 201 static int p10_aes_gcm_crypt(struct aead_request *req, int enc) in p10_aes_gcm_crypt() argument 253 if (enc) in p10_aes_gcm_crypt() 263 if (enc) in p10_aes_gcm_crypt() 288 if (enc) in p10_aes_gcm_crypt()
|
D | aes-spe-glue.c | 180 static int ppc_ecb_crypt(struct skcipher_request *req, bool enc) in ppc_ecb_crypt() argument 195 if (enc) in ppc_ecb_crypt() 219 static int ppc_cbc_crypt(struct skcipher_request *req, bool enc) in ppc_cbc_crypt() argument 234 if (enc) in ppc_cbc_crypt() 286 static int ppc_xts_crypt(struct skcipher_request *req, bool enc) in ppc_xts_crypt() argument 303 if (enc) in ppc_xts_crypt()
|
/arch/arm/boot/dts/aspeed/ |
D | aspeed-bmc-ibm-bonnell.dts | 72 rear-enc-id0 { 76 rear-enc-fault0 { 133 /*H0-H7*/ "","","rear-enc-id0","rear-enc-fault0","","","","", 313 label = "front-enc-fault1";
|
/arch/arm/crypto/ |
D | aes-cipher-core.S | 42 .macro __hround, out0, out1, in0, in1, in2, in3, t3, t4, enc, sz, op, oldcpsr 48 .if \enc 63 .if \enc
|
D | ghash-ce-core.S | 196 .macro ghash_update, pn, enc, aggregate=1, head=1 217 .ifnb \enc 218 \enc\()_4x XL2, XM2, T2, T3 295 .ifnb \enc 296 \enc\()_1x T1 539 ghash_update p64, enc, head=0
|
/arch/mips/include/asm/ |
D | asmmacro.h | 29 .macro insn32_if_mm enc 31 .hword ((\enc) >> 16) 32 .hword ((\enc) & 0xffff) 35 .macro insn_if_mips enc 38 .macro insn32_if_mm enc 41 .macro insn_if_mips enc 43 .word (\enc)
|
/arch/powerpc/include/asm/nohash/32/ |
D | mmu-8xx.h | 201 unsigned int enc; /* PTE encoding */ member
|
/arch/x86/mm/pat/ |
D | set_memory.c | 2169 static int __set_memory_enc_pgtable(unsigned long addr, int numpages, bool enc) in __set_memory_enc_pgtable() argument 2182 cpa.mask_set = enc ? pgprot_encrypted(empty) : pgprot_decrypted(empty); in __set_memory_enc_pgtable() 2183 cpa.mask_clr = enc ? pgprot_decrypted(empty) : pgprot_encrypted(empty); in __set_memory_enc_pgtable() 2191 if (x86_platform.guest.enc_tlb_flush_required(enc)) in __set_memory_enc_pgtable() 2195 if (!x86_platform.guest.enc_status_change_prepare(addr, numpages, enc)) in __set_memory_enc_pgtable() 2211 if (!x86_platform.guest.enc_status_change_finish(addr, numpages, enc)) in __set_memory_enc_pgtable() 2218 static int __set_memory_enc_dec(unsigned long addr, int numpages, bool enc) in __set_memory_enc_dec() argument 2221 return __set_memory_enc_pgtable(addr, numpages, enc); in __set_memory_enc_dec()
|