Lines Matching refs:qp_attr

906 	struct ib_qp_attr qp_attr;  in cma_init_ud_qp()  local
909 qp_attr.qp_state = IB_QPS_INIT; in cma_init_ud_qp()
910 ret = rdma_init_qp_attr(&id_priv->id, &qp_attr, &qp_attr_mask); in cma_init_ud_qp()
914 ret = ib_modify_qp(qp, &qp_attr, qp_attr_mask); in cma_init_ud_qp()
918 qp_attr.qp_state = IB_QPS_RTR; in cma_init_ud_qp()
919 ret = ib_modify_qp(qp, &qp_attr, IB_QP_STATE); in cma_init_ud_qp()
923 qp_attr.qp_state = IB_QPS_RTS; in cma_init_ud_qp()
924 qp_attr.sq_psn = 0; in cma_init_ud_qp()
925 ret = ib_modify_qp(qp, &qp_attr, IB_QP_STATE | IB_QP_SQ_PSN); in cma_init_ud_qp()
932 struct ib_qp_attr qp_attr; in cma_init_conn_qp() local
935 qp_attr.qp_state = IB_QPS_INIT; in cma_init_conn_qp()
936 ret = rdma_init_qp_attr(&id_priv->id, &qp_attr, &qp_attr_mask); in cma_init_conn_qp()
940 return ib_modify_qp(qp, &qp_attr, qp_attr_mask); in cma_init_conn_qp()
999 struct ib_qp_attr qp_attr; in cma_modify_qp_rtr() local
1009 qp_attr.qp_state = IB_QPS_INIT; in cma_modify_qp_rtr()
1010 ret = rdma_init_qp_attr(&id_priv->id, &qp_attr, &qp_attr_mask); in cma_modify_qp_rtr()
1014 ret = ib_modify_qp(id_priv->id.qp, &qp_attr, qp_attr_mask); in cma_modify_qp_rtr()
1018 qp_attr.qp_state = IB_QPS_RTR; in cma_modify_qp_rtr()
1019 ret = rdma_init_qp_attr(&id_priv->id, &qp_attr, &qp_attr_mask); in cma_modify_qp_rtr()
1026 qp_attr.max_dest_rd_atomic = conn_param->responder_resources; in cma_modify_qp_rtr()
1027 ret = ib_modify_qp(id_priv->id.qp, &qp_attr, qp_attr_mask); in cma_modify_qp_rtr()
1036 struct ib_qp_attr qp_attr; in cma_modify_qp_rts() local
1045 qp_attr.qp_state = IB_QPS_RTS; in cma_modify_qp_rts()
1046 ret = rdma_init_qp_attr(&id_priv->id, &qp_attr, &qp_attr_mask); in cma_modify_qp_rts()
1051 qp_attr.max_rd_atomic = conn_param->initiator_depth; in cma_modify_qp_rts()
1052 ret = ib_modify_qp(id_priv->id.qp, &qp_attr, qp_attr_mask); in cma_modify_qp_rts()
1060 struct ib_qp_attr qp_attr; in cma_modify_qp_err() local
1069 qp_attr.qp_state = IB_QPS_ERR; in cma_modify_qp_err()
1070 ret = ib_modify_qp(id_priv->id.qp, &qp_attr, IB_QP_STATE); in cma_modify_qp_err()
1077 struct ib_qp_attr *qp_attr, int *qp_attr_mask) in cma_ib_init_qp_attr() argument
1089 pkey, &qp_attr->pkey_index); in cma_ib_init_qp_attr()
1093 qp_attr->port_num = id_priv->id.port_num; in cma_ib_init_qp_attr()
1101 qp_attr->qkey = id_priv->qkey; in cma_ib_init_qp_attr()
1104 qp_attr->qp_access_flags = 0; in cma_ib_init_qp_attr()
1110 int rdma_init_qp_attr(struct rdma_cm_id *id, struct ib_qp_attr *qp_attr, in rdma_init_qp_attr() argument
1119 ret = cma_ib_init_qp_attr(id_priv, qp_attr, qp_attr_mask); in rdma_init_qp_attr()
1121 ret = ib_cm_init_qp_attr(id_priv->cm_id.ib, qp_attr, in rdma_init_qp_attr()
1124 if (qp_attr->qp_state == IB_QPS_RTR) in rdma_init_qp_attr()
1125 qp_attr->rq_psn = id_priv->seq_num; in rdma_init_qp_attr()
1128 qp_attr->qp_access_flags = 0; in rdma_init_qp_attr()
1131 ret = iw_cm_init_qp_attr(id_priv->cm_id.iw, qp_attr, in rdma_init_qp_attr()
1133 qp_attr->port_num = id_priv->id.port_num; in rdma_init_qp_attr()
1140 qp_attr->timeout = id_priv->timeout; in rdma_init_qp_attr()
1143 qp_attr->min_rnr_timer = id_priv->min_rnr_timer; in rdma_init_qp_attr()