mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 16:33:17 +00:00
Give the basic phys_to_dma() and dma_to_phys() helpers a __-prefix and add the memory encryption mask to the non-prefixed versions. Use the __-prefixed versions directly instead of clearing the mask again in various places. Tested-by: Tom Lendacky <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Thomas Gleixner <[email protected]> Cc: David Woodhouse <[email protected]> Cc: Joerg Roedel <[email protected]> Cc: Jon Mason <[email protected]> Cc: Konrad Rzeszutek Wilk <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Muli Ben-Yehuda <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
10 lines
333 B
C
10 lines
333 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef ASM_X86_DMA_DIRECT_H
|
|
#define ASM_X86_DMA_DIRECT_H 1
|
|
|
|
bool dma_capable(struct device *dev, dma_addr_t addr, size_t size);
|
|
dma_addr_t __phys_to_dma(struct device *dev, phys_addr_t paddr);
|
|
phys_addr_t __dma_to_phys(struct device *dev, dma_addr_t daddr);
|
|
|
|
#endif /* ASM_X86_DMA_DIRECT_H */
|