mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-01 03:11:59 +00:00
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>
This commit is contained in:
parent
6680598b44
commit
38e817febe
1 changed files with 5 additions and 5 deletions
|
@ -338,10 +338,10 @@ static void iommu_flush_tlb(struct amd_iommu *iommu, u16 domid)
|
||||||
* supporting all features of AMD IOMMU page tables like level skipping
|
* supporting all features of AMD IOMMU page tables like level skipping
|
||||||
* and full 64 bit address spaces.
|
* and full 64 bit address spaces.
|
||||||
*/
|
*/
|
||||||
static int iommu_map(struct protection_domain *dom,
|
static int iommu_map_page(struct protection_domain *dom,
|
||||||
unsigned long bus_addr,
|
unsigned long bus_addr,
|
||||||
unsigned long phys_addr,
|
unsigned long phys_addr,
|
||||||
int prot)
|
int prot)
|
||||||
{
|
{
|
||||||
u64 __pte, *pte, *page;
|
u64 __pte, *pte, *page;
|
||||||
|
|
||||||
|
@ -440,7 +440,7 @@ static int dma_ops_unity_map(struct dma_ops_domain *dma_dom,
|
||||||
|
|
||||||
for (addr = e->address_start; addr < e->address_end;
|
for (addr = e->address_start; addr < e->address_end;
|
||||||
addr += PAGE_SIZE) {
|
addr += PAGE_SIZE) {
|
||||||
ret = iommu_map(&dma_dom->domain, addr, addr, e->prot);
|
ret = iommu_map_page(&dma_dom->domain, addr, addr, e->prot);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue