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

Name:dma_capable

Proto:static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size, bool is_ram)

Type:bool

Parameter:

TypeParameterName
struct device *dev
dma_addr_taddr
size_tsize
boolis_ram
57  end = addr + size - 1
59  If Not dma_mask Then Return false
62  If is_ram && Not IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_ARCH_DMA_ADDR_T_64BIT) && min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(addr, end) < 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 Then Return false
66  Return end <= min_not_zero - return the minimum that is _not_ zero, unless both are zero*@x: value1*@y: value2( * dma_mask, bus_dma_limit)
Caller
NameDescribe
need_iommu
nonforced_iommu
dma_direct_possible
dma_direct_map_resource
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.