Function report |
Source Code:arch\x86\kernel\amd_gart_64.c |
Create Date:2022-07-28 08:52:20 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Fallback for dma_map_sg in case of overflow
Proto:static int dma_map_sg_nonforce(struct device *dev, struct scatterlist *sg, int nents, int dir)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct device * | dev | |
struct scatterlist * | sg | |
int | nents | |
int | dir |
306 | If nonforced_iommu(dev, addr, length) Then |
307 | addr = Map a single continuous physical area into the IOMMU.* Caller needs to check if the iommu is needed and flush. |
308 | If addr == DMA_MAPPING_ERROR Then |
309 | If i > 0 Then Wrapper for pci_unmap_single working with scatterlists. |
311 | nents = 0 |
312 | dma_length = 0 |
313 | Break |
316 | dma_address = addr |
317 | dma_length = length |
321 | Return nents |
Name | Describe |
---|---|
gart_map_sg | DMA map all entries in a scatterlist.* Merge chunks that have page aligned sizes into a continuous 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 |