Searched refs:qp_attr (Results 1 - 24 of 24) sorted by relevance

/freebsd-10-stable/sys/ofed/drivers/infiniband/ulp/ipoib/
H A Dipoib_verbs.c38 struct ib_qp_attr *qp_attr = NULL; local
51 qp_attr = kmalloc(sizeof *qp_attr, GFP_KERNEL);
52 if (!qp_attr)
56 qp_attr->qkey = priv->qkey;
57 ret = ib_modify_qp(priv->qp, qp_attr, IB_QP_QKEY);
70 kfree(qp_attr);
77 struct ib_qp_attr qp_attr; local
83 qp_attr.qp_state = IB_QPS_INIT;
84 qp_attr
[all...]
H A Dipoib_cm.c233 struct ib_qp_attr qp_attr; local
236 qp_attr.qp_state = IB_QPS_INIT;
237 ret = ib_cm_init_qp_attr(cm_id, &qp_attr, &qp_attr_mask);
242 ret = ib_modify_qp(qp, &qp_attr, qp_attr_mask);
247 qp_attr.qp_state = IB_QPS_RTR;
248 ret = ib_cm_init_qp_attr(cm_id, &qp_attr, &qp_attr_mask);
253 qp_attr.rq_psn = psn;
254 ret = ib_modify_qp(qp, &qp_attr, qp_attr_mask);
268 qp_attr.qp_state = IB_QPS_RTS;
269 ret = ib_cm_init_qp_attr(cm_id, &qp_attr,
843 struct ib_qp_attr qp_attr; local
972 struct ib_qp_attr qp_attr; local
[all...]
H A Dipoib_ib.c741 struct ib_qp_attr qp_attr; local
752 qp_attr.qp_state = IB_QPS_ERR;
753 if (ib_modify_qp(priv->qp, &qp_attr, IB_QP_STATE))
800 qp_attr.qp_state = IB_QPS_RESET;
801 if (ib_modify_qp(priv->qp, &qp_attr, IB_QP_STATE))
/freebsd-10-stable/contrib/ofed/librdmacm/src/
H A Dcma.c601 static int rdma_init_qp_attr(struct rdma_cm_id *id, struct ibv_qp_attr *qp_attr, argument
613 cmd->qp_state = qp_attr->qp_state;
621 ibv_copy_qp_attr_from_kern(qp_attr, resp);
629 struct ibv_qp_attr qp_attr; local
636 qp_attr.qp_state = IBV_QPS_INIT;
637 ret = rdma_init_qp_attr(id, &qp_attr, &qp_attr_mask);
641 ret = ibv_modify_qp(id->qp, &qp_attr, qp_attr_mask);
645 qp_attr.qp_state = IBV_QPS_RTR;
646 ret = rdma_init_qp_attr(id, &qp_attr, &qp_attr_mask);
651 qp_attr
657 struct ibv_qp_attr qp_attr; local
670 struct ibv_qp_attr qp_attr; local
681 struct ibv_qp_attr qp_attr; local
708 struct ibv_qp_attr qp_attr; local
727 struct ibv_qp_attr qp_attr; local
743 struct ibv_qp_attr qp_attr; local
773 struct ibv_qp_attr qp_attr; local
[all...]
/freebsd-10-stable/contrib/ofed/management/opensm/osmtest/
H A Dosmt_mtl_regular_qp.c144 VAPI_qp_attr_t qp_attr; local
153 qp_attr.qp_state = VAPI_INIT;
155 qp_attr.pkey_ix = 0;
157 qp_attr.port = res->port_num;
159 qp_attr.qkey = res->qkey;
164 VAPI_modify_qp(res->hca_hndl, res->qp_hndl, &qp_attr, &qp_attr_mask,
176 VAPI_qp_attr_t qp_attr; local
185 qp_attr.qp_state = VAPI_RTR;
187 /* qp_attr.rq_psn = 0; */
191 VAPI_modify_qp(res->hca_hndl, res->qp_hndl, &qp_attr,
[all...]
/freebsd-10-stable/sys/ofed/drivers/infiniband/core/
H A Diwcm.c316 struct ib_qp_attr qp_attr; local
321 qp_attr.qp_state = IB_QPS_ERR;
322 return ib_modify_qp(qp, &qp_attr, IB_QP_STATE);
331 struct ib_qp_attr qp_attr; local
334 qp_attr.qp_state = IB_QPS_SQD;
335 return ib_modify_qp(qp, &qp_attr, IB_QP_STATE);
1217 struct ib_qp_attr *qp_attr,
1230 qp_attr->qp_access_flags = IB_ACCESS_REMOTE_WRITE|
1243 struct ib_qp_attr *qp_attr,
1267 struct ib_qp_attr *qp_attr,
1216 iwcm_init_qp_init_attr(struct iwcm_id_private *cm_id_priv, struct ib_qp_attr *qp_attr, int *qp_attr_mask) argument
1242 iwcm_init_qp_rts_attr(struct iwcm_id_private *cm_id_priv, struct ib_qp_attr *qp_attr, int *qp_attr_mask) argument
1266 iw_cm_init_qp_attr(struct iw_cm_id *cm_id, struct ib_qp_attr *qp_attr, int *qp_attr_mask) argument
[all...]
H A Dcma.c540 struct ib_qp_attr qp_attr; local
543 qp_attr.qp_state = IB_QPS_INIT;
544 ret = rdma_init_qp_attr(&id_priv->id, &qp_attr, &qp_attr_mask);
548 ret = ib_modify_qp(qp, &qp_attr, qp_attr_mask);
552 qp_attr.qp_state = IB_QPS_RTR;
553 ret = ib_modify_qp(qp, &qp_attr, IB_QP_STATE);
557 qp_attr.qp_state = IB_QPS_RTS;
558 qp_attr.sq_psn = 0;
559 ret = ib_modify_qp(qp, &qp_attr, IB_QP_STATE | IB_QP_SQ_PSN);
566 struct ib_qp_attr qp_attr; local
624 struct ib_qp_attr qp_attr; local
659 struct ib_qp_attr qp_attr; local
683 struct ib_qp_attr qp_attr; local
699 cma_ib_init_qp_attr(struct rdma_id_private *id_priv, struct ib_qp_attr *qp_attr, int *qp_attr_mask) argument
734 rdma_init_qp_attr(struct rdma_cm_id *id, struct ib_qp_attr *qp_attr, int *qp_attr_mask) argument
[all...]
H A Dcm.c3469 struct ib_qp_attr *qp_attr,
3488 qp_attr->qp_access_flags = IB_ACCESS_REMOTE_WRITE;
3490 qp_attr->qp_access_flags |= IB_ACCESS_REMOTE_READ |
3492 qp_attr->pkey_index = cm_id_priv->av.pkey_index;
3493 qp_attr->port_num = cm_id_priv->av.port->port_num;
3505 struct ib_qp_attr *qp_attr,
3522 qp_attr->ah_attr = cm_id_priv->av.ah_attr;
3523 qp_attr->path_mtu = cm_id_priv->path_mtu;
3524 qp_attr->dest_qp_num = be32_to_cpu(cm_id_priv->remote_qpn);
3525 qp_attr
3468 cm_init_qp_init_attr(struct cm_id_private *cm_id_priv, struct ib_qp_attr *qp_attr, int *qp_attr_mask) argument
3504 cm_init_qp_rtr_attr(struct cm_id_private *cm_id_priv, struct ib_qp_attr *qp_attr, int *qp_attr_mask) argument
3550 cm_init_qp_rts_attr(struct cm_id_private *cm_id_priv, struct ib_qp_attr *qp_attr, int *qp_attr_mask) argument
3603 ib_cm_init_qp_attr(struct ib_cm_id *cm_id, struct ib_qp_attr *qp_attr, int *qp_attr_mask) argument
[all...]
H A Ducm.c608 struct ib_qp_attr qp_attr; local
622 memset(&qp_attr, 0, sizeof qp_attr);
623 qp_attr.qp_state = cmd.qp_state;
624 result = ib_cm_init_qp_attr(ctx->cm_id, &qp_attr, &resp.qp_attr_mask);
628 ib_copy_qp_attr_to_user(&resp, &qp_attr);
H A Ducma.c810 struct ib_qp_attr qp_attr; local
824 memset(&qp_attr, 0, sizeof qp_attr);
825 qp_attr.qp_state = cmd.qp_state;
826 ret = rdma_init_qp_attr(ctx->cm_id, &qp_attr, &resp.qp_attr_mask);
830 ib_copy_qp_attr_to_user(&resp, &qp_attr);
H A Dverbs.c673 struct ib_qp_attr *qp_attr,
676 return qp->device->modify_qp(qp, qp_attr, qp_attr_mask, NULL);
681 struct ib_qp_attr *qp_attr,
686 qp->device->query_qp(qp, qp_attr, qp_attr_mask, qp_init_attr) :
672 ib_modify_qp(struct ib_qp *qp, struct ib_qp_attr *qp_attr, int qp_attr_mask) argument
680 ib_query_qp(struct ib_qp *qp, struct ib_qp_attr *qp_attr, int qp_attr_mask, struct ib_qp_init_attr *qp_init_attr) argument
/freebsd-10-stable/sys/ofed/drivers/infiniband/hw/mthca/
H A Dmthca_qp.c427 int mthca_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, argument
442 qp_attr->qp_state = IB_QPS_RESET;
466 qp_attr->qp_state = qp->state;
467 qp_attr->path_mtu = context->mtu_msgmax >> 5;
468 qp_attr->path_mig_state =
470 qp_attr->qkey = be32_to_cpu(context->qkey);
471 qp_attr->rq_psn = be32_to_cpu(context->rnr_nextrecvpsn) & 0xffffff;
472 qp_attr->sq_psn = be32_to_cpu(context->next_send_psn) & 0xffffff;
473 qp_attr->dest_qp_num = be32_to_cpu(context->remote_qpn) & 0xffffff;
474 qp_attr
[all...]
H A Dmthca_dev.h529 int mthca_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask,
/freebsd-10-stable/sys/ofed/drivers/infiniband/hw/mlx4/
H A Dqp.c3481 int mlx4_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, argument
3493 qp_attr->qp_state = IB_QPS_RESET;
3506 qp_attr->qp_state = qp->state;
3507 qp_attr->path_mtu = context.mtu_msgmax >> 5;
3508 qp_attr->path_mig_state =
3510 qp_attr->qkey = be32_to_cpu(context.qkey);
3511 qp_attr->rq_psn = be32_to_cpu(context.rnr_nextrecvpsn) & 0xffffff;
3512 qp_attr->sq_psn = be32_to_cpu(context.next_send_psn) & 0xffffff;
3513 qp_attr->dest_qp_num = be32_to_cpu(context.remote_qpn) & 0xffffff;
3514 qp_attr
[all...]
H A Dmlx4_ib.h688 int mlx4_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask,
/freebsd-10-stable/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_qp.c181 struct ib_qp_attr qp_attr; local
190 if (__mlx5_ib_modify_qp(&qp->ibqp, &qp_attr, 0, IB_QPS_SQD, IB_QPS_RTS))
2848 int mlx5_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, argument
2880 qp_attr->path_mtu = context->mtu_msgmax >> 5;
2881 qp_attr->path_mig_state =
2883 qp_attr->qkey = be32_to_cpu(context->qkey);
2884 qp_attr->rq_psn = be32_to_cpu(context->rnr_nextrecvpsn) & 0xffffff;
2885 qp_attr->sq_psn = be32_to_cpu(context->next_send_psn) & 0xffffff;
2886 qp_attr->dest_qp_num = be32_to_cpu(context->log_pg_sz_remote_qpn) & 0xffffff;
2887 qp_attr
[all...]
H A Dmlx5_ib.h676 int mlx5_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask,
/freebsd-10-stable/sys/ofed/include/rdma/
H A Drdma_cm.h219 * @qp_attr: On input, specifies the desired QP state. On output, the
225 * Users must set the @qp_attr->qp_state to the desired QP state. This call
233 int rdma_init_qp_attr(struct rdma_cm_id *id, struct ib_qp_attr *qp_attr,
H A Diw_cm.h259 * @qp_attr: Pointer to the QP attributes structure.
263 int iw_cm_init_qp_attr(struct iw_cm_id *cm_id, struct ib_qp_attr *qp_attr,
H A Dib_cm.h531 * @qp_attr: On input, specifies the desired QP state. On output, the
537 * Users must set the @qp_attr->qp_state to the desired QP state. This call
543 struct ib_qp_attr *qp_attr,
H A Dib_verbs.h1305 struct ib_qp_attr *qp_attr,
1309 struct ib_qp_attr *qp_attr,
1963 * @qp_attr: On input, specifies the QP attributes to modify. On output,
1969 struct ib_qp_attr *qp_attr,
1976 * @qp_attr: The attributes of the specified QP.
1984 struct ib_qp_attr *qp_attr,
/freebsd-10-stable/contrib/ofed/libibcm/include/infiniband/
H A Dcm.h509 * @qp_attr: On input, specifies the desired QP state. On output, the
515 * Users must set the @qp_attr->qp_state to the desired QP state. This call
521 struct ibv_qp_attr *qp_attr,
/freebsd-10-stable/contrib/ofed/libibcm/src/
H A Dcm.c346 struct ibv_qp_attr *qp_attr,
355 if (!qp_attr || !qp_attr_mask)
360 cmd->qp_state = qp_attr->qp_state;
369 ibv_copy_qp_attr_from_kern(qp_attr, resp);
345 ib_cm_init_qp_attr(struct ib_cm_id *cm_id, struct ibv_qp_attr *qp_attr, int *qp_attr_mask) argument
/freebsd-10-stable/contrib/ofed/libibverbs/include/infiniband/
H A Ddriver.h120 int ibv_cmd_query_qp(struct ibv_qp *qp, struct ibv_qp_attr *qp_attr,

Completed in 200 milliseconds