Lines Matching +full:cpm +full:- +full:command
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Driver for CPM (SCC/SMC) serial ports
28 #define IS_SMC(pinfo) (pinfo->flags & FLAG_SMC)
73 /* value to combine with opcode to form cpm command */
74 u32 command; member
86 u32 mem = (u32)pinfo->mem_addr; in cpu2cpm_addr()
88 if (likely(val >= mem && val < mem + pinfo->mem_size)) { in cpu2cpm_addr()
89 offset = val - mem; in cpu2cpm_addr()
90 return pinfo->dma_addr + offset; in cpu2cpm_addr()
102 u32 dma = (u32)pinfo->dma_addr; in cpm2cpu_addr()
104 if (likely(val >= dma && val < dma + pinfo->mem_size)) { in cpm2cpu_addr()
105 offset = val - dma; in cpm2cpu_addr()
106 return pinfo->mem_addr + offset; in cpm2cpu_addr()