Lines Matching refs:size
124 int count = len > max ? max : len, size = 1; in zpci_get_max_write_size() local
126 while (!(src & 0x1) && !(dst & 0x1) && ((size << 1) <= count)) { in zpci_get_max_write_size()
129 size = size << 1; in zpci_get_max_write_size()
131 return size; in zpci_get_max_write_size()
140 int size, rc = 0; in zpci_memcpy_fromio() local
143 size = zpci_get_max_write_size((u64 __force) src, in zpci_memcpy_fromio()
145 req = ZPCI_CREATE_REQ(entry->fh, entry->bar, size); in zpci_memcpy_fromio()
146 rc = zpci_read_single(req, dst, offset, size); in zpci_memcpy_fromio()
149 offset += size; in zpci_memcpy_fromio()
150 dst += size; in zpci_memcpy_fromio()
151 n -= size; in zpci_memcpy_fromio()
161 int size, rc = 0; in zpci_memcpy_toio() local
167 size = zpci_get_max_write_size((u64 __force) dst, in zpci_memcpy_toio()
169 req = ZPCI_CREATE_REQ(entry->fh, entry->bar, size); in zpci_memcpy_toio()
171 if (size > 8) /* main path */ in zpci_memcpy_toio()
174 rc = zpci_write_single(req, src, offset, size); in zpci_memcpy_toio()
177 offset += size; in zpci_memcpy_toio()
178 src += size; in zpci_memcpy_toio()
179 n -= size; in zpci_memcpy_toio()