Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\dma\debug.c Create Date:2022-07-28 10:35:32
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_device

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

Type:void

Parameter:

TypeParameterName
struct device *dev
struct scatterlist *sg
intnelems
intdirection
1611  mapped_ents = 0
1613  If Value for the false possibility is greater at compile time(dma_debug_disabled()) Then Return
1618  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, }
1628  If Not i Then mapped_ents = get_nr_mapped_entries(dev, & ref)
1631  If i >= mapped_ents Then Break
1634  check_sync(dev, & ref, false)