Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\dma\debug.c Create Date:2022-07-28 10:35:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:debug_dma_sync_sg_for_cpu

Proto:void debug_dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, int direction)

Type:void

Parameter:

TypeParameterName
struct device *dev
struct scatterlist *sg
intnelems
intdirection
1578  mapped_ents = 0
1580  If Value for the false possibility is greater at compile time(dma_debug_disabled()) Then Return
1585  struct dma_debug_entry ref = {type = dma_debug_sg, dev = dev, pfn = page_to_pfn(sg_page(s)), offset = offset, 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), size = sg_dma_len(s), direction = direction, sg_call_ents = nelems, }
1596  If Not i Then mapped_ents = get_nr_mapped_entries(dev, & ref)
1599  If i >= mapped_ents Then Break
1602  check_sync(dev, & ref, true)