Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dma_direct_supported

Proto:int dma_direct_supported(struct device *dev, u64 mask)

Type:int

Parameter:

TypeParameterName
struct device *dev
u64mask
477  min_mask = duplicated to the one in bootmem.h - 1 << PAGE_SHIFT determines the page size
485  If mask >= DMA_BIT_MASK(32) Then Return 1
493  If IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_ZONE_DMA) Then min_mask = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u64, min_mask, DMA_BIT_MASK(Most architectures use ZONE_DMA for the first 16 Megabytes, but some use it* it for entirely different regions. In that case the arch code needs to* override the variable below for dma-direct to work properly.))
495  Return mask >= __phys_to_dma(dev, min_mask)