Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3461706rwb; Mon, 7 Aug 2023 14:05:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEOMPejPQV9B7b2kyymYxaDajgI/XTUWX5eqRhFr2TWSKtJ4ebj5H3xGYVu/mdXkwhKchJC X-Received: by 2002:a17:902:c20c:b0:1b8:adc:7c3d with SMTP id 12-20020a170902c20c00b001b80adc7c3dmr10320594pll.40.1691442303052; Mon, 07 Aug 2023 14:05:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691442303; cv=none; d=google.com; s=arc-20160816; b=N5P7GLHVRcl5OlifBFfCJWCR41v3c8zMqWzY1Dk+8ZuIvjqAxfPys1wQxX0AT1cF3K 6ptCFae3PVqx+3wfsrqGaCGin2ydSxehXdAaIX2g7XT18cYsIzX9MTRyPIbkswB96Y7l 68HuqM8pjZtcx+v7Hum24gy4J2+Nz3HD/KG66bKhPm+D7Z8AcSy5gUTvBUlbyPMgjcH9 TUq16LM5wAsY35ugUtk6tud5yslb+fnVeRiBu9baQjLVgvaf4cdOBPMvrGElOpzMoq7k C9p9XhwObr5cHo2OsfIMa2hIIVph2n5jPX8ps4EUvPKAanjLHHQ0JMbfbwzv5kxdMFxJ r7yA== 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=GlLQotyjOAK1WcqWjIdPBSs1VPDB1Ysp8dn4kH7RmW4=; fh=KKYX96Dyn269sAN9Nbt8IfOk86mWVdLVST7Tbph7224=; b=h91TK54fb2v6S8/YOIHDuAnEiGBjlZnovxwsReYBTfYFbPlbTzPfGMqTBvqWJci8LX i4Zt3TKP0giy/RvZAwlmClBGHOOUKvIJWO57z2EK1+A1r7s53ZIjIiOhM3b/HUSafYu3 Se0AG/iu59ulQPKoTUAQErawkbtR+uqmmUMLd/MVO2DDeVaIqHy+WFLKu1LAqz33SlyJ 4fU0RNAfcLY0flivXDBtVJAwy80u3eF7wLY9N0FFxihx1wB9OimyvUH2r+X+Yay3Nm4l PTh134aWbqzpDDVfNgcGDCMgnd3NPpmY3mVpFpwglB19gm4uXQF0FPVnWn3HgzNJoVlC c3sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hmoABf79; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r12-20020a170903410c00b001b9c3498526si4169969pld.433.2023.08.07.14.04.49; Mon, 07 Aug 2023 14:05:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@intel.com header.s=Intel header.b=hmoABf79; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230395AbjHGUiT (ORCPT + 99 others); Mon, 7 Aug 2023 16:38:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229706AbjHGUiJ (ORCPT ); Mon, 7 Aug 2023 16:38:09 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F4DBE5C; Mon, 7 Aug 2023 13:38:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691440688; x=1722976688; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=oTslo5dfBjUzN5B7+kuIpfd8d61O/Ub8JrrlE4TLUdc=; b=hmoABf79qX7wSJH3nB39mqesyQxB0U7CnL573ws6+i5XT8d1pCGGLkm2 eZgFAID3xoXMdOzfLYh3oD9oCtRVL4Dgc11MAdXdwCL/bSh/QP2n8r7Xp xiXAJdR+cGJXsQQ5CY1l7K2k8zV5T80qgG/yqm2ATTUSBpNfHfC5431IE 3eWd5/RcBbPkm5z/5s8djyCcdkUtJ918/hrDguCZLKptLNT7HXtUcqTLw +jy4q1PzwzKg3XaeNI7liyjQ0KX+vVG+L9lcmpHNN/xxwA4iExff/1xNQ 2YMUzYDSDK1wwIhN5whD3mKQsEqgHSY+a1uXKVMinH7H14gH0XjAECP0i g==; X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="374319669" X-IronPort-AV: E=Sophos;i="6.01,263,1684825200"; d="scan'208";a="374319669" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Aug 2023 13:37:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="766123340" X-IronPort-AV: E=Sophos;i="6.01,263,1684825200"; d="scan'208";a="766123340" Received: from eeroesle-mobl.amr.corp.intel.com (HELO tzanussi-mobl1.intel.com) ([10.212.81.193]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Aug 2023 13:37:41 -0700 From: Tom Zanussi To: herbert@gondor.apana.org.au, davem@davemloft.net, fenghua.yu@intel.com, vkoul@kernel.org Cc: dave.jiang@intel.com, tony.luck@intel.com, wajdi.k.feghali@intel.com, james.guilford@intel.com, kanchana.p.sridhar@intel.com, vinodh.gopal@intel.com, giovanni.cabiddu@intel.com, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, dmaengine@vger.kernel.org Subject: [PATCH v9 04/14] dmaengine: idxd: Export descriptor management functions Date: Mon, 7 Aug 2023 15:37:16 -0500 Message-Id: <20230807203726.1682123-5-tom.zanussi@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230807203726.1682123-1-tom.zanussi@linux.intel.com> References: <20230807203726.1682123-1-tom.zanussi@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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-crypto@vger.kernel.org To allow idxd sub-drivers to access the descriptor management functions, export them. Signed-off-by: Tom Zanussi Reviewed-by: Dave Jiang Reviewed-by: Fenghua Yu Acked-by: Vinod Koul --- drivers/dma/idxd/submit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma/idxd/submit.c b/drivers/dma/idxd/submit.c index c01db23e3333..5e651e216094 100644 --- a/drivers/dma/idxd/submit.c +++ b/drivers/dma/idxd/submit.c @@ -61,6 +61,7 @@ struct idxd_desc *idxd_alloc_desc(struct idxd_wq *wq, enum idxd_op_type optype) return __get_desc(wq, idx, cpu); } +EXPORT_SYMBOL_NS_GPL(idxd_alloc_desc, IDXD); void idxd_free_desc(struct idxd_wq *wq, struct idxd_desc *desc) { @@ -69,6 +70,7 @@ void idxd_free_desc(struct idxd_wq *wq, struct idxd_desc *desc) desc->cpu = -1; sbitmap_queue_clear(&wq->sbq, desc->id, cpu); } +EXPORT_SYMBOL_NS_GPL(idxd_free_desc, IDXD); static struct idxd_desc *list_abort_desc(struct idxd_wq *wq, struct idxd_irq_entry *ie, struct idxd_desc *desc) @@ -215,3 +217,4 @@ int idxd_submit_desc(struct idxd_wq *wq, struct idxd_desc *desc) percpu_ref_put(&wq->wq_active); return 0; } +EXPORT_SYMBOL_NS_GPL(idxd_submit_desc, IDXD); -- 2.34.1