Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1183312pxf; Fri, 19 Mar 2021 00:34:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOsP8GABsNd9R8GlXoGMiRQiQwX9BbMqYrhWOyshPg2DZRV8ctrmMtkAJmswqSykS+3dUY X-Received: by 2002:a05:6402:1051:: with SMTP id e17mr8015799edu.42.1616139255577; Fri, 19 Mar 2021 00:34:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616139255; cv=none; d=google.com; s=arc-20160816; b=YIoaXkLYYe6rk0HuLLsnrgOfxO6+aOLKDolHfJu91cPfRKHd8k03jD+hloR3WhpJXx lrrLys/ANP5fX/2t8CiXPTdyuurgjowSwadjiDYVK75BHtuajWzIGwXPqhm7n5cnbvNx BWfSG1aXn18FvpfxVXhVt0VUQ1SPwhnxyxG3r1hl7Nq/te8m0QqsovEWjENytnOhGUVn wNZNphkI5tNt8oypH4GQtsYqwMfaX4WoeQ/zmHaKAznrf/Fs4SEEvf+OTmZgG7kl36iX 1O9F9hV1T7n3ju3fgkh9ftKEUyvJ5EHjOZWkoiJxvu73V9tvNGPu9USCuI/I1Zb/1h6W uukA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=4sllkXCfIPfQYlwrJ/k5lB95i2N+x/QXEDIkjWDSv/k=; b=i1HTTZ5oDnzzJBdstPHbmVVox6R84p+KCNcZglJQL3LNBV0UlRveyZPv3segMDjjXe uEgKubpt2oQUfQN1y9tfKCEXZmcOmIZPj1a19/jbHGALF2b1aikgmhgq1+Oo8HMDZs2T f0mEsw6Xy2sfjXzNYY4vDi+bWhW6vSQJc1brO3QT5U0AGghvagoyJnw7ATLOTdDERSii O5ng+GrlpMdOhT7YbVRM9AnJg1I5Va3uXV/drB+oXoQGeqSIQcBYp1Fy1Ih1xO33fwlL gikxiLcOJWp6WcMDMxAlfnGlVbIlDEXUX6TRCdO5jhXRoUxrrpsKFZN5YWmSocBOAotS aEEQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r20si3628725edw.406.2021.03.19.00.33.42; Fri, 19 Mar 2021 00:34:15 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234142AbhCSHdJ (ORCPT + 99 others); Fri, 19 Mar 2021 03:33:09 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:13993 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234099AbhCSHcz (ORCPT ); Fri, 19 Mar 2021 03:32:55 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4F1wY96yNszrYPr; Fri, 19 Mar 2021 15:30:53 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.498.0; Fri, 19 Mar 2021 15:32:38 +0800 From: Yang Shen To: , CC: , , Subject: [PATCH 0/4]crypto: hisilicon/zip - support new 'sqe' type in Kunpeng930 Date: Fri, 19 Mar 2021 15:33:03 +0800 Message-ID: <1616139187-63425-1-git-send-email-shenyang39@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org In Kunpeng930, some field meanings in 'sqe' are changed, so driver need to distinguish the type on different platform. To avoid checking the platform everytime when driver fills the 'sqe', add a struct 'hisi_zip_sqe_ops' to describe the 'sqe' operations. The driver only need to choose the 'ops' once when call 'hisi_zip_acomp_init'. Yang Shen (4): crypto: hisilicon/zip - adjust functions location crypto: hisilicon/zip - add comments for 'hisi_zip_sqe' crypto: hisilicon/zip - initialize operations about 'sqe' in 'acomp_alg.init' crypto: hisilicon/zip - support new 'sqe' type in Kunpeng930 drivers/crypto/hisilicon/zip/zip.h | 46 +- drivers/crypto/hisilicon/zip/zip_crypto.c | 706 +++++++++++++++++------------- 2 files changed, 438 insertions(+), 314 deletions(-) -- 2.7.4