Function report |
Source Code:kernel\dma\debug.c |
Create Date:2022-07-28 10:35:15 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:debug_dma_map_page
Proto:void debug_dma_map_page(struct device *dev, struct page *page, size_t offset, size_t size, int direction, dma_addr_t dma_addr)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct device * | dev | |
struct page * | page | |
size_t | offset | |
size_t | size | |
int | direction | |
dma_addr_t | dma_addr |
1255 | If Value for the false possibility is greater at compile time(dma_debug_disabled()) Then Return |
1258 | If dma_mapping_error(dev, dma_addr) Then Return |
1261 | entry = struct dma_entry allocator* The next two functions implement the allocator for* struct dma_debug_entries. |
1262 | If Not entry Then Return |
1266 | type = dma_debug_single |
1267 | pfn = page_to_pfn(page) |
1272 | map_err_type = MAP_ERR_NOT_CHECKED |
1274 | check_for_stack(dev, page, offset) |
1276 | If Not PageHighMem(page) Then |
1277 | addr = page_address(page) + offset |
1279 | check_for_illegal_area(dev, addr, size) |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |