Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2672221ybh; Fri, 24 Jul 2020 20:47:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxv5BZlWcCFwXcc5JkCnK6r+oacWnW5W/ljSl60j7sU+69x4rmz01NK0+nPRyZxwbE6iE/0 X-Received: by 2002:aa7:c98d:: with SMTP id c13mr11616967edt.188.1595648871067; Fri, 24 Jul 2020 20:47:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595648871; cv=none; d=google.com; s=arc-20160816; b=CYpGW3tTh7Xv35mcmcz5dj+AeROZfsX4pnuUieckarT5fMAJ66a3NXExUII68sd6oB o+EDyAkhp0ZPiRLs5G4JJpduw3wvPOnOWURniPqFVdO2nI7fwzPbfZiDwdiSempNqAbQ jh2cCvnE9dGqL0qMFPdEunj0brNCXbOAJKvfxEh2jZkAghOCkPpzN7FNXGFch8mdm60I vIleDP61e2s/0zdy6pt1TCl8uNzgtEM7Cz2LqYR/fDYOIMrFUKhqk0sjKGKnN3l8VBoi aTeFl8wpw+qzGXwj+DyrwWwbMKIjiglgjohIKnC2JOLnDOX5olV/02Mt9nO7e9MfD+QB ETGw== 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=BKwJ+QpyTOxucpyKTuT2IddL6uRRVBR0aUWD8iTYTXlS5X9ZHfxeJbMt2IrI5OFZc6 Q/2YEtdxmudZsJXIc3XnwPHDIVDGU5/JK7qlgTc5D2BDhh/ApOtaXUJAqDH14hyrnzmN kvJIVUlPVT2qjFnSK3JE8lE7eIs1pmJR9mB7/M7fTEmrlu1Xe/6fvxZIc+Vq4tz55wVD rv+tG2xnM78RlT5wz+1w7v/msIrFRxG6TYn9YXslnUa9lVMPxD4DNOai7RYzVCoxxgHa Z2E0eRwMiIvv8ktvNBNzAaZ3C41pd8hm3xUT51wqKSSjPAXsLrCCwo2H9q2IulBUjQLd NZIg== 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 h16si1783902edr.390.2020.07.24.20.47.27; Fri, 24 Jul 2020 20:47:51 -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 S1726887AbgGYDrL (ORCPT + 99 others); Fri, 24 Jul 2020 23:47:11 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:8810 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726760AbgGYDrG (ORCPT ); Fri, 24 Jul 2020 23:47:06 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id C5FF9587C706AD736DB6; Sat, 25 Jul 2020 11:46:49 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Sat, 25 Jul 2020 11:46:41 +0800 From: Yang Shen To: , CC: , , , Subject: [PATCH 08/10] crypto: hisilicon/zip - move some private macros from 'zip.h' to 'zip_crypto.c' Date: Sat, 25 Jul 2020 11:44:41 +0800 Message-ID: <1595648683-50590-9-git-send-email-shenyang39@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595648683-50590-1-git-send-email-shenyang39@huawei.com> References: <1595648683-50590-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