Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct device * | dev | |
dma_addr_t | dma_addr | |
size_t | size | |
enum dma_data_direction | dir | |
unsigned long | attrs |
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 |
269 | npages = iommu_num_pages(dma_addr, size, PAGE_SIZE) |
271 | Remapping table [iommu_page + i] = gart_unmapped_entry |
273 | free_iommu(iommu_page, npages) |
Name | Describe |
---|---|
gart_unmap_sg | Wrapper for pci_unmap_single working with scatterlists. |
gart_free_coherent | a coherent mapping |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |