Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__dma_direct_optimal_gfp_mask

Proto:static gfp_t __dma_direct_optimal_gfp_mask(struct device *dev, u64 dma_mask, u64 *phys_limit)

Type:gfp_t

Parameter:

TypeParameterName
struct device *dev
u64dma_mask
u64 *phys_limit
62  dma_limit = min_not_zero - return the minimum that is _not_ zero, unless both are zero*@x: value1*@y: value2(dma_mask, upstream dma constraint )
64  If force_dma_unencrypted(dev) Then phys_limit = __dma_to_phys(dev, dma_limit)
66  Else phys_limit = dma_to_phys(dev, dma_limit)
77  If phys_limit <= 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.) Then Return GFP_DMA
79  If phys_limit <= DMA_BIT_MASK(32) Then Return GFP_DMA32
81  Return 0
Caller
NameDescribe
__dma_direct_alloc_pages