函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dma_capable

函数原型:static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size, bool is_ram)

返回类型:bool

参数:

类型参数名称
struct device *dev
dma_addr_taddr
size_tsize
boolis_ram
57  end等于addrsize减1
59  如果非dma_mask则返回:false
62  如果is_ram且非IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_ARCH_DMA_ADDR_T_64BIT)且两数取小(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则返回:false
66  返回:end小于等于min_not_zero - return the minimum that is _not_ zero, unless both are zero*@x: value1*@y: value2( * dma_mask, bus_dma_limit)
调用者
名称描述
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.