函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__phys_to_dma

函数原型:static inline dma_addr_t __phys_to_dma(struct device *dev, phys_addr_t paddr)

返回类型:dma_addr_t

参数:

类型参数名称
struct device *dev
phys_addr_tpaddr
16  dev_addr等于paddr
18  返回:dev_addrdma_pfn_offset左移PAGE_SHIFT determines the page size 位的值
调用者
名称描述
phys_to_dma_direct
dma_direct_alloc_pages
dma_direct_supported
swiotlb_mapCreate a swiotlb mapping for the buffer at @phys, and in case of DMAing* to the device copy the data into it as well.
phys_to_dmaIf 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