aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorAllan, Bruce W <bruce.w.allan@intel.com>2015-03-31 12:30:45 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2015-04-01 10:22:48 -0400
commitaf6f2a7bb56cfb9face2155c6c823a3b5a7cb1ab (patch)
treec9c776bc65350ea059ad8c8fba3cbdc8007ff9af /drivers/crypto
parentf7b3c2d34f9e2d02254d550b557ddf7c76ab8057 (diff)
crypto: qat - fix checkpatch BIT_MACRO issues
CHECK:BIT_MACRO: Prefer using the BIT macro Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/qat/qat_common/qat_hal.c4
-rw-r--r--drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/crypto/qat/qat_common/qat_hal.c b/drivers/crypto/qat/qat_common/qat_hal.c
index 8a02d5127390..274ff7e9de6e 100644
--- a/drivers/crypto/qat/qat_common/qat_hal.c
+++ b/drivers/crypto/qat/qat_common/qat_hal.c
@@ -434,8 +434,8 @@ static void qat_hal_reset_timestamp(struct icp_qat_fw_loader_handle *handle)
434 SET_GLB_CSR(handle, MISC_CONTROL, misc_ctl | MC_TIMESTAMP_ENABLE); 434 SET_GLB_CSR(handle, MISC_CONTROL, misc_ctl | MC_TIMESTAMP_ENABLE);
435} 435}
436 436
437#define ESRAM_AUTO_TINIT (1<<2) 437#define ESRAM_AUTO_TINIT BIT(2)
438#define ESRAM_AUTO_TINIT_DONE (1<<3) 438#define ESRAM_AUTO_TINIT_DONE BIT(3)
439#define ESRAM_AUTO_INIT_USED_CYCLES (1640) 439#define ESRAM_AUTO_INIT_USED_CYCLES (1640)
440#define ESRAM_AUTO_INIT_CSR_OFFSET 0xC1C 440#define ESRAM_AUTO_INIT_CSR_OFFSET 0xC1C
441static int qat_hal_init_esram(struct icp_qat_fw_loader_handle *handle) 441static int qat_hal_init_esram(struct icp_qat_fw_loader_handle *handle)
diff --git a/drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.h b/drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.h
index 01e0be21e93a..25269a9f24a2 100644
--- a/drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.h
+++ b/drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.h
@@ -73,11 +73,11 @@
73/* Error detection and correction */ 73/* Error detection and correction */
74#define ADF_DH895XCC_AE_CTX_ENABLES(i) (i * 0x1000 + 0x20818) 74#define ADF_DH895XCC_AE_CTX_ENABLES(i) (i * 0x1000 + 0x20818)
75#define ADF_DH895XCC_AE_MISC_CONTROL(i) (i * 0x1000 + 0x20960) 75#define ADF_DH895XCC_AE_MISC_CONTROL(i) (i * 0x1000 + 0x20960)
76#define ADF_DH895XCC_ENABLE_AE_ECC_ERR (1 << 28) 76#define ADF_DH895XCC_ENABLE_AE_ECC_ERR BIT(28)
77#define ADF_DH895XCC_ENABLE_AE_ECC_PARITY_CORR (1 << 24 | 1 << 12) 77#define ADF_DH895XCC_ENABLE_AE_ECC_PARITY_CORR (BIT(24) | BIT(12))
78#define ADF_DH895XCC_UERRSSMSH(i) (i * 0x4000 + 0x18) 78#define ADF_DH895XCC_UERRSSMSH(i) (i * 0x4000 + 0x18)
79#define ADF_DH895XCC_CERRSSMSH(i) (i * 0x4000 + 0x10) 79#define ADF_DH895XCC_CERRSSMSH(i) (i * 0x4000 + 0x10)
80#define ADF_DH895XCC_ERRSSMSH_EN (1 << 3) 80#define ADF_DH895XCC_ERRSSMSH_EN BIT(3)
81 81
82/* Admin Messages Registers */ 82/* Admin Messages Registers */
83#define ADF_DH895XCC_ADMINMSGUR_OFFSET (0x3A000 + 0x574) 83#define ADF_DH895XCC_ADMINMSGUR_OFFSET (0x3A000 + 0x574)