Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\dma-mapping.h Create Date:2022-07-28 05:51:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dma_sync_sg_for_device

Proto:static inline void dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction dir)

Type:void

Parameter:

TypeParameterName
struct device *dev
struct scatterlist *sg
intnelems
enum dma_data_directiondir
422  ops = get_dma_ops(dev)
424  BUG_ON(!valid_dma_direction(dir))
425  If dma_is_direct(ops) Then dma_direct_sync_sg_for_device(dev, sg, nelems, dir)
427  Else if sync_sg_for_device Then sync_sg_for_device(dev, sg, nelems, dir)
429  debug_dma_sync_sg_for_device(dev, sg, nelems, dir)