Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\iommu-helper.h Create Date:2022-07-28 07:11:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:iommu_num_pages

Proto:static inline unsigned long iommu_num_pages(unsigned long addr, unsigned long len, unsigned long io_page_size)

Type:unsigned long

Parameter:

TypeParameterName
unsigned longaddr
unsigned longlen
unsigned longio_page_size
37  size = (addr & io_page_size - 1 ) + len
39  Return DIV_ROUND_UP(size, io_page_size)
Caller
NameDescribe
dma_map_areaMap a single continuous physical area into the IOMMU.* Caller needs to check if the iommu is needed and flush.
gart_unmap_pageFree a DMA mapping.
__dma_map_contMap multiple scatterlist entries continuous into the first.
gart_map_sgDMA map all entries in a scatterlist.* Merge chunks that have page aligned sizes into a continuous mapping.