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:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__phys_to_dma

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
16  dev_addr = paddr
18  Return dev_addr - (dma_pfn_offset << PAGE_SHIFT determines the page size )
Caller
NameDescribe
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.