| /linux/drivers/gpu/drm/amd/display/dc/virtual/ |
| H A D | virtual_stream_encoder.c | 30 struct stream_encoder *enc, in virtual_stream_encoder_dp_set_stream_attribute() argument 37 struct stream_encoder *enc, in virtual_stream_encoder_hdmi_set_stream_attribute() argument 43 struct stream_encoder *enc, in virtual_stream_encoder_dvi_set_stream_attribute() argument 48 struct stream_encoder *enc, in virtual_stream_encoder_set_throttled_vcp_size() argument 53 struct stream_encoder *enc, in virtual_stream_encoder_update_hdmi_info_packets() argument 57 struct stream_encoder *enc) {} in virtual_stream_encoder_stop_hdmi_info_packets() argument 60 struct stream_encoder *enc, in virtual_stream_encoder_set_avmute() argument 63 struct stream_encoder *enc, in virtual_stream_encoder_update_dp_info_packets() argument 67 struct stream_encoder *enc) {} in virtual_stream_encoder_stop_dp_info_packets() argument 71 struct stream_encoder *enc) {} in virtual_stream_encoder_dp_blank() argument [all …]
|
| H A D | virtual_link_encoder.c | 32 struct link_encoder *enc, in virtual_link_encoder_validate_output_with_stream() argument 35 static void virtual_link_encoder_hw_init(struct link_encoder *enc) {} in virtual_link_encoder_hw_init() argument 38 struct link_encoder *enc, in virtual_link_encoder_setup() argument 42 struct link_encoder *enc, in virtual_link_encoder_enable_tmds_output() argument 49 struct link_encoder *enc, in virtual_link_encoder_enable_dp_output() argument 54 struct link_encoder *enc, in virtual_link_encoder_enable_dp_mst_output() argument 63 struct link_encoder *enc, in virtual_link_encoder_dp_set_lane_settings() argument 68 struct link_encoder *enc, in virtual_link_encoder_dp_set_phy_pattern() argument 72 struct link_encoder *enc, in virtual_link_encoder_update_mst_stream_allocation_table() argument 76 struct link_encoder *enc, in virtual_link_encoder_connect_dig_be_to_fe() argument [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dio/dcn20/ |
| H A D | dcn20_link_encoder.c | 173 void enc2_fec_set_enable(struct link_encoder *enc, bool enable) in enc2_fec_set_enable() argument 175 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in enc2_fec_set_enable() 177 enable ? "Enabling" : "Disabling", enc->id.enum_id); in enc2_fec_set_enable() 181 void enc2_fec_set_ready(struct link_encoder *enc, bool ready) in enc2_fec_set_ready() argument 183 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in enc2_fec_set_ready() 188 bool enc2_fec_is_active(struct link_encoder *enc) in enc2_fec_is_active() argument 191 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in enc2_fec_is_active() 201 void link_enc2_read_state(struct link_encoder *enc, struct link_enc_state *s) in link_enc2_read_state() argument 203 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in link_enc2_read_state() 246 struct link_encoder *enc, in dcn20_link_encoder_enable_dp_output() argument [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dce/ |
| H A D | dce_stream_encoder.c | 268 struct stream_encoder *enc, in dce110_stream_encoder_dp_set_stream_attribute() argument 284 struct dce110_stream_encoder *enc110 = DCE110STRENC_FROM_STRENC(enc); in dce110_stream_encoder_dp_set_stream_attribute() 533 struct stream_encoder *enc, in dce110_stream_encoder_hdmi_set_stream_attribute() argument 538 struct dce110_stream_encoder *enc110 = DCE110STRENC_FROM_STRENC(enc); in dce110_stream_encoder_hdmi_set_stream_attribute() 650 struct stream_encoder *enc, in dce110_stream_encoder_dvi_set_stream_attribute() argument 654 struct dce110_stream_encoder *enc110 = DCE110STRENC_FROM_STRENC(enc); in dce110_stream_encoder_dvi_set_stream_attribute() 676 struct stream_encoder *enc, in dce110_stream_encoder_lvds_set_stream_attribute() argument 679 struct dce110_stream_encoder *enc110 = DCE110STRENC_FROM_STRENC(enc); in dce110_stream_encoder_lvds_set_stream_attribute() 697 struct stream_encoder *enc, in dce110_stream_encoder_set_throttled_vcp_size() argument 700 struct dce110_stream_encoder *enc110 = DCE110STRENC_FROM_STRENC(enc); in dce110_stream_encoder_set_throttled_vcp_size() [all …]
|
| /linux/crypto/ |
| H A D | authenc.c | 23 struct crypto_skcipher_spawn enc; member 29 struct crypto_skcipher *enc; member 87 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_setkey() local 101 crypto_skcipher_clear_flags(enc, CRYPTO_TFM_REQ_MASK); in crypto_authenc_setkey() 102 crypto_skcipher_set_flags(enc, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey() 104 err = crypto_skcipher_setkey(enc, keys.enckey, keys.enckeylen); in crypto_authenc_setkey() 194 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_encrypt() local 209 skcipher_request_set_tfm(skreq, enc); in crypto_authenc_encrypt() 255 skcipher_request_set_tfm(skreq, ctx->enc); in crypto_authenc_decrypt_tail() 310 struct crypto_skcipher *enc; in crypto_authenc_init_tfm() local [all …]
|
| H A D | tcrypt.c | 149 static int do_mult_aead_op(struct test_mb_aead_data *data, int enc, in do_mult_aead_op() argument 156 if (enc == ENCRYPT) in do_mult_aead_op() 175 static int test_mb_aead_jiffies(struct test_mb_aead_data *data, int enc, in test_mb_aead_jiffies() argument 189 ret = do_mult_aead_op(data, enc, num_mb, rc); in test_mb_aead_jiffies() 202 static int test_mb_aead_cycles(struct test_mb_aead_data *data, int enc, in test_mb_aead_cycles() argument 216 ret = do_mult_aead_op(data, enc, num_mb, rc); in test_mb_aead_cycles() 226 ret = do_mult_aead_op(data, enc, num_mb, rc); in test_mb_aead_cycles() 243 static void test_mb_aead_speed(const char *algo, int enc, int secs, in test_mb_aead_speed() argument 268 if (enc == ENCRYPT) in test_mb_aead_speed() 382 bs + (enc ? 0 : authsize), in test_mb_aead_speed() [all …]
|
| /linux/arch/x86/crypto/ |
| H A D | aes-xts-avx-x86_64.S | 467 .macro _setup_round_keys enc argument 470 .if \enc 528 .macro _vaes enc, key, data 529 .if \enc 537 .macro _vaeslast enc, key, data 538 .if \enc 548 .macro _vaes_1x enc, i, xmm_suffix, data, tmp 550 _vaes \enc, KEY\i\xmm_suffix, \data 553 _vaes \enc, (\i-7)*16(KEY), \data 556 _vaes \enc, \tmp, \data [all …]
|
| H A D | aes-gcm-aesni-x86_64.S | 395 .macro _ghash_update_begin_8x enc argument 404 .if \enc 432 .macro _ghash_update_continue_8x enc argument 439 .if \enc 682 .macro _aes_gcm_update enc argument 745 .if \enc 777 _ghash_update_begin_8x \enc 786 _ghash_update_continue_8x \enc 806 .if \enc 811 .if !\enc [all …]
|
| /linux/arch/x86/mm/ |
| H A D | mem_encrypt_amd.c | 92 unsigned long size, bool enc) in __sme_early_enc_dec() argument 113 src = enc ? early_memremap_decrypted_wp(paddr, len) : in __sme_early_enc_dec() 116 dst = enc ? early_memremap_encrypted(paddr, len) : in __sme_early_enc_dec() 131 snp_memcpy(sme_early_buffer, src, len, paddr, enc); in __sme_early_enc_dec() 132 snp_memcpy(dst, sme_early_buffer, len, paddr, !enc); in __sme_early_enc_dec() 246 static bool amd_enc_tlb_flush_required(bool enc) in amd_enc_tlb_flush_required() argument 256 static void enc_dec_hypercall(unsigned long vaddr, unsigned long size, bool enc) in enc_dec_hypercall() argument 279 notify_page_enc_status_changed(pfn, psize >> PAGE_SHIFT, enc); in enc_dec_hypercall() 286 static int amd_enc_status_change_prepare(unsigned long vaddr, int npages, bool enc) in amd_enc_status_change_prepare() argument 292 if (cc_platform_has(CC_ATTR_GUEST_SEV_SNP) && !enc) in amd_enc_status_change_prepare() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dcn21/ |
| H A D | dcn21_link_encoder.c | 205 static bool dcn21_link_encoder_acquire_phy(struct link_encoder *enc) in dcn21_link_encoder_acquire_phy() argument 207 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in dcn21_link_encoder_acquire_phy() 210 if (enc->features.flags.bits.DP_IS_USB_C) { in dcn21_link_encoder_acquire_phy() 240 static void dcn21_link_encoder_release_phy(struct link_encoder *enc) in dcn21_link_encoder_release_phy() argument 242 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in dcn21_link_encoder_release_phy() 244 if (enc->features.flags.bits.DP_IS_USB_C) { in dcn21_link_encoder_release_phy() 254 struct link_encoder *enc, in dcn21_link_encoder_enable_dp_output() argument 258 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in dcn21_link_encoder_enable_dp_output() 262 if (!dcn21_link_encoder_acquire_phy(enc)) in dcn21_link_encoder_enable_dp_output() 265 if (!enc->ctx->dc->debug.avoid_vbios_exec_table) { in dcn21_link_encoder_enable_dp_output() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dio/dcn32/ |
| H A D | dcn32_dio_link_encoder.c | 98 void enc32_hw_init(struct link_encoder *enc) in enc32_hw_init() argument 100 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in enc32_hw_init() 143 struct link_encoder *enc, in dcn32_link_encoder_enable_dp_output() argument 147 if (!enc->ctx->dc->debug.avoid_vbios_exec_table) { in dcn32_link_encoder_enable_dp_output() 148 dcn10_link_encoder_enable_dp_output(enc, link_settings, clock_source); in dcn32_link_encoder_enable_dp_output() 153 static bool query_dp_alt_from_dmub(struct link_encoder *enc, in query_dp_alt_from_dmub() argument 156 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in query_dp_alt_from_dmub() 165 if (!dc_wake_and_execute_dmub_cmd(enc->ctx, cmd, DM_DMUB_WAIT_TYPE_WAIT_WITH_REPLY)) in query_dp_alt_from_dmub() 171 bool dcn32_link_encoder_is_in_alt_mode(struct link_encoder *enc) in dcn32_link_encoder_is_in_alt_mode() argument 175 if (!query_dp_alt_from_dmub(enc, &cmd)) in dcn32_link_encoder_is_in_alt_mode() [all …]
|
| H A D | dcn32_dio_link_encoder.h | 41 void enc32_hw_init(struct link_encoder *enc); 44 struct link_encoder *enc, 48 bool dcn32_link_encoder_is_in_alt_mode(struct link_encoder *enc); 50 void dcn32_link_encoder_get_max_link_cap(struct link_encoder *enc,
|
| /linux/drivers/gpu/drm/amd/display/dc/dio/dcn314/ |
| H A D | dcn314_dio_stream_encoder.h | 277 struct stream_encoder *enc, 281 struct stream_encoder *enc); 284 struct stream_encoder *enc, 288 struct stream_encoder *enc, 292 struct stream_encoder *enc, 296 struct stream_encoder *enc, 301 struct stream_encoder *enc); 304 struct stream_encoder *enc, 310 struct stream_encoder *enc, 316 struct stream_encoder *enc, [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dio/dcn401/ |
| H A D | dcn401_dio_link_encoder.c | 68 void enc401_hw_init(struct link_encoder *enc) in enc401_hw_init() argument 70 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in enc401_hw_init() 113 struct link_encoder *enc, in dcn401_link_encoder_enable_dp_output() argument 117 if (!enc->ctx->dc->debug.avoid_vbios_exec_table) { in dcn401_link_encoder_enable_dp_output() 118 dcn10_link_encoder_enable_dp_output(enc, link_settings, clock_source); in dcn401_link_encoder_enable_dp_output() 124 struct link_encoder *enc, in dcn401_link_encoder_setup() argument 127 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in dcn401_link_encoder_setup() 157 bool dcn401_is_dig_enabled(struct link_encoder *enc) in dcn401_is_dig_enabled() argument 161 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in dcn401_is_dig_enabled() 169 struct link_encoder *enc) in dcn401_get_dig_mode() argument [all …]
|
| H A D | dcn401_dio_link_encoder.h | 117 void enc401_hw_init(struct link_encoder *enc); 120 struct link_encoder *enc, 125 struct link_encoder *enc, 129 struct link_encoder *enc); 131 bool dcn401_is_dig_enabled(struct link_encoder *enc); 133 enum signal_type dcn401_get_dig_mode(struct link_encoder *enc);
|
| /linux/drivers/crypto/marvell/octeontx/ |
| H A D | otx_cptvf_algs.c | 233 static inline u32 create_ctx_hdr(struct skcipher_request *req, u32 enc, in create_ctx_hdr() argument 253 if (enc) { in create_ctx_hdr() 273 fctx->enc.enc_ctrl.e.enc_cipher = ctx->cipher_type; in create_ctx_hdr() 274 fctx->enc.enc_ctrl.e.aes_key = ctx->key_type; in create_ctx_hdr() 275 fctx->enc.enc_ctrl.e.iv_source = OTX_CPT_FROM_CPTR; in create_ctx_hdr() 278 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len * 2); in create_ctx_hdr() 280 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len); in create_ctx_hdr() 282 memcpy(fctx->enc.encr_iv, req->iv, crypto_skcipher_ivsize(stfm)); in create_ctx_hdr() 284 fctx->enc.enc_ctrl.flags = cpu_to_be64(fctx->enc.enc_ctrl.cflags); in create_ctx_hdr() 304 static inline u32 create_input_list(struct skcipher_request *req, u32 enc, in create_input_list() argument [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dio/dcn10/ |
| H A D | dcn10_link_encoder.h | 561 struct link_encoder *enc, 567 void dcn10_link_encoder_hw_init(struct link_encoder *enc); 569 void dcn10_link_encoder_destroy(struct link_encoder **enc); 574 struct link_encoder *enc, 584 struct link_encoder *enc, 591 struct link_encoder *enc, 599 struct link_encoder *enc, 605 struct link_encoder *enc, 611 struct link_encoder *enc, 616 struct link_encoder *enc, [all …]
|
| H A D | dcn10_stream_encoder.h | 643 struct stream_encoder *enc, 650 struct stream_encoder *enc, 656 struct stream_encoder *enc, 661 struct stream_encoder *enc, 665 struct stream_encoder *enc, 669 struct stream_encoder *enc, 674 struct stream_encoder *enc); 678 struct stream_encoder *enc); 682 struct stream_encoder *enc, 686 struct stream_encoder *enc, [all …]
|
| /linux/arch/riscv/crypto/ |
| H A 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 …]
|
| H A 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
|
| /linux/drivers/crypto/cavium/cpt/ |
| H A D | cptvf_algs.c | 95 static inline u32 create_ctx_hdr(struct skcipher_request *req, u32 enc, in create_ctx_hdr() argument 113 if (enc) in create_ctx_hdr() 121 fctx->enc.enc_ctrl.e.enc_cipher = ctx->cipher_type; in create_ctx_hdr() 122 fctx->enc.enc_ctrl.e.aes_key = ctx->key_type; in create_ctx_hdr() 123 fctx->enc.enc_ctrl.e.iv_source = FROM_DPTR; in create_ctx_hdr() 126 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len * 2); in create_ctx_hdr() 128 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len); in create_ctx_hdr() 129 ctrl_flags = (__be64 *)&fctx->enc.enc_ctrl.flags; in create_ctx_hdr() 130 *ctrl_flags = cpu_to_be64(fctx->enc.enc_ctrl.flags); in create_ctx_hdr() 151 static inline u32 create_input_list(struct skcipher_request *req, u32 enc, in create_input_list() argument [all …]
|
| /linux/arch/arm64/crypto/ |
| H A D | aes-ce.S | 72 .macro round_Nx, enc, k, i0, i1, i2, i3, i4 73 .ifc \enc, e 107 .macro do_block_Nx, enc, rounds, i0, i1, i2, i3, i4 109 round_Nx \enc, v17, \i0, \i1, \i2, \i3, \i4 110 round_Nx \enc, v18, \i0, \i1, \i2, \i3, \i4 112 round_Nx \enc, v19, \i0, \i1, \i2, \i3, \i4 113 round_Nx \enc, v20, \i0, \i1, \i2, \i3, \i4 115 round_Nx \enc, \key, \i0, \i1, \i2, \i3, \i4 117 fin_round_Nx \enc, v30, v31, \i0, \i1, \i2, \i3, \i4
|
| /linux/drivers/gpu/drm/amd/display/dc/dcn201/ |
| H A D | dcn201_link_encoder.c | 52 static void dcn201_link_encoder_get_max_link_cap(struct link_encoder *enc, in dcn201_link_encoder_get_max_link_cap() argument 56 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in dcn201_link_encoder_get_max_link_cap() 58 dcn10_link_encoder_get_max_link_cap(enc, link_settings); in dcn201_link_encoder_get_max_link_cap() 62 if (enc->usbc_combo_phy) { in dcn201_link_encoder_get_max_link_cap() 68 static bool dcn201_link_encoder_is_in_alt_mode(struct link_encoder *enc) in dcn201_link_encoder_is_in_alt_mode() argument 71 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in dcn201_link_encoder_is_in_alt_mode()
|
| /linux/drivers/gpu/drm/amd/display/dc/dio/dcn35/ |
| H A D | dcn35_dio_stream_encoder.h | 287 struct stream_encoder *enc, 291 struct stream_encoder *enc); 294 struct stream_encoder *enc, 298 struct stream_encoder *enc, 302 struct stream_encoder *enc, 306 struct stream_encoder *enc, 311 struct stream_encoder *enc); 314 struct stream_encoder *enc, 320 struct stream_encoder *enc, 326 struct stream_encoder *enc); [all …]
|
| /linux/arch/x86/coco/tdx/ |
| H A D | tdx.c | 913 static bool tdx_map_gpa(phys_addr_t start, phys_addr_t end, bool enc) in tdx_map_gpa() argument 919 if (!enc) { in tdx_map_gpa() 964 static bool tdx_enc_status_changed(unsigned long vaddr, int numpages, bool enc) in tdx_enc_status_changed() argument 969 if (!tdx_map_gpa(start, end, enc)) in tdx_enc_status_changed() 973 if (enc) in tdx_enc_status_changed() 980 bool enc) in tdx_enc_status_change_prepare() argument 986 if (enc && !tdx_enc_status_changed(vaddr, numpages, enc)) in tdx_enc_status_change_prepare() 993 bool enc) in tdx_enc_status_change_finish() argument 999 if (!enc && !tdx_enc_status_changed(vaddr, numpages, enc)) in tdx_enc_status_change_finish() 1002 if (enc) in tdx_enc_status_change_finish()
|