函数逻辑报告 |
Source Code:arch\x86\kernel\amd_gart_64.c |
Create Date:2022-07-27 09:51:38 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Free a DMA mapping.
函数原型:static void gart_unmap_page(struct device *dev, dma_addr_t dma_addr, size_t size, enum dma_data_direction dir, unsigned long attrs)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct device * | dev | |
dma_addr_t | dma_addr | |
size_t | size | |
enum dma_data_direction | dir | |
unsigned long | attrs |
256 | 如果WARN_ON_ONCE(dma_addr == DMA_MAPPING_ERROR)则返回 |
264 | 如果dma_addr小于GART remapping area (physical) 或dma_addr大于等于GART remapping area (physical) 加size of remapping area bytes 则返回 |
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) |
名称 | 描述 |
---|---|
gart_unmap_sg | Wrapper for pci_unmap_single working with scatterlists. |
gart_free_coherent | a coherent mapping |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |