Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1868063pxa; Sun, 23 Aug 2020 20:18:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkMc7AFHQDONIGx2HVW9ZSKaqH2V0F3ab57VBKFxJRPULj6O0zf32P5nVnkKhfqTFZHNmA X-Received: by 2002:a17:906:1b:: with SMTP id 27mr3621159eja.517.1598239130029; Sun, 23 Aug 2020 20:18:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598239130; cv=none; d=google.com; s=arc-20160816; b=eeqp3hNNcikW/1ueXZdXDdKos1SFM//SK7HXMHJ8aB53iUO+1Ek2nIRueVrhBdUuws U77a1oEw10z4pOWhEVLD0X/di8vOmp4AlufLOD3ThUr112VzNvT/R1ce+d9t6sYrEVzw YxicJoLEy4AxghC4EmpcjdZsP+mzFe7mZD9IIQcTAg9hg7kPTpbIZPlhauIl4FK4oCCO UT+L7YsdPgdslKlRgZ0UmO2wQw3ZJrXgKMyJxx5jSuUryVDfXumsmaVN7frf3KhvAbeg 5Gwv28fOVQglCutTD0tNg6pbgZOWdDJOoyaQZ++H6LeZz6g2cYSYdalMnfcjFPjITmuK tl5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=2lnQaV1dvYek3LOqUMsTJw6PV7l9/5G8IDgVP72nu1U=; b=GxiqeOCswxieFSzDra3q/YWVljsPXtoiTZYGn4VkToTtS5dWdlmczOlcP27et83fTv SyRSOyosRNBH58zIlSEe4v0gK8VkzAGpCJGkzTWHLCrHrjDCapwKTRrSHQbu/J5hu7f+ xtec0z57bjWbIWIu5dN4Cpni7a+65vno3yyfJwOxjnfdcLDIYPJnxiGPnFHY2AszYQcZ u66kMZTnxiJNM1QrPrd9+m5KPzgLgE1jXlOIC/m6+GkRNZOViCe8zzyjxmBLDfYikw9t IpucLfEAaHkO2TO7dJGrGh8c2sD4Gzj69/ybliKJq3sbUJicu0f39Xbg5oRpaQ/q+XW6 cUfw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w17si1514896edq.538.2020.08.23.20.18.26; Sun, 23 Aug 2020 20:18:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727068AbgHXDPI (ORCPT + 99 others); Sun, 23 Aug 2020 23:15:08 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:43142 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726635AbgHXDO2 (ORCPT ); Sun, 23 Aug 2020 23:14:28 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 9B942A25CDD7E3D71389; Mon, 24 Aug 2020 11:14:24 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Mon, 24 Aug 2020 11:14:15 +0800 From: Yang Shen To: , CC: , , , Subject: [PATCH RESEND 08/10] crypto: hisilicon/zip - move some private macros from 'zip.h' to 'zip_crypto.c' Date: Mon, 24 Aug 2020 11:11:47 +0800 Message-ID: <1598238709-58699-9-git-send-email-shenyang39@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1598238709-58699-1-git-send-email-shenyang39@huawei.com> References: <1598238709-58699-1-git-send-email-shenyang39@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Some macros which are defined in 'zip.h' are related to the struct 'hisi_zip_sqe' and are only used in 'zip_crypto.c'. So move them from 'zip.h' to 'zip_crypto.c'. Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip.h | 14 -------------- drivers/crypto/hisilicon/zip/zip_crypto.c | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/crypto/hisilicon/zip/zip.h b/drivers/crypto/hisilicon/zip/zip.h index 4b3aae8..92397f9 100644 --- a/drivers/crypto/hisilicon/zip/zip.h +++ b/drivers/crypto/hisilicon/zip/zip.h @@ -9,20 +9,6 @@ #include #include "../qm.h" -/* hisi_zip_sqe dw3 */ -#define HZIP_BD_STATUS_M GENMASK(7, 0) -/* hisi_zip_sqe dw7 */ -#define HZIP_IN_SGE_DATA_OFFSET_M GENMASK(23, 0) -/* hisi_zip_sqe dw8 */ -#define HZIP_OUT_SGE_DATA_OFFSET_M GENMASK(23, 0) -/* hisi_zip_sqe dw9 */ -#define HZIP_REQ_TYPE_M GENMASK(7, 0) -#define HZIP_ALG_TYPE_ZLIB 0x02 -#define HZIP_ALG_TYPE_GZIP 0x03 -#define HZIP_BUF_TYPE_M GENMASK(11, 8) -#define HZIP_PBUFFER 0x0 -#define HZIP_SGL 0x1 - enum hisi_zip_error_type { /* negative compression */ HZIP_NC_ERR = 0x0d, diff --git a/drivers/crypto/hisilicon/zip/zip_crypto.c b/drivers/crypto/hisilicon/zip/zip_crypto.c index fdc5bd3..7757e33 100644 --- a/drivers/crypto/hisilicon/zip/zip_crypto.c +++ b/drivers/crypto/hisilicon/zip/zip_crypto.c @@ -6,6 +6,20 @@ #include #include "zip.h" +/* hisi_zip_sqe dw3 */ +#define HZIP_BD_STATUS_M GENMASK(7, 0) +/* hisi_zip_sqe dw7 */ +#define HZIP_IN_SGE_DATA_OFFSET_M GENMASK(23, 0) +/* hisi_zip_sqe dw8 */ +#define HZIP_OUT_SGE_DATA_OFFSET_M GENMASK(23, 0) +/* hisi_zip_sqe dw9 */ +#define HZIP_REQ_TYPE_M GENMASK(7, 0) +#define HZIP_ALG_TYPE_ZLIB 0x02 +#define HZIP_ALG_TYPE_GZIP 0x03 +#define HZIP_BUF_TYPE_M GENMASK(11, 8) +#define HZIP_PBUFFER 0x0 +#define HZIP_SGL 0x1 + #define HZIP_ZLIB_HEAD_SIZE 2 #define HZIP_GZIP_HEAD_SIZE 10 -- 2.7.4