Message ID | 1511959718-5421-5-git-send-email-volodymyr_babchuk@epam.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9270B6020B for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 29 Nov 2017 12:50:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 859EA29586 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 29 Nov 2017 12:50:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7A449296D0; Wed, 29 Nov 2017 12:50:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 21F8729586 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 29 Nov 2017 12:50:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XVWdVuVbRDPMaCFDxJFMkMf8htmVddre20aHHxfDlic=; b=kiQfrruCjMPtLt ZSbO1sxLE1Mdz0nft4p9j6ZWxfXqPNNrTPU+HTRXRPNC7RY5GztlCtZVK3hG2SypATm6gcTW/sFr3 l7CsU9Zzz8sm1NeqBme1QaYMvMjz/VZiWZVyzhxKkxzGTQmwWtYx37cfCMI4w/lofkl0McFrx9nB7 M+gUuz6VO8tIRKL6iF74P0SsWtqHO2SIIjzKyUIqp4aMwS+0h3Re0LO2hO+8QBszXUU31AwOWbxXw bWSWUyJWcWggxys3lNgU+KCRZLX25KEbpZABx1zPwWGx0W3kd+f0R32GRWKuy9K9tuQQngXT6RHNl sX4OE/+Q6+xpkl1v9J3A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eK1oi-0005lp-BV; Wed, 29 Nov 2017 12:50:20 +0000 Received: from mail-he1eur01on0050.outbound.protection.outlook.com ([104.47.0.50] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eK1o8-00041l-O1 for linux-arm-kernel@lists.infradead.org; Wed, 29 Nov 2017 12:49:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=epam.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=jI3W5Ta3UeiAVnehSuswc6HoI1Wh42RB5asb2f4WGmg=; b=f07uzlC5+UtgN7igC4EmmjDHxCFNR4fXsh5n1ECxOY/ycrvfLZRflszYAQOtmcb+vAF/nhsrHRoa5a+vB/hTt73wcDhWBD/EQwkZnf33HPiWgWrwebsVkluGqfFSzlofF/lhGkEGxWJ/DEG3H7Dfql9RAgjGLNyMccJ2G3qYxo4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Volodymyr_Babchuk@epam.com; Received: from EPUAKYIW2556.kyiv.epam.com (85.223.209.56) by AM4PR03MB1763.eurprd03.prod.outlook.com (2603:10a6:200:10::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Wed, 29 Nov 2017 12:49:14 +0000 Received: by EPUAKYIW2556.kyiv.epam.com (sSMTP sendmail emulation); Wed, 29 Nov 2017 14:49:09 +0200 From: Volodymyr Babchuk <volodymyr_babchuk@epam.com> To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, tee-dev@lists.linaro.org, Jens Wiklander <jens.wiklander@linaro.org> Subject: [RESEND PATCH v2 04/14] tee: shm: add page accessor functions Date: Wed, 29 Nov 2017 14:48:28 +0200 Message-Id: <1511959718-5421-5-git-send-email-volodymyr_babchuk@epam.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511959718-5421-1-git-send-email-volodymyr_babchuk@epam.com> References: <1507923164-12796-1-git-send-email-volodymyr_babchuk@epam.com> <1511959718-5421-1-git-send-email-volodymyr_babchuk@epam.com> MIME-Version: 1.0 X-Originating-IP: [85.223.209.56] X-ClientProxiedBy: HE1PR0102CA0069.eurprd01.prod.exchangelabs.com (2603:10a6:7:7d::46) To AM4PR03MB1763.eurprd03.prod.outlook.com (2603:10a6:200:10::7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4fbf5aea-06ad-4fd3-fb1a-08d5372798c6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(7168020)(4627115)(201703031133081)(201702281549075)(2017052603199); SRVR:AM4PR03MB1763; X-Microsoft-Exchange-Diagnostics: 1; AM4PR03MB1763; 3:oXFkNYa7cwPHIhrhzP/+o7qAcm19Bffs9AKcFZnru1ALCLR5huJsCpVR58sTK0umvPL2DD89zQNyCf9TNU6IEh+i6Q3HsbRQkixeEPivuZFWWbu9PbaQOWhv2k3FB+P5YJALZd/WAMUSqI7q5b+LG7u9dZoI7FJro+ldeYQs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ZA0uY+GdIAZktM9nCPfXb7Q6hoZ26SGtq0YHQxgGLWqDrYmpMorPNl7QFzsPcARFNNaFJla3HZ6UvvK14MFf+fLWOozIyliJYqYE7XL2BDl7TM0pe/EboEQfEBhsBzKK7rfx0yDhuB+iJQf5MJSQSVZyueihf80kPp2m5tqvbahmyo0DlRFoAS3pa8db6cJSJ0OcCIArG; 4:r4/5BSZfawJrkQj9nDaFe3HmN/nLsIiVkkmgXKSBI251jibeAu92dtf3KO1aCat2T4rUsKrSyZO23HzWq8C6WT40ojl0VgufPFueoTnQHLzLRh1NpdqNDAwihLy3ISNxgK0PW/Qyih2WxXGZV2wc+jeQhohEPBneafxrbVErxdeJCUHKZFAOyV1T92+WKV2H+J0qU3DGGQw8/DNv7DeWff27pO6FIstOEqCmRTpk7ercNFOXQBzDQdicnBO4MTFZrWVbvNlNeG4JlQc6xK0AJg== X-Microsoft-Antispam-PRVS: <AM4PR03MB1763C698D254C0FF231315B3E63B0@AM4PR03MB1763.eurprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(3231022)(3002001)(10201501046)(93006095)(93001095)(6041248)(20161123560025)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123558100)(6072148)(201708071742011); SRVR:AM4PR03MB1763; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:AM4PR03MB1763; X-Forefront-PRVS: 05066DEDBB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(366004)(346002)(199003)(189002)(50986999)(68736007)(76176999)(97736004)(101416001)(6916009)(2950100002)(2906002)(80792005)(6666003)(6116002)(4326008)(53936002)(3846002)(316002)(81166006)(106356001)(8936002)(33646002)(81156014)(72206003)(16586007)(5660300001)(36756003)(42186006)(305945005)(478600001)(50226002)(48376002)(51416003)(7736002)(8676002)(105586002)(50466002)(66066001)(55236003)(47776003)(86362001)(107886003)(52116002)(189998001)(122856001)(39060400002)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR03MB1763; H:EPUAKYIW2556.kyiv.epam.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: epam.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM4PR03MB1763; 23:L7+8FKEek0fNTKFQ1b7z2Z8mid+lOky6oyE1q5mbs?= =?us-ascii?Q?DhwKCMPHcO4eVg1WvCcht81EVbFZ0rqomrd59X0PWkrzfou9xRwmkIoNCyEB?= =?us-ascii?Q?9DRo8lJDtTxUapcimd3HQXfqHGouG+nYfx8UmgfcGsEZvoi/oHSdvlAUYreF?= =?us-ascii?Q?nPMh2/d0RRYpjTc2ru1WDuZiAOLX81ur/XJNuUjCB/WpWL+SzaW/J/Vnai6K?= =?us-ascii?Q?mVHinzNK0gRSlvGgWwshcVcpPfE4eYnODK8QHXJ5Cws1Rp1g5wxAGGt44ucv?= =?us-ascii?Q?ExBjEg4har/4Ayk93XYfk6QYDGRcB7F7iCUjPlwTAfZ38KkKKQQcoxImQeJF?= =?us-ascii?Q?rMTjRQs/rrrfmWdvziSJ9oQ6mI8b4RBPWF2ZrHWunXBCr+NXKcans7QKy2Ub?= =?us-ascii?Q?XgSwEIdP6E09IpVeecvIOk31TBpOkRyPROe3N2l8pUVr0naUlq3UnaGiEHNn?= =?us-ascii?Q?iDrTOxxgN6zpfjE5zW2QS3zO5MT7jTEDIjpmu5PIx+72ltLCLDNx/dvPalkH?= =?us-ascii?Q?DCrnATpB7pSkpkCYSMKkb6RbQpB9R6tQq5VvYjZxgi4gEU90PvW/VATQC/vZ?= =?us-ascii?Q?UuvtwAYITiYrib1cax3mqi8kYXsXfpfw8SzOW4jkVJlA7or6X/ARM/v8zqBB?= =?us-ascii?Q?TtILqdLyLs1vWAVtopCbLqGH8Nb6Aru2JmoBE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h3b4V9zGKZQL70MNlnfa2IpZgf6qRF1c6NvJUjoJ624f0SI4XwzTu9qL2rSl2gCFfUiPfdpo2IP4vvIVESgDmW7bYwt+aj9+M0YU37LogRs=; 24:vFAwiPkUZ+UuuJUS6CU/czQkI7of7CQTdfvdZKHJyV++bcO2T7lvvUSHrDYCdgBe6/GFPOMYYyiraczdCADP3ywqMYi44ODSzgPVRufJ+bo=; 7:mQVX73Wt2vXeFb3xm/jcqBcENBRjceaHtpGafVg93j1MN51/gFaADRCJYQ9rMVI9kjHCJtxMQV/LyNyW+tqo9yTGgkT5B2d0tWFbufapoAl5l+/R5PO4E8tZhvUfsSEEk/ZgpbG/ub9H2MoiO3Gom3wcRXnKpSoEjTRIvcNKyfPiLnn+mLKoIcdwjNnF6SMWj5MaAc5iP/HBfWpmiUtpYxsGHjQqj1FuzTGQ++ic+u5gVDZU8P3y1gXiYm6ozeMt SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2017 12:49:14.1409 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4fbf5aea-06ad-4fd3-fb1a-08d5372798c6 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR03MB1763 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171129_044945_017772_688B30CF X-CRM114-Status: UNSURE ( 8.46 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Volodymyr Babchuk <vlad.babchuk@gmail.com>, volodymyr_babchuk@epam.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/include/linux/tee_drv.h b/include/linux/tee_drv.h index 0d7f2a5..5489c38 100644 --- a/include/linux/tee_drv.h +++ b/include/linux/tee_drv.h @@ -394,6 +394,19 @@ static inline size_t tee_shm_get_size(struct tee_shm *shm) } /** + * tee_shm_get_pages() - Get list of pages that hold shared buffer + * @shm: Shared memory handle + * @num_pages: Number of pages will be stored there + * @returns pointer to pages array + */ +static inline struct page **tee_shm_get_pages(struct tee_shm *shm, + size_t *num_pages) +{ + *num_pages = shm->num_pages; + return shm->pages; +} + +/** * tee_shm_get_page_offset() - Get shared buffer offset from page start * @shm: Shared memory handle * @returns page offset of shared buffer