aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/amd_iommu.c
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2008-12-02 11:27:52 -0500
committerJoerg Roedel <joerg.roedel@amd.com>2009-01-03 08:11:53 -0500
commit38e817febe2f12bd2fbf92a1df36f41946d0c223 (patch)
treeab1f4ab84ebec0b78d4f09954061aada51a603cc /arch/x86/kernel/amd_iommu.c
parent6680598b44ed3c0052d155522eb21fc5a00de5f3 (diff)
AMD IOMMU: rename iommu_map to iommu_map_page
Impact: function rename The iommu_map function maps only one page. Make this clear in the function name. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch/x86/kernel/amd_iommu.c')
-rw-r--r--arch/x86/kernel/amd_iommu.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c
index 2e2da717b350..b11c855af7b4 100644
--- a/arch/x86/kernel/amd_iommu.c
+++ b/arch/x86/kernel/amd_iommu.c
@@ -338,10 +338,10 @@ static void iommu_flush_tlb(struct amd_iommu *iommu, u16 domid)
338 * supporting all features of AMD IOMMU page tables like level skipping 338 * supporting all features of AMD IOMMU page tables like level skipping
339 * and full 64 bit address spaces. 339 * and full 64 bit address spaces.
340 */ 340 */
341static int iommu_map(struct protection_domain *dom, 341static int iommu_map_page(struct protection_domain *dom,
342 unsigned long bus_addr, 342 unsigned long bus_addr,
343 unsigned long phys_addr, 343 unsigned long phys_addr,
344 int prot) 344 int prot)
345{ 345{
346 u64 __pte, *pte, *page; 346 u64 __pte, *pte, *page;
347 347
@@ -440,7 +440,7 @@ static int dma_ops_unity_map(struct dma_ops_domain *dma_dom,
440 440
441 for (addr = e->address_start; addr < e->address_end; 441 for (addr = e->address_start; addr < e->address_end;
442 addr += PAGE_SIZE) { 442 addr += PAGE_SIZE) {
443 ret = iommu_map(&dma_dom->domain, addr, addr, e->prot); 443 ret = iommu_map_page(&dma_dom->domain, addr, addr, e->prot);
444 if (ret) 444 if (ret)
445 return ret; 445 return ret;
446 /* 446 /*