Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\dma-mapping.h Create Date:2022-07-28 05:51:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Similar to the above, except it deals with the case where the device* does not have dev->dma_mask appropriately setup.

Proto:static inline int dma_coerce_mask_and_coherent(struct device *dev, u64 mask)

Type:int

Parameter:

TypeParameterName
struct device *dev
u64mask
683  dma mask (if dma'able device) = Like dma_mask, but for alloc_coherent mappings as not all hardware supports 64 bit addresses for consistent allocations such descriptors.
684  Return Set both the DMA mask and the coherent DMA mask to the same thing.* Note that we don't check the return value from dma_set_coherent_mask()* as the DMA API guarantees that the coherent DMA mask can be set to* the same or smaller than the streaming DMA mask.