From patchwork Mon Dec 19 18:55:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Elliott, Robert (Servers)" X-Patchwork-Id: 34700 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp2563939wrn; Mon, 19 Dec 2022 11:02:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXsEBf4sLhvdlP7fde2Sj2skRL/0IbIwfLfCssoOEq5iv3e12K6vYwaOXaNim317rYEM0jkL X-Received: by 2002:a17:902:b48f:b0:191:1fbf:cd4b with SMTP id y15-20020a170902b48f00b001911fbfcd4bmr6049944plr.38.1671476574732; Mon, 19 Dec 2022 11:02:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671476574; cv=none; d=google.com; s=arc-20160816; b=hLksOr7adD3QaM5hO5EdsLO7EXMO4xk6QoGLo+R0wI/IwgHGQaw8XlSc3dq69k0TeF b06r87J6musVkONDtI7diT0q0lRgfsfsvxjB0ieToZVjf7lIb79jE1mwDFErSORLagCA zO8+C1tTrpBEiF6raH9MTnhc+8fauMEHUc3hTKMc7Bzqvg8Z5S9L+PA5KLdheF/8KGWg lcj5l+Tah8ABGgbjqAQzRlh2tSQ3OmHsp7jhgEFjHjaJI9wbDDm2EbNHORKJW1GvjocA NURtjIkUmTV+ln1L9ARvLGG+sEQlIDYKSBRh4nhEged76czGurdhwoPr86Sbb5yFWoA0 V0tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=z0UViNR6jYf3HtKo8a5Oh8MTYtRH5CfajQaVG91Ish4=; b=RHdWsU6JvezIfS2T0/282n0GM9b2sl91ydiE5OlgPxzVF+Rv5E75X6YEbddJryfJ3n 0TzX3hWH1Z29nyeM2ieW0nb58zP8kt+h5ihhdqgZk5vGtg9q90OQ2A20gV3hdfLaHoGJ y0PPTCNfu7mU0KFjAPO52aMtqxaSWSS/3jCCIjHYJvMqm5mhE//YJ/K4nDnwxy26AZnA D9hexkCzvjgvnuTOmPZ0+FOmuabDaj8joAbtO3NU8S0oaPUYQlXsB1oCayQNDtZ5v311 En4xCq/tVrmbevAgZemAbcOuUz1ZwUWLrA26eTJlAAUfQDsgiKus/3fCG9D/skRwR3hH S9pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=fcPI4u4S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h8-20020a170902680800b001891fd33357si10197486plk.604.2022.12.19.11.02.42; Mon, 19 Dec 2022 11:02:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=fcPI4u4S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232655AbiLSS4n (ORCPT + 99 others); Mon, 19 Dec 2022 13:56:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232496AbiLSS4O (ORCPT ); Mon, 19 Dec 2022 13:56:14 -0500 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90D6AE63; Mon, 19 Dec 2022 10:56:13 -0800 (PST) Received: from pps.filterd (m0150242.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BJGxbCb027022; Mon, 19 Dec 2022 18:56:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pps0720; bh=z0UViNR6jYf3HtKo8a5Oh8MTYtRH5CfajQaVG91Ish4=; b=fcPI4u4Sc3Y0hmSYfBU6YHJ4IIdh+2G4vbjZIFjZnLpylfHz4IFH4O52K1tKg2ZOmrHM 56RkyhEvSdDoJ3BGX0WFq4oxJewb7qfHlKHj2yHcYSM5yMpXHoHfv3/64Uu2+Y2NxZuv u62tBTNrEitUYDJGwrzRRsnRg3Fk36SPP5+R8Yz3tyUCGGUv+fdixhAlewhyl3i+Xd7s M+RtaWrKTzU5+q+KmDAJj9UyNx0uJY7WTQGh2Dgbz0+SeUha51TWyLPM3tj/qMgsJE6y NpAbMQ7MnlM+Bqhv/ZjABC+IsESYpGPjgtGG+75fxyrXgO++XV8IwUYjktsT81sQSOKy 4g== Received: from p1lg14879.it.hpe.com (p1lg14879.it.hpe.com [16.230.97.200]) by mx0a-002e3701.pphosted.com (PPS) with ESMTPS id 3mjuy6gtwp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 19 Dec 2022 18:56:11 +0000 Received: from p1lg14885.dc01.its.hpecorp.net (unknown [10.119.18.236]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by p1lg14879.it.hpe.com (Postfix) with ESMTPS id 1E7B33109E; Mon, 19 Dec 2022 18:56:11 +0000 (UTC) Received: from adevxp033-sys.us.rdlabs.hpecorp.net (unknown [16.231.227.36]) by p1lg14885.dc01.its.hpecorp.net (Postfix) with ESMTP id BA17680649E; Mon, 19 Dec 2022 18:56:10 +0000 (UTC) From: Robert Elliott To: herbert@gondor.apana.org.au, davem@davemloft.net, corbet@lwn.net, linux-crypto@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robert Elliott Subject: [PATCH v2 5/8] crypto: x86/sm3 - add kernel-doc comments to assembly Date: Mon, 19 Dec 2022 12:55:52 -0600 Message-Id: <20221219185555.433233-6-elliott@hpe.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221219185555.433233-1-elliott@hpe.com> References: <20221215063857.161665-1-elliott@hpe.com> <20221219185555.433233-1-elliott@hpe.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: bgcFWIGC2gDpCTMeO1g4ehUtbfJjhtTI X-Proofpoint-GUID: bgcFWIGC2gDpCTMeO1g4ehUtbfJjhtTI X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-19_01,2022-12-15_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 bulkscore=0 clxscore=1015 mlxscore=0 phishscore=0 spamscore=0 impostorscore=0 mlxlogscore=999 lowpriorityscore=0 suspectscore=0 malwarescore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2212190168 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752261159292317718?= X-GMAIL-MSGID: =?utf-8?q?1752670220346174064?= Add kernel-doc comments for assembly language functions exported to C glue code. Signed-off-by: Robert Elliott --- arch/x86/crypto/sm3-avx-asm_64.S | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/x86/crypto/sm3-avx-asm_64.S b/arch/x86/crypto/sm3-avx-asm_64.S index 503bab450a91..30e51c681c07 100644 --- a/arch/x86/crypto/sm3-avx-asm_64.S +++ b/arch/x86/crypto/sm3-avx-asm_64.S @@ -322,18 +322,18 @@ .text -/* - * Transform nblocks*64 bytes (nblocks*16 32-bit words) at DATA. +/** + * sm3_transform_avx - Calculate SM3 hash using x86 AVX feature set + * @state: address of 32-byte context (%rdi, RSTATE macro) + * @data: address of data (%rsi, RDATA macro); + * must be at least 64 bytes and a multiple of 64 bytes + * @nblocks: number of 64-byte blocks (%rdx, RNBLKS macro); + * must be >= 1 * - * void sm3_transform_avx(struct sm3_state *state, - * const u8 *data, int nblocks); + * Return: none. However, the @state buffer is updated. + * Prototype: asmlinkage void sm3_transform_avx(u32 *state, const u8 *data, int nblocks); */ SYM_TYPED_FUNC_START(sm3_transform_avx) - /* input: - * %rdi: ctx, CTX - * %rsi: data (64*nblks bytes) - * %rdx: nblocks - */ vzeroupper; pushq %rbp;