Searched refs:enc (Results 1 - 25 of 202) sorted by last modified time

123456789

/linux-master/fs/smb/server/
H A Dsmb2pdu.c1527 sess->enc = true;
1613 sess->enc = true;
H A Dserver.c244 if (work->sess && work->sess->enc && work->encrypted &&
/linux-master/fs/smb/client/
H A Dsmb2transport.c918 if (!server->secmech.enc) {
929 server->secmech.enc = tfm;
939 crypto_free_aead(server->secmech.enc);
940 server->secmech.enc = NULL;
H A Dsmb2ops.c4186 smb2_get_enc_key(struct TCP_Server_Info *server, __u64 ses_id, int enc, u8 *key) argument
4199 ses_enc_key = enc ? ses->smb3encryptionkey :
4222 struct smb_rqst *rqst, int enc)
4239 rc = smb2_get_enc_key(server, le64_to_cpu(tr_hdr->SessionId), enc, key);
4242 enc ? "en" : "de", le64_to_cpu(tr_hdr->SessionId));
4252 tfm = enc ? server->secmech.enc : server->secmech.dec;
4276 if (!enc) {
4296 rc = crypto_wait_req(enc ? crypto_aead_encrypt(req)
4299 if (!rc && enc)
4221 crypt_message(struct TCP_Server_Info *server, int num_rqst, struct smb_rqst *rqst, int enc) argument
[all...]
H A Dcifsglob.h187 struct crypto_aead *enc; /* smb3 encryption AEAD TFM (AES-CCM and AES-GCM) */ member in struct:cifs_secmech
/linux-master/arch/x86/kvm/svm/
H A Dsev.c799 int *error, bool enc)
811 enc ? SEV_CMD_DBG_ENCRYPT : SEV_CMD_DBG_DECRYPT,
1880 /* Only the enc_context_owner handles some memory enc operations. */
797 __sev_issue_dbg_cmd(struct kvm *kvm, unsigned long src, unsigned long dst, int size, int *error, bool enc) argument
/linux-master/tools/arch/powerpc/include/uapi/asm/
H A Dkvm.h757 struct kvm_ppc_one_page_size enc[KVM_PPC_PAGE_SIZES_MAX_SZ]; member in struct:kvm_ppc_one_seg_page_size
/linux-master/drivers/gpu/drm/amd/display/dc/dcn35/
H A Ddcn35_dio_link_encoder.c55 bool dcn35_is_dig_enabled(struct link_encoder *enc) argument
58 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc);
65 struct link_encoder *enc)
68 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc);
87 struct link_encoder *enc,
90 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc);
120 void dcn35_link_encoder_init(struct link_encoder *enc) argument
122 enc32_hw_init(enc);
123 dcn35_link_encoder_set_fgcg(enc, enc
64 dcn35_get_dig_mode( struct link_encoder *enc) argument
86 dcn35_link_encoder_setup( struct link_encoder *enc, enum signal_type signal) argument
126 dcn35_link_encoder_set_fgcg(struct link_encoder *enc, bool enable) argument
[all...]
/linux-master/drivers/gpu/drm/amd/display/dc/dcn32/
H A Ddcn32_dio_link_encoder.c98 void enc32_hw_init(struct link_encoder *enc) argument
100 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc);
143 struct link_encoder *enc,
147 if (!enc->ctx->dc->debug.avoid_vbios_exec_table) {
148 dcn10_link_encoder_enable_dp_output(enc, link_settings, clock_source);
153 static bool query_dp_alt_from_dmub(struct link_encoder *enc, argument
156 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc);
165 if (!dc_wake_and_execute_dmub_cmd(enc->ctx, cmd, DM_DMUB_WAIT_TYPE_WAIT_WITH_REPLY))
171 bool dcn32_link_encoder_is_in_alt_mode(struct link_encoder *enc) argument
175 if (!query_dp_alt_from_dmub(enc,
142 dcn32_link_encoder_enable_dp_output( struct link_encoder *enc, const struct dc_link_settings *link_settings, enum clock_source_id clock_source) argument
181 dcn32_link_encoder_get_max_link_cap(struct link_encoder *enc, struct dc_link_settings *link_settings) argument
[all...]
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_dp_mst.c1581 struct drm_encoder *enc = local
1584 ret = drm_connector_attach_encoder(&intel_connector->base, enc);
/linux-master/arch/x86/kernel/
H A Dkvm.c927 static void kvm_sev_hc_page_enc_status(unsigned long pfn, int npages, bool enc) argument
930 KVM_MAP_GPA_RANGE_ENC_STAT(enc) | KVM_MAP_GPA_RANGE_PAGE_SZ_4K);
H A Dx86_init.c137 static bool enc_status_change_prepare_noop(unsigned long vaddr, int npages, bool enc) { return true; } argument
138 static bool enc_status_change_finish_noop(unsigned long vaddr, int npages, bool enc) { return true; } argument
139 static bool enc_tlb_flush_required_noop(bool enc) { return false; } argument
/linux-master/arch/x86/mm/
H A Dmem_encrypt_amd.c92 unsigned long size, bool enc)
113 src = enc ? early_memremap_decrypted_wp(paddr, len) :
116 dst = enc ? early_memremap_encrypted(paddr, len) :
131 snp_memcpy(sme_early_buffer, src, len, paddr, enc);
132 snp_memcpy(dst, sme_early_buffer, len, paddr, !enc);
246 static bool amd_enc_tlb_flush_required(bool enc) argument
256 static void enc_dec_hypercall(unsigned long vaddr, unsigned long size, bool enc) argument
279 notify_page_enc_status_changed(pfn, psize >> PAGE_SHIFT, enc);
286 static bool amd_enc_status_change_prepare(unsigned long vaddr, int npages, bool enc) argument
292 if (cc_platform_has(CC_ATTR_GUEST_SEV_SNP) && !enc)
91 __sme_early_enc_dec(resource_size_t paddr, unsigned long size, bool enc) argument
299 amd_enc_status_change_finish(unsigned long vaddr, int npages, bool enc) argument
314 __set_clr_pte_enc(pte_t *kpte, int level, bool enc) argument
369 early_set_memory_enc_dec(unsigned long vaddr, unsigned long size, bool enc) argument
449 early_set_mem_enc_dec_hypercall(unsigned long vaddr, unsigned long size, bool enc) argument
[all...]
/linux-master/arch/x86/include/asm/
H A Dx86_init.h154 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);
/linux-master/tools/lib/bpf/
H A Dlibbpf.c3991 int enc = btf_int_encoding(t); local
3993 if (enc & BTF_INT_BOOL)
3996 *is_signed = enc & BTF_INT_SIGNED;
/linux-master/crypto/asymmetric_keys/
H A Dsignature.c71 * @enc: Encrypted data buffer, length params->enc_len
81 const void *data, void *enc)
84 return asymmetric_key_eds_op(params, data, enc);
91 * @enc: Encrypted data to be decrypted, length params->enc_len
102 const void *enc, void *data)
105 return asymmetric_key_eds_op(params, enc, data);
113 * @enc: Signature buffer, length params->enc_len
123 const void *data, void *enc)
126 return asymmetric_key_eds_op(params, data, enc);
80 encrypt_blob(struct kernel_pkey_params *params, const void *data, void *enc) argument
101 decrypt_blob(struct kernel_pkey_params *params, const void *enc, void *data) argument
122 create_signature(struct kernel_pkey_params *params, const void *data, void *enc) argument
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_vcn.c688 uint32_t ib_pack_in_dw, bool enc)
699 ib->ptr[ib->length_dw++] = enc ? 0x2 : 0x3;
687 amdgpu_vcn_unified_ring_ib_header(struct amdgpu_ib *ib, uint32_t ib_pack_in_dw, bool enc) argument
/linux-master/arch/riscv/crypto/
H A Daes-riscv64-zvkned.S59 .macro __aes_crypt_zvkned enc, keylen
61 aes_crypt v16, \enc, \keylen
66 .macro aes_crypt_zvkned enc
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
105 __aes_ecb_crypt \enc, 25
[all...]
H A Daes-macros.S149 // Expands to aes_encrypt or aes_decrypt according to \enc, which is 1 or 0.
150 .macro aes_crypt data, enc, keylen
151 .if \enc
H A Daes-riscv64-glue.c47 const u8 iv[AES_BLOCK_SIZE], bool enc);
135 static inline int riscv64_aes_ecb_crypt(struct skcipher_request *req, bool enc) argument
146 if (enc)
173 static int riscv64_aes_cbc_crypt(struct skcipher_request *req, bool enc) argument
184 if (enc)
213 static int riscv64_aes_cbc_cts_crypt(struct skcipher_request *req, bool enc) argument
246 err = riscv64_aes_cbc_crypt(&subreq, enc);
260 walk.nbytes, req->iv, enc);
354 static int riscv64_aes_xts_crypt(struct skcipher_request *req, bool enc) argument
405 if (enc)
[all...]
H A Daes-riscv64-zvkned-zvbb-zvkg.S169 .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
289 __aes_xts_crypt \enc, 256
291 __aes_xts_crypt \enc, 128
293 __aes_xts_crypt \enc, 192
/linux-master/fs/smb/server/mgmt/
H A Duser_session.h43 bool enc; member in struct:ksmbd_session
/linux-master/drivers/media/platform/qcom/venus/
H A Dcore.h455 struct venc_controls enc; member in union:venus_inst::__anon357
/linux-master/crypto/
H A Dtestmgr.c2025 static int test_aead_vec_cfg(int enc, const struct aead_testvec *vec, argument
2037 const char *op = enc ? "encryption" : "decryption";
2093 input[1].iov_base = enc ? (void *)vec->ptext : (void *)vec->ctext;
2094 input[1].iov_len = enc ? vec->plen : vec->clen;
2096 vec->alen + (enc ? vec->plen :
2098 vec->alen + (enc ? vec->clen :
2111 enc ? vec->plen : vec->clen, iv);
2115 err = enc ? crypto_aead_encrypt(req) : crypto_aead_decrypt(req);
2121 if (req->cryptlen != (enc ? vec->plen : vec->clen) ||
2132 if (req->cryptlen != (enc
2209 test_aead_vec(int enc, const struct aead_testvec *vec, unsigned int vec_num, struct aead_request *req, struct cipher_test_sglists *tsgls) argument
2647 test_aead(int enc, const struct aead_test_suite *suite, struct aead_request *req, struct cipher_test_sglists *tsgls) argument
2717 test_cipher(struct crypto_cipher *tfm, int enc, const struct cipher_testvec *template, unsigned int tcount) argument
2804 test_skcipher_vec_cfg(int enc, const struct cipher_testvec *vec, const char *vec_name, const struct testvec_config *cfg, struct skcipher_request *req, struct cipher_test_sglists *tsgls) argument
2968 test_skcipher_vec(int enc, const struct cipher_testvec *vec, unsigned int vec_num, struct skcipher_request *req, struct cipher_test_sglists *tsgls) argument
3224 test_skcipher(int enc, const struct cipher_test_suite *suite, struct skcipher_request *req, struct cipher_test_sglists *tsgls) argument
[all...]
H A Dtcrypt.c149 static int do_mult_aead_op(struct test_mb_aead_data *data, int enc, argument
156 if (enc == ENCRYPT)
175 static int test_mb_aead_jiffies(struct test_mb_aead_data *data, int enc, argument
189 ret = do_mult_aead_op(data, enc, num_mb, rc);
202 static int test_mb_aead_cycles(struct test_mb_aead_data *data, int enc, argument
216 ret = do_mult_aead_op(data, enc, num_mb, rc);
226 ret = do_mult_aead_op(data, enc, num_mb, rc);
243 static void test_mb_aead_speed(const char *algo, int enc, int secs, argument
268 if (enc == ENCRYPT)
382 bs + (enc
453 test_aead_jiffies(struct aead_request *req, int enc, int blen, int secs) argument
476 test_aead_cycles(struct aead_request *req, int enc, int blen) argument
518 test_aead_speed(const char *algo, int enc, unsigned int secs, struct aead_speed_template *template, unsigned int tcount, u8 authsize, unsigned int aad_size, u8 *keysize) argument
966 do_mult_acipher_op(struct test_mb_skcipher_data *data, int enc, u32 num_mb, int *rc) argument
992 test_mb_acipher_jiffies(struct test_mb_skcipher_data *data, int enc, int blen, int secs, u32 num_mb) argument
1019 test_mb_acipher_cycles(struct test_mb_skcipher_data *data, int enc, int blen, u32 num_mb) argument
1060 test_mb_skcipher_speed(const char *algo, int enc, int secs, struct cipher_speed_template *template, unsigned int tcount, u8 *keysize, u32 num_mb) argument
1221 test_acipher_jiffies(struct skcipher_request *req, int enc, int blen, int secs) argument
1246 test_acipher_cycles(struct skcipher_request *req, int enc, int blen) argument
1293 test_skcipher_speed(const char *algo, int enc, unsigned int secs, struct cipher_speed_template *template, unsigned int tcount, u8 *keysize, bool async) argument
1423 test_acipher_speed(const char *algo, int enc, unsigned int secs, struct cipher_speed_template *template, unsigned int tcount, u8 *keysize) argument
1431 test_cipher_speed(const char *algo, int enc, unsigned int secs, struct cipher_speed_template *template, unsigned int tcount, u8 *keysize) argument
[all...]

Completed in 414 milliseconds

123456789