Lines Matching refs:qp_attr
42 struct ib_qp_attr *qp_attr = NULL; in ipoib_mcast_attach() local
55 qp_attr = kmalloc(sizeof(*qp_attr), GFP_KERNEL); in ipoib_mcast_attach()
56 if (!qp_attr) in ipoib_mcast_attach()
60 qp_attr->qkey = qkey; in ipoib_mcast_attach()
61 ret = ib_modify_qp(priv->qp, qp_attr, IB_QP_QKEY); in ipoib_mcast_attach()
74 kfree(qp_attr); in ipoib_mcast_attach()
93 struct ib_qp_attr qp_attr; in ipoib_init_qp() local
99 qp_attr.qp_state = IB_QPS_INIT; in ipoib_init_qp()
100 qp_attr.qkey = 0; in ipoib_init_qp()
101 qp_attr.port_num = priv->port; in ipoib_init_qp()
102 qp_attr.pkey_index = priv->pkey_index; in ipoib_init_qp()
108 ret = ib_modify_qp(priv->qp, &qp_attr, attr_mask); in ipoib_init_qp()
114 qp_attr.qp_state = IB_QPS_RTR; in ipoib_init_qp()
117 ret = ib_modify_qp(priv->qp, &qp_attr, attr_mask); in ipoib_init_qp()
123 qp_attr.qp_state = IB_QPS_RTS; in ipoib_init_qp()
124 qp_attr.sq_psn = 0; in ipoib_init_qp()
127 ret = ib_modify_qp(priv->qp, &qp_attr, attr_mask); in ipoib_init_qp()
136 qp_attr.qp_state = IB_QPS_RESET; in ipoib_init_qp()
137 if (ib_modify_qp(priv->qp, &qp_attr, IB_QP_STATE)) in ipoib_init_qp()