Lines Matching refs:req
35 u64 req = ZPCI_CREATE_REQ(entry->fh, entry->bar, LENGTH); \
39 rc = zpci_load(&data, req, ZPCI_OFFSET(addr)); \
50 u64 req = ZPCI_CREATE_REQ(entry->fh, entry->bar, LENGTH); \
53 zpci_store(data, req, ZPCI_OFFSET(addr)); \
65 static inline int zpci_write_single(u64 req, const u64 *data, u64 offset, u8 len) in zpci_write_single() argument
86 return zpci_store(val, req, offset); in zpci_write_single()
89 static inline int zpci_read_single(u64 req, u64 *dst, u64 offset, u8 len) in zpci_read_single() argument
94 cc = zpci_load(&data, req, offset); in zpci_read_single()
116 static inline int zpci_write_block(u64 req, const u64 *data, u64 offset) in zpci_write_block() argument
118 return zpci_store_block(data, req, offset); in zpci_write_block()
138 u64 req, offset = ZPCI_OFFSET(src); in zpci_memcpy_fromio() local
143 req = ZPCI_CREATE_REQ(entry->fh, entry->bar, size); in zpci_memcpy_fromio()
144 rc = zpci_read_single(req, dst, offset, size); in zpci_memcpy_fromio()
158 u64 req, offset = ZPCI_OFFSET(dst); in zpci_memcpy_toio() local
166 req = ZPCI_CREATE_REQ(entry->fh, entry->bar, size); in zpci_memcpy_toio()
169 rc = zpci_write_block(req, src, offset); in zpci_memcpy_toio()
171 rc = zpci_write_single(req, src, offset, size); in zpci_memcpy_toio()