Home
last modified time | relevance | path

Searched refs:qp_attr (Results 1 – 25 of 29) sorted by relevance

12

/drivers/infiniband/ulp/ipoib/
Dipoib_verbs.c41 struct ib_qp_attr *qp_attr = NULL; in ipoib_mcast_attach() local
54 qp_attr = kmalloc(sizeof *qp_attr, GFP_KERNEL); in ipoib_mcast_attach()
55 if (!qp_attr) in ipoib_mcast_attach()
59 qp_attr->qkey = priv->qkey; in ipoib_mcast_attach()
60 ret = ib_modify_qp(priv->qp, qp_attr, IB_QP_QKEY); in ipoib_mcast_attach()
73 kfree(qp_attr); in ipoib_mcast_attach()
81 struct ib_qp_attr qp_attr; in ipoib_init_qp() local
87 qp_attr.qp_state = IB_QPS_INIT; in ipoib_init_qp()
88 qp_attr.qkey = 0; in ipoib_init_qp()
89 qp_attr.port_num = priv->port; in ipoib_init_qp()
[all …]
Dipoib_cm.c279 struct ib_qp_attr qp_attr; in ipoib_cm_modify_rx_qp() local
282 qp_attr.qp_state = IB_QPS_INIT; in ipoib_cm_modify_rx_qp()
283 ret = ib_cm_init_qp_attr(cm_id, &qp_attr, &qp_attr_mask); in ipoib_cm_modify_rx_qp()
288 ret = ib_modify_qp(qp, &qp_attr, qp_attr_mask); in ipoib_cm_modify_rx_qp()
293 qp_attr.qp_state = IB_QPS_RTR; in ipoib_cm_modify_rx_qp()
294 ret = ib_cm_init_qp_attr(cm_id, &qp_attr, &qp_attr_mask); in ipoib_cm_modify_rx_qp()
299 qp_attr.rq_psn = psn; in ipoib_cm_modify_rx_qp()
300 ret = ib_modify_qp(qp, &qp_attr, qp_attr_mask); in ipoib_cm_modify_rx_qp()
314 qp_attr.qp_state = IB_QPS_RTS; in ipoib_cm_modify_rx_qp()
315 ret = ib_cm_init_qp_attr(cm_id, &qp_attr, &qp_attr_mask); in ipoib_cm_modify_rx_qp()
[all …]
Dipoib_ib.c348 struct ib_qp_attr qp_attr; in ipoib_qp_state_validate_work() local
352 ret = ib_query_qp(priv->qp, &qp_attr, IB_QP_STATE, &query_init_attr); in ipoib_qp_state_validate_work()
359 __func__, priv->qp->qp_num, qp_attr.qp_state); in ipoib_qp_state_validate_work()
362 if (qp_attr.qp_state == IB_QPS_SQE) { in ipoib_qp_state_validate_work()
363 qp_attr.qp_state = IB_QPS_RTS; in ipoib_qp_state_validate_work()
365 ret = ib_modify_qp(priv->qp, &qp_attr, IB_QP_STATE); in ipoib_qp_state_validate_work()
375 priv->qp->qp_num, qp_attr.qp_state); in ipoib_qp_state_validate_work()
849 struct ib_qp_attr qp_attr; in ipoib_ib_dev_stop() local
863 qp_attr.qp_state = IB_QPS_ERR; in ipoib_ib_dev_stop()
864 if (ib_modify_qp(priv->qp, &qp_attr, IB_QP_STATE)) in ipoib_ib_dev_stop()
[all …]
/drivers/infiniband/hw/mthca/
Dmthca_qp.c424 int mthca_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, in mthca_query_qp() argument
438 qp_attr->qp_state = IB_QPS_RESET; in mthca_query_qp()
459 qp_attr->qp_state = qp->state; in mthca_query_qp()
460 qp_attr->path_mtu = context->mtu_msgmax >> 5; in mthca_query_qp()
461 qp_attr->path_mig_state = in mthca_query_qp()
463 qp_attr->qkey = be32_to_cpu(context->qkey); in mthca_query_qp()
464 qp_attr->rq_psn = be32_to_cpu(context->rnr_nextrecvpsn) & 0xffffff; in mthca_query_qp()
465 qp_attr->sq_psn = be32_to_cpu(context->next_send_psn) & 0xffffff; in mthca_query_qp()
466 qp_attr->dest_qp_num = be32_to_cpu(context->remote_qpn) & 0xffffff; in mthca_query_qp()
467 qp_attr->qp_access_flags = in mthca_query_qp()
[all …]
/drivers/nvme/target/
Drdma.c893 struct ib_qp_init_attr qp_attr; in nvmet_rdma_create_queue_ib() local
919 memset(&qp_attr, 0, sizeof(qp_attr)); in nvmet_rdma_create_queue_ib()
920 qp_attr.qp_context = queue; in nvmet_rdma_create_queue_ib()
921 qp_attr.event_handler = nvmet_rdma_qp_event; in nvmet_rdma_create_queue_ib()
922 qp_attr.send_cq = queue->cq; in nvmet_rdma_create_queue_ib()
923 qp_attr.recv_cq = queue->cq; in nvmet_rdma_create_queue_ib()
924 qp_attr.sq_sig_type = IB_SIGNAL_REQ_WR; in nvmet_rdma_create_queue_ib()
925 qp_attr.qp_type = IB_QPT_RC; in nvmet_rdma_create_queue_ib()
927 qp_attr.cap.max_send_wr = queue->send_queue_size + 1; in nvmet_rdma_create_queue_ib()
928 qp_attr.cap.max_rdma_ctxs = queue->send_queue_size; in nvmet_rdma_create_queue_ib()
[all …]
/drivers/infiniband/core/
Diwcm.c249 struct ib_qp_attr qp_attr; in iwcm_modify_qp_err() local
254 qp_attr.qp_state = IB_QPS_ERR; in iwcm_modify_qp_err()
255 return ib_modify_qp(qp, &qp_attr, IB_QP_STATE); in iwcm_modify_qp_err()
264 struct ib_qp_attr qp_attr; in iwcm_modify_qp_sqd() local
267 qp_attr.qp_state = IB_QPS_SQD; in iwcm_modify_qp_sqd()
268 return ib_modify_qp(qp, &qp_attr, IB_QP_STATE); in iwcm_modify_qp_sqd()
1075 struct ib_qp_attr *qp_attr, in iwcm_init_qp_init_attr() argument
1088 qp_attr->qp_access_flags = IB_ACCESS_REMOTE_WRITE| in iwcm_init_qp_init_attr()
1101 struct ib_qp_attr *qp_attr, in iwcm_init_qp_rts_attr() argument
1125 struct ib_qp_attr *qp_attr, in iw_cm_init_qp_attr() argument
[all …]
Dcma.c755 struct ib_qp_attr qp_attr; in cma_init_ud_qp() local
758 qp_attr.qp_state = IB_QPS_INIT; in cma_init_ud_qp()
759 ret = rdma_init_qp_attr(&id_priv->id, &qp_attr, &qp_attr_mask); in cma_init_ud_qp()
763 ret = ib_modify_qp(qp, &qp_attr, qp_attr_mask); in cma_init_ud_qp()
767 qp_attr.qp_state = IB_QPS_RTR; in cma_init_ud_qp()
768 ret = ib_modify_qp(qp, &qp_attr, IB_QP_STATE); in cma_init_ud_qp()
772 qp_attr.qp_state = IB_QPS_RTS; in cma_init_ud_qp()
773 qp_attr.sq_psn = 0; in cma_init_ud_qp()
774 ret = ib_modify_qp(qp, &qp_attr, IB_QP_STATE | IB_QP_SQ_PSN); in cma_init_ud_qp()
781 struct ib_qp_attr qp_attr; in cma_init_conn_qp() local
[all …]
Dverbs.c1200 struct ib_qp_attr *qp_attr, int *qp_attr_mask) in ib_resolve_eth_dmac() argument
1205 if (qp_attr->ah_attr.port_num < rdma_start_port(qp->device) || in ib_resolve_eth_dmac()
1206 qp_attr->ah_attr.port_num > rdma_end_port(qp->device)) in ib_resolve_eth_dmac()
1209 if (!rdma_cap_eth_ah(qp->device, qp_attr->ah_attr.port_num)) in ib_resolve_eth_dmac()
1212 if (rdma_link_local_addr((struct in6_addr *)qp_attr->ah_attr.grh.dgid.raw)) { in ib_resolve_eth_dmac()
1213 rdma_get_ll_mac((struct in6_addr *)qp_attr->ah_attr.grh.dgid.raw, in ib_resolve_eth_dmac()
1214 qp_attr->ah_attr.dmac); in ib_resolve_eth_dmac()
1222 qp_attr->ah_attr.port_num, in ib_resolve_eth_dmac()
1223 qp_attr->ah_attr.grh.sgid_index, in ib_resolve_eth_dmac()
1235 &qp_attr->ah_attr.grh.dgid, in ib_resolve_eth_dmac()
[all …]
Dcm.c3666 struct ib_qp_attr *qp_attr, in cm_init_qp_init_attr() argument
3685 qp_attr->qp_access_flags = IB_ACCESS_REMOTE_WRITE; in cm_init_qp_init_attr()
3687 qp_attr->qp_access_flags |= IB_ACCESS_REMOTE_READ | in cm_init_qp_init_attr()
3689 qp_attr->pkey_index = cm_id_priv->av.pkey_index; in cm_init_qp_init_attr()
3690 qp_attr->port_num = cm_id_priv->av.port->port_num; in cm_init_qp_init_attr()
3702 struct ib_qp_attr *qp_attr, in cm_init_qp_rtr_attr() argument
3719 qp_attr->ah_attr = cm_id_priv->av.ah_attr; in cm_init_qp_rtr_attr()
3720 qp_attr->path_mtu = cm_id_priv->path_mtu; in cm_init_qp_rtr_attr()
3721 qp_attr->dest_qp_num = be32_to_cpu(cm_id_priv->remote_qpn); in cm_init_qp_rtr_attr()
3722 qp_attr->rq_psn = be32_to_cpu(cm_id_priv->rq_psn); in cm_init_qp_rtr_attr()
[all …]
Ducm.c601 struct ib_qp_attr qp_attr; in ib_ucm_init_qp_attr() local
615 memset(&qp_attr, 0, sizeof qp_attr); in ib_ucm_init_qp_attr()
616 qp_attr.qp_state = cmd.qp_state; in ib_ucm_init_qp_attr()
617 result = ib_cm_init_qp_attr(ctx->cm_id, &qp_attr, &resp.qp_attr_mask); in ib_ucm_init_qp_attr()
621 ib_copy_qp_attr_to_user(&resp, &qp_attr); in ib_ucm_init_qp_attr()
Dcore_priv.h76 struct ib_qp_attr *qp_attr, int *qp_attr_mask);
Ducma.c1143 struct ib_qp_attr qp_attr; in ucma_init_qp_attr() local
1165 memset(&qp_attr, 0, sizeof qp_attr); in ucma_init_qp_attr()
1166 qp_attr.qp_state = cmd.qp_state; in ucma_init_qp_attr()
1167 ret = rdma_init_qp_attr(ctx->cm_id, &qp_attr, &resp.qp_attr_mask); in ucma_init_qp_attr()
1171 ib_copy_qp_attr_to_user(&resp, &qp_attr); in ucma_init_qp_attr()
/drivers/infiniband/hw/hns/
Dhns_roce_hw_v1.c2634 int hns_roce_v1_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, in hns_roce_v1_query_qp() argument
2649 memset(qp_attr, 0, sizeof(*qp_attr)); in hns_roce_v1_query_qp()
2655 qp_attr->qp_state = IB_QPS_RESET; in hns_roce_v1_query_qp()
2676 qp_attr->qp_state = (enum ib_qp_state)hr_qp->state; in hns_roce_v1_query_qp()
2677 qp_attr->path_mtu = (enum ib_mtu)roce_get_field(context->qpc_bytes_48, in hns_roce_v1_query_qp()
2680 qp_attr->path_mig_state = IB_MIG_ARMED; in hns_roce_v1_query_qp()
2682 qp_attr->qkey = QKEY_VAL; in hns_roce_v1_query_qp()
2684 qp_attr->rq_psn = roce_get_field(context->qpc_bytes_88, in hns_roce_v1_query_qp()
2687 qp_attr->sq_psn = (u32)roce_get_field(context->qpc_bytes_164, in hns_roce_v1_query_qp()
2690 qp_attr->dest_qp_num = (u8)roce_get_field(context->qpc_bytes_36, in hns_roce_v1_query_qp()
[all …]
/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.c1570 struct ib_qp_attr *qp_attr, in ocrdma_query_qp() argument
1586 qp_attr->qkey = params.qkey; in ocrdma_query_qp()
1587 qp_attr->path_mtu = in ocrdma_query_qp()
1591 qp_attr->path_mig_state = IB_MIG_MIGRATED; in ocrdma_query_qp()
1592 qp_attr->rq_psn = params.hop_lmt_rq_psn & OCRDMA_QP_PARAMS_RQ_PSN_MASK; in ocrdma_query_qp()
1593 qp_attr->sq_psn = params.tclass_sq_psn & OCRDMA_QP_PARAMS_SQ_PSN_MASK; in ocrdma_query_qp()
1594 qp_attr->dest_qp_num = in ocrdma_query_qp()
1597 qp_attr->qp_access_flags = ocrdma_to_ib_qp_acc_flags(qp->cap_flags); in ocrdma_query_qp()
1598 qp_attr->cap.max_send_wr = qp->sq.max_cnt - 1; in ocrdma_query_qp()
1599 qp_attr->cap.max_recv_wr = qp->rq.max_cnt - 1; in ocrdma_query_qp()
[all …]
Docrdma_verbs.h104 struct ib_qp_attr *qp_attr,
/drivers/infiniband/hw/qedr/
Dverbs.c2004 struct ib_qp_attr *qp_attr, in qedr_query_qp() argument
2018 memset(qp_attr, 0, sizeof(*qp_attr)); in qedr_query_qp()
2021 qp_attr->qp_state = qedr_get_ibqp_state(params.state); in qedr_query_qp()
2022 qp_attr->cur_qp_state = qedr_get_ibqp_state(params.state); in qedr_query_qp()
2023 qp_attr->path_mtu = iboe_get_mtu(params.mtu); in qedr_query_qp()
2024 qp_attr->path_mig_state = IB_MIG_MIGRATED; in qedr_query_qp()
2025 qp_attr->rq_psn = params.rq_psn; in qedr_query_qp()
2026 qp_attr->sq_psn = params.sq_psn; in qedr_query_qp()
2027 qp_attr->dest_qp_num = params.dest_qp; in qedr_query_qp()
2029 qp_attr->qp_access_flags = qedr_to_ib_qp_acc_flags(&params); in qedr_query_qp()
[all …]
Dverbs.h69 int qedr_query_qp(struct ib_qp *, struct ib_qp_attr *qp_attr,
/drivers/infiniband/hw/mlx4/
Dqp.c3427 int mlx4_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, in mlx4_ib_query_qp() argument
3439 qp_attr->qp_state = IB_QPS_RESET; in mlx4_ib_query_qp()
3452 qp_attr->qp_state = qp->state; in mlx4_ib_query_qp()
3453 qp_attr->path_mtu = context.mtu_msgmax >> 5; in mlx4_ib_query_qp()
3454 qp_attr->path_mig_state = in mlx4_ib_query_qp()
3456 qp_attr->qkey = be32_to_cpu(context.qkey); in mlx4_ib_query_qp()
3457 qp_attr->rq_psn = be32_to_cpu(context.rnr_nextrecvpsn) & 0xffffff; in mlx4_ib_query_qp()
3458 qp_attr->sq_psn = be32_to_cpu(context.next_send_psn) & 0xffffff; in mlx4_ib_query_qp()
3459 qp_attr->dest_qp_num = be32_to_cpu(context.remote_qpn) & 0xffffff; in mlx4_ib_query_qp()
3460 qp_attr->qp_access_flags = in mlx4_ib_query_qp()
[all …]
/drivers/infiniband/hw/mlx5/
Dqp.c4435 struct ib_qp_attr *qp_attr) in query_qp_attr() argument
4458 qp_attr->path_mtu = context->mtu_msgmax >> 5; in query_qp_attr()
4459 qp_attr->path_mig_state = in query_qp_attr()
4461 qp_attr->qkey = be32_to_cpu(context->qkey); in query_qp_attr()
4462 qp_attr->rq_psn = be32_to_cpu(context->rnr_nextrecvpsn) & 0xffffff; in query_qp_attr()
4463 qp_attr->sq_psn = be32_to_cpu(context->next_send_psn) & 0xffffff; in query_qp_attr()
4464 qp_attr->dest_qp_num = be32_to_cpu(context->log_pg_sz_remote_qpn) & 0xffffff; in query_qp_attr()
4465 qp_attr->qp_access_flags = in query_qp_attr()
4469 to_ib_ah_attr(dev, &qp_attr->ah_attr, &context->pri_path); in query_qp_attr()
4470 to_ib_ah_attr(dev, &qp_attr->alt_ah_attr, &context->alt_path); in query_qp_attr()
[all …]
Dgsi.c398 int mlx5_ib_gsi_query_qp(struct ib_qp *qp, struct ib_qp_attr *qp_attr, in mlx5_ib_gsi_query_qp() argument
406 ret = ib_query_qp(gsi->rx_qp, qp_attr, qp_attr_mask, qp_init_attr); in mlx5_ib_gsi_query_qp()
/drivers/infiniband/hw/usnic/
Dusnic_ib_verbs.c368 int usnic_ib_query_qp(struct ib_qp *qp, struct ib_qp_attr *qp_attr, in usnic_ib_query_qp() argument
378 memset(qp_attr, 0, sizeof(*qp_attr)); in usnic_ib_query_qp()
385 qp_attr->qp_state = qp_grp->state; in usnic_ib_query_qp()
386 qp_attr->cur_qp_state = qp_grp->state; in usnic_ib_query_qp()
390 qp_attr->qkey = 0; in usnic_ib_query_qp()
Dusnic_ib_verbs.h46 int usnic_ib_query_qp(struct ib_qp *qp, struct ib_qp_attr *qp_attr,
/drivers/infiniband/ulp/srpt/
Dib_srpt.c1020 struct ib_qp_attr qp_attr; in srpt_ch_qp_rtr() local
1024 qp_attr.qp_state = IB_QPS_RTR; in srpt_ch_qp_rtr()
1025 ret = ib_cm_init_qp_attr(ch->cm_id, &qp_attr, &attr_mask); in srpt_ch_qp_rtr()
1029 qp_attr.max_dest_rd_atomic = 4; in srpt_ch_qp_rtr()
1031 ret = ib_modify_qp(qp, &qp_attr, attr_mask); in srpt_ch_qp_rtr()
1050 struct ib_qp_attr qp_attr; in srpt_ch_qp_rts() local
1054 qp_attr.qp_state = IB_QPS_RTS; in srpt_ch_qp_rts()
1055 ret = ib_cm_init_qp_attr(ch->cm_id, &qp_attr, &attr_mask); in srpt_ch_qp_rts()
1059 qp_attr.max_rd_atomic = 4; in srpt_ch_qp_rts()
1061 ret = ib_modify_qp(qp, &qp_attr, attr_mask); in srpt_ch_qp_rts()
[all …]
/drivers/infiniband/ulp/srp/
Dib_srp.c2271 static uint32_t srp_compute_rq_tmo(struct ib_qp_attr *qp_attr, int attr_mask) in srp_compute_rq_tmo() argument
2290 T_tr_ns = 4096 * (1ULL << qp_attr->timeout); in srp_compute_rq_tmo()
2291 max_compl_time_ms = qp_attr->retry_cnt * 4 * T_tr_ns; in srp_compute_rq_tmo()
2303 struct ib_qp_attr *qp_attr = NULL; in srp_cm_rep_handler() local
2336 qp_attr = kmalloc(sizeof *qp_attr, GFP_KERNEL); in srp_cm_rep_handler()
2337 if (!qp_attr) in srp_cm_rep_handler()
2340 qp_attr->qp_state = IB_QPS_RTR; in srp_cm_rep_handler()
2341 ret = ib_cm_init_qp_attr(cm_id, qp_attr, &attr_mask); in srp_cm_rep_handler()
2345 ret = ib_modify_qp(ch->qp, qp_attr, attr_mask); in srp_cm_rep_handler()
2357 qp_attr->qp_state = IB_QPS_RTS; in srp_cm_rep_handler()
[all …]
/drivers/net/ethernet/ibm/ehea/
Dehea_qmr.c513 struct ehea_qp_init_attr *qp_attr = &qp->init_attr; in ehea_destroy_qp_res() local
524 if (qp_attr->rq_count > 1) in ehea_destroy_qp_res()
526 if (qp_attr->rq_count > 2) in ehea_destroy_qp_res()

12