Function report |
Source Code:kernel\dma\debug.c |
Create Date:2022-07-28 10:35:19 |
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_sg
Proto:void debug_dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, int mapped_ents, int direction)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct device * | dev | |
struct scatterlist * | sg | |
int | nents | |
int | mapped_ents | |
int | direction |
1348 | If Value for the false possibility is greater at compile time(dma_debug_disabled()) Then Return |
1352 | entry = struct dma_entry allocator* The next two functions implement the allocator for* struct dma_debug_entries. |
1353 | If Not entry Then Return |
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 | If Not PageHighMem(sg_page(s)) Then |
1372 | check_sg_segment(dev, s) |
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 |