函数逻辑报告 |
Source Code:arch\x86\kernel\amd_gart_64.c |
Create Date:2022-07-27 09:51:46 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:DMA map all entries in a scatterlist.* Merge chunks that have page aligned sizes into a continuous mapping.
函数原型:static int gart_map_sg(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dir, unsigned long attrs)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct device * | dev | |
struct scatterlist * | sg | |
int | nents | |
enum dma_data_direction | dir | |
unsigned long | attrs |
384 | need等于0 |
385 | pages等于0 |
389 | 如果nents恒等于0则返回:0 |
392 | out等于0 |
393 | start等于0 |
396 | seg_size等于0 |
398 | ps = NULL |
401 | addr等于返回SG物理地址入口 |
403 | dma_address等于addr |
406 | nextneed等于need_iommu(dev, addr, length) |
415 | 如果非iommu_merge或非nextneed或非need或offset或length加seg_size大于max_seg_size或offset加length的和取模PAGE_SIZE则 |
433 | pages加等于iommu_num_pages(offset, length, PAGE_SIZE) |
438 | out自加 |
441 | sgmap等于 返回下一个散列表的条目 |
442 | dma_length等于0 |
444 | 返回:out |
446 | error : |
451 | 如果force_iommu或iommu_merge则 |
456 | 如果panic_on_overflow则panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns. |
459 | iommu_full(dev, pages << PAGE_SHIFT determines the page size , dir) |
462 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |