函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\dma-mapping.h Create Date:2022-07-27 06:51:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Set both the DMA mask and the coherent DMA mask to the same thing.* Note that we don't check the return value from dma_set_coherent_mask()* as the DMA API guarantees that the coherent DMA mask can be set to* the same or smaller than the streaming DMA mask.

函数原型:static inline int dma_set_mask_and_coherent(struct device *dev, u64 mask)

返回类型:int

参数:

类型参数名称
struct device *dev
u64mask
671  rc等于dma_set_mask(dev, mask)
672  如果rc恒等于0则dma_set_coherent_mask(dev, mask)
674  返回:rc
调用者
名称描述
dma_coerce_mask_and_coherentSimilar to the above, except it deals with the case where the device* does not have dev->dma_mask appropriately setup.