Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dma_declare_coherent_memory

Proto:int dma_declare_coherent_memory(struct device *dev, phys_addr_t phys_addr, dma_addr_t device_addr, size_t size)

Type:int

Parameter:

TypeParameterName
struct device *dev
phys_addr_tphys_addr
dma_addr_tdevice_addr
size_tsize
116  ret = dma_init_coherent_memory(phys_addr, device_addr, size, & mem)
117  If ret Then Return ret
120  ret = dma_assign_coherent_memory(dev, mem)
121  If ret Then dma_release_coherent_memory(mem)
123  Return ret