Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\amd_gart_64.c Create Date:2022-07-28 08:52:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Free a DMA mapping.

Proto:static void gart_unmap_page(struct device *dev, dma_addr_t dma_addr, size_t size, enum dma_data_direction dir, unsigned long attrs)

Type:void

Parameter:

TypeParameterName
struct device *dev
dma_addr_tdma_addr
size_tsize
enum dma_data_directiondir
unsigned longattrs
256  If WARN_ON_ONCE(dma_addr == DMA_MAPPING_ERROR) Then Return
264  If dma_addr < GART remapping area (physical) || dma_addr >= GART remapping area (physical) + size of remapping area bytes Then Return
268  iommu_page = dma_addr - GART remapping area (physical) >> PAGE_SHIFT determines the page size
269  npages = iommu_num_pages(dma_addr, size, PAGE_SIZE)
270  When i < npages cycle
271  Remapping table [iommu_page + i] = gart_unmapped_entry
273  free_iommu(iommu_page, npages)
Caller
NameDescribe
gart_unmap_sgWrapper for pci_unmap_single working with scatterlists.
gart_free_coherent a coherent mapping