Lines Matching +full:dma +full:- +full:mem
1 /* SPDX-License-Identifier: GPL-2.0 */
27 #define IS_SMC(pinfo) (pinfo->flags & FLAG_SMC)
28 #define IS_DISCARDING(pinfo) (pinfo->flags & FLAG_DISCARDING)
115 u32 mem = (u32)pinfo->mem_addr; in cpu2cpm_addr() local
117 if (likely(val >= mem && val < mem + pinfo->mem_size)) { in cpu2cpm_addr()
118 offset = val - mem; in cpu2cpm_addr()
119 return pinfo->dma_addr + offset; in cpu2cpm_addr()
131 u32 dma = (u32)pinfo->dma_addr; in cpm2cpu_addr() local
133 if (likely(val >= dma && val < dma + pinfo->mem_size)) { in cpm2cpu_addr()
134 offset = val - dma; in cpm2cpu_addr()
135 return pinfo->mem_addr + offset; in cpm2cpu_addr()