Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1704959ybi; Wed, 17 Jul 2019 20:27:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3mlI/mOM3NU4sYQGLf0+VG4y6S8WJjdXYzdROYfZoFhumAvkrRc+3kPCCL0ihOPf+iA52 X-Received: by 2002:a17:90a:ad41:: with SMTP id w1mr47851535pjv.52.1563420456064; Wed, 17 Jul 2019 20:27:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563420456; cv=none; d=google.com; s=arc-20160816; b=LyhQkvGntjG2/WO+QtQQfxI6Z99CMotRnj2H3yYv0a841eP9v8kfr4YULzYlXIY8Lo WOmysWetUt+/U1WKZjgA0XTalI/DZQO7vBr5oK4Kya0nvwpx3NRoU7PVMkTSqbidZsi9 UoUnlPXEQxyapDuHfEsDhJNu/hmSzya2Q1LrW9jhsj+OvV9Lhyu+UaPpgS5G2G3JiIs/ L7IXmOaiuM88go20sDCpzmAxuzD7MaP8gY66IA8UQOe0nvbru/gNAkPrc06YEDo0c4Re iDfPIIez+E5o3d14JBsQnHqcYviSv88BSVcYtNJKX5eV1Udbo1nfryjWw6IMBwRE6ZXq mA/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=EnQqlOpR/G5by+BmuuFOY6/LdIYeT9QDCJW4IGnx7MU=; b=zF2ziwsvvBuZsXXW4KIYrbSnUKlGkWJxxG6IyLbOiFu0TWkPde5lqZ+w9iO1Q361bt rfyDupHQFKrtdchS8y9aMpLi8qC2+KYzCdE0slZcJ3sFXkjVdvAC21N9/1NFI9qQk13E iQIy6vETbTsqiNcY3pBPtOel6It0wqpbK95fShpEpCXmUOc50IFGheBvcBrU0OUNGkLY azKHb9Ukz1bq4myIrzmPP5MumGlwNQlsDpIzJfizP2c+07IdrNnpHK24FzoxLbyrfo+a mwylKmohxpJg7+3HfPo9CYNbnE59C1IeMYuVeN16QlgflUZZszlf1bh+Uma0TzKuiEMf A4Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Xoq0o+P5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 z4si23159681plo.297.2019.07.17.20.27.20; Wed, 17 Jul 2019 20:27:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Xoq0o+P5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390125AbfGRDGB (ORCPT + 99 others); Wed, 17 Jul 2019 23:06:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:37118 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727804AbfGRDF6 (ORCPT ); Wed, 17 Jul 2019 23:05:58 -0400 Received: from localhost (115.42.148.210.bf.2iij.net [210.148.42.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7247D2173E; Thu, 18 Jul 2019 03:05:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563419156; bh=TQ9/G6BptbWSST519WW8I97eo7t6QlgZulsO0gAVW/E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xoq0o+P5TLCMESUdQCRfu9NL7h+lXmkQEp+YeXAm3xr2Yjcbzm+PWuiVcbSVF5Etr yqRSakeMKt8Mjw5nKdpoRLKxGDIi4tAaqoZa76EVhqU0T8m2rnk3NEAOFVkNkjNLE+ PVtGWTFEDY9cTLN7yBKZtAqCr8ht77+U/Sy0wH+4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe Leroy , Herbert Xu Subject: [PATCH 5.1 51/54] crypto: talitos - move struct talitos_edesc into talitos.h Date: Thu, 18 Jul 2019 12:01:46 +0900 Message-Id: <20190718030057.149727466@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190718030053.287374640@linuxfoundation.org> References: <20190718030053.287374640@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe Leroy commit d44769e4ccb636e8238adbc151f25467a536711b upstream. Moves struct talitos_edesc into talitos.h so that it can be used from any place in talitos.c It will be required for next patch ("crypto: talitos - fix hash on SEC1") Signed-off-by: Christophe Leroy Cc: stable@vger.kernel.org Signed-off-by: Herbert Xu Signed-off-by: Greg Kroah-Hartman --- drivers/crypto/talitos.c | 30 ------------------------------ drivers/crypto/talitos.h | 30 ++++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 30 deletions(-) --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c @@ -913,36 +913,6 @@ badkey: return -EINVAL; } -/* - * talitos_edesc - s/w-extended descriptor - * @src_nents: number of segments in input scatterlist - * @dst_nents: number of segments in output scatterlist - * @icv_ool: whether ICV is out-of-line - * @iv_dma: dma address of iv for checking continuity and link table - * @dma_len: length of dma mapped link_tbl space - * @dma_link_tbl: bus physical address of link_tbl/buf - * @desc: h/w descriptor - * @link_tbl: input and output h/w link tables (if {src,dst}_nents > 1) (SEC2) - * @buf: input and output buffeur (if {src,dst}_nents > 1) (SEC1) - * - * if decrypting (with authcheck), or either one of src_nents or dst_nents - * is greater than 1, an integrity check value is concatenated to the end - * of link_tbl data - */ -struct talitos_edesc { - int src_nents; - int dst_nents; - bool icv_ool; - dma_addr_t iv_dma; - int dma_len; - dma_addr_t dma_link_tbl; - struct talitos_desc desc; - union { - struct talitos_ptr link_tbl[0]; - u8 buf[0]; - }; -}; - static void talitos_sg_unmap(struct device *dev, struct talitos_edesc *edesc, struct scatterlist *src, --- a/drivers/crypto/talitos.h +++ b/drivers/crypto/talitos.h @@ -65,6 +65,36 @@ struct talitos_desc { #define TALITOS_DESC_SIZE (sizeof(struct talitos_desc) - sizeof(__be32)) +/* + * talitos_edesc - s/w-extended descriptor + * @src_nents: number of segments in input scatterlist + * @dst_nents: number of segments in output scatterlist + * @icv_ool: whether ICV is out-of-line + * @iv_dma: dma address of iv for checking continuity and link table + * @dma_len: length of dma mapped link_tbl space + * @dma_link_tbl: bus physical address of link_tbl/buf + * @desc: h/w descriptor + * @link_tbl: input and output h/w link tables (if {src,dst}_nents > 1) (SEC2) + * @buf: input and output buffeur (if {src,dst}_nents > 1) (SEC1) + * + * if decrypting (with authcheck), or either one of src_nents or dst_nents + * is greater than 1, an integrity check value is concatenated to the end + * of link_tbl data + */ +struct talitos_edesc { + int src_nents; + int dst_nents; + bool icv_ool; + dma_addr_t iv_dma; + int dma_len; + dma_addr_t dma_link_tbl; + struct talitos_desc desc; + union { + struct talitos_ptr link_tbl[0]; + u8 buf[0]; + }; +}; + /** * talitos_request - descriptor submission request * @desc: descriptor pointer (kernel virtual)