Debian Codegraph @

providers/vmw_pvrdma/pvrdma.h

raw symbols SCIP
1 /*
2 * Copyright (c) 2012-2016 VMware, Inc. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of EITHER the GNU General Public License
6 * version 2 as published by the Free Software Foundation or the BSD
7 * 2-Clause License. This program is distributed in the hope that it
8 * will be useful, but WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED
9 * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
10 * See the GNU General Public License version 2 for more details at
11 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program available in the file COPYING in the main
15 * directory of this source tree.
16 *
17 * The BSD 2-Clause License
18 *
19 * Redistribution and use in source and binary forms, with or
20 * without modification, are permitted provided that the following
21 * conditions are met:
22 *
23 * - Redistributions of source code must retain the above
24 * copyright notice, this list of conditions and the following
25 * disclaimer.
26 *
27 * - Redistributions in binary form must reproduce the above
28 * copyright notice, this list of conditions and the following
29 * disclaimer in the documentation and/or other materials
30 * provided with the distribution.
31 *
32 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
33 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
34 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
35 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
36 * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
37 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
38 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
39 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
40 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
41 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
42 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
43 * OF THE POSSIBILITY OF SUCH DAMAGE.
44 */
45
46 #ifndef __PVRDMA_H__
47 #define __PVRDMA_H__cxx . . $ `providers/vmw_pvrdma/pvrdma.h:47:9`!
48
49 #include <config.h>cxx . . $ `<file>/build/include/config.h`/
50 #include <endian.h>
51 #include <stdio.h>
52 #include <stdlib.h>
53 #include <string.h>
54 #include <pthread.h>
55 #include <unistd.h>
56 #include <sys/mman.h>
57 #include <infiniband/driver.h>cxx . . $ `<file>/libibverbs/driver.h`/
58 #include <ccan/minmax.h>cxx . . $ `<file>/ccan/minmax.h`/
59 #include <util/compiler.h>cxx . . $ `<file>/util/compiler.h`/
60
61 #include "pvrdma-abi.h"cxx . . $ `<file>/providers/vmw_pvrdma/pvrdma-abi.h`/
62 #include "pvrdma_ring.h"cxx . . $ `<file>/providers/vmw_pvrdma/pvrdma_ring.h`/
63
64 #define PFXcxx . . $ `providers/vmw_pvrdma/pvrdma.h:64:9`! "pvrdma: "
65
66 enumcxx . . $ $anonymous_type_101eae2b66fb15a3_0# {
67 PVRDMA_OPCODE_NOPcxx . . $ PVRDMA_OPCODE_NOP. = 0x00,
68 PVRDMA_OPCODE_SEND_INVALcxx . . $ PVRDMA_OPCODE_SEND_INVAL. = 0x01,
69 PVRDMA_OPCODE_RDMA_WRITEcxx . . $ PVRDMA_OPCODE_RDMA_WRITE. = 0x08,
70 PVRDMA_OPCODE_RDMA_WRITE_IMMcxx . . $ PVRDMA_OPCODE_RDMA_WRITE_IMM. = 0x09,
71 PVRDMA_OPCODE_SENDcxx . . $ PVRDMA_OPCODE_SEND. = 0x0a,
72 PVRDMA_OPCODE_SEND_IMMcxx . . $ PVRDMA_OPCODE_SEND_IMM. = 0x0b,
73 PVRDMA_OPCODE_LSOcxx . . $ PVRDMA_OPCODE_LSO. = 0x0e,
74 PVRDMA_OPCODE_RDMA_READcxx . . $ PVRDMA_OPCODE_RDMA_READ. = 0x10,
75 PVRDMA_OPCODE_ATOMIC_CScxx . . $ PVRDMA_OPCODE_ATOMIC_CS. = 0x11,
76 PVRDMA_OPCODE_ATOMIC_FAcxx . . $ PVRDMA_OPCODE_ATOMIC_FA. = 0x12,
77 PVRDMA_OPCODE_ATOMIC_MASK_CScxx . . $ PVRDMA_OPCODE_ATOMIC_MASK_CS. = 0x14,
78 PVRDMA_OPCODE_ATOMIC_MASK_FAcxx . . $ PVRDMA_OPCODE_ATOMIC_MASK_FA. = 0x15,
79 PVRDMA_OPCODE_BIND_MWcxx . . $ PVRDMA_OPCODE_BIND_MW. = 0x18,
80 PVRDMA_OPCODE_FMRcxx . . $ PVRDMA_OPCODE_FMR. = 0x19,
81 PVRDMA_OPCODE_LOCAL_INVALcxx . . $ PVRDMA_OPCODE_LOCAL_INVAL. = 0x1b,
82 PVRDMA_OPCODE_CONFIG_CMDcxx . . $ PVRDMA_OPCODE_CONFIG_CMD. = 0x1f,
83
84 PVRDMA_RECV_OPCODE_RDMA_WRITE_IMMcxx . . $ PVRDMA_RECV_OPCODE_RDMA_WRITE_IMM. = 0x00,
85 PVRDMA_RECV_OPCODE_SENDcxx . . $ PVRDMA_RECV_OPCODE_SEND. = 0x01,
86 PVRDMA_RECV_OPCODE_SEND_IMMcxx . . $ PVRDMA_RECV_OPCODE_SEND_IMM. = 0x02,
87 PVRDMA_RECV_OPCODE_SEND_INVALcxx . . $ PVRDMA_RECV_OPCODE_SEND_INVAL. = 0x03,
88
89 PVRDMA_CQE_OPCODE_ERRORcxx . . $ PVRDMA_CQE_OPCODE_ERROR. = 0x1e,
90 PVRDMA_CQE_OPCODE_RESIZEcxx . . $ PVRDMA_CQE_OPCODE_RESIZE. = 0x16,
91 };
92
93 enumcxx . . $ $anonymous_type_101eae2b66fb15a3_1# {
94 PVRDMA_WQE_CTRL_FENCEcxx . . $ PVRDMA_WQE_CTRL_FENCE. = 1 << 6,
95 PVRDMA_WQE_CTRL_CQ_UPDATEcxx . . $ PVRDMA_WQE_CTRL_CQ_UPDATE. = 3 << 2,
96 PVRDMA_WQE_CTRL_SOLICITcxx . . $ PVRDMA_WQE_CTRL_SOLICIT. = 1 << 1,
97 };
98
99 struct pvrdma_devicecxx . . $ pvrdma_device# {
100 struct verbs_devicecxx . . $ verbs_device# ibv_devcxx . . $ pvrdma_device#ibv_dev.;
101 int page_sizecxx . . $ pvrdma_device#page_size.;
102 int abi_versioncxx . . $ pvrdma_device#abi_version.;
103 };
104
105 struct pvrdma_contextcxx . . $ pvrdma_context# {
106 struct verbs_contextcxx . . $ verbs_context# ibv_ctxcxx . . $ pvrdma_context#ibv_ctx.;
107 void *uarcxx . . $ pvrdma_context#uar.;
108 pthread_spinlock_tcxx . . $ pthread_spinlock_t# uar_lockcxx . . $ pvrdma_context#uar_lock.;
109 int max_qp_wrcxx . . $ pvrdma_context#max_qp_wr.;
110 int max_sgecxx . . $ pvrdma_context#max_sge.;
111 int max_cqecxx . . $ pvrdma_context#max_cqe.;
112 struct pvrdma_qpcxx . . $ pvrdma_qp# **qp_tblcxx . . $ pvrdma_context#qp_tbl.;
113 };
114
115 struct pvrdma_bufcxx . . $ pvrdma_buf# {
116 void *bufcxx . . $ pvrdma_buf#buf.;
117 size_t lengthcxx . . $ pvrdma_buf#length.;
118 };
119
120 struct pvrdma_pdcxx . . $ pvrdma_pd# {
121 struct ibv_pdcxx . . $ ibv_pd# ibv_pdcxx . . $ pvrdma_pd#ibv_pd.;
122 uint32_tcxx . . $ uint32_t# pdncxx . . $ pvrdma_pd#pdn.;
123 };
124
125 struct pvrdma_cqcxx . . $ pvrdma_cq# {
126 struct ibv_cqcxx . . $ ibv_cq# ibv_cqcxx . . $ pvrdma_cq#ibv_cq.;
127 struct pvrdma_bufcxx . . $ pvrdma_buf# bufcxx . . $ pvrdma_cq#buf.;
128 struct pvrdma_bufcxx . . $ pvrdma_buf# resize_bufcxx . . $ pvrdma_cq#resize_buf.;
129 pthread_spinlock_tcxx . . $ pthread_spinlock_t# lockcxx . . $ pvrdma_cq#lock.;
130 struct pvrdma_ring_statecxx . . $ pvrdma_ring_state# *ring_statecxx . . $ pvrdma_cq#ring_state.;
131 uint32_tcxx . . $ uint32_t# cqe_cntcxx . . $ pvrdma_cq#cqe_cnt.;
132 uint32_tcxx . . $ uint32_t# offsetcxx . . $ pvrdma_cq#offset.;
133 uint32_tcxx . . $ uint32_t# cqncxx . . $ pvrdma_cq#cqn.;
134 };
135
136 struct pvrdma_srqcxx . . $ pvrdma_srq# {
137 struct ibv_srqcxx . . $ ibv_srq# ibv_srqcxx . . $ pvrdma_srq#ibv_srq.;
138 struct pvrdma_bufcxx . . $ pvrdma_buf# bufcxx . . $ pvrdma_srq#buf.;
139 pthread_spinlock_tcxx . . $ pthread_spinlock_t# lockcxx . . $ pvrdma_srq#lock.;
140 uint64_tcxx . . $ uint64_t# *wridcxx . . $ pvrdma_srq#wrid.;
141 uint32_tcxx . . $ uint32_t# srqncxx . . $ pvrdma_srq#srqn.;
142 int wqe_cntcxx . . $ pvrdma_srq#wqe_cnt.;
143 int wqe_sizecxx . . $ pvrdma_srq#wqe_size.;
144 int max_gscxx . . $ pvrdma_srq#max_gs.;
145 int wqe_shiftcxx . . $ pvrdma_srq#wqe_shift.;
146 struct pvrdma_ring_statecxx . . $ pvrdma_ring_state# *ring_statecxx . . $ pvrdma_srq#ring_state.;
147 uint16_tcxx . . $ uint16_t# countercxx . . $ pvrdma_srq#counter.;
148 int offsetcxx . . $ pvrdma_srq#offset.;
149 };
150
151 struct pvrdma_wqcxx . . $ pvrdma_wq# {
152 uint64_tcxx . . $ uint64_t# *wridcxx . . $ pvrdma_wq#wrid.;
153 pthread_spinlock_tcxx . . $ pthread_spinlock_t# lockcxx . . $ pvrdma_wq#lock.;
154 int wqe_cntcxx . . $ pvrdma_wq#wqe_cnt.;
155 int wqe_sizecxx . . $ pvrdma_wq#wqe_size.;
156 struct pvrdma_ringcxx . . $ pvrdma_ring# *ring_statecxx . . $ pvrdma_wq#ring_state.;
157 int max_gscxx . . $ pvrdma_wq#max_gs.;
158 int wqe_shiftcxx . . $ pvrdma_wq#wqe_shift.;
159 int offsetcxx . . $ pvrdma_wq#offset.;
160 };
161
162 struct pvrdma_qpcxx . . $ pvrdma_qp# {
163 struct ibv_qpcxx . . $ ibv_qp# ibv_qpcxx . . $ pvrdma_qp#ibv_qp.;
164 struct pvrdma_bufcxx . . $ pvrdma_buf# rbufcxx . . $ pvrdma_qp#rbuf.;
165 struct pvrdma_bufcxx . . $ pvrdma_buf# sbufcxx . . $ pvrdma_qp#sbuf.;
166 int max_inline_datacxx . . $ pvrdma_qp#max_inline_data.;
167 int buf_sizecxx . . $ pvrdma_qp#buf_size.;
168 __be32cxx . . $ __be32# sq_signal_bitscxx . . $ pvrdma_qp#sq_signal_bits.;
169 int sq_spare_wqescxx . . $ pvrdma_qp#sq_spare_wqes.;
170 struct pvrdma_wqcxx . . $ pvrdma_wq# sqcxx . . $ pvrdma_qp#sq.;
171 struct pvrdma_wqcxx . . $ pvrdma_wq# rqcxx . . $ pvrdma_qp#rq.;
172 int is_srqcxx . . $ pvrdma_qp#is_srq.;
173 uint32_tcxx . . $ uint32_t# qp_handlecxx . . $ pvrdma_qp#qp_handle.;
174 };
175
176 struct pvrdma_ahcxx . . $ pvrdma_ah# {
177 struct ibv_ahcxx . . $ ibv_ah# ibv_ahcxx . . $ pvrdma_ah#ibv_ah.;
178 struct pvrdma_avcxx . . $ pvrdma_av# avcxx . . $ pvrdma_ah#av.;
179 };
180
181 static inline unsigned long aligncxx . . $ align(80bad76eed2d2579).(unsigned long val, unsigned long align)
182 {
183 return (val + align - 1) & ~(align - 1);
184 }
185
186 static inline int align_next_power2cxx . . $ align_next_power2(7864480464b09eea).(int size)
187 {
188 int val = 1;
189
190 while (val < size)
191 val <<= 1;
192
193 return val;
194 }
195
196 static inline struct pvrdma_devicecxx . . $ pvrdma_device# *to_vdevcxx . . $ to_vdev(558c0ed9fb116a23).(struct ibv_devicecxx . . $ ibv_device# *ibdev)
197 {
198 return container_ofcxx . . $ pvrdma_device#ibv_dev.(ibdev, struct pvrdma_device, ibv_dev.device);
199 }
200
201 static inline struct pvrdma_contextcxx . . $ pvrdma_context# *to_vctxcxx . . $ to_vctx(1f5e75ddebf1e3e).(struct ibv_contextcxx . . $ ibv_context# *ibctx)
202 {
203 return container_ofcxx . . $ `ccan/container_of.h:34:9`!(ibctx, struct pvrdma_context, ibv_ctx.context);
204 }
205
206 static inline struct pvrdma_pdcxx . . $ pvrdma_pd# *to_vpdcxx . . $ to_vpd(9b38f81e2b1ce74).(struct ibv_pdcxx . . $ ibv_pd# *ibpd)
207 {
208 return container_ofcxx . . $ pvrdma_pd#ibv_pd.(ibpd, struct pvrdma_pd, ibv_pd);
209 }
210
211 static inline struct pvrdma_cqcxx . . $ pvrdma_cq# *to_vcqcxx . . $ to_vcq(e9ca9458dfddee).(struct ibv_cqcxx . . $ ibv_cq# *ibcq)
212 {
213 return container_ofcxx . . $ pvrdma_cq#ibv_cq.(ibcq, struct pvrdma_cq, ibv_cq);
214 }
215
216 static inline struct pvrdma_srqcxx . . $ pvrdma_srq# *to_vsrqcxx . . $ to_vsrq(6156790ceaaef8a3).(struct ibv_srqcxx . . $ ibv_srq# *ibsrq)
217 {
218 return container_ofcxx . . $ pvrdma_srq#ibv_srq.(ibsrq, struct pvrdma_srq, ibv_srq);
219 }
220
221 static inline struct pvrdma_qpcxx . . $ pvrdma_qp# *to_vqpcxx . . $ to_vqp(587ba2913e91552d).(struct ibv_qpcxx . . $ ibv_qp# *ibqp)
222 {
223 return container_ofcxx . . $ pvrdma_qp#ibv_qp.(ibqp, struct pvrdma_qp, ibv_qp);
224 }
225
226 static inline struct pvrdma_ahcxx . . $ pvrdma_ah# *to_vahcxx . . $ to_vah(98a34c7721e86b4c).(struct ibv_ahcxx . . $ ibv_ah# *ibah)
227 {
228 return container_ofcxx . . $ `ccan/container_of.h:34:9`!(ibah, struct pvrdma_ah, ibv_ah);
229 }
230
231 static inline void pvrdma_write_uar_qpcxx . . $ pvrdma_write_uar_qp(67abb4dd43ac34c5).(void *uar, unsigned value)
232 {
233 *(__le32cxx . . $ __le32# *)(uar + PVRDMA_UAR_QP_OFFSETcxx . . $ `kernel-headers/rdma/vmw_pvrdma-abi.h:54:9`!) = htole32cxx . . $ `<external>/15855202785537844739/endian.h:45:11`!(value);
234 }
235
236 static inline void pvrdma_write_uar_cqcxx . . $ pvrdma_write_uar_cq(67abb4dd43ac34c5).(void *uar, unsigned value)
237 {
238 *(__le32cxx . . $ __le32# *)(uar + PVRDMA_UAR_CQ_OFFSETcxx . . $ `kernel-headers/rdma/vmw_pvrdma-abi.h:57:9`!) = htole32cxx . . $ __uint32_identity(2141b656ce2cc063).(value);
239 }
240
241 static inline void pvrdma_write_uar_srqcxx . . $ pvrdma_write_uar_srq(67abb4dd43ac34c5).(void *uar, unsigned int value)
242 {
243 *(__le32cxx . . $ __le32# *)(uar + PVRDMA_UAR_SRQ_OFFSETcxx . . $ `kernel-headers/rdma/vmw_pvrdma-abi.h:61:9`!) = htole32cxx . . $ __uint32_identity(2141b656ce2cc063).(value);
244 }
245
246 static inline int ibv_send_flags_to_pvrdmacxx . . $ ibv_send_flags_to_pvrdma(7864480464b09eea).(int flags)
247 {
248 return flags;
249 }
250
251 static inline enum pvrdma_wr_opcodecxx . . $ pvrdma_wr_opcode# ibv_wr_opcode_to_pvrdmacxx . . $ ibv_wr_opcode_to_pvrdma(8eca8a5da4a0b3d9).(
252 enum ibv_wr_opcodecxx . . $ ibv_wr_opcode# op)
253 {
254 return (enum pvrdma_wr_opcodecxx . . $ pvrdma_wr_opcode#)op;
255 }
256
257 static inline enum ibv_wc_statuscxx . . $ ibv_wc_status# pvrdma_wc_status_to_ibvcxx . . $ pvrdma_wc_status_to_ibv(c4f00bf639d50e93).(
258 enum pvrdma_wc_statuscxx . . $ pvrdma_wc_status# status)
259 {
260 return (enum ibv_wc_statuscxx . . $ ibv_wc_status#)status;
261 }
262
263 static inline enum ibv_wc_opcodecxx . . $ ibv_wc_opcode# pvrdma_wc_opcode_to_ibvcxx . . $ pvrdma_wc_opcode_to_ibv(87b45877d80ed09e).(
264 enum pvrdma_wc_opcodecxx . . $ pvrdma_wc_opcode# op)
265 {
266 return (enum ibv_wc_opcodecxx . . $ ibv_wc_opcode#)op;
267 }
268
269 static inline int pvrdma_wc_flags_to_ibvcxx . . $ pvrdma_wc_flags_to_ibv(7864480464b09eea).(int flags)
270 {
271 return flags;
272 }
273
274 int pvrdma_alloc_bufcxx . . $ pvrdma_alloc_buf(c0fb98a7867c47a).(struct pvrdma_bufcxx . . $ pvrdma_buf# *buf, size_t size, int page_size);
275 void pvrdma_free_bufcxx . . $ pvrdma_free_buf(e61cdbd67054e6ad).(struct pvrdma_bufcxx . . $ pvrdma_buf# *buf);
276
277 int pvrdma_query_devicecxx . . $ pvrdma_query_device(600f39d3ad8b999d).(struct ibv_contextcxx . . $ ibv_context# *context,
278 const struct ibv_query_device_ex_inputcxx . . $ ibv_query_device_ex_input# *input,
279 struct ibv_device_attr_excxx . . $ ibv_device_attr_ex# *attr, size_t attr_size);
280 int pvrdma_query_portcxx . . $ pvrdma_query_port(f4134cca67356677).(struct ibv_contextcxx . . $ ibv_context# *context, uint8_tcxx . . $ uint8_t# port,
281 struct ibv_port_attrcxx . . $ ibv_port_attr# *attr);
282
283 struct ibv_pdcxx . . $ ibv_pd# *pvrdma_alloc_pdcxx . . $ pvrdma_alloc_pd(12046b8d6aa086).(struct ibv_contextcxx . . $ ibv_context# *context);
284 int pvrdma_free_pdcxx . . $ pvrdma_free_pd(4f8183e190a1d873).(struct ibv_pdcxx . . $ ibv_pd# *pd);
285
286 struct ibv_mrcxx . . $ ibv_mr# *pvrdma_reg_mrcxx . . $ pvrdma_reg_mr(1705cf5ff6f324e3).(struct ibv_pdcxx . . $ ibv_pd# *pd, void *addr, size_t length,
287 uint64_tcxx . . $ uint64_t# hca_va, int access);
288 int pvrdma_dereg_mrcxx . . $ pvrdma_dereg_mr(6b7007a84e0fc558).(struct verbs_mrcxx . . $ verbs_mr# *mr);
289
290 struct ibv_cqcxx . . $ ibv_cq# *pvrdma_create_cqcxx . . $ pvrdma_create_cq(e75e1bd4290ebb9e).(struct ibv_contextcxx . . $ ibv_context# *context, int cqe,
291 struct ibv_comp_channelcxx . . $ ibv_comp_channel# *channel,
292 int comp_vector);
293 int pvrdma_alloc_cq_bufcxx . . $ pvrdma_alloc_cq_buf(31a2ad107df1a7ef).(struct pvrdma_devicecxx . . $ pvrdma_device# *dev, struct pvrdma_cqcxx . . $ pvrdma_cq# *cq,
294 struct pvrdma_bufcxx . . $ pvrdma_buf# *buf, int nent);
295 int pvrdma_destroy_cqcxx . . $ pvrdma_destroy_cq(c792dddc4b255f9b).(struct ibv_cqcxx . . $ ibv_cq# *cq);
296 int pvrdma_req_notify_cqcxx . . $ pvrdma_req_notify_cq(f1ac00dc805d1818).(struct ibv_cqcxx . . $ ibv_cq# *cq, int solicited);
297 int pvrdma_poll_cqcxx . . $ pvrdma_poll_cq(857ede731a5bae54).(struct ibv_cqcxx . . $ ibv_cq# *cq, int ne, struct ibv_wccxx . . $ ibv_wc# *wc);
298 void pvrdma_cq_eventcxx . . $ pvrdma_cq_event(74e3a3aa3f5c9a54).(struct ibv_cqcxx . . $ ibv_cq# *cq);
299 void pvrdma_cq_clean_intcxx . . $ pvrdma_cq_clean_int(775abba247ab16f1).(struct pvrdma_cqcxx . . $ pvrdma_cq# *cq, uint32_tcxx . . $ uint32_t# qp_handle);
300 void pvrdma_cq_cleancxx . . $ pvrdma_cq_clean(775abba247ab16f1).(struct pvrdma_cqcxx . . $ pvrdma_cq# *cq, uint32_tcxx . . $ uint32_t# qp_handle);
301 int pvrdma_get_outstanding_cqescxx . . $ pvrdma_get_outstanding_cqes(4eed73f342579824).(struct pvrdma_cqcxx . . $ pvrdma_cq# *cq);
302 void pvrdma_cq_resize_copy_cqescxx . . $ pvrdma_cq_resize_copy_cqes(c72c9591dbd8ce83).(struct pvrdma_cqcxx . . $ pvrdma_cq# *cq, void *buf,
303 int new_cqe);
304
305 struct ibv_qpcxx . . $ ibv_qp# *pvrdma_create_qpcxx . . $ pvrdma_create_qp(784fbaaaab3d3bdc).(struct ibv_pdcxx . . $ ibv_pd# *pd,
306 struct ibv_qp_init_attrcxx . . $ ibv_qp_init_attr# *attr);
307 int pvrdma_query_qpcxx . . $ pvrdma_query_qp(919f82671de84871).(struct ibv_qpcxx . . $ ibv_qp# *qp, struct ibv_qp_attrcxx . . $ ibv_qp_attr# *attr,
308 int attr_mask, struct ibv_qp_init_attrcxx . . $ ibv_qp_init_attr# *init_attr);
309 int pvrdma_modify_qpcxx . . $ pvrdma_modify_qp(e70e15b4f2cf5901).(struct ibv_qpcxx . . $ ibv_qp# *qp, struct ibv_qp_attrcxx . . $ ibv_qp_attr# *attr,
310 int attr_mask);
311 int pvrdma_destroy_qpcxx . . $ pvrdma_destroy_qp(eb82fc4ca8162189).(struct ibv_qpcxx . . $ ibv_qp# *qp);
312 void pvrdma_init_qp_indicescxx . . $ pvrdma_init_qp_indices(91e2ac82718866).(struct pvrdma_qpcxx . . $ pvrdma_qp# *qp);
313 void pvrdma_qp_init_sq_ownershipcxx . . $ pvrdma_qp_init_sq_ownership(91e2ac82718866).(struct pvrdma_qpcxx . . $ pvrdma_qp# *qp);
314 int pvrdma_post_sendcxx . . $ pvrdma_post_send(524541c024c974a4).(struct ibv_qpcxx . . $ ibv_qp# *ibqp, struct ibv_send_wrcxx . . $ ibv_send_wr# *wr,
315 struct ibv_send_wrcxx . . $ ibv_send_wr# **bad_wr);
316 int pvrdma_post_recvcxx . . $ pvrdma_post_recv(f21c02c428e4a8d5).(struct ibv_qpcxx . . $ ibv_qp# *ibqp, struct ibv_recv_wrcxx . . $ ibv_recv_wr# *wr,
317 struct ibv_recv_wrcxx . . $ ibv_recv_wr# **bad_wr);
318 void pvrdma_calc_sq_wqe_sizecxx . . $ pvrdma_calc_sq_wqe_size(8edba500fb0819c3).(struct ibv_qp_capcxx . . $ ibv_qp_cap# *cap, enum ibv_qp_typecxx . . $ ibv_qp_type# type,
319 struct pvrdma_qpcxx . . $ pvrdma_qp# *qp);
320 int pvrdma_alloc_qp_bufcxx . . $ pvrdma_alloc_qp_buf(881192965a289b1e).(struct pvrdma_devicecxx . . $ pvrdma_device# *dev, struct ibv_qp_capcxx . . $ ibv_qp_cap# *cap,
321 enum ibv_qp_typecxx . . $ ibv_qp_type# type, struct pvrdma_qpcxx . . $ pvrdma_qp# *qp);
322 void pvrdma_set_sq_sizescxx . . $ pvrdma_set_sq_sizes(f4b791384b4f9e03).(struct pvrdma_qpcxx . . $ pvrdma_qp# *qp, struct ibv_qp_capcxx . . $ ibv_qp_cap# *cap,
323 enum ibv_qp_typecxx . . $ ibv_qp_type# type);
324 struct pvrdma_qpcxx . . $ pvrdma_qp# *pvrdma_find_qpcxx . . $ pvrdma_find_qp(895770a905d9fddc).(struct pvrdma_contextcxx . . $ pvrdma_context# *ctx,
325 uint32_tcxx . . $ uint32_t# qpn);
326 int pvrdma_store_qpcxx . . $ pvrdma_store_qp(643d8a48a6b043f0).(struct pvrdma_contextcxx . . $ pvrdma_context# *ctx, uint32_tcxx . . $ uint32_t# qpn,
327 struct pvrdma_qpcxx . . $ pvrdma_qp# *qp);
328 void pvrdma_clear_qpcxx . . $ pvrdma_clear_qp(e70ec5867e1626dc).(struct pvrdma_contextcxx . . $ pvrdma_context# *ctx, uint32_tcxx . . $ uint32_t# qpn);
329
330 struct ibv_srqcxx . . $ ibv_srq# *pvrdma_create_srqcxx . . $ pvrdma_create_srq(3dc65caab49aca79).(struct ibv_pdcxx . . $ ibv_pd# *pd,
331 struct ibv_srq_init_attrcxx . . $ ibv_srq_init_attr# *attr);
332 int pvrdma_modify_srqcxx . . $ pvrdma_modify_srq(1d3011637b3fbc3d).(struct ibv_srqcxx . . $ ibv_srq# *srq, struct ibv_srq_attrcxx . . $ ibv_srq_attr# *attr,
333 int attr_mask);
334 int pvrdma_query_srqcxx . . $ pvrdma_query_srq(1676901f1962ceff).(struct ibv_srqcxx . . $ ibv_srq# *srq,
335 struct ibv_srq_attrcxx . . $ ibv_srq_attr# *attr);
336 int pvrdma_destroy_srqcxx . . $ pvrdma_destroy_srq(b5464b69af41f18d).(struct ibv_srqcxx . . $ ibv_srq# *srq);
337 int pvrdma_alloc_srq_bufcxx . . $ pvrdma_alloc_srq_buf(dc0114a010a3d443).(struct pvrdma_devicecxx . . $ pvrdma_device# *dev,
338 struct ibv_srq_attrcxx . . $ ibv_srq_attr# *attr,
339 struct pvrdma_srqcxx . . $ pvrdma_srq# *srq);
340 int pvrdma_post_srq_recvcxx . . $ pvrdma_post_srq_recv(972af4c2ff8c1d8f).(struct ibv_srqcxx . . $ ibv_srq# *ibsrq,
341 struct ibv_recv_wrcxx . . $ ibv_recv_wr# *wr,
342 struct ibv_recv_wrcxx . . $ ibv_recv_wr# **bad_wr);
343 void pvrdma_init_srq_queuecxx . . $ pvrdma_init_srq_queue(1b4c6dc151238f7f).(struct pvrdma_srqcxx . . $ pvrdma_srq# *srq);
344
345 struct ibv_ahcxx . . $ ibv_ah# *pvrdma_create_ahcxx . . $ pvrdma_create_ah(d8ebc3eb89debaba).(struct ibv_pdcxx . . $ ibv_pd# *pd, struct ibv_ah_attrcxx . . $ ibv_ah_attr# *attr);
346 int pvrdma_destroy_ahcxx . . $ pvrdma_destroy_ah(f0aba3fc303d55c9).(struct ibv_ahcxx . . $ ibv_ah# *ah);
347
348 int pvrdma_alloc_avcxx . . $ pvrdma_alloc_av(c7da76534f507aee).(struct pvrdma_pdcxx . . $ pvrdma_pd# *pd, struct ibv_ah_attrcxx . . $ ibv_ah_attr# *attr,
349 struct pvrdma_ahcxx . . $ pvrdma_ah# *ah);
350 void pvrdma_free_avcxx . . $ pvrdma_free_av(c231b6bead5d2c).(struct pvrdma_ahcxx . . $ pvrdma_ah# *ah);
351
352 #endif /* __PVRDMA_H__ */