Message ID | 20231127202704.1263376-6-tom.zanussi@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp3440506vqx; Mon, 27 Nov 2023 12:27:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IHlfBeiRToctpz8+V+PYKLn0E382AO4NnijMFPG4W+AWoEqEByOmrxiYp5ToPmck7z2aa0i X-Received: by 2002:a17:902:ee54:b0:1cf:7ce5:e6e8 with SMTP id 20-20020a170902ee5400b001cf7ce5e6e8mr11757686plo.12.1701116865136; Mon, 27 Nov 2023 12:27:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701116865; cv=none; d=google.com; s=arc-20160816; b=FMAtLFsjDXlriin31x9Ei4oNCg176vdcRofESW1Miv8HUpn73DPwlqzmYpDesexKM1 U3uncDpOKejkoIFttfx8b05j5X2zcXLNT1TzlnmBTJfR3u4Ll9fu6p6jUEF5rZTEfjN7 tKEHrxkasns2mo+5Q1+CPeskqo/uZiSIk1GxnEutaB+C5XJDMTnkgeUPiGY8OlrTkzCQ iaCq2nJ48XBpZbdux8tnt1S7X592Q7vuGcVuxul8pAFdVauhkWHm7pM42hGHenBsl6lf ZiZeMmWo3GTJFCo6iHSesGWciSBKInnX5ciw190TYh9dLY610XWwm7f+ny5fZyajEavl phnA== 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=A9dZXTcf4JGrrwmxz4IrKLFYNTCJ5oe8Pidwv7sBOCY=; fh=CKy338m5MbqOKLCytkQoYDn9hkoAEvElo6dffmo/qoM=; b=lj04hscJA/Q1Swe3f5dGE6Sxppt2VBmIO+/fpjR0NqiKxztoJpvM17alXuLZ460zeF yy4R7F64mI6masEFEr7tOGSNgJB+ZdcspYLArDdjpunuHuPjaM1uvrqJxGISx6qNwE2+ gjl0gEWFdbDaoQtIz9u/DIJ5CiqexlfNKKwd8COCt/upVHaWVXROtJgXLpY8T/hLo+Rc y4siMUTLawZ5hfwZFltKq9lQHTtfYAnkc88y2+osWxKPg8k0DF+J0+KqJQNEb2o8eWlZ bwlKLNFFTbhQl9BFY7y8V+dzNlWnO5EZPjPUgenIkkbFDGV8O0Vt9VGm0hqNObQLWlj6 GzEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jIvdYK6l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ji22-20020a170903325600b001cfbd995c66si4749899plb.122.2023.11.27.12.27.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 12:27:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jIvdYK6l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0F9F280A30EC; Mon, 27 Nov 2023 12:27:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233309AbjK0U13 (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Mon, 27 Nov 2023 15:27:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233192AbjK0U1T (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 27 Nov 2023 15:27:19 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F340D60; Mon, 27 Nov 2023 12:27:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701116841; x=1732652841; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KIwEAq00pSueG4DSxFjX/X+olr9EGFvm2qeS8vaAfoM=; b=jIvdYK6leX7mnfwty3N1lJb8lUji7UUyMxIg57gnAHQCbyc8A5aBuz7M anOKtdBtfyy9pJynRpZvrODkIMDl4RswsHmYdPbqEPXPjCvgK32c+/qeD 0qOIqw6FnM5N+dDQWkLwVmRzbWaaOylFVqohr3aotEunsbtxvSLxL4soT 3/C00p/0Z5aH3tf1lhOl6keAwmKDfhPi9PNYZtFnV19NLmKd2dDeZmu85 uYOtpieB/d/niBGIoKeTFuYvp+DcDacZwA9jZZT17hkFXswuK/eBK2cXT ZiqqsoTWdhSXJGsgsg1rB5bgkx0llWRnhDBG1j41nX2b9vwhpg20qomQB A==; X-IronPort-AV: E=McAfee;i="6600,9927,10907"; a="457115517" X-IronPort-AV: E=Sophos;i="6.04,231,1695711600"; d="scan'208";a="457115517" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2023 12:27:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,231,1695711600"; d="scan'208";a="16394536" Received: from rpkulapa-mobl.amr.corp.intel.com (HELO tzanussi-mobl1.hsd1.il.comcast.net) ([10.213.183.92]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2023 12:27:20 -0800 From: Tom Zanussi <tom.zanussi@linux.intel.com> 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, pavel@ucw.cz, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, dmaengine@vger.kernel.org Subject: [PATCH v10 05/14] dmaengine: idxd: Add wq private data accessors Date: Mon, 27 Nov 2023 14:26:55 -0600 Message-Id: <20231127202704.1263376-6-tom.zanussi@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231127202704.1263376-1-tom.zanussi@linux.intel.com> References: <20231127202704.1263376-1-tom.zanussi@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 27 Nov 2023 12:27:44 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783750318094940049 X-GMAIL-MSGID: 1783750318094940049 |
Series |
crypto: Add Intel Analytics Accelerator (IAA) crypto compression driver
|
|
Commit Message
Tom Zanussi
Nov. 27, 2023, 8:26 p.m. UTC
Add the accessors idxd_wq_set_private() and idxd_wq_get_private() allowing users to set and retrieve a private void * associated with an idxd_wq. The private data is stored in the idxd_dev.conf_dev associated with each idxd_wq. Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Reviewed-by: Fenghua Yu <fenghua.yu@intel.com> Acked-by: Vinod Koul <vkoul@kernel.org> --- drivers/dma/idxd/idxd.h | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/drivers/dma/idxd/idxd.h b/drivers/dma/idxd/idxd.h index ae3be5cb2ee3..4b67181f4396 100644 --- a/drivers/dma/idxd/idxd.h +++ b/drivers/dma/idxd/idxd.h @@ -618,6 +618,16 @@ static inline int idxd_wq_refcount(struct idxd_wq *wq) return wq->client_count; }; +static inline void idxd_wq_set_private(struct idxd_wq *wq, void *private) +{ + dev_set_drvdata(wq_confdev(wq), private); +} + +static inline void *idxd_wq_get_private(struct idxd_wq *wq) +{ + return dev_get_drvdata(wq_confdev(wq)); +} + /* * Intel IAA does not support batch processing. * The max batch size of device, max batch size of wq and