Lines Matching refs:qp_attr
4099 struct ib_qp_attr *qp_attr, in cm_init_qp_init_attr() argument
4118 qp_attr->qp_access_flags = IB_ACCESS_REMOTE_WRITE; in cm_init_qp_init_attr()
4127 qp_attr->qp_access_flags |= IB_ACCESS_REMOTE_READ | in cm_init_qp_init_attr()
4131 qp_attr->pkey_index = cm_id_priv->av.pkey_index; in cm_init_qp_init_attr()
4133 qp_attr->port_num = cm_id_priv->av.port->port_num; in cm_init_qp_init_attr()
4146 struct ib_qp_attr *qp_attr, in cm_init_qp_rtr_attr() argument
4163 qp_attr->ah_attr = cm_id_priv->av.ah_attr; in cm_init_qp_rtr_attr()
4164 if ((qp_attr->ah_attr.type == RDMA_AH_ATTR_TYPE_IB) && in cm_init_qp_rtr_attr()
4167 qp_attr->ah_attr.ib.dlid = cm_id_priv->av.dlid_datapath; in cm_init_qp_rtr_attr()
4168 qp_attr->path_mtu = cm_id_priv->path_mtu; in cm_init_qp_rtr_attr()
4169 qp_attr->dest_qp_num = be32_to_cpu(cm_id_priv->remote_qpn); in cm_init_qp_rtr_attr()
4170 qp_attr->rq_psn = be32_to_cpu(cm_id_priv->rq_psn); in cm_init_qp_rtr_attr()
4175 qp_attr->max_dest_rd_atomic = in cm_init_qp_rtr_attr()
4177 qp_attr->min_rnr_timer = 0; in cm_init_qp_rtr_attr()
4182 qp_attr->alt_port_num = cm_id_priv->alt_av.port->port_num; in cm_init_qp_rtr_attr()
4183 qp_attr->alt_pkey_index = cm_id_priv->alt_av.pkey_index; in cm_init_qp_rtr_attr()
4184 qp_attr->alt_timeout = cm_id_priv->alt_av.timeout; in cm_init_qp_rtr_attr()
4185 qp_attr->alt_ah_attr = cm_id_priv->alt_av.ah_attr; in cm_init_qp_rtr_attr()
4199 struct ib_qp_attr *qp_attr, in cm_init_qp_rts_attr() argument
4218 qp_attr->sq_psn = be32_to_cpu(cm_id_priv->sq_psn); in cm_init_qp_rts_attr()
4224 qp_attr->retry_cnt = cm_id_priv->retry_count; in cm_init_qp_rts_attr()
4225 qp_attr->rnr_retry = cm_id_priv->rnr_retry_count; in cm_init_qp_rts_attr()
4226 qp_attr->max_rd_atomic = cm_id_priv->initiator_depth; in cm_init_qp_rts_attr()
4230 qp_attr->timeout = cm_id_priv->av.timeout; in cm_init_qp_rts_attr()
4237 qp_attr->path_mig_state = IB_MIG_REARM; in cm_init_qp_rts_attr()
4242 qp_attr->alt_port_num = in cm_init_qp_rts_attr()
4244 qp_attr->alt_pkey_index = cm_id_priv->alt_av.pkey_index; in cm_init_qp_rts_attr()
4245 qp_attr->alt_timeout = cm_id_priv->alt_av.timeout; in cm_init_qp_rts_attr()
4246 qp_attr->alt_ah_attr = cm_id_priv->alt_av.ah_attr; in cm_init_qp_rts_attr()
4247 qp_attr->path_mig_state = IB_MIG_REARM; in cm_init_qp_rts_attr()
4261 struct ib_qp_attr *qp_attr, in ib_cm_init_qp_attr() argument
4268 switch (qp_attr->qp_state) { in ib_cm_init_qp_attr()
4270 ret = cm_init_qp_init_attr(cm_id_priv, qp_attr, qp_attr_mask); in ib_cm_init_qp_attr()
4273 ret = cm_init_qp_rtr_attr(cm_id_priv, qp_attr, qp_attr_mask); in ib_cm_init_qp_attr()
4276 ret = cm_init_qp_rts_attr(cm_id_priv, qp_attr, qp_attr_mask); in ib_cm_init_qp_attr()