Lines Matching refs:resp

51 				  struct ibv_get_context_resp *resp,
68 IBV_INIT_CMD_RESP(cmd, cmd_size, GET_CONTEXT, resp, resp_size);
74 VALGRIND_MAKE_MEM_DEFINED(resp, resp_size);
76 context->async_fd = resp->async_fd;
87 size_t cmd_size, struct ibv_get_context_resp *resp,
91 return ibv_cmd_get_context_v2(context, cmd, cmd_size, resp, resp_size);
93 IBV_INIT_CMD_RESP(cmd, cmd_size, GET_CONTEXT, resp, resp_size);
98 VALGRIND_MAKE_MEM_DEFINED(resp, resp_size);
100 context->async_fd = resp->async_fd;
101 context->num_comp_vectors = resp->num_comp_vectors;
111 struct ibv_query_device_resp resp;
113 IBV_INIT_CMD_RESP(cmd, cmd_size, QUERY_DEVICE, &resp, sizeof resp);
118 VALGRIND_MAKE_MEM_DEFINED(&resp, sizeof resp);
121 *raw_fw_ver = resp.fw_ver;
122 device_attr->node_guid = resp.node_guid;
123 device_attr->sys_image_guid = resp.sys_image_guid;
124 device_attr->max_mr_size = resp.max_mr_size;
125 device_attr->page_size_cap = resp.page_size_cap;
126 device_attr->vendor_id = resp.vendor_id;
127 device_attr->vendor_part_id = resp.vendor_part_id;
128 device_attr->hw_ver = resp.hw_ver;
129 device_attr->max_qp = resp.max_qp;
130 device_attr->max_qp_wr = resp.max_qp_wr;
131 device_attr->device_cap_flags = resp.device_cap_flags;
132 device_attr->max_sge = resp.max_sge;
133 device_attr->max_sge_rd = resp.max_sge_rd;
134 device_attr->max_cq = resp.max_cq;
135 device_attr->max_cqe = resp.max_cqe;
136 device_attr->max_mr = resp.max_mr;
137 device_attr->max_pd = resp.max_pd;
138 device_attr->max_qp_rd_atom = resp.max_qp_rd_atom;
139 device_attr->max_ee_rd_atom = resp.max_ee_rd_atom;
140 device_attr->max_res_rd_atom = resp.max_res_rd_atom;
141 device_attr->max_qp_init_rd_atom = resp.max_qp_init_rd_atom;
142 device_attr->max_ee_init_rd_atom = resp.max_ee_init_rd_atom;
143 device_attr->atomic_cap = resp.atomic_cap;
144 device_attr->max_ee = resp.max_ee;
145 device_attr->max_rdd = resp.max_rdd;
146 device_attr->max_mw = resp.max_mw;
147 device_attr->max_raw_ipv6_qp = resp.max_raw_ipv6_qp;
148 device_attr->max_raw_ethy_qp = resp.max_raw_ethy_qp;
149 device_attr->max_mcast_grp = resp.max_mcast_grp;
150 device_attr->max_mcast_qp_attach = resp.max_mcast_qp_attach;
151 device_attr->max_total_mcast_qp_attach = resp.max_total_mcast_qp_attach;
152 device_attr->max_ah = resp.max_ah;
153 device_attr->max_fmr = resp.max_fmr;
154 device_attr->max_map_per_fmr = resp.max_map_per_fmr;
155 device_attr->max_srq = resp.max_srq;
156 device_attr->max_srq_wr = resp.max_srq_wr;
157 device_attr->max_srq_sge = resp.max_srq_sge;
158 device_attr->max_pkeys = resp.max_pkeys;
159 device_attr->local_ca_ack_delay = resp.local_ca_ack_delay;
160 device_attr->phys_port_cnt = resp.phys_port_cnt;
169 struct ibv_query_port_resp resp;
171 IBV_INIT_CMD_RESP(cmd, cmd_size, QUERY_PORT, &resp, sizeof resp);
178 VALGRIND_MAKE_MEM_DEFINED(&resp, sizeof resp);
180 port_attr->state = resp.state;
181 port_attr->max_mtu = resp.max_mtu;
182 port_attr->active_mtu = resp.active_mtu;
183 port_attr->gid_tbl_len = resp.gid_tbl_len;
184 port_attr->port_cap_flags = resp.port_cap_flags;
185 port_attr->max_msg_sz = resp.max_msg_sz;
186 port_attr->bad_pkey_cntr = resp.bad_pkey_cntr;
187 port_attr->qkey_viol_cntr = resp.qkey_viol_cntr;
188 port_attr->pkey_tbl_len = resp.pkey_tbl_len;
189 port_attr->lid = resp.lid;
190 port_attr->sm_lid = resp.sm_lid;
191 port_attr->lmc = resp.lmc;
192 port_attr->max_vl_num = resp.max_vl_num;
193 port_attr->sm_sl = resp.sm_sl;
194 port_attr->subnet_timeout = resp.subnet_timeout;
195 port_attr->init_type_reply = resp.init_type_reply;
196 port_attr->active_width = resp.active_width;
197 port_attr->active_speed = resp.active_speed;
198 port_attr->phys_state = resp.phys_state;
199 port_attr->link_layer = resp.link_layer;
206 struct ibv_alloc_pd_resp *resp, size_t resp_size)
208 IBV_INIT_CMD_RESP(cmd, cmd_size, ALLOC_PD, resp, resp_size);
213 VALGRIND_MAKE_MEM_DEFINED(resp, resp_size);
215 pd->handle = resp->pd_handle;
238 struct ibv_reg_mr_resp *resp, size_t resp_size)
241 IBV_INIT_CMD_RESP(cmd, cmd_size, REG_MR, resp, resp_size);
252 VALGRIND_MAKE_MEM_DEFINED(resp, resp_size);
254 mr->handle = resp->mr_handle;
255 mr->lkey = resp->lkey;
256 mr->rkey = resp->rkey;
278 struct ibv_create_cq_resp *resp, size_t resp_size)
287 IBV_INIT_CMD_RESP(cmd, cmd_size, CREATE_CQ, resp, resp_size);
295 VALGRIND_MAKE_MEM_DEFINED(resp, resp_size);
297 cq->handle = resp->cq_handle;
298 cq->cqe = resp->cqe;
308 struct ibv_create_cq_resp *resp, size_t resp_size)
312 cmd, cmd_size, resp, resp_size);
314 IBV_INIT_CMD_RESP(cmd, cmd_size, CREATE_CQ, resp, resp_size);
324 VALGRIND_MAKE_MEM_DEFINED(resp, resp_size);
326 cq->handle = resp->cq_handle;
327 cq->cqe = resp->cqe;
336 struct ibv_poll_cq_resp *resp;
341 rsize = sizeof *resp + ne * sizeof(struct ibv_kern_wc);
342 resp = malloc(rsize);
343 if (!resp)
346 IBV_INIT_CMD_RESP(&cmd, sizeof cmd, POLL_CQ, resp, rsize);
355 VALGRIND_MAKE_MEM_DEFINED(resp, rsize);
357 for (i = 0; i < resp->count; i++) {
358 wc[i].wr_id = resp->wc[i].wr_id;
359 wc[i].status = resp->wc[i].status;
360 wc[i].opcode = resp->wc[i].opcode;
361 wc[i].vendor_err = resp->wc[i].vendor_err;
362 wc[i].byte_len = resp->wc[i].byte_len;
363 wc[i].imm_data = resp->wc[i].imm_data;
364 wc[i].qp_num = resp->wc[i].qp_num;
365 wc[i].src_qp = resp->wc[i].src_qp;
366 wc[i].wc_flags = resp->wc[i].wc_flags;
367 wc[i].pkey_index = resp->wc[i].pkey_index;
368 wc[i].slid = resp->wc[i].slid;
369 wc[i].sl = resp->wc[i].sl;
370 wc[i].dlid_path_bits = resp->wc[i].dlid_path_bits;
373 ret = resp->count;
376 free(resp);
396 struct ibv_resize_cq_resp *resp, size_t resp_size)
399 IBV_INIT_CMD_RESP(cmd, cmd_size, RESIZE_CQ, resp, resp_size);
406 VALGRIND_MAKE_MEM_DEFINED(resp, resp_size);
408 cq->cqe = resp->cqe;
429 struct ibv_destroy_cq_resp resp;
434 IBV_INIT_CMD_RESP(&cmd, sizeof cmd, DESTROY_CQ, &resp, sizeof resp);
441 VALGRIND_MAKE_MEM_DEFINED(&resp, sizeof resp);
444 while (cq->comp_events_completed != resp.comp_events_reported ||
445 cq->async_events_completed != resp.async_events_reported)
455 struct ibv_create_srq_resp *resp, size_t resp_size)
457 IBV_INIT_CMD_RESP(cmd, cmd_size, CREATE_SRQ, resp, resp_size);
467 VALGRIND_MAKE_MEM_DEFINED(resp, resp_size);
469 srq->handle = resp->srq_handle;
473 attr->attr.max_wr = resp->max_wr;
474 attr->attr.max_sge = resp->max_sge;
477 (struct ibv_create_srq_resp_v5 *) resp;
479 memmove((void *) resp + sizeof *resp,
481 resp_size - sizeof *resp);
491 struct ibv_create_srq_resp *resp, size_t resp_size)
493 IBV_INIT_CMD_RESP(cmd, cmd_size, CREATE_XRC_SRQ, resp, resp_size);
505 VALGRIND_MAKE_MEM_DEFINED(resp, resp_size);
507 srq->handle = resp->srq_handle;
509 attr->attr.max_wr = resp->max_wr;
510 attr->attr.max_sge = resp->max_sge;
568 struct ibv_query_srq_resp resp;
570 IBV_INIT_CMD_RESP(cmd, cmd_size, QUERY_SRQ, &resp, sizeof resp);
577 VALGRIND_MAKE_MEM_DEFINED(&resp, sizeof resp);
579 srq_attr->max_wr = resp.max_wr;
580 srq_attr->max_sge = resp.max_sge;
581 srq_attr->srq_limit = resp.srq_limit;
602 struct ibv_destroy_srq_resp resp;
607 IBV_INIT_CMD_RESP(&cmd, sizeof cmd, DESTROY_SRQ, &resp, sizeof resp);
614 VALGRIND_MAKE_MEM_DEFINED(&resp, sizeof resp);
617 while (srq->events_completed != resp.events_reported)
627 struct ibv_create_qp_resp *resp, size_t resp_size)
629 IBV_INIT_CMD_RESP(cmd, cmd_size, CREATE_QP, resp, resp_size);
651 VALGRIND_MAKE_MEM_DEFINED(resp, resp_size);
653 qp->handle = resp->qp_handle;
654 qp->qp_num = resp->qpn;
658 attr->cap.max_recv_sge = resp->max_recv_sge;
659 attr->cap.max_send_sge = resp->max_send_sge;
660 attr->cap.max_recv_wr = resp->max_recv_wr;
661 attr->cap.max_send_wr = resp->max_send_wr;
662 attr->cap.max_inline_data = resp->max_inline_data;
667 (struct ibv_create_qp_resp_v4 *) resp;
669 memmove((void *) resp + sizeof *resp,
671 resp_size - sizeof *resp);
674 (struct ibv_create_qp_resp_v3 *) resp;
676 memmove((void *) resp + sizeof *resp,
678 resp_size - sizeof *resp);
689 struct ibv_query_qp_resp resp;
691 IBV_INIT_CMD_RESP(cmd, cmd_size, QUERY_QP, &resp, sizeof resp);
698 VALGRIND_MAKE_MEM_DEFINED(&resp, sizeof resp);
700 attr->qkey = resp.qkey;
701 attr->rq_psn = resp.rq_psn;
702 attr->sq_psn = resp.sq_psn;
703 attr->dest_qp_num = resp.dest_qp_num;
704 attr->qp_access_flags = resp.qp_access_flags;
705 attr->pkey_index = resp.pkey_index;
706 attr->alt_pkey_index = resp.alt_pkey_index;
707 attr->qp_state = resp.qp_state;
708 attr->cur_qp_state = resp.cur_qp_state;
709 attr->path_mtu = resp.path_mtu;
710 attr->path_mig_state = resp.path_mig_state;
711 attr->sq_draining = resp.sq_draining;
712 attr->max_rd_atomic = resp.max_rd_atomic;
713 attr->max_dest_rd_atomic = resp.max_dest_rd_atomic;
714 attr->min_rnr_timer = resp.min_rnr_timer;
715 attr->port_num = resp.port_num;
716 attr->timeout = resp.timeout;
717 attr->retry_cnt = resp.retry_cnt;
718 attr->rnr_retry = resp.rnr_retry;
719 attr->alt_port_num = resp.alt_port_num;
720 attr->alt_timeout = resp.alt_timeout;
721 attr->cap.max_send_wr = resp.max_send_wr;
722 attr->cap.max_recv_wr = resp.max_recv_wr;
723 attr->cap.max_send_sge = resp.max_send_sge;
724 attr->cap.max_recv_sge = resp.max_recv_sge;
725 attr->cap.max_inline_data = resp.max_inline_data;
727 memcpy(attr->ah_attr.grh.dgid.raw, resp.dest.dgid, 16);
728 attr->ah_attr.grh.flow_label = resp.dest.flow_label;
729 attr->ah_attr.dlid = resp.dest.dlid;
730 attr->ah_attr.grh.sgid_index = resp.dest.sgid_index;
731 attr->ah_attr.grh.hop_limit = resp.dest.hop_limit;
732 attr->ah_attr.grh.traffic_class = resp.dest.traffic_class;
733 attr->ah_attr.sl = resp.dest.sl;
734 attr->ah_attr.src_path_bits = resp.dest.src_path_bits;
735 attr->ah_attr.static_rate = resp.dest.static_rate;
736 attr->ah_attr.is_global = resp.dest.is_global;
737 attr->ah_attr.port_num = resp.dest.port_num;
739 memcpy(attr->alt_ah_attr.grh.dgid.raw, resp.alt_dest.dgid, 16);
740 attr->alt_ah_attr.grh.flow_label = resp.alt_dest.flow_label;
741 attr->alt_ah_attr.dlid = resp.alt_dest.dlid;
742 attr->alt_ah_attr.grh.sgid_index = resp.alt_dest.sgid_index;
743 attr->alt_ah_attr.grh.hop_limit = resp.alt_dest.hop_limit;
744 attr->alt_ah_attr.grh.traffic_class = resp.alt_dest.traffic_class;
745 attr->alt_ah_attr.sl = resp.alt_dest.sl;
746 attr->alt_ah_attr.src_path_bits = resp.alt_dest.src_path_bits;
747 attr->alt_ah_attr.static_rate = resp.alt_dest.static_rate;
748 attr->alt_ah_attr.is_global = resp.alt_dest.is_global;
749 attr->alt_ah_attr.port_num = resp.alt_dest.port_num;
758 init_attr->cap.max_send_wr = resp.max_send_wr;
759 init_attr->cap.max_recv_wr = resp.max_recv_wr;
760 init_attr->cap.max_send_sge = resp.max_send_sge;
761 init_attr->cap.max_recv_sge = resp.max_recv_sge;
762 init_attr->cap.max_inline_data = resp.max_inline_data;
763 init_attr->sq_sig_all = resp.sq_sig_all;
836 struct ibv_create_xrc_rcv_qp_resp resp;
841 IBV_INIT_CMD_RESP(&cmd, sizeof cmd, CREATE_XRC_RCV_QP, &resp,
842 sizeof resp);
858 *xrc_rcv_qpn = resp.qpn;
937 struct ibv_query_qp_resp resp;
942 IBV_INIT_CMD_RESP(&cmd, sizeof cmd, QUERY_XRC_RCV_QP, &resp,
943 sizeof resp);
951 VALGRIND_MAKE_MEM_DEFINED(&resp, sizeof resp);
953 attr->qkey = resp.qkey;
954 attr->rq_psn = resp.rq_psn;
955 attr->sq_psn = resp.sq_psn;
956 attr->dest_qp_num = resp.dest_qp_num;
957 attr->qp_access_flags = resp.qp_access_flags;
958 attr->pkey_index = resp.pkey_index;
959 attr->alt_pkey_index = resp.alt_pkey_index;
960 attr->qp_state = resp.qp_state;
961 attr->cur_qp_state = resp.cur_qp_state;
962 attr->path_mtu = resp.path_mtu;
963 attr->path_mig_state = resp.path_mig_state;
964 attr->sq_draining = resp.sq_draining;
965 attr->max_rd_atomic = resp.max_rd_atomic;
966 attr->max_dest_rd_atomic = resp.max_dest_rd_atomic;
967 attr->min_rnr_timer = resp.min_rnr_timer;
968 attr->port_num = resp.port_num;
969 attr->timeout = resp.timeout;
970 attr->retry_cnt = resp.retry_cnt;
971 attr->rnr_retry = resp.rnr_retry;
972 attr->alt_port_num = resp.alt_port_num;
973 attr->alt_timeout = resp.alt_timeout;
974 attr->cap.max_send_wr = resp.max_send_wr;
975 attr->cap.max_recv_wr = resp.max_recv_wr;
976 attr->cap.max_send_sge = resp.max_send_sge;
977 attr->cap.max_recv_sge = resp.max_recv_sge;
978 attr->cap.max_inline_data = resp.max_inline_data;
980 memcpy(attr->ah_attr.grh.dgid.raw, resp.dest.dgid, 16);
981 attr->ah_attr.grh.flow_label = resp.dest.flow_label;
982 attr->ah_attr.dlid = resp.dest.dlid;
983 attr->ah_attr.grh.sgid_index = resp.dest.sgid_index;
984 attr->ah_attr.grh.hop_limit = resp.dest.hop_limit;
985 attr->ah_attr.grh.traffic_class = resp.dest.traffic_class;
986 attr->ah_attr.sl = resp.dest.sl;
987 attr->ah_attr.src_path_bits = resp.dest.src_path_bits;
988 attr->ah_attr.static_rate = resp.dest.static_rate;
989 attr->ah_attr.is_global = resp.dest.is_global;
990 attr->ah_attr.port_num = resp.dest.port_num;
992 memcpy(attr->alt_ah_attr.grh.dgid.raw, resp.alt_dest.dgid, 16);
993 attr->alt_ah_attr.grh.flow_label = resp.alt_dest.flow_label;
994 attr->alt_ah_attr.dlid = resp.alt_dest.dlid;
995 attr->alt_ah_attr.grh.sgid_index = resp.alt_dest.sgid_index;
996 attr->alt_ah_attr.grh.hop_limit = resp.alt_dest.hop_limit;
997 attr->alt_ah_attr.grh.traffic_class = resp.alt_dest.traffic_class;
998 attr->alt_ah_attr.sl = resp.alt_dest.sl;
999 attr->alt_ah_attr.src_path_bits = resp.alt_dest.src_path_bits;
1000 attr->alt_ah_attr.static_rate = resp.alt_dest.static_rate;
1001 attr->alt_ah_attr.is_global = resp.alt_dest.is_global;
1002 attr->alt_ah_attr.port_num = resp.alt_dest.port_num;
1004 init_attr->cap.max_send_wr = resp.max_send_wr;
1005 init_attr->cap.max_recv_wr = resp.max_recv_wr;
1006 init_attr->cap.max_send_sge = resp.max_send_sge;
1007 init_attr->cap.max_recv_sge = resp.max_recv_sge;
1008 init_attr->cap.max_inline_data = resp.max_inline_data;
1009 init_attr->sq_sig_all = resp.sq_sig_all;
1031 struct ibv_post_send_resp resp;
1048 IBV_INIT_CMD_RESP(cmd, cmd_size, POST_SEND, &resp, sizeof resp);
1099 resp.bad_wr = 0;
1103 VALGRIND_MAKE_MEM_DEFINED(&resp, sizeof resp);
1105 wr_count = resp.bad_wr;
1121 struct ibv_post_recv_resp resp;
1138 IBV_INIT_CMD_RESP(cmd, cmd_size, POST_RECV, &resp, sizeof resp);
1160 resp.bad_wr = 0;
1164 VALGRIND_MAKE_MEM_DEFINED(&resp, sizeof resp);
1166 wr_count = resp.bad_wr;
1182 struct ibv_post_srq_recv_resp resp;
1199 IBV_INIT_CMD_RESP(cmd, cmd_size, POST_SRQ_RECV, &resp, sizeof resp);
1221 resp.bad_wr = 0;
1225 VALGRIND_MAKE_MEM_DEFINED(&resp, sizeof resp);
1227 wr_count = resp.bad_wr;
1243 struct ibv_create_ah_resp resp;
1245 IBV_INIT_CMD_RESP(&cmd, sizeof cmd, CREATE_AH, &resp, sizeof resp);
1263 VALGRIND_MAKE_MEM_DEFINED(&resp, sizeof resp);
1265 ah->handle = resp.handle;
1287 struct ibv_destroy_qp_resp resp;
1292 IBV_INIT_CMD_RESP(&cmd, sizeof cmd, DESTROY_QP, &resp, sizeof resp);
1299 VALGRIND_MAKE_MEM_DEFINED(&resp, sizeof resp);
1302 while (qp->events_completed != resp.events_reported)
1343 struct ibv_open_xrc_domain_resp *resp,
1351 IBV_INIT_CMD_RESP(&cmd, sizeof cmd, OPEN_XRC_DOMAIN, resp, resp_size);
1358 d->handle = resp->xrcd_handle;