]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: ccree: use a consistent file naming convention
authorGilad Ben-Yossef <gilad@benyossef.com>
Tue, 9 Jan 2018 10:24:29 +0000 (10:24 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Jan 2018 15:00:07 +0000 (16:00 +0100)
The ccree driver source files were using an inconsistent
naming convention stemming from what the company was called
when they were added.

Move to a single consistent naming convention for better
code readability.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
25 files changed:
drivers/staging/ccree/Makefile
drivers/staging/ccree/cc_aead.c [moved from drivers/staging/ccree/ssi_aead.c with 99% similarity]
drivers/staging/ccree/cc_aead.h [moved from drivers/staging/ccree/ssi_aead.h with 99% similarity]
drivers/staging/ccree/cc_buffer_mgr.c [moved from drivers/staging/ccree/ssi_buffer_mgr.c with 99% similarity]
drivers/staging/ccree/cc_buffer_mgr.h [moved from drivers/staging/ccree/ssi_buffer_mgr.h with 97% similarity]
drivers/staging/ccree/cc_cipher.c [moved from drivers/staging/ccree/ssi_cipher.c with 99% similarity]
drivers/staging/ccree/cc_cipher.h [moved from drivers/staging/ccree/ssi_cipher.h with 95% similarity]
drivers/staging/ccree/cc_debugfs.c
drivers/staging/ccree/cc_driver.c [moved from drivers/staging/ccree/ssi_driver.c with 98% similarity]
drivers/staging/ccree/cc_driver.h [moved from drivers/staging/ccree/ssi_driver.h with 98% similarity]
drivers/staging/ccree/cc_fips.c [moved from drivers/staging/ccree/ssi_fips.c with 98% similarity]
drivers/staging/ccree/cc_fips.h [moved from drivers/staging/ccree/ssi_fips.h with 100% similarity]
drivers/staging/ccree/cc_hash.c [moved from drivers/staging/ccree/ssi_hash.c with 99% similarity]
drivers/staging/ccree/cc_hash.h [moved from drivers/staging/ccree/ssi_hash.h with 98% similarity]
drivers/staging/ccree/cc_host_regs.h [moved from drivers/staging/ccree/dx_host.h with 100% similarity]
drivers/staging/ccree/cc_hw_queue_defs.h
drivers/staging/ccree/cc_ivgen.c [moved from drivers/staging/ccree/ssi_ivgen.c with 98% similarity]
drivers/staging/ccree/cc_ivgen.h [moved from drivers/staging/ccree/ssi_ivgen.h with 100% similarity]
drivers/staging/ccree/cc_kernel_regs.h [moved from drivers/staging/ccree/dx_crys_kernel.h with 100% similarity]
drivers/staging/ccree/cc_pm.c [moved from drivers/staging/ccree/ssi_pm.c with 93% similarity]
drivers/staging/ccree/cc_pm.h [moved from drivers/staging/ccree/ssi_pm.h with 95% similarity]
drivers/staging/ccree/cc_request_mgr.c [moved from drivers/staging/ccree/ssi_request_mgr.c with 99% similarity]
drivers/staging/ccree/cc_request_mgr.h [moved from drivers/staging/ccree/ssi_request_mgr.h with 98% similarity]
drivers/staging/ccree/cc_sram_mgr.c [moved from drivers/staging/ccree/ssi_sram_mgr.c with 98% similarity]
drivers/staging/ccree/cc_sram_mgr.h [moved from drivers/staging/ccree/ssi_sram_mgr.h with 100% similarity]

index c107e2506717ac362059fcd161f13e8d51707d93..bdc27970f95f704727104e77f357ba45d88e6ac8 100644 (file)
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 
 obj-$(CONFIG_CRYPTO_DEV_CCREE) := ccree.o
-ccree-y := ssi_driver.o ssi_buffer_mgr.o ssi_request_mgr.o ssi_cipher.o ssi_hash.o ssi_aead.o ssi_ivgen.o ssi_sram_mgr.o
-ccree-$(CONFIG_CRYPTO_FIPS) += ssi_fips.o
+ccree-y := cc_driver.o cc_buffer_mgr.o cc_request_mgr.o cc_cipher.o cc_hash.o cc_aead.o cc_ivgen.o cc_sram_mgr.o
+ccree-$(CONFIG_CRYPTO_FIPS) += cc_fips.o
 ccree-$(CONFIG_DEBUG_FS) += cc_debugfs.o
-ccree-$(CONFIG_PM) += ssi_pm.o
+ccree-$(CONFIG_PM) += cc_pm.o
similarity index 99%
rename from drivers/staging/ccree/ssi_aead.c
rename to drivers/staging/ccree/cc_aead.c
index 6f41a004ae9a59fe5a95141ea67d66932b396809..da7442347f94bdc6debbc81184dd3a3097957142 100644 (file)
 #include <crypto/des.h>
 #include <linux/rtnetlink.h>
 #include <linux/version.h>
-#include "ssi_driver.h"
-#include "ssi_buffer_mgr.h"
-#include "ssi_aead.h"
-#include "ssi_request_mgr.h"
-#include "ssi_hash.h"
-#include "ssi_sram_mgr.h"
+#include "cc_driver.h"
+#include "cc_buffer_mgr.h"
+#include "cc_aead.h"
+#include "cc_request_mgr.h"
+#include "cc_hash.h"
+#include "cc_sram_mgr.h"
 
 #define template_aead  template_u.aead
 
similarity index 99%
rename from drivers/staging/ccree/ssi_aead.h
rename to drivers/staging/ccree/cc_aead.h
index 9567b8f9f142fe63255e5a49884da1d4425c5812..5edf3b351fa44a785a935389932199e587852b6a 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* Copyright (C) 2012-2018 ARM Limited or its affiliates. */
 
-/* \file ssi_aead.h
+/* \file cc_aead.h
  * ARM CryptoCell AEAD Crypto API
  */
 
similarity index 99%
rename from drivers/staging/ccree/ssi_buffer_mgr.c
rename to drivers/staging/ccree/cc_buffer_mgr.c
index 684070d30d7a5e52f2967c865cafe68309ddcbb4..01c786ca6faed6cfd2e4bbde673088887a313920 100644 (file)
 #include <linux/module.h>
 #include <linux/platform_device.h>
 
-#include "ssi_buffer_mgr.h"
+#include "cc_buffer_mgr.h"
 #include "cc_lli_defs.h"
-#include "ssi_cipher.h"
-#include "ssi_hash.h"
-#include "ssi_aead.h"
+#include "cc_cipher.h"
+#include "cc_hash.h"
+#include "cc_aead.h"
 
 enum dma_buffer_type {
        DMA_NULL_TYPE = -1,
similarity index 97%
rename from drivers/staging/ccree/ssi_buffer_mgr.h
rename to drivers/staging/ccree/cc_buffer_mgr.h
index 0ddadd7ce1c3187d4e5ade37c5a39b3f69478303..99b752aa107762df204d820de0a29e3ea5c2f916 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* Copyright (C) 2012-2018 ARM Limited or its affiliates. */
 
-/* \file buffer_mgr.h
+/* \file cc_buffer_mgr.h
  * Buffer Manager
  */
 
@@ -10,7 +10,7 @@
 
 #include <crypto/algapi.h>
 
-#include "ssi_driver.h"
+#include "cc_driver.h"
 
 enum cc_req_dma_buf_type {
        CC_DMA_BUF_NULL = 0,
similarity index 99%
rename from drivers/staging/ccree/ssi_cipher.c
rename to drivers/staging/ccree/cc_cipher.c
index a0e7d00942885748dd93db76a05d15bd50264226..eca0578f898611fc12f365d77740a8d3837341c0 100644 (file)
 #include <crypto/xts.h>
 #include <crypto/scatterwalk.h>
 
-#include "ssi_driver.h"
+#include "cc_driver.h"
 #include "cc_lli_defs.h"
-#include "ssi_buffer_mgr.h"
-#include "ssi_cipher.h"
-#include "ssi_request_mgr.h"
+#include "cc_buffer_mgr.h"
+#include "cc_cipher.h"
+#include "cc_request_mgr.h"
 
 #define MAX_ABLKCIPHER_SEQ_LEN 6
 
similarity index 95%
rename from drivers/staging/ccree/ssi_cipher.h
rename to drivers/staging/ccree/cc_cipher.h
index 97b266b787f7eda1f695f9a5436e4024ae15b854..4c181c721723f4f5328ff2038030ff3fad4e48e1 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* Copyright (C) 2012-2018 ARM Limited or its affiliates. */
 
-/* \file ssi_cipher.h
+/* \file cc_cipher.h
  * ARM CryptoCell Cipher Crypto API
  */
 
@@ -10,8 +10,8 @@
 
 #include <linux/kernel.h>
 #include <crypto/algapi.h>
-#include "ssi_driver.h"
-#include "ssi_buffer_mgr.h"
+#include "cc_driver.h"
+#include "cc_buffer_mgr.h"
 
 /* Crypto cipher flags */
 #define CC_CRYPTO_CIPHER_KEY_KFDE0     BIT(0)
index 72eb2b39b16d52dbcf423c2d3c8bc699eedb0535..f927a736dff361e4979e39a8e152e96c394f1dbc 100644 (file)
@@ -4,7 +4,7 @@
 #include <linux/kernel.h>
 #include <linux/debugfs.h>
 #include <linux/stringify.h>
-#include "ssi_driver.h"
+#include "cc_driver.h"
 #include "cc_crypto_ctx.h"
 
 struct cc_debugfs_ctx {
similarity index 98%
rename from drivers/staging/ccree/ssi_driver.c
rename to drivers/staging/ccree/cc_driver.c
index b5df9b4d85b06b24cfbe22997ad96917a565e074..98d491ee2656224c2169493b0d27289a60c908dd 100644 (file)
 #include <linux/clk.h>
 #include <linux/of_address.h>
 
-#include "ssi_driver.h"
-#include "ssi_request_mgr.h"
-#include "ssi_buffer_mgr.h"
+#include "cc_driver.h"
+#include "cc_request_mgr.h"
+#include "cc_buffer_mgr.h"
 #include "cc_debugfs.h"
-#include "ssi_cipher.h"
-#include "ssi_aead.h"
-#include "ssi_hash.h"
-#include "ssi_ivgen.h"
-#include "ssi_sram_mgr.h"
-#include "ssi_pm.h"
-#include "ssi_fips.h"
+#include "cc_cipher.h"
+#include "cc_aead.h"
+#include "cc_hash.h"
+#include "cc_ivgen.h"
+#include "cc_sram_mgr.h"
+#include "cc_pm.h"
+#include "cc_fips.h"
 
 bool cc_dump_desc;
 module_param_named(dump_desc, cc_dump_desc, bool, 0600);
similarity index 98%
rename from drivers/staging/ccree/ssi_driver.h
rename to drivers/staging/ccree/cc_driver.h
index c2b978bfb4e8f0e496916c3cb4c65d3d27d989a2..773ac591c45cacb0de71d9d42ae938a55c989328 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* Copyright (C) 2012-2018 ARM Limited or its affiliates. */
 
-/* \file ssi_driver.h
+/* \file cc_driver.h
  * ARM CryptoCell Linux Crypto Driver
  */
 
 #include <linux/platform_device.h>
 
 /* Registers definitions from shared/hw/ree_include */
-#include "dx_host.h"
+#include "cc_host_regs.h"
 #define CC_DEV_SHA_MAX 512
 #include "cc_crypto_ctx.h"
 #include "cc_hw_queue_defs.h"
-#include "ssi_sram_mgr.h"
+#include "cc_sram_mgr.h"
 
 extern bool cc_dump_desc;
 extern bool cc_dump_bytes;
similarity index 98%
rename from drivers/staging/ccree/ssi_fips.c
rename to drivers/staging/ccree/cc_fips.c
index 2c58f90580714bf24ac2bab480bbab5fdad25f98..b25c34e0871742ef64f5b62f3ed51694373731a5 100644 (file)
@@ -4,8 +4,8 @@
 #include <linux/kernel.h>
 #include <linux/fips.h>
 
-#include "ssi_driver.h"
-#include "ssi_fips.h"
+#include "cc_driver.h"
+#include "cc_fips.h"
 
 static void fips_dsr(unsigned long devarg);
 
similarity index 99%
rename from drivers/staging/ccree/ssi_hash.c
rename to drivers/staging/ccree/cc_hash.c
index 57031c748cbe7f9cf089745179d6af2cd0b25ae9..7c1645dd51848fe2818cc5cb02c12862ca705564 100644 (file)
 #include <crypto/md5.h>
 #include <crypto/internal/hash.h>
 
-#include "ssi_driver.h"
-#include "ssi_request_mgr.h"
-#include "ssi_buffer_mgr.h"
-#include "ssi_hash.h"
-#include "ssi_sram_mgr.h"
+#include "cc_driver.h"
+#include "cc_request_mgr.h"
+#include "cc_buffer_mgr.h"
+#include "cc_hash.h"
+#include "cc_sram_mgr.h"
 
 #define CC_MAX_HASH_SEQ_LEN 12
 #define CC_MAX_OPAD_KEYS_SIZE CC_MAX_HASH_BLCK_SIZE
similarity index 98%
rename from drivers/staging/ccree/ssi_hash.h
rename to drivers/staging/ccree/cc_hash.h
index e45bb69c6b55aff8f5ef2ef00361e3f0b067c133..aa42b8f4348d1ff8acc73268a28865b18c08c130 100644 (file)
@@ -1,14 +1,14 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* Copyright (C) 2012-2018 ARM Limited or its affiliates. */
 
-/* \file ssi_hash.h
+/* \file cc_hash.h
  * ARM CryptoCell Hash Crypto API
  */
 
 #ifndef __CC_HASH_H__
 #define __CC_HASH_H__
 
-#include "ssi_buffer_mgr.h"
+#include "cc_buffer_mgr.h"
 
 #define HMAC_IPAD_CONST        0x36363636
 #define HMAC_OPAD_CONST        0x5C5C5C5C
index bfc18b371f16eb072f11d17ef86986fb91fc2c9b..a79f28cec5ae87294c3314074416a4aa4be259a0 100644 (file)
@@ -6,7 +6,7 @@
 
 #include <linux/types.h>
 
-#include "dx_crys_kernel.h"
+#include "cc_kernel_regs.h"
 #include <linux/bitfield.h>
 
 /******************************************************************************
similarity index 98%
rename from drivers/staging/ccree/ssi_ivgen.c
rename to drivers/staging/ccree/cc_ivgen.c
index 2ba15a5c631f5b91466552ae530c2ec7a1615029..43f70d46634a96bce032b0fd47833a3bf6464a6a 100644 (file)
@@ -3,11 +3,11 @@
 
 #include <linux/platform_device.h>
 #include <crypto/ctr.h>
-#include "ssi_driver.h"
-#include "ssi_ivgen.h"
-#include "ssi_request_mgr.h"
-#include "ssi_sram_mgr.h"
-#include "ssi_buffer_mgr.h"
+#include "cc_driver.h"
+#include "cc_ivgen.h"
+#include "cc_request_mgr.h"
+#include "cc_sram_mgr.h"
+#include "cc_buffer_mgr.h"
 
 /* The max. size of pool *MUST* be <= SRAM total size */
 #define CC_IVPOOL_SIZE 1024
similarity index 93%
rename from drivers/staging/ccree/ssi_pm.c
rename to drivers/staging/ccree/cc_pm.c
index 3a8d91c4a11b4e53f4096e6df37050a1c8fadfac..1f5da86348bd9357d9df42045ac35820c5ec422c 100644 (file)
@@ -6,13 +6,13 @@
 #include <linux/interrupt.h>
 #include <crypto/ctr.h>
 #include <linux/pm_runtime.h>
-#include "ssi_driver.h"
-#include "ssi_buffer_mgr.h"
-#include "ssi_request_mgr.h"
-#include "ssi_sram_mgr.h"
-#include "ssi_ivgen.h"
-#include "ssi_hash.h"
-#include "ssi_pm.h"
+#include "cc_driver.h"
+#include "cc_buffer_mgr.h"
+#include "cc_request_mgr.h"
+#include "cc_sram_mgr.h"
+#include "cc_ivgen.h"
+#include "cc_hash.h"
+#include "cc_pm.h"
 
 #define POWER_DOWN_ENABLE 0x01
 #define POWER_DOWN_DISABLE 0x00
similarity index 95%
rename from drivers/staging/ccree/ssi_pm.h
rename to drivers/staging/ccree/cc_pm.h
index f603255daed69f73d7055d1c30c5dbd2ec3c11eb..aac8190fea387385d2a5dc274254603322aaceaa 100644 (file)
@@ -1,13 +1,13 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* Copyright (C) 2012-2018 ARM Limited or its affiliates. */
 
-/* \file ssi_pm.h
+/* \file cc_pm.h
  */
 
 #ifndef __CC_POWER_MGR_H__
 #define __CC_POWER_MGR_H__
 
-#include "ssi_driver.h"
+#include "cc_driver.h"
 
 #define CC_SUSPEND_TIMEOUT 3000
 
similarity index 99%
rename from drivers/staging/ccree/ssi_request_mgr.c
rename to drivers/staging/ccree/cc_request_mgr.c
index dc3be2923342d7ad2b9ea6a103796f1139f6d880..cbcfcc3302b216f3ee5e07621d8df933c20d0f10 100644 (file)
@@ -7,11 +7,11 @@
 #include <linux/delay.h>
 #include <crypto/ctr.h>
 #include <linux/pm_runtime.h>
-#include "ssi_driver.h"
-#include "ssi_buffer_mgr.h"
-#include "ssi_request_mgr.h"
-#include "ssi_ivgen.h"
-#include "ssi_pm.h"
+#include "cc_driver.h"
+#include "cc_buffer_mgr.h"
+#include "cc_request_mgr.h"
+#include "cc_ivgen.h"
+#include "cc_pm.h"
 
 #define CC_MAX_POLL_ITER       10
 /* The highest descriptor count in used */
similarity index 98%
rename from drivers/staging/ccree/ssi_request_mgr.h
rename to drivers/staging/ccree/cc_request_mgr.h
index f11a26a98bce99882ed0a7581a80c4ceec5c7558..573cb97af085010d3c892d43ee8e76ea41fcf619 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* Copyright (C) 2012-2018 ARM Limited or its affiliates. */
 
-/* \file request_mgr.h
+/* \file cc_request_mgr.h
  * Request Manager
  */
 
similarity index 98%
rename from drivers/staging/ccree/ssi_sram_mgr.c
rename to drivers/staging/ccree/cc_sram_mgr.c
index c5497aacc71d5d288de9079d3903068ebaed052b..d1f8a9cc1c0f814486641106a8df4d8db00934f5 100644 (file)
@@ -1,8 +1,8 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (C) 2012-2018 ARM Limited or its affiliates. */
 
-#include "ssi_driver.h"
-#include "ssi_sram_mgr.h"
+#include "cc_driver.h"
+#include "cc_sram_mgr.h"
 
 /**
  * struct cc_sram_ctx -Internal RAM context manager