From patchwork Tue Dec 12 14:52:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 121521 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4221015qgn; Tue, 12 Dec 2017 06:53:26 -0800 (PST) X-Google-Smtp-Source: ACJfBosuVaumqLwXUtMZGEguiCT44Lz8yxRIeImAj3XcML/GT1etW26OAhPcGCIQf5A0BJi7tZcu X-Received: by 10.159.214.134 with SMTP id n6mr2576424plp.47.1513090406405; Tue, 12 Dec 2017 06:53:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513090406; cv=none; d=google.com; s=arc-20160816; b=V7qK40yOehSNWSaPEtuoH533nkl+pvJhXPDk8XRFJR5iNRoul59n4DtuU4yLyEuwzQ xExaU9KwK404iodwGNWzC91iW4hChvKyhf+avDCaYRpEnIsKwBaDVq3Pf7WRrPgzGidl JmvJpY3ASzbd6S7+t+tyr6n3qemP/P9fbLKJhxx4ZctZn3mCgBtREA5jFrD9I+uX6lwH UCrHqUD4G1a5CCGMERlAqF3Lql5ZZHebwvjEsZeX/zLUKFrKrcoN2yWnTRTdu9KtSTuo jk8DJnXPb+XpksdXqXeHTaR11oWWY9TLnp7WjvkfZd+88jTClAdh8VukMYUdBXivxv2w h5GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=TD2VGKWrdJtLnlpqfbP0nACeqCmQJOknBJ+nSVg22tI=; b=TOgZbe1lIYso7U8X20xbR6I9wf2/tO+LcLCR5X49P6z1fYNGRMqdIvm9K0MDzUIta9 50jlAdEnbgRk8dD2j/RYaoDuaQxvnSoH8TcNhulXhtW4Cz4wverckMeDb70WIEjnMv4g /9kjKb0MXYU3Sp2W4/erjbq98XQbsz2b8AmH5Labn5RMr2MlNf8PWRvFrTTaviimPdD3 KhAgp8NyAq0+RmSmftZSDX7O8UoFvoID5qULLJ+NWvVu29iGu+7Rm7z5Aqx+H+rj1qGo hrLI38oC6upEZ3RNF7KWLtkWynDfXCKcOgKgXNRXCV8iTSSTWiu4qIHDk43yTaU5114T qvZw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay8si3044630plb.198.2017.12.12.06.53.26; Tue, 12 Dec 2017 06:53:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751927AbdLLOxZ (ORCPT + 1 other); Tue, 12 Dec 2017 09:53:25 -0500 Received: from foss.arm.com ([217.140.101.70]:44972 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751729AbdLLOxY (ORCPT ); Tue, 12 Dec 2017 09:53:24 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1962C1529; Tue, 12 Dec 2017 06:53:24 -0800 (PST) Received: from sugar.kfn.arm.com (unknown [10.45.48.196]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 990F13F577; Tue, 12 Dec 2017 06:53:21 -0800 (PST) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Ofir Drang , linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 00/24] staging: ccree: cleanups and simplification Date: Tue, 12 Dec 2017 14:52:46 +0000 Message-Id: <1513090395-7938-1-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org More CCREE code cleanup and simplifications, including: - Drop code supporting long code synch cipher and hash usage - Drop ifdef out code for features not supported by HW - More naming convention and name space cleanup - Coding style fixes This patch set goes on top of Dan Carpenter's patch entitled "staging: ccree: Uninitialized return in ssi_ahash_import()" sent to the list. Signed-off-by: Gilad Ben-Yossef Gilad Ben-Yossef (24): staging: ccree: remove ahash wrappers staging: ccree: fix hash naming convention staging: ccree: amend hash func def for readability staging: ccree: func params should follow func name staging: ccree: shorten parameter name staging: ccree: fix func def and decl coding style staging: ccree: simplify expression with local var staging: ccree: fix func call param indentation staging: ccree: fix reg mgr naming convention staging: ccree: fix req mgr func def coding style staging: ccree: remove cipher sync blkcipher remains staging: ccree: fix cipher naming convention staging: ccree: fix cipher func def coding style staging: ccree: fix ivgen naming convention staging: ccree: fix ivgen func def coding style staging: ccree: drop unsupported MULTI2 mode code staging: ccree: remove SSI_CC_HAS_ macros staging: ccree: rename all SSI to CC staging: ccree: rename all DX to CC staging: ccree: rename vars/structs/enums from ssi_ to cc_ staging: ccree: fix buf mgr naming convention staging: ccree: fix sram mgr naming convention staging: ccree: simplify freeing SRAM memory address staging: ccree: fix FIPS mgr naming convention drivers/staging/ccree/cc_crypto_ctx.h | 17 - drivers/staging/ccree/cc_hw_queue_defs.h | 6 +- drivers/staging/ccree/cc_lli_defs.h | 2 +- drivers/staging/ccree/dx_crys_kernel.h | 314 +++++------ drivers/staging/ccree/dx_host.h | 262 +++++----- drivers/staging/ccree/dx_reg_common.h | 10 +- drivers/staging/ccree/ssi_aead.c | 176 +++---- drivers/staging/ccree/ssi_aead.h | 20 +- drivers/staging/ccree/ssi_buffer_mgr.c | 320 +++++------- drivers/staging/ccree/ssi_buffer_mgr.h | 36 +- drivers/staging/ccree/ssi_cipher.c | 604 ++++++++-------------- drivers/staging/ccree/ssi_cipher.h | 16 +- drivers/staging/ccree/ssi_config.h | 12 +- drivers/staging/ccree/ssi_driver.c | 106 ++-- drivers/staging/ccree/ssi_driver.h | 79 ++- drivers/staging/ccree/ssi_fips.c | 22 +- drivers/staging/ccree/ssi_fips.h | 22 +- drivers/staging/ccree/ssi_hash.c | 857 +++++++++++++------------------ drivers/staging/ccree/ssi_hash.h | 30 +- drivers/staging/ccree/ssi_ivgen.c | 88 ++-- drivers/staging/ccree/ssi_ivgen.h | 24 +- drivers/staging/ccree/ssi_pm.c | 18 +- drivers/staging/ccree/ssi_pm.h | 10 +- drivers/staging/ccree/ssi_request_mgr.c | 136 +++-- drivers/staging/ccree/ssi_request_mgr.h | 23 +- drivers/staging/ccree/ssi_sram_mgr.c | 31 +- drivers/staging/ccree/ssi_sram_mgr.h | 29 +- drivers/staging/ccree/ssi_sysfs.c | 22 +- drivers/staging/ccree/ssi_sysfs.h | 10 +- 29 files changed, 1419 insertions(+), 1883 deletions(-) -- 2.7.4