Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\dma-direct.h Create Date:2022-07-28 07:43:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:If memory encryption is supported, phys_to_dma will set the memory encryption* bit in the DMA address, and dma_to_phys will clear it. The raw __phys_to_dma* and __dma_to_phys versions should only be used on non-encrypted memory for

Proto:static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr)

Type:dma_addr_t

Parameter:

TypeParameterName
struct device *dev
phys_addr_tpaddr
46  Return __sme_set(__phys_to_dma(dev, paddr))
Caller
NameDescribe
phys_to_dma_direct
dma_direct_alloc_pages
dma_direct_map_page