Lines Matching defs:attr
209 struct ib_qp_init_attr attr = {
222 attr.cap.max_recv_wr = ipoib_recvq_size;
223 attr.cap.max_recv_sge = priv->cm.num_frags;
226 return ib_create_qp(priv->pd, &attr);
239 ipoib_warn(priv, "failed to init QP attr for INIT: %d\n", ret);
250 ipoib_warn(priv, "failed to init QP attr for RTR: %d\n", ret);
271 ipoib_warn(priv, "failed to init QP attr for RTS: %d\n", ret);
859 ipoib_warn(priv, "failed to init QP attr for RTR: %d\n", ret);
873 ipoib_warn(priv, "failed to init QP attr for RTS: %d\n", ret);
917 struct ib_qp_init_attr attr = {
928 return ib_create_qp(priv->pd, &attr);
1344 .attr = {
1375 struct ib_device_attr attr;
1394 ret = ib_query_device(priv->ca, &attr);
1400 ipoib_dbg(priv, "max_srq_sge=%d\n", attr.max_srq_sge);
1402 attr.max_srq_sge = min_t(int, IPOIB_CM_RX_SG, attr.max_srq_sge);
1403 ipoib_cm_create_srq(priv, attr.max_srq_sge);
1405 priv->cm.max_cm_mtu = attr.max_srq_sge * MJUMPAGESIZE;
1406 priv->cm.num_frags = attr.max_srq_sge;