| /linux/drivers/gpu/drm/amd/display/dc/dio/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/inc/hw/ |
| H A D | link_encoder.h | 115 struct link_encoder *enc, struct link_enc_state *s); 117 struct link_encoder *enc, const struct dc_stream_state *stream); 118 void (*hw_init)(struct link_encoder *enc); 119 void (*setup)(struct link_encoder *enc, 121 void (*enable_tmds_output)(struct link_encoder *enc, 126 void (*enable_dp_output)(struct link_encoder *enc, 129 void (*enable_dp_mst_output)(struct link_encoder *enc, 132 void (*enable_lvds_output)(struct link_encoder *enc, 135 void (*enable_analog_output)(struct link_encoder *enc, 139 void (*dp_set_lane_settings)(struct link_encoder *enc, [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 …]
|
| H A D | dce_link_encoder.c | 253 unsigned int dce110_get_dig_frontend(struct link_encoder *enc) in dce110_get_dig_frontend() argument 255 struct dce110_link_encoder *enc110 = TO_DCE110_LINK_ENC(enc); in dce110_get_dig_frontend() 292 struct link_encoder *enc, in dce110_link_encoder_set_dp_phy_pattern_training_pattern() argument 295 struct dce110_link_encoder *enc110 = TO_DCE110_LINK_ENC(enc); in dce110_link_encoder_set_dp_phy_pattern_training_pattern() 668 void dce110_psr_program_dp_dphy_fast_training(struct link_encoder *enc, in dce110_psr_program_dp_dphy_fast_training() argument 671 struct dce110_link_encoder *enc110 = TO_DCE110_LINK_ENC(enc); in dce110_psr_program_dp_dphy_fast_training() 692 void dce110_psr_program_secondary_packet(struct link_encoder *enc, in dce110_psr_program_secondary_packet() argument 695 struct dce110_link_encoder *enc110 = TO_DCE110_LINK_ENC(enc); in dce110_psr_program_secondary_packet() 702 bool dce110_is_dig_enabled(struct link_encoder *enc) in dce110_is_dig_enabled() argument 704 struct dce110_link_encoder *enc110 = TO_DCE110_LINK_ENC(enc); in dce110_is_dig_enabled() [all …]
|
| H A D | dce_link_encoder.h | 227 struct link_encoder *enc, 233 void dce110_link_encoder_hw_init(struct link_encoder *enc); 235 void dce110_link_encoder_destroy(struct link_encoder **enc); 240 struct link_encoder *enc, 246 struct link_encoder *enc, 254 struct link_encoder *enc, 260 struct link_encoder *enc, 266 struct link_encoder *enc, 272 struct link_encoder *enc, 277 struct link_encoder *enc, [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 | authencesn.c | 26 struct crypto_skcipher_spawn enc; member 32 struct crypto_skcipher *enc; member 61 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_esn_setkey() local 75 crypto_skcipher_clear_flags(enc, CRYPTO_TFM_REQ_MASK); in crypto_authenc_esn_setkey() 76 crypto_skcipher_set_flags(enc, crypto_aead_get_flags(authenc_esn) & in crypto_authenc_esn_setkey() 78 err = crypto_skcipher_setkey(enc, keys.enckey, keys.enckeylen); in crypto_authenc_esn_setkey() 166 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_esn_encrypt() local 185 skcipher_request_set_tfm(skreq, enc); in crypto_authenc_esn_encrypt() 303 struct crypto_skcipher *enc; crypto_authenc_esn_init_tfm() local 360 struct skcipher_alg_common *enc; crypto_authenc_esn_create() 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 …]
|
| /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/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/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/crypto/ |
| H A D | sa2ul.c | 111 bool enc; member 195 u8 enc; member 233 bool enc; member 504 u8 enc, u8 *sc_buf) in sa_set_sc_enc() argument 511 if (enc) in sa_set_sc_enc() 520 if (ad->inv_key && !enc) { in sa_set_sc_enc() 581 if (cfg->enc) { in sa_format_cmdl_gen() 719 struct algo_data *ad, u8 enc, u32 *swinfo) in sa_init_sc() argument 730 if (enc) in sa_init_sc() 759 if (sa_set_sc_enc(ad, enc_key, enc_key_sz, enc, in sa_init_sc() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dio/dcn32/ |
| 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/media/platform/st/sti/hva/ |
| H A D | hva-v4l2.c | 128 const struct hva_enc *enc; in hva_find_encoder() local 132 enc = hva->encoders[i]; in hva_find_encoder() 133 if ((enc->pixelformat == pixelformat) && in hva_find_encoder() 134 (enc->streamformat == streamformat)) in hva_find_encoder() 135 return enc; in hva_find_encoder() 197 struct hva_enc *enc; in hva_open_encoder() local 201 enc = (struct hva_enc *)hva_find_encoder(ctx, pixelformat, in hva_open_encoder() 203 if (!enc) { in hva_open_encoder() 217 ret = enc->open(ctx); in hva_open_encoder() 224 dev_dbg(dev, "%s %s encoder opened\n", ctx->name, enc->name); in hva_open_encoder() [all …]
|
| /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/arch/riscv/crypto/ |
| 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/gpu/drm/amd/display/dc/dio/dcn10/ |
| 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/drivers/gpu/drm/amd/display/dc/dio/dcn401/ |
| 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/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()
|
| /linux/drivers/net/ethernet/toshiba/ |
| H A D | ps3_gelic_wireless.c | 1009 struct iw_point *enc = &data->encoding; in gelic_wl_set_encode() local 1016 flags = enc->flags & IW_ENCODE_FLAGS; in gelic_wl_set_encode() 1017 key_index = enc->flags & IW_ENCODE_INDEX; in gelic_wl_set_encode() 1020 pr_debug("%s: key_len = %d\n", __func__, enc->length); in gelic_wl_set_encode() 1021 pr_debug("%s: flag=%x\n", __func__, enc->flags & IW_ENCODE_FLAGS); in gelic_wl_set_encode() 1061 if (IW_ENCODING_TOKEN_MAX < enc->length) { in gelic_wl_set_encode() 1065 wl->key_len[key_index] = enc->length; in gelic_wl_set_encode() 1066 memcpy(wl->key[key_index], extra, enc->length); in gelic_wl_set_encode() 1083 struct iw_point *enc = &data->encoding; in gelic_wl_get_encode() local 1089 key_index = enc->flags & IW_ENCODE_INDEX; in gelic_wl_get_encode() [all …]
|
| /linux/lib/tests/ |
| H A D | base64_kunit.c | 44 char *enc = kmalloc(outlen, GFP_KERNEL); in run_perf_and_check() local 48 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, enc); in run_perf_and_check() 52 int enc_len = base64_encode(in, size, enc, true, variant); in run_perf_and_check() 53 int dec_len = base64_decode(enc, enc_len, decoded, true, variant); in run_perf_and_check() 61 u64 t1 = bench_encode_ns(in, size, enc, reps, variant); in run_perf_and_check() 65 u64 t2 = bench_decode_ns(enc, enc_len, decoded, reps, variant); in run_perf_and_check() 70 kfree(enc); in run_perf_and_check()
|