From nobody Sat Nov 23 23:21:17 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1728715841; cv=none; d=zohomail.com; s=zohoarc; b=RstAy4MrIFRm5PH7j/oTCHL/vHhVaNS+YA+xC3jcHX+x3N+DJiHPFwqowraRMiXiSLtSeIY5Z7ni5u0aY8yd0+TimskDzAGRKn7KJ7Slhdxdsvhu3Fe1K7d1xl33d5RCxUTtgU/p3Uh85XWsn2/pdT+DE7oAhg4wioN9/6Pfnys= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1728715841; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=shEvOsIqnFEdJAF59XGhekSu58mftGKg5A0X7iIHXlY=; b=Mi9F5f2LbseRo3OSf4T/ffb6RTX5Ua2eVVk54z18kCKUzNBi/Z9CUG8ra8PJqYjK3M6uiDzI9zCLVQlTuvbH/OzYfNiwDJkdh8fbSi49ZMUAWVgrJeHNdJsjlIhFB6Ao5EqRVidhx+cSUn/6n1jxebD85e8q82JHye2Mf6VSk7o= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1728715841207196.11415857268491; Fri, 11 Oct 2024 23:50:41 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1szVwj-0004Xn-Cc; Sat, 12 Oct 2024 02:49:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1szVwh-0004XY-2d for qemu-devel@nongnu.org; Sat, 12 Oct 2024 02:49:47 -0400 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1szVwe-00071y-Qx for qemu-devel@nongnu.org; Sat, 12 Oct 2024 02:49:46 -0400 Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-71e15fe56c9so1976605b3a.3 for ; Fri, 11 Oct 2024 23:49:44 -0700 (PDT) Received: from localhost ([157.82.207.107]) by smtp.gmail.com with UTF8SMTPSA id 41be03b00d2f7-7ea6ffeb587sm274072a12.44.2024.10.11.23.49.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Oct 2024 23:49:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20230601.gappssmtp.com; s=20230601; t=1728715783; x=1729320583; darn=nongnu.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=shEvOsIqnFEdJAF59XGhekSu58mftGKg5A0X7iIHXlY=; b=jxzNEaKKw//ixLd0HPYZ2JTpKz1sDXSzAh4osQtbyr0K4kVbAwGwyJ0Bb4MNoKIYrE NVNRmCxmu8lV6Dpw9MMVirhj+Jqc830vyHE92+bf3vzKVmyFXCQ7Z3hK9ohk3Yj24xCW /XMiosRW4CEDi1zxckoxtsZjiY/WR2c/9lAcY0Ihe/ZyTZrF3ChLiSar7KS/s4HrxpBf V6xuKcRFMi76NZVhAx5yWQ6Jh8ly8HLwgfRjqEUr4HMrQ16u4vjQKT1E8RSGM6R5BaPR EJg/0cvQZkJ4r/GF/1TU5X4RaCZC7FHy4WkA3Dauu+iQVgYVTwAiUgtBq52X4X2vJrz9 EV+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728715783; x=1729320583; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=shEvOsIqnFEdJAF59XGhekSu58mftGKg5A0X7iIHXlY=; b=NQoF+uJcHToTjcD+Rn0Inm5lxvFqkIjYf85MeI6PjXZXKPPLVcqdi7TKVmBq8iQBSk EpFZ/7w5/w0vUMS0CbTRW+tMGNtEzSVoyWR/qcmCU1Ok6IO5kkLMNUk4o+g145MNqMzj BsP4O/8gyEypnDQ5R077pHiu4OkEEBYgy23dxOPo6RvKQSRCJ+tvngBwo/Pk16HwD85J MhCwCieak4cODBLWVstNQFqWyB8gNbQwFrbbm7wAY0oWpex8HREhnbVOuNfzRSk8B8O+ IfAcm3F0cB980USRWg68OkZzbGZK/zB7/mWBWzAd6DLk/tExhyusOmsfiLg0DjsViMkk BUPQ== X-Gm-Message-State: AOJu0YzGy3tlmqZl9JILxxOkCEJsbOW3Jd7Txl5DHp0saZR04sJeXfaQ ql4F0Q+mdSNKouWGlyurNSQVsYIzvbNRmTx9kazMooutCOCTGIh/NhewFu845pc= X-Google-Smtp-Source: AGHT+IEq884tq7XRmBjgoLKz0poIU48SytuDy11jCkVqq96xCT8i6KmoSQ3EIhlA86a4SsK0T2xKRw== X-Received: by 2002:a05:6a20:6724:b0:1d8:acec:f5c2 with SMTP id adf61e73a8af0-1d8bcfaa1b6mr5301068637.36.1728715782761; Fri, 11 Oct 2024 23:49:42 -0700 (PDT) From: Akihiko Odaki Date: Sat, 12 Oct 2024 15:49:36 +0900 Subject: [PATCH v2] dma: Fix function names in documentation MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241012-dma-v2-1-6afddf5f3c8d@daynix.com> X-B4-Tracking: v=1; b=H4sIAP8bCmcC/1WMQQ7CIBBFr9LMWgzQmoAr72G6IMNgZ1EwYEibh ruL3bl8P/+9AwplpgL34YBMlQun2EFfBsDFxRcJ9p1BSz0pKY3wqxNSaxUskjHWQH++MwXezsp z7rxw+aS8n9Gqfuu/X5VQAqfRogx4C6N7eLdH3q6YVphba18n6pzzlwAAAA== To: Paolo Bonzini , Peter Xu , David Hildenbrand , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Cc: qemu-devel@nongnu.org, Akihiko Odaki X-Mailer: b4 0.14-dev-fd6e3 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::430; envelope-from=akihiko.odaki@daynix.com; helo=mail-pf1-x430.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @daynix-com.20230601.gappssmtp.com) X-ZM-MESSAGEID: 1728715843863116600 Ensure the function names match. Signed-off-by: Akihiko Odaki --- Changes in v2: - s/space/memory/ (Peter Maydell) - Covered more function names - Link to v1: https://lore.kernel.org/r/20241008-dma-v1-1-c439c0fc5f3a@dayn= ix.com --- include/sysemu/dma.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/include/sysemu/dma.h b/include/sysemu/dma.h index a1ac5bc1b543..5a49a306284d 100644 --- a/include/sysemu/dma.h +++ b/include/sysemu/dma.h @@ -152,7 +152,7 @@ static inline MemTxResult dma_memory_read(AddressSpace = *as, dma_addr_t addr, } =20 /** - * address_space_write: Write to address space from DMA controller. + * dma_memory_write: Write to address space from DMA controller. * * Return a MemTxResult indicating whether the operation succeeded * or failed (eg unassigned memory, device rejected the transaction, @@ -189,7 +189,7 @@ MemTxResult dma_memory_set(AddressSpace *as, dma_addr_t= addr, uint8_t c, dma_addr_t len, MemTxAttrs attrs); =20 /** - * address_space_map: Map a physical memory region into a host virtual add= ress. + * dma_memory_map: Map a physical memory region into a host virtual addres= s. * * May map a subset of the requested range, given by and returned in @plen. * May return %NULL and set *@plen to zero(0), if resources needed to perf= orm @@ -216,16 +216,15 @@ static inline void *dma_memory_map(AddressSpace *as, } =20 /** - * address_space_unmap: Unmaps a memory region previously mapped - * by dma_memory_map() + * dma_memory_unmap: Unmaps a memory region previously mapped by dma_memor= y_map() * * Will also mark the memory as dirty if @dir =3D=3D %DMA_DIRECTION_FROM_D= EVICE. * @access_len gives the amount of memory that was actually read or written * by the caller. * * @as: #AddressSpace used - * @buffer: host pointer as returned by address_space_map() - * @len: buffer length as returned by address_space_map() + * @buffer: host pointer as returned by dma_memory_map() + * @len: buffer length as returned by dma_memory_map() * @dir: indicates the transfer direction * @access_len: amount of data actually transferred */ --- base-commit: 31669121a01a14732f57c49400bc239cf9fd505f change-id: 20241008-dma-0221f9ce8898 Best regards, --=20 Akihiko Odaki