函数逻辑报告 |
Source Code:kernel\dma\swiotlb.c |
Create Date:2022-07-27 11:35:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Bounce: copy the swiotlb buffer from or back to the original dma location
函数原型:static void swiotlb_bounce(phys_addr_t orig_addr, phys_addr_t tlb_addr, size_t size, enum dma_data_direction dir)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
phys_addr_t | orig_addr | |
phys_addr_t | tlb_addr | |
size_t | size | |
enum dma_data_direction | dir |
414 | 如果PageHighMem(pfn_to_page(pfn))则 |
418 | sz等于0 |
422 | sz等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(size_t, PAGE_SIZE - offset, size) |
424 | local_irq_save(flags) |
425 | buffer等于kmap_atomic(pfn_to_page(pfn)) |
430 | Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(buffer) |
431 | local_irq_restore(flags) |
434 | pfn自加 |
436 | offset等于0 |
438 | 否则如果dir恒等于DMA_TO_DEVICE则 |
440 | 否则 |
名称 | 描述 |
---|---|
swiotlb_tbl_map_single | |
swiotlb_tbl_unmap_single | lb_addr is the physical address of the bounce buffer to unmap. |
swiotlb_tbl_sync_single |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |