函数逻辑报告 |
Source Code:arch\x86\kernel\amd_gart_64.c |
Create Date:2022-07-27 09:51:42 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Map multiple scatterlist entries continuous into the first.
函数原型:static int __dma_map_cont(struct device *dev, struct scatterlist *start, int nelems, struct scatterlist *sout, unsigned long pages)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
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 | 如果iommu_start恒等于负1则返回:负1 |
339 | phys_addr等于dma_address |
344 | dma_address加等于iommu_page乘PAGE_SIZE加offset |
345 | dma_length等于length |
346 | 否则 |
347 | dma_length加等于length |
351 | pages等于iommu_num_pages(offset, length, PAGE_SIZE) |
358 | BUG_ON(iommu_page - iommu_start != pages) |
360 | 返回:0 |
名称 | 描述 |
---|---|
dma_map_cont |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |