Commit ed5210cb authored by Derek Robson's avatar Derek Robson Committed by Greg Kroah-Hartman

Drivers: ccree: cc_hw_queue_defs.h - align block comments

Fixed block comment alignment, Style fix only
Found using checkpatch
Signed-off-by: default avatarDerek Robson <robsonde@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f6858e91
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
#include "dx_crys_kernel.h" #include "dx_crys_kernel.h"
/****************************************************************************** /******************************************************************************
* DEFINITIONS * DEFINITIONS
******************************************************************************/ ******************************************************************************/
/* Dma AXI Secure bit */ /* Dma AXI Secure bit */
#define AXI_SECURE 0 #define AXI_SECURE 0
...@@ -36,8 +36,8 @@ ...@@ -36,8 +36,8 @@
#define _HW_DESC_MONITOR_KICK 0x7FFFC00 #define _HW_DESC_MONITOR_KICK 0x7FFFC00
/****************************************************************************** /******************************************************************************
* TYPE DEFINITIONS * TYPE DEFINITIONS
******************************************************************************/ ******************************************************************************/
struct cc_hw_desc { struct cc_hw_desc {
u32 word[HW_DESC_SIZE_WORDS]; u32 word[HW_DESC_SIZE_WORDS];
...@@ -400,7 +400,7 @@ enum cc_hw_des_key_size { ...@@ -400,7 +400,7 @@ enum cc_hw_des_key_size {
* *
* \param pDesc pointer HW descriptor struct * \param pDesc pointer HW descriptor struct
* \param numRounds number of rounds for Multi2 * \param numRounds number of rounds for Multi2
*/ */
#define HW_DESC_SET_MULTI2_NUM_ROUNDS(pDesc, numRounds) \ #define HW_DESC_SET_MULTI2_NUM_ROUNDS(pDesc, numRounds) \
do { \ do { \
CC_REG_FLD_SET(CRY_KERNEL, DSCRPTR_QUEUE_WORD2, VALUE, (pDesc)->word[2], (u32)(numRounds)); \ CC_REG_FLD_SET(CRY_KERNEL, DSCRPTR_QUEUE_WORD2, VALUE, (pDesc)->word[2], (u32)(numRounds)); \
...@@ -411,7 +411,7 @@ enum cc_hw_des_key_size { ...@@ -411,7 +411,7 @@ enum cc_hw_des_key_size {
* *
* \param pDesc pointer HW descriptor struct * \param pDesc pointer HW descriptor struct
* \param flowMode Any one of the modes defined in [CC7x-DESC] * \param flowMode Any one of the modes defined in [CC7x-DESC]
*/ */
#define HW_DESC_SET_FLOW_MODE(pDesc, flowMode) \ #define HW_DESC_SET_FLOW_MODE(pDesc, flowMode) \
do { \ do { \
...@@ -423,7 +423,7 @@ enum cc_hw_des_key_size { ...@@ -423,7 +423,7 @@ enum cc_hw_des_key_size {
* *
* \param pDesc pointer HW descriptor struct * \param pDesc pointer HW descriptor struct
* \param cipherMode Any one of the modes defined in [CC7x-DESC] * \param cipherMode Any one of the modes defined in [CC7x-DESC]
*/ */
#define HW_DESC_SET_CIPHER_MODE(pDesc, cipherMode) \ #define HW_DESC_SET_CIPHER_MODE(pDesc, cipherMode) \
do { \ do { \
CC_REG_FLD_SET(CRY_KERNEL, DSCRPTR_QUEUE_WORD4, CIPHER_MODE, (pDesc)->word[4], (cipherMode)); \ CC_REG_FLD_SET(CRY_KERNEL, DSCRPTR_QUEUE_WORD4, CIPHER_MODE, (pDesc)->word[4], (cipherMode)); \
...@@ -434,7 +434,7 @@ enum cc_hw_des_key_size { ...@@ -434,7 +434,7 @@ enum cc_hw_des_key_size {
* *
* \param pDesc pointer HW descriptor struct * \param pDesc pointer HW descriptor struct
* \param cipherConfig Any one of the modes defined in [CC7x-DESC] * \param cipherConfig Any one of the modes defined in [CC7x-DESC]
*/ */
#define HW_DESC_SET_CIPHER_CONFIG0(pDesc, cipherConfig) \ #define HW_DESC_SET_CIPHER_CONFIG0(pDesc, cipherConfig) \
do { \ do { \
CC_REG_FLD_SET(CRY_KERNEL, DSCRPTR_QUEUE_WORD4, CIPHER_CONF0, (pDesc)->word[4], (cipherConfig)); \ CC_REG_FLD_SET(CRY_KERNEL, DSCRPTR_QUEUE_WORD4, CIPHER_CONF0, (pDesc)->word[4], (cipherConfig)); \
...@@ -445,7 +445,7 @@ enum cc_hw_des_key_size { ...@@ -445,7 +445,7 @@ enum cc_hw_des_key_size {
* *
* \param pDesc pointer HW descriptor struct * \param pDesc pointer HW descriptor struct
* \param cipherConfig Any one of the modes defined in [CC7x-DESC] * \param cipherConfig Any one of the modes defined in [CC7x-DESC]
*/ */
#define HW_DESC_SET_CIPHER_CONFIG1(pDesc, cipherConfig) \ #define HW_DESC_SET_CIPHER_CONFIG1(pDesc, cipherConfig) \
do { \ do { \
CC_REG_FLD_SET(CRY_KERNEL, DSCRPTR_QUEUE_WORD4, CIPHER_CONF1, (pDesc)->word[4], (cipherConfig)); \ CC_REG_FLD_SET(CRY_KERNEL, DSCRPTR_QUEUE_WORD4, CIPHER_CONF1, (pDesc)->word[4], (cipherConfig)); \
...@@ -456,7 +456,7 @@ enum cc_hw_des_key_size { ...@@ -456,7 +456,7 @@ enum cc_hw_des_key_size {
* *
* \param pDesc pointer HW descriptor struct * \param pDesc pointer HW descriptor struct
* \param hwKey The hw key number as in enun HwCryptoKey * \param hwKey The hw key number as in enun HwCryptoKey
*/ */
#define HW_DESC_SET_HW_CRYPTO_KEY(pDesc, hwKey) \ #define HW_DESC_SET_HW_CRYPTO_KEY(pDesc, hwKey) \
do { \ do { \
CC_REG_FLD_SET(CRY_KERNEL, DSCRPTR_QUEUE_WORD4, CIPHER_DO, (pDesc)->word[4], (hwKey) & HW_KEY_MASK_CIPHER_DO); \ CC_REG_FLD_SET(CRY_KERNEL, DSCRPTR_QUEUE_WORD4, CIPHER_DO, (pDesc)->word[4], (hwKey) & HW_KEY_MASK_CIPHER_DO); \
...@@ -468,7 +468,7 @@ enum cc_hw_des_key_size { ...@@ -468,7 +468,7 @@ enum cc_hw_des_key_size {
* *
* \param pDesc pointer HW descriptor struct * \param pDesc pointer HW descriptor struct
* \param swapConfig Any one of the modes defined in [CC7x-DESC] * \param swapConfig Any one of the modes defined in [CC7x-DESC]
*/ */
#define HW_DESC_SET_BYTES_SWAP(pDesc, swapConfig) \ #define HW_DESC_SET_BYTES_SWAP(pDesc, swapConfig) \
do { \ do { \
CC_REG_FLD_SET(CRY_KERNEL, DSCRPTR_QUEUE_WORD4, BYTES_SWAP, (pDesc)->word[4], (swapConfig)); \ CC_REG_FLD_SET(CRY_KERNEL, DSCRPTR_QUEUE_WORD4, BYTES_SWAP, (pDesc)->word[4], (swapConfig)); \
...@@ -478,7 +478,7 @@ enum cc_hw_des_key_size { ...@@ -478,7 +478,7 @@ enum cc_hw_des_key_size {
* This macro sets the CMAC_SIZE0 mode. * This macro sets the CMAC_SIZE0 mode.
* *
* \param pDesc pointer HW descriptor struct * \param pDesc pointer HW descriptor struct
*/ */
#define HW_DESC_SET_CMAC_SIZE0_MODE(pDesc) \ #define HW_DESC_SET_CMAC_SIZE0_MODE(pDesc) \
do { \ do { \
CC_REG_FLD_SET(CRY_KERNEL, DSCRPTR_QUEUE_WORD4, CMAC_SIZE0, (pDesc)->word[4], 0x1); \ CC_REG_FLD_SET(CRY_KERNEL, DSCRPTR_QUEUE_WORD4, CMAC_SIZE0, (pDesc)->word[4], 0x1); \
...@@ -489,7 +489,7 @@ enum cc_hw_des_key_size { ...@@ -489,7 +489,7 @@ enum cc_hw_des_key_size {
* *
* \param pDesc pointer HW descriptor struct * \param pDesc pointer HW descriptor struct
* \param keySize key size in bytes (NOT size code) * \param keySize key size in bytes (NOT size code)
*/ */
#define HW_DESC_SET_KEY_SIZE_AES(pDesc, keySize) \ #define HW_DESC_SET_KEY_SIZE_AES(pDesc, keySize) \
do { \ do { \
CC_REG_FLD_SET(CRY_KERNEL, DSCRPTR_QUEUE_WORD4, KEY_SIZE, (pDesc)->word[4], ((keySize) >> 3) - 2); \ CC_REG_FLD_SET(CRY_KERNEL, DSCRPTR_QUEUE_WORD4, KEY_SIZE, (pDesc)->word[4], ((keySize) >> 3) - 2); \
...@@ -500,7 +500,7 @@ enum cc_hw_des_key_size { ...@@ -500,7 +500,7 @@ enum cc_hw_des_key_size {
* *
* \param pDesc pointer HW descriptor struct * \param pDesc pointer HW descriptor struct
* \param keySize key size in bytes (NOT size code) * \param keySize key size in bytes (NOT size code)
*/ */
#define HW_DESC_SET_KEY_SIZE_DES(pDesc, keySize) \ #define HW_DESC_SET_KEY_SIZE_DES(pDesc, keySize) \
do { \ do { \
CC_REG_FLD_SET(CRY_KERNEL, DSCRPTR_QUEUE_WORD4, KEY_SIZE, (pDesc)->word[4], ((keySize) >> 3) - 1); \ CC_REG_FLD_SET(CRY_KERNEL, DSCRPTR_QUEUE_WORD4, KEY_SIZE, (pDesc)->word[4], ((keySize) >> 3) - 1); \
...@@ -511,7 +511,7 @@ enum cc_hw_des_key_size { ...@@ -511,7 +511,7 @@ enum cc_hw_des_key_size {
* *
* \param pDesc pointer HW descriptor struct * \param pDesc pointer HW descriptor struct
* \param setupMode Any one of the setup modes defined in [CC7x-DESC] * \param setupMode Any one of the setup modes defined in [CC7x-DESC]
*/ */
#define HW_DESC_SET_SETUP_MODE(pDesc, setupMode) \ #define HW_DESC_SET_SETUP_MODE(pDesc, setupMode) \
do { \ do { \
CC_REG_FLD_SET(CRY_KERNEL, DSCRPTR_QUEUE_WORD4, SETUP_OPERATION, (pDesc)->word[4], (setupMode)); \ CC_REG_FLD_SET(CRY_KERNEL, DSCRPTR_QUEUE_WORD4, SETUP_OPERATION, (pDesc)->word[4], (setupMode)); \
...@@ -522,7 +522,7 @@ enum cc_hw_des_key_size { ...@@ -522,7 +522,7 @@ enum cc_hw_des_key_size {
* *
* \param pDesc pointer HW descriptor struct * \param pDesc pointer HW descriptor struct
* \param cipherDo Any one of the cipher do defined in [CC7x-DESC] * \param cipherDo Any one of the cipher do defined in [CC7x-DESC]
*/ */
#define HW_DESC_SET_CIPHER_DO(pDesc, cipherDo) \ #define HW_DESC_SET_CIPHER_DO(pDesc, cipherDo) \
do { \ do { \
CC_REG_FLD_SET(CRY_KERNEL, DSCRPTR_QUEUE_WORD4, CIPHER_DO, (pDesc)->word[4], (cipherDo) & HW_KEY_MASK_CIPHER_DO); \ CC_REG_FLD_SET(CRY_KERNEL, DSCRPTR_QUEUE_WORD4, CIPHER_DO, (pDesc)->word[4], (cipherDo) & HW_KEY_MASK_CIPHER_DO); \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment