函数逻辑报告 |
Source Code:kernel\dma\debug.c |
Create Date:2022-07-27 11:35:08 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:debug_dma_map_sg
函数原型:void debug_dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, int mapped_ents, int direction)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct device * | dev | |
struct scatterlist * | sg | |
int | nents | |
int | mapped_ents | |
int | direction |
1348 | 如果此条件成立可能性小(为编译器优化)(dma_debug_disabled())则返回 |
1352 | entry等于struct dma_entry allocator* The next two functions implement the allocator for* struct dma_debug_entries. |
1353 | 如果非entry则返回 |
1356 | type等于dma_debug_sg |
1358 | pfn等于page_to_pfn(sg_page(s)) |
1359 | offset等于offset, size等于sg_dma_len(s) |
1361 | dev_addr等于These macros should be used after a dma_map_sg call has been done* to get bus addresses of each of the SG entries and their lengths(s) |
1363 | sg_call_ents等于nents |
1364 | sg_mapped_ents等于mapped_ents |
1366 | check_for_stack(dev, sg_page(s), offset) |
1368 | 如果非PageHighMem(sg_page(s))则 |
1369 | check_for_illegal_area(dev, 返回SG虚拟地址入口, sg_dma_len(s)) |
1372 | check_sg_segment(dev, s) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |