Lines Matching defs:src
74 static inline int zpci_write_single(volatile void __iomem *dst, const void *src,
81 val = (u64) *((u8 *) src);
84 val = (u64) *((u16 *) src);
87 val = (u64) *((u32 *) src);
90 val = (u64) *((u64 *) src);
99 static inline int zpci_read_single(void *dst, const volatile void __iomem *src,
105 cc = zpci_load(&data, src, len);
127 int zpci_write_block(volatile void __iomem *dst, const void *src,
130 static inline int zpci_get_max_io_size(u64 src, u64 dst, int len, int max)
136 if (IS_ALIGNED(src, 8) && IS_ALIGNED(dst, 8) && IS_ALIGNED(size, 8))
145 const volatile void __iomem *src,
151 size = zpci_get_max_io_size((u64 __force) src,
154 rc = zpci_read_single(dst, src, size);
157 src += size;
165 const void *src, unsigned long n)
169 if (!src)
174 (u64) src, n,
177 rc = zpci_write_block(dst, src, size);
179 rc = zpci_write_single(dst, src, size);
182 src += size;
192 u8 *src = kmalloc(count, GFP_KERNEL);
195 if (src == NULL)
197 memset(src, val, count);
199 rc = zpci_memcpy_toio(dst, src, count);
200 kfree(src);