函数逻辑报告 |
Source Code:arch\x86\kernel\amd_gart_64.c |
Create Date:2022-07-27 09:51:40 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Fallback for dma_map_sg in case of overflow
函数原型:static int dma_map_sg_nonforce(struct device *dev, struct scatterlist *sg, int nents, int dir)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct device * | dev | |
| struct scatterlist * | sg | |
| int | nents | |
| int | dir |
| 304 | addr等于返回SG物理地址入口 |
| 306 | 如果nonforced_iommu(dev, addr, length)则 |
| 307 | addr等于Map a single continuous physical area into the IOMMU.* Caller needs to check if the iommu is needed and flush. |
| 308 | 如果addr恒等于DMA_MAPPING_ERROR则 |
| 316 | dma_address等于addr |
| 317 | dma_length等于length |
| 321 | 返回:nents |
| 名称 | 描述 |
|---|---|
| gart_map_sg | DMA map all entries in a scatterlist.* Merge chunks that have page aligned sizes into a continuous mapping. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |