Message ID | 20231201201035.172465-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:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp1389334vqy; Fri, 1 Dec 2023 12:12:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IHLwCRUn6blNe9c8NmSp5bBGrN3XM4d6AImTOIV5aHYs67OUX3fYEGFTSPUrnMOQD4s2cja X-Received: by 2002:a05:6a20:7d90:b0:18c:159b:7f9 with SMTP id v16-20020a056a207d9000b0018c159b07f9mr96531pzj.9.1701461545444; Fri, 01 Dec 2023 12:12:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701461545; cv=none; d=google.com; s=arc-20160816; b=0V67gvxw6LvvVYPMLqAWzXwZZzj7t8REigPe6OlqAfIgbE4YauX1OrfBVYKMwg0nmw W51r1uiW53DLObvXD2U4sJOwGnE0QFbF8g3vpH3JV3hGqVKchLY+uX4g+NkYgoWKeOxn 4sETmcnCba1VHIGvPjkPohV3VjyHhtiVhfVkCvrhJn3i9QCZvzq5N+X2Y9fsLBVEs8iv h7C+k6pw2tzphy9G8uw9T4YnSux50g+oDkkY7/LciytFppFyUBQwwX1PkF4BWcjbwG2l iG6/Mb96upV2ZwIGW7BYdchWyNvWFtH475gyYhtZMhrMcqOXwXEC93dLumQoSqcAXGqU wJsQ== 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=WakG1B0nw5XuGifIxUwGIxRPuYkJtMndKayziigBfibP37/0XokdSJt/Hpx4K2ofjM f/4KCdB2zvavqLPHi3x+f9d+73hCjr+FT72u/TsByW7oksMFkmiHjAADDwTuUHQ1teDL YY3tYoUCWtbEm11DM8htItCnXzkWYMZV25Zbddi7tTFrIB2OU5XTHvWsgE/yR2vthj81 dVLg43D8W8jsHDi65eZE7KO6R8Gbc2mzjTtGCOwVFYQ8nfANod2nfAIoy4btC5/CfEXu 9ZaqFJVF2cxYu6YuCpO1LUtLJfOfFjxSXc0olt6Ik8JUrAU2Wsn+l/kQ04kXB+xhaPaw qvcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=L2Zq7e7O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id bw18-20020a056a00409200b006cbe638cd99si3891074pfb.368.2023.12.01.12.12.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 12:12:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=L2Zq7e7O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id D4E1E80A13A0; Fri, 1 Dec 2023 12:11:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379641AbjLAULP (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Fri, 1 Dec 2023 15:11:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379600AbjLAULB (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 1 Dec 2023 15:11:01 -0500 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A35D010C2; Fri, 1 Dec 2023 12:11:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701461468; x=1732997468; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KIwEAq00pSueG4DSxFjX/X+olr9EGFvm2qeS8vaAfoM=; b=L2Zq7e7OExxDorByqJT3bBFVvO7YQu2+XI1sZVeqKHWlVAMbm0L6/qFL 1QeFOm4INtdAJZRsOj0Vw3hrz9Oe9MSgCfxdFDKDeUIPHu8ysX3YhRHo5 2x8J4zUOOKZf3WZnwupZrsZ8w1s5cvcx4YD4/UKFmwdf0vQnLov/PVuJ7 ChA2zGRzvsx4MbR5CE9iLWQF2p5Y5h7ytoEyeZss+PMaIPiZDuvR8vIUG yqEJTcKFeXm2ewroPf5u1nComXF82mE9sme1gKC2rqaOMnZc+9xF4lCyi lSg2pvB9znSPVwiJLk3wbCGNrL2gIkg0WYUQzkYt4bVzApQz3elThcNFo w==; X-IronPort-AV: E=McAfee;i="6600,9927,10911"; a="427814" X-IronPort-AV: E=Sophos;i="6.04,242,1695711600"; d="scan'208";a="427814" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2023 12:10:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10911"; a="860671172" X-IronPort-AV: E=Sophos;i="6.04,242,1695711600"; d="scan'208";a="860671172" Received: from temersox-mobl2.amr.corp.intel.com (HELO tzanussi-mobl1.amr.corp.intel.com) ([10.213.166.197]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2023 12:10:49 -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 v11 05/14] dmaengine: idxd: Add wq private data accessors Date: Fri, 1 Dec 2023 14:10:26 -0600 Message-Id: <20231201201035.172465-6-tom.zanussi@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231201201035.172465-1-tom.zanussi@linux.intel.com> References: <20231201201035.172465-1-tom.zanussi@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Fri, 01 Dec 2023 12:11:35 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784111741418493240 X-GMAIL-MSGID: 1784111741418493240 |
Series |
crypto: Add Intel Analytics Accelerator (IAA) crypto compression driver
|
|
Commit Message
Tom Zanussi
Dec. 1, 2023, 8:10 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