函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\dma\debug.c Create Date:2022-07-27 11:35:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:check_sync

函数原型:static void check_sync(struct device *dev, struct dma_debug_entry *ref, bool to_cpu)

返回类型:void

参数:

类型参数名称
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  如果非entry
1150  转到:out
1153  如果size大于size
1163  如果direction恒等于DMA_BIDIRECTIONAL则转到:out
1166  如果direction不等于direction
1176  如果to_cpudirection不等于DMA_FROM_DEVICEdirection不等于DMA_TO_DEVICE
1186  如果非to_cpudirection不等于DMA_TO_DEVICEdirection不等于DMA_FROM_DEVICE
1196  如果sg_call_entstype恒等于dma_debug_sgsg_call_ents不等于sg_call_ents
1204  out :
1205  Give up exclusive access to the hash bucket
调用者
名称描述
debug_dma_sync_single_for_cpu
debug_dma_sync_single_for_device
debug_dma_sync_sg_for_cpu
debug_dma_sync_sg_for_device