Lines Matching refs:qp_attr
861 struct ibv_qp_init_attr_ex *qp_attr, in create_qp_ex_common() argument
867 if (qp_attr->comp_mask & IBV_QP_INIT_ATTR_XRCD) { in create_qp_ex_common()
868 vxrcd = container_of(qp_attr->xrcd, struct verbs_xrcd, xrcd); in create_qp_ex_common()
871 if (!(qp_attr->comp_mask & IBV_QP_INIT_ATTR_PD)) in create_qp_ex_common()
874 cmd->pd_handle = qp_attr->pd->handle; in create_qp_ex_common()
875 if (qp_attr->comp_mask & IBV_QP_INIT_ATTR_IND_TABLE) { in create_qp_ex_common()
877 cmd->recv_cq_handle || qp_attr->srq) in create_qp_ex_common()
881 if (qp_attr->cap.max_send_wr) in create_qp_ex_common()
882 cmd->send_cq_handle = qp_attr->send_cq->handle; in create_qp_ex_common()
884 cmd->send_cq_handle = qp_attr->send_cq->handle; in create_qp_ex_common()
886 if (qp_attr->qp_type != IBV_QPT_XRC_SEND) { in create_qp_ex_common()
887 cmd->recv_cq_handle = qp_attr->recv_cq->handle; in create_qp_ex_common()
888 cmd->srq_handle = qp_attr->srq ? qp_attr->srq->handle : in create_qp_ex_common()
894 cmd->max_send_wr = qp_attr->cap.max_send_wr; in create_qp_ex_common()
895 cmd->max_recv_wr = qp_attr->cap.max_recv_wr; in create_qp_ex_common()
896 cmd->max_send_sge = qp_attr->cap.max_send_sge; in create_qp_ex_common()
897 cmd->max_recv_sge = qp_attr->cap.max_recv_sge; in create_qp_ex_common()
898 cmd->max_inline_data = qp_attr->cap.max_inline_data; in create_qp_ex_common()
899 cmd->sq_sig_all = qp_attr->sq_sig_all; in create_qp_ex_common()
900 cmd->qp_type = qp_attr->qp_type; in create_qp_ex_common()
901 cmd->is_srq = !!qp_attr->srq; in create_qp_ex_common()
934 struct ibv_qp_init_attr_ex *qp_attr, in create_qp_handle_resp_common() argument
940 qp_attr->cap.max_recv_sge = resp->max_recv_sge; in create_qp_handle_resp_common()
941 qp_attr->cap.max_send_sge = resp->max_send_sge; in create_qp_handle_resp_common()
942 qp_attr->cap.max_recv_wr = resp->max_recv_wr; in create_qp_handle_resp_common()
943 qp_attr->cap.max_send_wr = resp->max_send_wr; in create_qp_handle_resp_common()
944 qp_attr->cap.max_inline_data = resp->max_inline_data; in create_qp_handle_resp_common()
950 qp->qp.qp_context = qp_attr->qp_context; in create_qp_handle_resp_common()
951 qp->qp.pd = qp_attr->pd; in create_qp_handle_resp_common()
952 qp->qp.send_cq = qp_attr->send_cq; in create_qp_handle_resp_common()
953 qp->qp.recv_cq = qp_attr->recv_cq; in create_qp_handle_resp_common()
954 qp->qp.srq = qp_attr->srq; in create_qp_handle_resp_common()
955 qp->qp.qp_type = qp_attr->qp_type; in create_qp_handle_resp_common()
961 (qp_attr->comp_mask & IBV_QP_INIT_ATTR_XRCD)) { in create_qp_handle_resp_common()
975 struct ibv_qp_init_attr_ex *qp_attr, in ibv_cmd_create_qp_ex2() argument
986 if (qp_attr->comp_mask >= IBV_QP_INIT_ATTR_RESERVED) in ibv_cmd_create_qp_ex2()
999 err = create_qp_ex_common(qp, qp_attr, vxrcd, &cmd->base); in ibv_cmd_create_qp_ex2()
1003 if (qp_attr->comp_mask & IBV_QP_INIT_ATTR_CREATE_FLAGS) { in ibv_cmd_create_qp_ex2()
1004 if (qp_attr->create_flags & ~CREATE_QP_EX2_SUP_CREATE_FLAGS) in ibv_cmd_create_qp_ex2()
1007 sizeof(qp_attr->create_flags)) in ibv_cmd_create_qp_ex2()
1009 cmd->create_flags = qp_attr->create_flags; in ibv_cmd_create_qp_ex2()
1012 if (qp_attr->comp_mask & IBV_QP_INIT_ATTR_IND_TABLE) { in ibv_cmd_create_qp_ex2()
1016 cmd->ind_tbl_handle = qp_attr->rwq_ind_tbl->ind_tbl_handle; in ibv_cmd_create_qp_ex2()
1032 create_qp_handle_resp_common(context, qp, qp_attr, &resp->base, vxrcd, in ibv_cmd_create_qp_ex2()