Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:check_sync

Proto:static void check_sync(struct device *dev, struct dma_debug_entry *ref, bool to_cpu)

Type:void

Parameter:

TypeParameterName
struct device *dev
struct dma_debug_entry *ref
boolto_cpu
1141  bucket = Request exclusive access to a hash bucket for a given dma_debug_entry.
1143  entry = bucket_find_contain( & bucket, ref, & flags)
1145  If Not entry Then
1150  Go to out
1153  If size > size Then
1163  If direction == DMA_BIDIRECTIONAL Then Go to out
1166  If direction != direction Then
1176  If to_cpu && direction != DMA_FROM_DEVICE && direction != DMA_TO_DEVICE Then
1186  If Not to_cpu && direction != DMA_TO_DEVICE && direction != DMA_FROM_DEVICE Then
1196  If sg_call_ents && type == dma_debug_sg && sg_call_ents != sg_call_ents Then
1204  out :
1205  Give up exclusive access to the hash bucket
Caller
NameDescribe
debug_dma_sync_single_for_cpu
debug_dma_sync_single_for_device
debug_dma_sync_sg_for_cpu
debug_dma_sync_sg_for_device