Lines Matching refs:dst
90 static inline int zpci_read_single(u64 req, u64 *dst, u64 offset, u8 len) in zpci_read_single() argument
101 *((u8 *) dst) = (u8) data; in zpci_read_single()
104 *((u16 *) dst) = (u16) data; in zpci_read_single()
107 *((u32 *) dst) = (u32) data; in zpci_read_single()
110 *((u64 *) dst) = (u64) data; in zpci_read_single()
122 static inline u8 zpci_get_max_write_size(u64 src, u64 dst, int len, int max) in zpci_get_max_write_size() argument
126 while (!(src & 0x1) && !(dst & 0x1) && ((size << 1) <= count)) { in zpci_get_max_write_size()
127 dst = dst >> 1; in zpci_get_max_write_size()
134 static inline int zpci_memcpy_fromio(void *dst, in zpci_memcpy_fromio() argument
144 (u64) dst, n, 8); in zpci_memcpy_fromio()
146 rc = zpci_read_single(req, dst, offset, size); in zpci_memcpy_fromio()
150 dst += size; in zpci_memcpy_fromio()
156 static inline int zpci_memcpy_toio(volatile void __iomem *dst, in zpci_memcpy_toio() argument
159 struct zpci_iomap_entry *entry = &zpci_iomap_start[ZPCI_IDX(dst)]; in zpci_memcpy_toio()
160 u64 req, offset = ZPCI_OFFSET(dst); in zpci_memcpy_toio()
167 size = zpci_get_max_write_size((u64 __force) dst, in zpci_memcpy_toio()
184 static inline int zpci_memset_io(volatile void __iomem *dst, in zpci_memset_io() argument
194 rc = zpci_memcpy_toio(dst, src, count); in zpci_memset_io()