Function report |
Source Code:arch\x86\kernel\amd_gart_64.c |
Create Date:2022-07-28 08:52:22 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Map multiple scatterlist entries continuous into the first.
Proto:static int __dma_map_cont(struct device *dev, struct scatterlist *start, int nelems, struct scatterlist *sout, unsigned long pages)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct device * | dev | |
struct scatterlist * | start | |
int | nelems | |
struct scatterlist * | sout | |
unsigned long | pages |
329 | iommu_start = alloc_iommu(dev, pages, 0) |
330 | iommu_page = iommu_start |
334 | If iommu_start == -1 Then Return -1 |
339 | phys_addr = dma_address |
344 | dma_address += iommu_page * PAGE_SIZE + offset |
345 | dma_length = length |
346 | Else |
347 | dma_length += length |
351 | pages = iommu_num_pages(offset, length, PAGE_SIZE) |
358 | BUG_ON(iommu_page - iommu_start != pages) |
360 | Return 0 |
Name | Describe |
---|---|
dma_map_cont |
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 |