Loading arch/x86/crypto/aesni-intel_glue.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -481,7 +481,7 @@ static void ctr_crypt_final(struct crypto_aes_ctx *ctx, crypto_inc(ctrblk, AES_BLOCK_SIZE); crypto_inc(ctrblk, AES_BLOCK_SIZE); } } #ifdef CONFIG_AS_AVX #if 0 /* temporary disabled due to failing crypto tests */ static void aesni_ctr_enc_avx_tfm(struct crypto_aes_ctx *ctx, u8 *out, static void aesni_ctr_enc_avx_tfm(struct crypto_aes_ctx *ctx, u8 *out, const u8 *in, unsigned int len, u8 *iv) const u8 *in, unsigned int len, u8 *iv) { { Loading Loading @@ -1522,7 +1522,7 @@ static int __init aesni_init(void) aesni_gcm_dec_tfm = aesni_gcm_dec; aesni_gcm_dec_tfm = aesni_gcm_dec; } } aesni_ctr_enc_tfm = aesni_ctr_enc; aesni_ctr_enc_tfm = aesni_ctr_enc; #ifdef CONFIG_AS_AVX #if 0 /* temporary disabled due to failing crypto tests */ if (cpu_has_avx) { if (cpu_has_avx) { /* optimize performance of ctr mode encryption transform */ /* optimize performance of ctr mode encryption transform */ aesni_ctr_enc_tfm = aesni_ctr_enc_avx_tfm; aesni_ctr_enc_tfm = aesni_ctr_enc_avx_tfm; Loading drivers/crypto/ccp/ccp-crypto-main.c +4 −0 Original line number Original line Diff line number Diff line Loading @@ -367,6 +367,10 @@ static int ccp_crypto_init(void) { { int ret; int ret; ret = ccp_present(); if (ret) return ret; spin_lock_init(&req_queue_lock); spin_lock_init(&req_queue_lock); INIT_LIST_HEAD(&req_queue.cmds); INIT_LIST_HEAD(&req_queue.cmds); req_queue.backlog = &req_queue.cmds; req_queue.backlog = &req_queue.cmds; Loading drivers/crypto/ccp/ccp-dev.c +14 −0 Original line number Original line Diff line number Diff line Loading @@ -54,6 +54,20 @@ static inline void ccp_del_device(struct ccp_device *ccp) ccp_dev = NULL; ccp_dev = NULL; } } /** * ccp_present - check if a CCP device is present * * Returns zero if a CCP device is present, -ENODEV otherwise. */ int ccp_present(void) { if (ccp_get_device()) return 0; return -ENODEV; } EXPORT_SYMBOL_GPL(ccp_present); /** /** * ccp_enqueue_cmd - queue an operation for processing by the CCP * ccp_enqueue_cmd - queue an operation for processing by the CCP * * Loading drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -66,7 +66,7 @@ #define ADF_DH895XCC_ETR_MAX_BANKS 32 #define ADF_DH895XCC_ETR_MAX_BANKS 32 #define ADF_DH895XCC_SMIAPF0_MASK_OFFSET (0x3A000 + 0x28) #define ADF_DH895XCC_SMIAPF0_MASK_OFFSET (0x3A000 + 0x28) #define ADF_DH895XCC_SMIAPF1_MASK_OFFSET (0x3A000 + 0x30) #define ADF_DH895XCC_SMIAPF1_MASK_OFFSET (0x3A000 + 0x30) #define ADF_DH895XCC_SMIA0_MASK 0xFFFF #define ADF_DH895XCC_SMIA0_MASK 0xFFFFFFFF #define ADF_DH895XCC_SMIA1_MASK 0x1 #define ADF_DH895XCC_SMIA1_MASK 0x1 /* Error detection and correction */ /* Error detection and correction */ #define ADF_DH895XCC_AE_CTX_ENABLES(i) (i * 0x1000 + 0x20818) #define ADF_DH895XCC_AE_CTX_ENABLES(i) (i * 0x1000 + 0x20818) Loading include/linux/ccp.h +12 −0 Original line number Original line Diff line number Diff line Loading @@ -26,6 +26,13 @@ struct ccp_cmd; #if defined(CONFIG_CRYPTO_DEV_CCP_DD) || \ #if defined(CONFIG_CRYPTO_DEV_CCP_DD) || \ defined(CONFIG_CRYPTO_DEV_CCP_DD_MODULE) defined(CONFIG_CRYPTO_DEV_CCP_DD_MODULE) /** * ccp_present - check if a CCP device is present * * Returns zero if a CCP device is present, -ENODEV otherwise. */ int ccp_present(void); /** /** * ccp_enqueue_cmd - queue an operation for processing by the CCP * ccp_enqueue_cmd - queue an operation for processing by the CCP * * Loading Loading @@ -53,6 +60,11 @@ int ccp_enqueue_cmd(struct ccp_cmd *cmd); #else /* CONFIG_CRYPTO_DEV_CCP_DD is not enabled */ #else /* CONFIG_CRYPTO_DEV_CCP_DD is not enabled */ static inline int ccp_present(void) { return -ENODEV; } static inline int ccp_enqueue_cmd(struct ccp_cmd *cmd) static inline int ccp_enqueue_cmd(struct ccp_cmd *cmd) { { return -ENODEV; return -ENODEV; Loading Loading
arch/x86/crypto/aesni-intel_glue.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -481,7 +481,7 @@ static void ctr_crypt_final(struct crypto_aes_ctx *ctx, crypto_inc(ctrblk, AES_BLOCK_SIZE); crypto_inc(ctrblk, AES_BLOCK_SIZE); } } #ifdef CONFIG_AS_AVX #if 0 /* temporary disabled due to failing crypto tests */ static void aesni_ctr_enc_avx_tfm(struct crypto_aes_ctx *ctx, u8 *out, static void aesni_ctr_enc_avx_tfm(struct crypto_aes_ctx *ctx, u8 *out, const u8 *in, unsigned int len, u8 *iv) const u8 *in, unsigned int len, u8 *iv) { { Loading Loading @@ -1522,7 +1522,7 @@ static int __init aesni_init(void) aesni_gcm_dec_tfm = aesni_gcm_dec; aesni_gcm_dec_tfm = aesni_gcm_dec; } } aesni_ctr_enc_tfm = aesni_ctr_enc; aesni_ctr_enc_tfm = aesni_ctr_enc; #ifdef CONFIG_AS_AVX #if 0 /* temporary disabled due to failing crypto tests */ if (cpu_has_avx) { if (cpu_has_avx) { /* optimize performance of ctr mode encryption transform */ /* optimize performance of ctr mode encryption transform */ aesni_ctr_enc_tfm = aesni_ctr_enc_avx_tfm; aesni_ctr_enc_tfm = aesni_ctr_enc_avx_tfm; Loading
drivers/crypto/ccp/ccp-crypto-main.c +4 −0 Original line number Original line Diff line number Diff line Loading @@ -367,6 +367,10 @@ static int ccp_crypto_init(void) { { int ret; int ret; ret = ccp_present(); if (ret) return ret; spin_lock_init(&req_queue_lock); spin_lock_init(&req_queue_lock); INIT_LIST_HEAD(&req_queue.cmds); INIT_LIST_HEAD(&req_queue.cmds); req_queue.backlog = &req_queue.cmds; req_queue.backlog = &req_queue.cmds; Loading
drivers/crypto/ccp/ccp-dev.c +14 −0 Original line number Original line Diff line number Diff line Loading @@ -54,6 +54,20 @@ static inline void ccp_del_device(struct ccp_device *ccp) ccp_dev = NULL; ccp_dev = NULL; } } /** * ccp_present - check if a CCP device is present * * Returns zero if a CCP device is present, -ENODEV otherwise. */ int ccp_present(void) { if (ccp_get_device()) return 0; return -ENODEV; } EXPORT_SYMBOL_GPL(ccp_present); /** /** * ccp_enqueue_cmd - queue an operation for processing by the CCP * ccp_enqueue_cmd - queue an operation for processing by the CCP * * Loading
drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -66,7 +66,7 @@ #define ADF_DH895XCC_ETR_MAX_BANKS 32 #define ADF_DH895XCC_ETR_MAX_BANKS 32 #define ADF_DH895XCC_SMIAPF0_MASK_OFFSET (0x3A000 + 0x28) #define ADF_DH895XCC_SMIAPF0_MASK_OFFSET (0x3A000 + 0x28) #define ADF_DH895XCC_SMIAPF1_MASK_OFFSET (0x3A000 + 0x30) #define ADF_DH895XCC_SMIAPF1_MASK_OFFSET (0x3A000 + 0x30) #define ADF_DH895XCC_SMIA0_MASK 0xFFFF #define ADF_DH895XCC_SMIA0_MASK 0xFFFFFFFF #define ADF_DH895XCC_SMIA1_MASK 0x1 #define ADF_DH895XCC_SMIA1_MASK 0x1 /* Error detection and correction */ /* Error detection and correction */ #define ADF_DH895XCC_AE_CTX_ENABLES(i) (i * 0x1000 + 0x20818) #define ADF_DH895XCC_AE_CTX_ENABLES(i) (i * 0x1000 + 0x20818) Loading
include/linux/ccp.h +12 −0 Original line number Original line Diff line number Diff line Loading @@ -26,6 +26,13 @@ struct ccp_cmd; #if defined(CONFIG_CRYPTO_DEV_CCP_DD) || \ #if defined(CONFIG_CRYPTO_DEV_CCP_DD) || \ defined(CONFIG_CRYPTO_DEV_CCP_DD_MODULE) defined(CONFIG_CRYPTO_DEV_CCP_DD_MODULE) /** * ccp_present - check if a CCP device is present * * Returns zero if a CCP device is present, -ENODEV otherwise. */ int ccp_present(void); /** /** * ccp_enqueue_cmd - queue an operation for processing by the CCP * ccp_enqueue_cmd - queue an operation for processing by the CCP * * Loading Loading @@ -53,6 +60,11 @@ int ccp_enqueue_cmd(struct ccp_cmd *cmd); #else /* CONFIG_CRYPTO_DEV_CCP_DD is not enabled */ #else /* CONFIG_CRYPTO_DEV_CCP_DD is not enabled */ static inline int ccp_present(void) { return -ENODEV; } static inline int ccp_enqueue_cmd(struct ccp_cmd *cmd) static inline int ccp_enqueue_cmd(struct ccp_cmd *cmd) { { return -ENODEV; return -ENODEV; Loading