From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7F483C25B48 for ; Thu, 26 Oct 2023 12:17:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0jY+WVEp8bZAg1DAnZ1XYthNAE+0pkzABeYYgWW0Z60=; b=FBuQqB6A4+ixTi 2hAgFLu5mCx7Ghml1pAjikWXzvvtofTlpXtqthDDxb+K8iLeJXIRENtCCxzhlM2BpnSuJvoDZ4TPK mmh92rYe/Y0iSqnWyLvI3p0qzmsmQSODJjIRtat9XQQNysEpRifPYjxaak6I7lgs6l9MRkQ8tpogR 4nsCLiJis118Q5T/dTeljRuZ0gg4AcSJdnK92Y0tkzfkIhiTf0ziKkREuerAWxQrL8Rzps63aRfZC dNkhCJ+1GYEwMFAVPEXRacCovtx2qu1RZ6ahpYR/VHJ3OuYAuZN+G/ulodv/CRbw4QsE19XaKoWbl l0ypvXFly0MsCg3fW/pQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qvzIC-00EQZ5-2a; Thu, 26 Oct 2023 12:16:52 +0000 Received: from mgamail.intel.com ([192.198.163.7]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qvzIA-00EQYG-1R for linux-arm-kernel@lists.infradead.org; Thu, 26 Oct 2023 12:16:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698322610; x=1729858610; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=KYf5xL0TV2CYbvS3/g0bvhK+S0g+N3mpJs+DacTeBpg=; b=R6e7ddJMK4GQcd6Ttep9YBKftxb/8CoGJBtyFpUDC18oNt3gMulcy1HO x4LCITXEOiLUQFVyZ7Ngr6ZxasjBRG14Zfn7UvGgKr4wSazAX/wE88Dd/ +w7ZQYm2JhpAnRBuy4LIuJBHW4/WHn/pX11omB6PMdnFIZYQWFVXakITD 52sK1DelHe46m5+dEb5ahTfMV+ccykmVlgK+aG8vC+CYUC6068zQB18I0 MA34z775DUXAvBbMHM/N1gRrG26fFdXolNqjCa9GLmDGCHywTpMd8bfOu K4VuSOUVNvipG5/ph2csU0c7pS6XsTs7+BfAbfbF35m6GrC2c0CTtfi0v g==; X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="9083660" X-IronPort-AV: E=Sophos;i="6.03,253,1694761200"; d="scan'208";a="9083660" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2023 05:16:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="875918200" X-IronPort-AV: E=Sophos;i="6.03,253,1694761200"; d="scan'208";a="875918200" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2023 05:16:43 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC3) (envelope-from ) id 1qvzI0-00000008qlC-0TIq; Thu, 26 Oct 2023 15:16:40 +0300 Date: Thu, 26 Oct 2023 15:16:39 +0300 From: Andy Shevchenko To: Alexander Potapenko Cc: catalin.marinas@arm.com, will@kernel.org, pcc@google.com, andreyknvl@gmail.com, aleksander.lobakin@intel.com, linux@rasmusvillemoes.dk, yury.norov@gmail.com, alexandru.elisei@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, eugenis@google.com, syednwaris@gmail.com, william.gray@linaro.org, Arnd Bergmann Subject: Re: [PATCH v9 1/2] lib/bitmap: add bitmap_{read,write}() Message-ID: References: <20231025083812.456916-1-glider@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231026_051650_494850_54267230 X-CRM114-Status: GOOD ( 13.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Oct 26, 2023 at 03:15:40PM +0300, Andy Shevchenko wrote: > On Wed, Oct 25, 2023 at 10:38:11AM +0200, Alexander Potapenko wrote: ... > > * bitmap_to_arr64(buf, src, nbits) Copy nbits from buf to u64[] dst > > * bitmap_get_value8(map, start) Get 8bit value from map at start > > * bitmap_set_value8(map, value, start) Set 8bit value to map at start > > + * bitmap_read(map, start, nbits) Read an nbits-sized value from > > + * map at start > > + * bitmap_write(map, value, start, nbits) Write an nbits-sized value to > > + * map at start > > I still didn't get the grouping you implied with this... Ah, sorry, I haven't noticed the descriptions are two-liners. -- With Best Regards, Andy Shevchenko _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA3ECC25B48 for ; Thu, 26 Oct 2023 12:16:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344877AbjJZMQw (ORCPT ); Thu, 26 Oct 2023 08:16:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231173AbjJZMQt (ORCPT ); Thu, 26 Oct 2023 08:16:49 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0D39111 for ; Thu, 26 Oct 2023 05:16:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698322608; x=1729858608; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=KYf5xL0TV2CYbvS3/g0bvhK+S0g+N3mpJs+DacTeBpg=; b=clSHfqA2QsjM8usPfI6GlhA5RCWFgf6h9QICoxa5zuIJ5ZWNKJvwWAkm +EklTOwDGklq28h0bCTBORkTVpFMH+Ed6lMfF2KrmiigNWTIs16uzAnn8 zcx6hcfp9CWCJ7ZnsXo6ydlFu6YXW8aBqqnFP7/6hiHIknbxlI01ZItb+ f5eah3iQ1lXMeg8H+uyMF+5zeEXgyNwjyEyi6yb7R1IxBjVVPCtnklQ8/ kfSqmlxPO0iShwENTUjKGcmg+YqfLFH2JyPc2HhNHn2izY7uYbbyWHrRs SfWEGMeqB/1KrFlaXl3wwd0HTHN3KL/AXsxdWNPz7WFh8wWi12C2pTD/o A==; X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="9083655" X-IronPort-AV: E=Sophos;i="6.03,253,1694761200"; d="scan'208";a="9083655" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2023 05:16:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="875918200" X-IronPort-AV: E=Sophos;i="6.03,253,1694761200"; d="scan'208";a="875918200" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2023 05:16:43 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC3) (envelope-from ) id 1qvzI0-00000008qlC-0TIq; Thu, 26 Oct 2023 15:16:40 +0300 Date: Thu, 26 Oct 2023 15:16:39 +0300 From: Andy Shevchenko To: Alexander Potapenko Cc: catalin.marinas@arm.com, will@kernel.org, pcc@google.com, andreyknvl@gmail.com, aleksander.lobakin@intel.com, linux@rasmusvillemoes.dk, yury.norov@gmail.com, alexandru.elisei@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, eugenis@google.com, syednwaris@gmail.com, william.gray@linaro.org, Arnd Bergmann Subject: Re: [PATCH v9 1/2] lib/bitmap: add bitmap_{read,write}() Message-ID: References: <20231025083812.456916-1-glider@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 26, 2023 at 03:15:40PM +0300, Andy Shevchenko wrote: > On Wed, Oct 25, 2023 at 10:38:11AM +0200, Alexander Potapenko wrote: ... > > * bitmap_to_arr64(buf, src, nbits) Copy nbits from buf to u64[] dst > > * bitmap_get_value8(map, start) Get 8bit value from map at start > > * bitmap_set_value8(map, value, start) Set 8bit value to map at start > > + * bitmap_read(map, start, nbits) Read an nbits-sized value from > > + * map at start > > + * bitmap_write(map, value, start, nbits) Write an nbits-sized value to > > + * map at start > > I still didn't get the grouping you implied with this... Ah, sorry, I haven't noticed the descriptions are two-liners. -- With Best Regards, Andy Shevchenko