From patchwork Thu Jun 29 16:48:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brijesh Singh X-Patchwork-Id: 9817361 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5AEC9602B1 for ; Thu, 29 Jun 2017 16:49:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B1FA28723 for ; Thu, 29 Jun 2017 16:49:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F35828791; Thu, 29 Jun 2017 16:49:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2473B28723 for ; Thu, 29 Jun 2017 16:49:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751797AbdF2Qs6 (ORCPT ); Thu, 29 Jun 2017 12:48:58 -0400 Received: from mail-cys01nam02on0066.outbound.protection.outlook.com ([104.47.37.66]:44199 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751941AbdF2Qs4 (ORCPT ); Thu, 29 Jun 2017 12:48:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=5x+ducm5+R0Wo72RQUqn66ipNDJASDCTQdu7DKHBoak=; b=h9IC+sR60sNLjxovSz6JKqCy7F9iNC7oXLy1sWIldBIhOdshnOKEYoC0t0NLOWjEQLOLmdumRLiNQnOz+sIU/ZXpasrj/M7gBnaV4h0veVV7fT50/4C5vs/E3M+kUx0muqjWF1y/YNsS7+QGOtC0FrZz1N4mRMd2a7zRs3FRzeY= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=amd.com; Received: from ubuntu-010236106000.amd.com (165.204.78.1) by SN1PR12MB0157.namprd12.prod.outlook.com (10.162.3.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Thu, 29 Jun 2017 16:48:50 +0000 From: Brijesh Singh To: linux-crypto@vger.kernel.org Cc: gary.hook@amd.com, herbert@gondor.apana.org.au, davem@davemloft.net, Brijesh Singh Subject: [PATCH v3 4/5] crypto: ccp - rename ccp driver initialize files as sp device Date: Thu, 29 Jun 2017 11:48:31 -0500 Message-Id: <20170629164832.13252-5-brijesh.singh@amd.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170629164832.13252-1-brijesh.singh@amd.com> References: <20170629164832.13252-1-brijesh.singh@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: MWHPR03CA0060.namprd03.prod.outlook.com (10.174.173.177) To SN1PR12MB0157.namprd12.prod.outlook.com (10.162.3.144) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 60897f04-994f-482f-bb0f-08d4bf0eb8f0 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:SN1PR12MB0157; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0157; 3:D9JjW2nJ8zRkfoqRZhSe2BnccTRxO/zmaGZ/EDanXX5hr0Yz7xBRo+T2Omafopk8g5uIABgfrlstDmpAb9Z8IG8ENyUMm7bQaOtJF+TTJH8hXmBNiCVcxZKglxtJXfFmXH08ijk1Uogt1hDpW1y6KB6vqTanaKkELLTCoFFo3HT2Z3Pu049XmgjhsdEfHnguohJ969/vINWryhQcF6elF1eGKhkcoiObVVrgHsazyxAaSuCu3b1ow+xW6oo7KClQWGBgscEfvvYEmATx0azDSFCRd6TfB/ePPy3yVBks7kfy9i2daLfZQxqepfvbZQJtvVEZf0D9HaTZD92uCmJZIuoS1XswtbAAQvsawzBEYlQU3WRil9ZCrZloM0B8OzhROjgVpDczyKmm4JiVJXbVNLRB6nYgPCQ3yPRcULhWef3OQN6Z/2Z//ZX6oKWD3UgTejC+QoeDgHwFFMynolyURspBAuS+59IS/kUdLsAQmjGudqi9DwoVD0tPti1aY6lrF9BT2H9qfcdfWV7b/jmXJP/VvaltWq4FfVJ++qf/kygTei3Ak1a83Y1eE7lwLNYdifAkYWUECTpDEe6kzYSRdGNkXhkKvyKGSc1DrWktmouQlKzVO+gPFoylt41FjBiynYWjGMdz9aLNo1bQ9lfGg77lvVYwi00l+iNr9XGz/1XiopkPFWBJXvmBsHt3kBVZdwfBKGk4HwmD2Kp0NhzzcB7RuE37cT9n3zc77aw2jXyqV6U2X28AQ3Si7P3H4VuQELypj0T/oWpe4guzefYNSQ== X-MS-TrafficTypeDiagnostic: SN1PR12MB0157: X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0157; 25:CkmW/FI8glVJjSdab2qLYFuqZ14JLjmIUBxnhArLQauA0ZSLsTFCnivdVWVVryhgAPHMQqt4POMkrmrmIpUXXfcKc/e8MGUiXPWfe4m12vMzH94LgPccIZr6oNG30UUWIaJ0eCfss4biREdaRWKKADoKm1edy7oYX7MHgFLXt2no4yXw0qezuqcX59RIHutL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mZ57Z6D1CazwlhFrrD7wzt/ABXlb8lz+lQ3pW4xuTsBSZt7S4uFqySfYBplAfhDpWtQH2TSt7k75tiTN/03VTMCpSwV8iMslAmed7PD9Epp1jsiCJlaSQBt+az/+AHheVgMhEFxlcJ0zEd1TmWXlKtb+lKEMQPs0CEUkRQvQu/3fLSv6GBtRxAxntHiVv3IOoTWT7yBvjOUVl+LJf78+ey4lteeIvRftxbtF5BS5Ittx7ggsVYfh0pwM/ZrE/8yAxD9vKOfKc7nu903jvLeHvyDbhCgHoYcfUL5bx3VvJ62AoUhlGIYF23cZ6nTmP6I8UqVz7UdH2dl/q1CiBu+CafP4JJ5DAkIhHsgvdk671GJ8VktvTDZQWU/+T3mKrmKM= X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0157; 20:61J5yLiNv0En/BzLBBYxiFNb+W0m91JiQWP8VA1YpXcbMDAK72aWxuXkqrBeh7fMc6BK7eRtAnSP+ht2+hE/rMwi/TXPEzvdsnYGXhk9LKcWIo/e6IXsCKYIIu9olMDjFRERmCguboVCj3eMk8oCie+hHJLzdkRr7WAYlAsiQ0IC/Pd4Uj5TDoEZXLXlWtDvubs0qUN7e+SvO21D9OOx9itoUkIf1Bms9WRXTRqPaL6pRWBTcVfpAZV9k3mgWhkvat9AJzFiAoS/dYjWG9PpD7oEUTR2gaIC0GnVcPuGsnbg7rrnmUy+SMuB/SAbekpTmVX6qdYHxJuQMbCvqkrp7Tu8njyTfRTHH2cY4QeztNrnxCM4b+u0bpDY/hR5HMj7kWBfZE9yO6nbxMobrtDxfcwgT3knrSiE8DeCG1kC0kVFDTVogaWoPaF2yoCm9hMJiP5hBMvJ6X+COFuqmEBGxrJZ0dKyoiLs47bCAEILJfXkI0kqiaZ6QqDfvCVe9g2K X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(125551606395959)(236129657087228)(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(20161123560025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN1PR12MB0157; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN1PR12MB0157; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR12MB0157; 4:IjM5KOnUxf6haYWO1pdTcTrozd7bhLrpMARHHT43tZ?= =?us-ascii?Q?Ij6FJdNYq9377LTqZstkG/hf5uK1z1N9yHT7Hc42CC96N+JfWGhkiu8T/N0S?= =?us-ascii?Q?PXl4NhnoFuIYpx6a3UUKFUTaZPM2HVo4zH9lDC4QChhnYWZKoEYcwqrGjYF5?= =?us-ascii?Q?c6+20zzSs/snLw9s10M5Lc7o1RjsLdiYmW1rhY0nzzm2s/rT+JCKNsznn/0z?= =?us-ascii?Q?ha80XSnJr4qeF1zxN2mioDjPOH9sZkmK1+vcqsLMT6qfFh+EuE2VVma4S2VI?= =?us-ascii?Q?1kY6zfL9O4OXJQjGzakqlme2N5g1Lc1cdMn9nbU/We0jPMKp78NBW2ddyqs6?= =?us-ascii?Q?fJF7qkeTTzJdYQGqJYeHsbROK6QiMidxrrBPm18X2qHvt1AgwVKfSxzeix6W?= =?us-ascii?Q?9jYAZ5wOdbtuFiZ3O3sVjhGlzjewWAEtngCGcH+hgTGyABWDJ4L+z50PRPK0?= =?us-ascii?Q?QQQONUhMXGJSjpAsFBcA2iTY3eDWEPYceM9y6U9AmEljDqGO4akYczHppkIc?= =?us-ascii?Q?RLH0H4Nq0vVkHEzOl0ZmTfVwOZjVbOSw9oYceewDLdvoJDvFwx2p4qmNFmCo?= =?us-ascii?Q?TueOndrfPD6v6KfqeADH1nozS4/PL6mMyRO0XJrM3xQn2S4jyjDKX3jf/XXr?= =?us-ascii?Q?ONElt1zpzMQTRsxvlc1zvPUfw1WzvZLB1EN8IkOKTBav90GSLetlFM9Jbjbk?= =?us-ascii?Q?f63hOD4NidOXGqVoNIOfKaQnFnzYR3HPrywfYzthxL9n8yvB62e3pkgJXMTZ?= =?us-ascii?Q?6yxrgFHFwC4TopGOKt1JKsIUfAZLL8GPPRcbGpIAjApkWElC6n99CXLlrZEl?= =?us-ascii?Q?+H7ft55UFIanuz1iU7JkutvE45gc4TvpXYDvstBG+YL6EWZS+vD2UZTX60fj?= =?us-ascii?Q?1+Mc4xltVnUT910wWG1FFA2regRuTgl4zh6N1yWXtzRShq4yCvSsY5+TU033?= =?us-ascii?Q?B3BHEc0unO/wQb/BbE+9QXKMwQWqgQP9rsmXPKuKzMKtWVWohGzwCSsAuFLd?= =?us-ascii?Q?Ey0cCD83j/gXtGy9lfREwvVBn1B3SuFtbMPjGjMRuvW9HyHz7I9InDZwXoTY?= =?us-ascii?Q?lndY4HtsIo8p0r6MnbUB0ydE1UKlbgRcctXeA69anCs8KWkD3xpaaW2mfDl2?= =?us-ascii?Q?rh8o2ZEV7pACzZtMx53/aUTWS7GZEMAC4n4f2O/9l8C/4H3oTD7VO/mcXrfG?= =?us-ascii?Q?H6aUW1IrBHlwwnDu+RmlLZsSkfdRFZQGmyGuZ94snQsQDUTDNJqqpRKg8X2D?= =?us-ascii?Q?wP0pmWH1p3vrbhy1Avet3RUg5zZ0B1YeXCRzNo?= X-Forefront-PRVS: 0353563E2B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(979002)(6009001)(39410400002)(39860400002)(39840400002)(39450400003)(39400400002)(39850400002)(47776003)(76176999)(6486002)(2351001)(8676002)(478600001)(106356001)(81166006)(50986999)(2361001)(50226002)(25786009)(7736002)(4326008)(33646002)(6666003)(6916009)(305945005)(2950100002)(42186005)(53416004)(5660300001)(2906002)(48376002)(6116002)(189998001)(38730400002)(66066001)(53936002)(3846002)(110136004)(36756003)(575784001)(5003940100001)(1076002)(86362001)(50466002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR12MB0157; H:ubuntu-010236106000.amd.com; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR12MB0157; 23:2cIp4ulcKiYQrQ/0O5ti8/XOa2T9OrASeO3kTMcbe?= =?us-ascii?Q?casdZoVwpzB6RIQ/d7rVbeaSpItta7LeAXiEB/CAli7iCObzPsIAS/93awdd?= =?us-ascii?Q?ZevP74x+1U2MJ4xqKPfMe/c52HYdznI5ZcNV4vQrn65Vtx7k1NSzsTB8ZX55?= =?us-ascii?Q?SRf6eQBesIQqnnZgJ6f4FnT8tRuoPo4VOLS8kpxtI5aw1ZgWJ684uEIkrc1A?= =?us-ascii?Q?D7uRQLh3Su76Umo0zxyXiGRoS+ko/DGlcar7ZWXLlqfTeQ7h/8uJvWMRBxBZ?= =?us-ascii?Q?AukE7VLPNSv7kGlD5cpEYNYTyEG1qtkOQ2ieuOrDZRhW2yQF+t4wIvFQKY8v?= =?us-ascii?Q?/A49eJwKhuXu1omXxxQCagun9C3VPe0zQDc9nPTJ4BGqV/EPlUqDRaBaPgvR?= =?us-ascii?Q?XPdRKw+DnTyjeEH9drQjBE65MbPfXG6Fd4abH5pIHzLFtcCa6o/2P3ilploa?= =?us-ascii?Q?Ubp1Gzv4xDU+/Fq6hLBzf5r1BYlIYWY+CiG9s+aaOYJX0LeUy2vHtTcNg6Lq?= =?us-ascii?Q?X3ZJ+qkwKmniLJD9ACSUU7+YmyoD6+NG6O08XHRI2rH/Y+h7yHqEoXGibRrb?= =?us-ascii?Q?VhfRPX4crhXVszP2k9QNCxHoQo62f0IgbBeaPbUJ0gL8lC/wKbsypmIAD6VJ?= =?us-ascii?Q?uF/u4x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ABx6+SW5vV5gQtpyjdORYJUcm9k9KG3Yb3hfaOT87sqhK/ZoFBi5esUI/E43QgY4fGWn91uAO3mtO3dGrRFv/xYj78R+gvCjh6jyHSANrQHDwPfWOCFF2JW+qv7mLDC+V3i/owmNrRQOwv86wg3uwHSbgq6lKG1Xi5KA6f5T3yxUO6uVG+fZFz3gP2ohGxUREwAlBGHH+LE/1igZQoHPAhmpEAt0ybmr11f4VXW28sb+WkDwTpWKunV9pd8KwUEMSKMvoUvdAijsm3IoMrwckInuV/qhnllVsZmbNx9XhoDT0pOaCiFjMBanY6F88sKMdbCHE6Kk44fpFBq/gPXtQitBhvIEDDnu+SBOX4qidnT0OmZI3wUsypnPPduiK19EpfBtQ2/C0A= X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0157; 20:r1rJsCtrEa5qZ0dYUFMdJcfUHZEaLub89neX9Gl1QAEOABaa/4nXKzW4c9qVtc3/7uk5UFGyF7sKyxhamjbAq/uvPvsYOZXsTsrSpt8UxL5E4jAdQb3WpEPjejEV87Pn2ROSDFEb5yGIW4iiPaq7K4yR1ap7MxB0M1373fn4p9IFQMnxOhsDxiocHaUxl/Uk4hjkuL8Dh1uLmWBDsvEbJdZjpYc33RTsyQtNgfq85Y0+sO63d2pnELuTn/xqrH/g X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2017 16:48:50.9626 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0157 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP CCP device initializes is now integerated into higher level SP device, to avoid the confusion lets rename the ccp driver initialization files (ccp-platform.c->sp-platform.c, ccp-pci.c->sp-pci.c). The patch does not make any functional changes other than renaming file and structures Signed-off-by: Brijesh Singh --- drivers/crypto/ccp/Makefile | 4 +- drivers/crypto/ccp/ccp-dev.h | 6 -- drivers/crypto/ccp/sp-dev.c | 12 ++-- drivers/crypto/ccp/{ccp-pci.c => sp-pci.c} | 80 +++++++++++----------- .../crypto/ccp/{ccp-platform.c => sp-platform.c} | 78 ++++++++++----------- 5 files changed, 87 insertions(+), 93 deletions(-) rename drivers/crypto/ccp/{ccp-pci.c => sp-pci.c} (71%) rename drivers/crypto/ccp/{ccp-platform.c => sp-platform.c} (66%) diff --git a/drivers/crypto/ccp/Makefile b/drivers/crypto/ccp/Makefile index d2f1b52..5f2adc5 100644 --- a/drivers/crypto/ccp/Makefile +++ b/drivers/crypto/ccp/Makefile @@ -1,12 +1,12 @@ obj-$(CONFIG_CRYPTO_DEV_CCP_DD) += ccp.o -ccp-objs := sp-dev.o ccp-platform.o +ccp-objs := sp-dev.o sp-platform.o ccp-$(CONFIG_CRYPTO_DEV_SP_CCP) += ccp-dev.o \ ccp-ops.o \ ccp-dev-v3.o \ ccp-dev-v5.o \ ccp-dmaengine.o \ ccp-debugfs.o -ccp-$(CONFIG_PCI) += ccp-pci.o +ccp-$(CONFIG_PCI) += sp-pci.o obj-$(CONFIG_CRYPTO_DEV_CCP_CRYPTO) += ccp-crypto.o ccp-crypto-objs := ccp-crypto-main.o \ diff --git a/drivers/crypto/ccp/ccp-dev.h b/drivers/crypto/ccp/ccp-dev.h index 193f309..b959e24 100644 --- a/drivers/crypto/ccp/ccp-dev.h +++ b/drivers/crypto/ccp/ccp-dev.h @@ -626,12 +626,6 @@ struct ccp5_desc { struct dword7 dw7; }; -int ccp_pci_init(void); -void ccp_pci_exit(void); - -int ccp_platform_init(void); -void ccp_platform_exit(void); - void ccp_add_device(struct ccp_device *ccp); void ccp_del_device(struct ccp_device *ccp); diff --git a/drivers/crypto/ccp/sp-dev.c b/drivers/crypto/ccp/sp-dev.c index 44e76e5..edbf1bd9 100644 --- a/drivers/crypto/ccp/sp-dev.c +++ b/drivers/crypto/ccp/sp-dev.c @@ -240,13 +240,13 @@ static int __init sp_mod_init(void) #ifdef CONFIG_X86 int ret; - ret = ccp_pci_init(); + ret = sp_pci_init(); if (ret) return ret; /* Don't leave the driver loaded if init failed */ if (ccp_present() != 0) { - ccp_pci_exit(); + sp_pci_exit(); return -ENODEV; } @@ -256,13 +256,13 @@ static int __init sp_mod_init(void) #ifdef CONFIG_ARM64 int ret; - ret = ccp_platform_init(); + ret = sp_platform_init(); if (ret) return ret; /* Don't leave the driver loaded if init failed */ if (ccp_present() != 0) { - ccp_platform_exit(); + sp_platform_exit(); return -ENODEV; } @@ -275,11 +275,11 @@ static int __init sp_mod_init(void) static void __exit sp_mod_exit(void) { #ifdef CONFIG_X86 - ccp_pci_exit(); + sp_pci_exit(); #endif #ifdef CONFIG_ARM64 - ccp_platform_exit(); + sp_platform_exit(); #endif } diff --git a/drivers/crypto/ccp/ccp-pci.c b/drivers/crypto/ccp/sp-pci.c similarity index 71% rename from drivers/crypto/ccp/ccp-pci.c rename to drivers/crypto/ccp/sp-pci.c index b29a093..9859aa6 100644 --- a/drivers/crypto/ccp/ccp-pci.c +++ b/drivers/crypto/ccp/sp-pci.c @@ -1,5 +1,5 @@ /* - * AMD Cryptographic Coprocessor (CCP) driver + * AMD Secure Processor device driver * * Copyright (C) 2013,2016 Advanced Micro Devices, Inc. * @@ -28,35 +28,35 @@ #define MSIX_VECTORS 2 -struct ccp_pci { +struct sp_pci { int msix_count; struct msix_entry msix_entry[MSIX_VECTORS]; }; -static int ccp_get_msix_irqs(struct sp_device *sp) +static int sp_get_msix_irqs(struct sp_device *sp) { - struct ccp_pci *ccp_pci = sp->dev_specific; + struct sp_pci *sp_pci = sp->dev_specific; struct device *dev = sp->dev; struct pci_dev *pdev = to_pci_dev(dev); int v, ret; - for (v = 0; v < ARRAY_SIZE(ccp_pci->msix_entry); v++) - ccp_pci->msix_entry[v].entry = v; + for (v = 0; v < ARRAY_SIZE(sp_pci->msix_entry); v++) + sp_pci->msix_entry[v].entry = v; - ret = pci_enable_msix_range(pdev, ccp_pci->msix_entry, 1, v); + ret = pci_enable_msix_range(pdev, sp_pci->msix_entry, 1, v); if (ret < 0) return ret; - ccp_pci->msix_count = ret; + sp_pci->msix_count = ret; sp->use_tasklet = true; - sp->psp_irq = ccp_pci->msix_entry[0].vector; - sp->ccp_irq = (ccp_pci->msix_count > 1) ? ccp_pci->msix_entry[1].vector - : ccp_pci->msix_entry[0].vector; + sp->psp_irq = sp_pci->msix_entry[0].vector; + sp->ccp_irq = (sp_pci->msix_count > 1) ? sp_pci->msix_entry[1].vector + : sp_pci->msix_entry[0].vector; return 0; } -static int ccp_get_msi_irq(struct sp_device *sp) +static int sp_get_msi_irq(struct sp_device *sp) { struct device *dev = sp->dev; struct pci_dev *pdev = to_pci_dev(dev); @@ -72,18 +72,18 @@ static int ccp_get_msi_irq(struct sp_device *sp) return 0; } -static int ccp_get_irqs(struct sp_device *sp) +static int sp_get_irqs(struct sp_device *sp) { struct device *dev = sp->dev; int ret; - ret = ccp_get_msix_irqs(sp); + ret = sp_get_msix_irqs(sp); if (!ret) return 0; /* Couldn't get MSI-X vectors, try MSI */ dev_notice(dev, "could not enable MSI-X (%d), trying MSI\n", ret); - ret = ccp_get_msi_irq(sp); + ret = sp_get_msi_irq(sp); if (!ret) return 0; @@ -93,13 +93,13 @@ static int ccp_get_irqs(struct sp_device *sp) return ret; } -static void ccp_free_irqs(struct sp_device *sp) +static void sp_free_irqs(struct sp_device *sp) { - struct ccp_pci *ccp_pci = sp->dev_specific; + struct sp_pci *sp_pci = sp->dev_specific; struct device *dev = sp->dev; struct pci_dev *pdev = to_pci_dev(dev); - if (ccp_pci->msix_count) + if (sp_pci->msix_count) pci_disable_msix(pdev); else if (sp->psp_irq) pci_disable_msi(pdev); @@ -108,10 +108,10 @@ static void ccp_free_irqs(struct sp_device *sp) sp->psp_irq = 0; } -static int ccp_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) +static int sp_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) { struct sp_device *sp; - struct ccp_pci *ccp_pci; + struct sp_pci *sp_pci; struct device *dev = &pdev->dev; void __iomem * const *iomap_table; int bar_mask; @@ -122,11 +122,11 @@ static int ccp_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) if (!sp) goto e_err; - ccp_pci = devm_kzalloc(dev, sizeof(*ccp_pci), GFP_KERNEL); - if (!ccp_pci) + sp_pci = devm_kzalloc(dev, sizeof(*sp_pci), GFP_KERNEL); + if (!sp_pci) goto e_err; - sp->dev_specific = ccp_pci; + sp->dev_specific = sp_pci; sp->dev_vdata = (struct sp_dev_vdata *)id->driver_data; if (!sp->dev_vdata) { ret = -ENODEV; @@ -161,7 +161,7 @@ static int ccp_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) goto e_err; } - ret = ccp_get_irqs(sp); + ret = sp_get_irqs(sp); if (ret) goto e_err; @@ -192,7 +192,7 @@ static int ccp_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) return ret; } -static void ccp_pci_remove(struct pci_dev *pdev) +static void sp_pci_remove(struct pci_dev *pdev) { struct device *dev = &pdev->dev; struct sp_device *sp = dev_get_drvdata(dev); @@ -202,13 +202,13 @@ static void ccp_pci_remove(struct pci_dev *pdev) sp_destroy(sp); - ccp_free_irqs(sp); + sp_free_irqs(sp); dev_notice(dev, "disabled\n"); } #ifdef CONFIG_PM -static int ccp_pci_suspend(struct pci_dev *pdev, pm_message_t state) +static int sp_pci_suspend(struct pci_dev *pdev, pm_message_t state) { struct device *dev = &pdev->dev; struct sp_device *sp = dev_get_drvdata(dev); @@ -216,7 +216,7 @@ static int ccp_pci_suspend(struct pci_dev *pdev, pm_message_t state) return sp_suspend(sp, state); } -static int ccp_pci_resume(struct pci_dev *pdev) +static int sp_pci_resume(struct pci_dev *pdev) { struct device *dev = &pdev->dev; struct sp_device *sp = dev_get_drvdata(dev); @@ -245,32 +245,32 @@ static const struct sp_dev_vdata dev_vdata[] = { #endif }, }; -static const struct pci_device_id ccp_pci_table[] = { +static const struct pci_device_id sp_pci_table[] = { { PCI_VDEVICE(AMD, 0x1537), (kernel_ulong_t)&dev_vdata[0] }, { PCI_VDEVICE(AMD, 0x1456), (kernel_ulong_t)&dev_vdata[1] }, { PCI_VDEVICE(AMD, 0x1468), (kernel_ulong_t)&dev_vdata[2] }, /* Last entry must be zero */ { 0, } }; -MODULE_DEVICE_TABLE(pci, ccp_pci_table); +MODULE_DEVICE_TABLE(pci, sp_pci_table); -static struct pci_driver ccp_pci_driver = { +static struct pci_driver sp_pci_driver = { .name = "ccp", - .id_table = ccp_pci_table, - .probe = ccp_pci_probe, - .remove = ccp_pci_remove, + .id_table = sp_pci_table, + .probe = sp_pci_probe, + .remove = sp_pci_remove, #ifdef CONFIG_PM - .suspend = ccp_pci_suspend, - .resume = ccp_pci_resume, + .suspend = sp_pci_suspend, + .resume = sp_pci_resume, #endif }; -int ccp_pci_init(void) +int sp_pci_init(void) { - return pci_register_driver(&ccp_pci_driver); + return pci_register_driver(&sp_pci_driver); } -void ccp_pci_exit(void) +void sp_pci_exit(void) { - pci_unregister_driver(&ccp_pci_driver); + pci_unregister_driver(&sp_pci_driver); } diff --git a/drivers/crypto/ccp/ccp-platform.c b/drivers/crypto/ccp/sp-platform.c similarity index 66% rename from drivers/crypto/ccp/ccp-platform.c rename to drivers/crypto/ccp/sp-platform.c index 5228dd7..1785832 100644 --- a/drivers/crypto/ccp/ccp-platform.c +++ b/drivers/crypto/ccp/sp-platform.c @@ -1,5 +1,5 @@ /* - * AMD Cryptographic Coprocessor (CCP) driver + * AMD Secure Processor device driver * * Copyright (C) 2014,2016 Advanced Micro Devices, Inc. * @@ -28,41 +28,41 @@ #include "ccp-dev.h" -struct ccp_platform { +struct sp_platform { int coherent; unsigned int irq_count; }; -static const struct acpi_device_id ccp_acpi_match[]; -static const struct of_device_id ccp_of_match[]; +static const struct acpi_device_id sp_acpi_match[]; +static const struct of_device_id sp_of_match[]; -static struct sp_dev_vdata *ccp_get_of_version(struct platform_device *pdev) +static struct sp_dev_vdata *sp_get_of_version(struct platform_device *pdev) { #ifdef CONFIG_OF const struct of_device_id *match; - match = of_match_node(ccp_of_match, pdev->dev.of_node); + match = of_match_node(sp_of_match, pdev->dev.of_node); if (match && match->data) return (struct sp_dev_vdata *)match->data; #endif return NULL; } -static struct sp_dev_vdata *ccp_get_acpi_version(struct platform_device *pdev) +static struct sp_dev_vdata *sp_get_acpi_version(struct platform_device *pdev) { #ifdef CONFIG_ACPI const struct acpi_device_id *match; - match = acpi_match_device(ccp_acpi_match, &pdev->dev); + match = acpi_match_device(sp_acpi_match, &pdev->dev); if (match && match->driver_data) return (struct sp_dev_vdata *)match->driver_data; #endif return NULL; } -static int ccp_get_irqs(struct sp_device *sp) +static int sp_get_irqs(struct sp_device *sp) { - struct ccp_platform *ccp_platform = sp->dev_specific; + struct sp_platform *sp_platform = sp->dev_specific; struct device *dev = sp->dev; struct platform_device *pdev = to_platform_device(dev); unsigned int i, count; @@ -75,7 +75,7 @@ static int ccp_get_irqs(struct sp_device *sp) count++; } - ccp_platform->irq_count = count; + sp_platform->irq_count = count; ret = platform_get_irq(pdev, 0); if (ret < 0) @@ -95,10 +95,10 @@ static int ccp_get_irqs(struct sp_device *sp) return 0; } -static int ccp_platform_probe(struct platform_device *pdev) +static int sp_platform_probe(struct platform_device *pdev) { struct sp_device *sp; - struct ccp_platform *ccp_platform; + struct sp_platform *sp_platform; struct device *dev = &pdev->dev; enum dev_dma_attr attr; struct resource *ior; @@ -109,13 +109,13 @@ static int ccp_platform_probe(struct platform_device *pdev) if (!sp) goto e_err; - ccp_platform = devm_kzalloc(dev, sizeof(*ccp_platform), GFP_KERNEL); - if (!ccp_platform) + sp_platform = devm_kzalloc(dev, sizeof(*sp_platform), GFP_KERNEL); + if (!sp_platform) goto e_err; - sp->dev_specific = ccp_platform; - sp->dev_vdata = pdev->dev.of_node ? ccp_get_of_version(pdev) - : ccp_get_acpi_version(pdev); + sp->dev_specific = sp_platform; + sp->dev_vdata = pdev->dev.of_node ? sp_get_of_version(pdev) + : sp_get_acpi_version(pdev); if (!sp->dev_vdata) { ret = -ENODEV; dev_err(dev, "missing driver data\n"); @@ -135,8 +135,8 @@ static int ccp_platform_probe(struct platform_device *pdev) goto e_err; } - ccp_platform->coherent = (attr == DEV_DMA_COHERENT); - if (ccp_platform->coherent) + sp_platform->coherent = (attr == DEV_DMA_COHERENT); + if (sp_platform->coherent) sp->axcache = CACHE_WB_NO_ALLOC; else sp->axcache = CACHE_NONE; @@ -147,7 +147,7 @@ static int ccp_platform_probe(struct platform_device *pdev) goto e_err; } - ret = ccp_get_irqs(sp); + ret = sp_get_irqs(sp); if (ret) goto e_err; @@ -166,7 +166,7 @@ static int ccp_platform_probe(struct platform_device *pdev) return ret; } -static int ccp_platform_remove(struct platform_device *pdev) +static int sp_platform_remove(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct sp_device *sp = dev_get_drvdata(dev); @@ -179,7 +179,7 @@ static int ccp_platform_remove(struct platform_device *pdev) } #ifdef CONFIG_PM -static int ccp_platform_suspend(struct platform_device *pdev, +static int sp_platform_suspend(struct platform_device *pdev, pm_message_t state) { struct device *dev = &pdev->dev; @@ -188,7 +188,7 @@ static int ccp_platform_suspend(struct platform_device *pdev, return sp_suspend(sp, state); } -static int ccp_platform_resume(struct platform_device *pdev) +static int sp_platform_resume(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct sp_device *sp = dev_get_drvdata(dev); @@ -207,46 +207,46 @@ static const struct sp_dev_vdata dev_vdata[] = { }; #ifdef CONFIG_ACPI -static const struct acpi_device_id ccp_acpi_match[] = { +static const struct acpi_device_id sp_acpi_match[] = { { "AMDI0C00", (kernel_ulong_t)&dev_vdata[0] }, { }, }; -MODULE_DEVICE_TABLE(acpi, ccp_acpi_match); +MODULE_DEVICE_TABLE(acpi, sp_acpi_match); #endif #ifdef CONFIG_OF -static const struct of_device_id ccp_of_match[] = { +static const struct of_device_id sp_of_match[] = { { .compatible = "amd,ccp-seattle-v1a", .data = (const void *)&dev_vdata[0] }, { }, }; -MODULE_DEVICE_TABLE(of, ccp_of_match); +MODULE_DEVICE_TABLE(of, sp_of_match); #endif -static struct platform_driver ccp_platform_driver = { +static struct platform_driver sp_platform_driver = { .driver = { .name = "ccp", #ifdef CONFIG_ACPI - .acpi_match_table = ccp_acpi_match, + .acpi_match_table = sp_acpi_match, #endif #ifdef CONFIG_OF - .of_match_table = ccp_of_match, + .of_match_table = sp_of_match, #endif }, - .probe = ccp_platform_probe, - .remove = ccp_platform_remove, + .probe = sp_platform_probe, + .remove = sp_platform_remove, #ifdef CONFIG_PM - .suspend = ccp_platform_suspend, - .resume = ccp_platform_resume, + .suspend = sp_platform_suspend, + .resume = sp_platform_resume, #endif }; -int ccp_platform_init(void) +int sp_platform_init(void) { - return platform_driver_register(&ccp_platform_driver); + return platform_driver_register(&sp_platform_driver); } -void ccp_platform_exit(void) +void sp_platform_exit(void) { - platform_driver_unregister(&ccp_platform_driver); + platform_driver_unregister(&sp_platform_driver); }