qp_attr 4074 drivers/infiniband/core/cm.c struct ib_qp_attr *qp_attr, qp_attr 4093 drivers/infiniband/core/cm.c qp_attr->qp_access_flags = IB_ACCESS_REMOTE_WRITE; qp_attr 4095 drivers/infiniband/core/cm.c qp_attr->qp_access_flags |= IB_ACCESS_REMOTE_READ | qp_attr 4097 drivers/infiniband/core/cm.c qp_attr->pkey_index = cm_id_priv->av.pkey_index; qp_attr 4098 drivers/infiniband/core/cm.c qp_attr->port_num = cm_id_priv->av.port->port_num; qp_attr 4113 drivers/infiniband/core/cm.c struct ib_qp_attr *qp_attr, qp_attr 4130 drivers/infiniband/core/cm.c qp_attr->ah_attr = cm_id_priv->av.ah_attr; qp_attr 4131 drivers/infiniband/core/cm.c qp_attr->path_mtu = cm_id_priv->path_mtu; qp_attr 4132 drivers/infiniband/core/cm.c qp_attr->dest_qp_num = be32_to_cpu(cm_id_priv->remote_qpn); qp_attr 4133 drivers/infiniband/core/cm.c qp_attr->rq_psn = be32_to_cpu(cm_id_priv->rq_psn); qp_attr 4138 drivers/infiniband/core/cm.c qp_attr->max_dest_rd_atomic = qp_attr 4140 drivers/infiniband/core/cm.c qp_attr->min_rnr_timer = 0; qp_attr 4144 drivers/infiniband/core/cm.c qp_attr->alt_port_num = cm_id_priv->alt_av.port->port_num; qp_attr 4145 drivers/infiniband/core/cm.c qp_attr->alt_pkey_index = cm_id_priv->alt_av.pkey_index; qp_attr 4146 drivers/infiniband/core/cm.c qp_attr->alt_timeout = cm_id_priv->alt_av.timeout; qp_attr 4147 drivers/infiniband/core/cm.c qp_attr->alt_ah_attr = cm_id_priv->alt_av.ah_attr; qp_attr 4163 drivers/infiniband/core/cm.c struct ib_qp_attr *qp_attr, qp_attr 4182 drivers/infiniband/core/cm.c qp_attr->sq_psn = be32_to_cpu(cm_id_priv->sq_psn); qp_attr 4188 drivers/infiniband/core/cm.c qp_attr->retry_cnt = cm_id_priv->retry_count; qp_attr 4189 drivers/infiniband/core/cm.c qp_attr->rnr_retry = cm_id_priv->rnr_retry_count; qp_attr 4190 drivers/infiniband/core/cm.c qp_attr->max_rd_atomic = cm_id_priv->initiator_depth; qp_attr 4194 drivers/infiniband/core/cm.c qp_attr->timeout = cm_id_priv->av.timeout; qp_attr 4201 drivers/infiniband/core/cm.c qp_attr->path_mig_state = IB_MIG_REARM; qp_attr 4205 drivers/infiniband/core/cm.c qp_attr->alt_port_num = cm_id_priv->alt_av.port->port_num; qp_attr 4206 drivers/infiniband/core/cm.c qp_attr->alt_pkey_index = cm_id_priv->alt_av.pkey_index; qp_attr 4207 drivers/infiniband/core/cm.c qp_attr->alt_timeout = cm_id_priv->alt_av.timeout; qp_attr 4208 drivers/infiniband/core/cm.c qp_attr->alt_ah_attr = cm_id_priv->alt_av.ah_attr; qp_attr 4209 drivers/infiniband/core/cm.c qp_attr->path_mig_state = IB_MIG_REARM; qp_attr 4225 drivers/infiniband/core/cm.c struct ib_qp_attr *qp_attr, qp_attr 4232 drivers/infiniband/core/cm.c switch (qp_attr->qp_state) { qp_attr 4234 drivers/infiniband/core/cm.c ret = cm_init_qp_init_attr(cm_id_priv, qp_attr, qp_attr_mask); qp_attr 4237 drivers/infiniband/core/cm.c ret = cm_init_qp_rtr_attr(cm_id_priv, qp_attr, qp_attr_mask); qp_attr 4240 drivers/infiniband/core/cm.c ret = cm_init_qp_rts_attr(cm_id_priv, qp_attr, qp_attr_mask); qp_attr 913 drivers/infiniband/core/cma.c struct ib_qp_attr qp_attr; qp_attr 916 drivers/infiniband/core/cma.c qp_attr.qp_state = IB_QPS_INIT; qp_attr 917 drivers/infiniband/core/cma.c ret = rdma_init_qp_attr(&id_priv->id, &qp_attr, &qp_attr_mask); qp_attr 921 drivers/infiniband/core/cma.c ret = ib_modify_qp(qp, &qp_attr, qp_attr_mask); qp_attr 925 drivers/infiniband/core/cma.c qp_attr.qp_state = IB_QPS_RTR; qp_attr 926 drivers/infiniband/core/cma.c ret = ib_modify_qp(qp, &qp_attr, IB_QP_STATE); qp_attr 930 drivers/infiniband/core/cma.c qp_attr.qp_state = IB_QPS_RTS; qp_attr 931 drivers/infiniband/core/cma.c qp_attr.sq_psn = 0; qp_attr 932 drivers/infiniband/core/cma.c ret = ib_modify_qp(qp, &qp_attr, IB_QP_STATE | IB_QP_SQ_PSN); qp_attr 939 drivers/infiniband/core/cma.c struct ib_qp_attr qp_attr; qp_attr 942 drivers/infiniband/core/cma.c qp_attr.qp_state = IB_QPS_INIT; qp_attr 943 drivers/infiniband/core/cma.c ret = rdma_init_qp_attr(&id_priv->id, &qp_attr, &qp_attr_mask); qp_attr 947 drivers/infiniband/core/cma.c return ib_modify_qp(qp, &qp_attr, qp_attr_mask); qp_attr 998 drivers/infiniband/core/cma.c struct ib_qp_attr qp_attr; qp_attr 1008 drivers/infiniband/core/cma.c qp_attr.qp_state = IB_QPS_INIT; qp_attr 1009 drivers/infiniband/core/cma.c ret = rdma_init_qp_attr(&id_priv->id, &qp_attr, &qp_attr_mask); qp_attr 1013 drivers/infiniband/core/cma.c ret = ib_modify_qp(id_priv->id.qp, &qp_attr, qp_attr_mask); qp_attr 1017 drivers/infiniband/core/cma.c qp_attr.qp_state = IB_QPS_RTR; qp_attr 1018 drivers/infiniband/core/cma.c ret = rdma_init_qp_attr(&id_priv->id, &qp_attr, &qp_attr_mask); qp_attr 1025 drivers/infiniband/core/cma.c qp_attr.max_dest_rd_atomic = conn_param->responder_resources; qp_attr 1026 drivers/infiniband/core/cma.c ret = ib_modify_qp(id_priv->id.qp, &qp_attr, qp_attr_mask); qp_attr 1035 drivers/infiniband/core/cma.c struct ib_qp_attr qp_attr; qp_attr 1044 drivers/infiniband/core/cma.c qp_attr.qp_state = IB_QPS_RTS; qp_attr 1045 drivers/infiniband/core/cma.c ret = rdma_init_qp_attr(&id_priv->id, &qp_attr, &qp_attr_mask); qp_attr 1050 drivers/infiniband/core/cma.c qp_attr.max_rd_atomic = conn_param->initiator_depth; qp_attr 1051 drivers/infiniband/core/cma.c ret = ib_modify_qp(id_priv->id.qp, &qp_attr, qp_attr_mask); qp_attr 1059 drivers/infiniband/core/cma.c struct ib_qp_attr qp_attr; qp_attr 1068 drivers/infiniband/core/cma.c qp_attr.qp_state = IB_QPS_ERR; qp_attr 1069 drivers/infiniband/core/cma.c ret = ib_modify_qp(id_priv->id.qp, &qp_attr, IB_QP_STATE); qp_attr 1076 drivers/infiniband/core/cma.c struct ib_qp_attr *qp_attr, int *qp_attr_mask) qp_attr 1088 drivers/infiniband/core/cma.c pkey, &qp_attr->pkey_index); qp_attr 1092 drivers/infiniband/core/cma.c qp_attr->port_num = id_priv->id.port_num; qp_attr 1100 drivers/infiniband/core/cma.c qp_attr->qkey = id_priv->qkey; qp_attr 1103 drivers/infiniband/core/cma.c qp_attr->qp_access_flags = 0; qp_attr 1109 drivers/infiniband/core/cma.c int rdma_init_qp_attr(struct rdma_cm_id *id, struct ib_qp_attr *qp_attr, qp_attr 1118 drivers/infiniband/core/cma.c ret = cma_ib_init_qp_attr(id_priv, qp_attr, qp_attr_mask); qp_attr 1120 drivers/infiniband/core/cma.c ret = ib_cm_init_qp_attr(id_priv->cm_id.ib, qp_attr, qp_attr 1123 drivers/infiniband/core/cma.c if (qp_attr->qp_state == IB_QPS_RTR) qp_attr 1124 drivers/infiniband/core/cma.c qp_attr->rq_psn = id_priv->seq_num; qp_attr 1127 drivers/infiniband/core/cma.c qp_attr->qp_access_flags = 0; qp_attr 1130 drivers/infiniband/core/cma.c ret = iw_cm_init_qp_attr(id_priv->cm_id.iw, qp_attr, qp_attr 1132 drivers/infiniband/core/cma.c qp_attr->port_num = id_priv->id.port_num; qp_attr 1138 drivers/infiniband/core/cma.c qp_attr->timeout = id_priv->timeout; qp_attr 228 drivers/infiniband/core/core_priv.h struct ib_qp_attr *qp_attr, qp_attr 255 drivers/infiniband/core/core_priv.h struct ib_qp_attr *qp_attr, qp_attr 260 drivers/infiniband/core/core_priv.h qp_attr, qp_attr 273 drivers/infiniband/core/iwcm.c struct ib_qp_attr qp_attr; qp_attr 278 drivers/infiniband/core/iwcm.c qp_attr.qp_state = IB_QPS_ERR; qp_attr 279 drivers/infiniband/core/iwcm.c return ib_modify_qp(qp, &qp_attr, IB_QP_STATE); qp_attr 288 drivers/infiniband/core/iwcm.c struct ib_qp_attr qp_attr; qp_attr 291 drivers/infiniband/core/iwcm.c qp_attr.qp_state = IB_QPS_SQD; qp_attr 292 drivers/infiniband/core/iwcm.c return ib_modify_qp(qp, &qp_attr, IB_QP_STATE); qp_attr 1109 drivers/infiniband/core/iwcm.c struct ib_qp_attr *qp_attr, qp_attr 1122 drivers/infiniband/core/iwcm.c qp_attr->qp_access_flags = IB_ACCESS_REMOTE_WRITE| qp_attr 1135 drivers/infiniband/core/iwcm.c struct ib_qp_attr *qp_attr, qp_attr 1159 drivers/infiniband/core/iwcm.c struct ib_qp_attr *qp_attr, qp_attr 1166 drivers/infiniband/core/iwcm.c switch (qp_attr->qp_state) { qp_attr 1170 drivers/infiniband/core/iwcm.c qp_attr, qp_attr_mask); qp_attr 1174 drivers/infiniband/core/iwcm.c qp_attr, qp_attr_mask); qp_attr 432 drivers/infiniband/core/nldev.c struct ib_qp_attr qp_attr; qp_attr 435 drivers/infiniband/core/nldev.c ret = ib_query_qp(qp, &qp_attr, 0, &qp_init_attr); qp_attr 439 drivers/infiniband/core/nldev.c if (port && port != qp_attr.port_num) qp_attr 443 drivers/infiniband/core/nldev.c if (qp_attr.port_num && qp_attr 444 drivers/infiniband/core/nldev.c nla_put_u32(msg, RDMA_NLDEV_ATTR_PORT_INDEX, qp_attr.port_num)) qp_attr 451 drivers/infiniband/core/nldev.c qp_attr.dest_qp_num)) qp_attr 454 drivers/infiniband/core/nldev.c qp_attr.rq_psn)) qp_attr 458 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_SQ_PSN, qp_attr.sq_psn)) qp_attr 464 drivers/infiniband/core/nldev.c qp_attr.path_mig_state)) qp_attr 469 drivers/infiniband/core/nldev.c if (nla_put_u8(msg, RDMA_NLDEV_ATTR_RES_STATE, qp_attr.qp_state)) qp_attr 332 drivers/infiniband/core/security.c const struct ib_qp_attr *qp_attr, qp_attr 343 drivers/infiniband/core/security.c new_pps->main.port_num = qp_attr->port_num; qp_attr 348 drivers/infiniband/core/security.c new_pps->main.pkey_index = qp_attr->pkey_index; qp_attr 358 drivers/infiniband/core/security.c new_pps->alt.port_num = qp_attr->alt_port_num; qp_attr 359 drivers/infiniband/core/security.c new_pps->alt.pkey_index = qp_attr->alt_pkey_index; qp_attr 572 drivers/infiniband/core/security.c struct ib_qp_attr *qp_attr, qp_attr 587 drivers/infiniband/core/security.c rdma_protocol_ib(real_qp->device, qp_attr->port_num) && qp_attr 601 drivers/infiniband/core/security.c qp_attr, qp_attr 626 drivers/infiniband/core/security.c qp_attr, qp_attr 1201 drivers/infiniband/core/ucma.c struct ib_qp_attr qp_attr; qp_attr 1218 drivers/infiniband/core/ucma.c memset(&qp_attr, 0, sizeof qp_attr); qp_attr 1219 drivers/infiniband/core/ucma.c qp_attr.qp_state = cmd.qp_state; qp_attr 1221 drivers/infiniband/core/ucma.c ret = rdma_init_qp_attr(ctx->cm_id, &qp_attr, &resp.qp_attr_mask); qp_attr 1226 drivers/infiniband/core/ucma.c ib_copy_qp_attr_to_user(ctx->cm_id->device, &resp, &qp_attr); qp_attr 1785 drivers/infiniband/core/verbs.c struct ib_qp_attr *qp_attr, qp_attr 1788 drivers/infiniband/core/verbs.c return _ib_modify_qp(qp->real_qp, qp_attr, qp_attr_mask, NULL); qp_attr 1793 drivers/infiniband/core/verbs.c struct ib_qp_attr *qp_attr, qp_attr 1797 drivers/infiniband/core/verbs.c qp_attr->ah_attr.grh.sgid_attr = NULL; qp_attr 1798 drivers/infiniband/core/verbs.c qp_attr->alt_ah_attr.grh.sgid_attr = NULL; qp_attr 1801 drivers/infiniband/core/verbs.c qp->device->ops.query_qp(qp->real_qp, qp_attr, qp_attr_mask, qp_attr 1535 drivers/infiniband/hw/bnxt_re/ib_verbs.c int bnxt_re_modify_qp(struct ib_qp *ib_qp, struct ib_qp_attr *qp_attr, qp_attr 1549 drivers/infiniband/hw/bnxt_re/ib_verbs.c new_qp_state = qp_attr->qp_state; qp_attr 1564 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.state = __from_ib_qp_state(qp_attr->qp_state); qp_attr 1593 drivers/infiniband/hw/bnxt_re/ib_verbs.c __from_ib_access_flags(qp_attr->qp_access_flags); qp_attr 1602 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.pkey_index = qp_attr->pkey_index; qp_attr 1606 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.qkey = qp_attr->qkey; qp_attr 1610 drivers/infiniband/hw/bnxt_re/ib_verbs.c rdma_ah_read_grh(&qp_attr->ah_attr); qp_attr 1631 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.ah.sl = rdma_ah_get_sl(&qp_attr->ah_attr); qp_attr 1633 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->ah_attr.roce.dmac); qp_attr 1635 drivers/infiniband/hw/bnxt_re/ib_verbs.c sgid_attr = qp_attr->ah_attr.grh.sgid_attr; qp_attr 1661 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.path_mtu = __from_ib_mtu(qp_attr->path_mtu); qp_attr 1662 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.mtu = ib_mtu_enum_to_int(qp_attr->path_mtu); qp_attr 1663 drivers/infiniband/hw/bnxt_re/ib_verbs.c } else if (qp_attr->qp_state == IB_QPS_RTR) { qp_attr 1674 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.timeout = qp_attr->timeout; qp_attr 1679 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.retry_cnt = qp_attr->retry_cnt; qp_attr 1684 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rnr_retry = qp_attr->rnr_retry; qp_attr 1689 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.min_rnr_timer = qp_attr->min_rnr_timer; qp_attr 1693 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rq.psn = qp_attr->rq_psn; qp_attr 1699 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.max_rd_atomic = min_t(u32, qp_attr->max_rd_atomic, qp_attr 1704 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.psn = qp_attr->sq_psn; qp_attr 1707 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (qp_attr->max_dest_rd_atomic > qp_attr 1711 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->max_dest_rd_atomic, qp_attr 1718 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.max_dest_rd_atomic = qp_attr->max_dest_rd_atomic; qp_attr 1727 drivers/infiniband/hw/bnxt_re/ib_verbs.c if ((qp_attr->cap.max_send_wr >= dev_attr->max_qp_wqes) || qp_attr 1728 drivers/infiniband/hw/bnxt_re/ib_verbs.c (qp_attr->cap.max_recv_wr >= dev_attr->max_qp_wqes) || qp_attr 1729 drivers/infiniband/hw/bnxt_re/ib_verbs.c (qp_attr->cap.max_send_sge >= dev_attr->max_qp_sges) || qp_attr 1730 drivers/infiniband/hw/bnxt_re/ib_verbs.c (qp_attr->cap.max_recv_sge >= dev_attr->max_qp_sges) || qp_attr 1731 drivers/infiniband/hw/bnxt_re/ib_verbs.c (qp_attr->cap.max_inline_data >= qp_attr 1737 drivers/infiniband/hw/bnxt_re/ib_verbs.c entries = roundup_pow_of_two(qp_attr->cap.max_send_wr); qp_attr 1741 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->cap.max_send_wr; qp_attr 1748 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.max_sge = qp_attr->cap.max_send_sge; qp_attr 1750 drivers/infiniband/hw/bnxt_re/ib_verbs.c entries = roundup_pow_of_two(qp_attr->cap.max_recv_wr); qp_attr 1754 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->cap.max_recv_wr; qp_attr 1755 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rq.max_sge = qp_attr->cap.max_recv_sge; qp_attr 1763 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.dest_qpn = qp_attr->dest_qp_num; qp_attr 1775 drivers/infiniband/hw/bnxt_re/ib_verbs.c int bnxt_re_query_qp(struct ib_qp *ib_qp, struct ib_qp_attr *qp_attr, qp_attr 1795 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->qp_state = __to_ib_qp_state(qplib_qp->state); qp_attr 1796 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->en_sqd_async_notify = qplib_qp->en_sqd_async_notify ? 1 : 0; qp_attr 1797 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->qp_access_flags = __to_ib_access_flags(qplib_qp->access); qp_attr 1798 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->pkey_index = qplib_qp->pkey_index; qp_attr 1799 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->qkey = qplib_qp->qkey; qp_attr 1800 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE; qp_attr 1801 drivers/infiniband/hw/bnxt_re/ib_verbs.c rdma_ah_set_grh(&qp_attr->ah_attr, NULL, qplib_qp->ah.flow_label, qp_attr 1805 drivers/infiniband/hw/bnxt_re/ib_verbs.c rdma_ah_set_dgid_raw(&qp_attr->ah_attr, qplib_qp->ah.dgid.data); qp_attr 1806 drivers/infiniband/hw/bnxt_re/ib_verbs.c rdma_ah_set_sl(&qp_attr->ah_attr, qplib_qp->ah.sl); qp_attr 1807 drivers/infiniband/hw/bnxt_re/ib_verbs.c ether_addr_copy(qp_attr->ah_attr.roce.dmac, qplib_qp->ah.dmac); qp_attr 1808 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->path_mtu = __to_ib_mtu(qplib_qp->path_mtu); qp_attr 1809 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->timeout = qplib_qp->timeout; qp_attr 1810 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->retry_cnt = qplib_qp->retry_cnt; qp_attr 1811 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->rnr_retry = qplib_qp->rnr_retry; qp_attr 1812 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->min_rnr_timer = qplib_qp->min_rnr_timer; qp_attr 1813 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->rq_psn = qplib_qp->rq.psn; qp_attr 1814 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->max_rd_atomic = qplib_qp->max_rd_atomic; qp_attr 1815 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->sq_psn = qplib_qp->sq.psn; qp_attr 1816 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->max_dest_rd_atomic = qplib_qp->max_dest_rd_atomic; qp_attr 1819 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->dest_qp_num = qplib_qp->dest_qpn; qp_attr 1821 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->cap.max_send_wr = qp->qplib_qp.sq.max_wqe; qp_attr 1822 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->cap.max_send_sge = qp->qplib_qp.sq.max_sge; qp_attr 1823 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->cap.max_recv_wr = qp->qplib_qp.rq.max_wqe; qp_attr 1824 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->cap.max_recv_sge = qp->qplib_qp.rq.max_sge; qp_attr 1825 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->cap.max_inline_data = qp->qplib_qp.max_inline_data; qp_attr 1826 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_init_attr->cap = qp_attr->cap; qp_attr 2265 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct ib_qp_attr qp_attr; qp_attr 2268 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr.qp_state = IB_QPS_RTS; qp_attr 2269 drivers/infiniband/hw/bnxt_re/ib_verbs.c bnxt_re_modify_qp(&qp->ib_qp, &qp_attr, qp_attr_mask, NULL); qp_attr 184 drivers/infiniband/hw/bnxt_re/ib_verbs.h int bnxt_re_modify_qp(struct ib_qp *qp, struct ib_qp_attr *qp_attr, qp_attr 186 drivers/infiniband/hw/bnxt_re/ib_verbs.h int bnxt_re_query_qp(struct ib_qp *qp, struct ib_qp_attr *qp_attr, qp_attr 1114 drivers/infiniband/hw/bnxt_re/main.c struct ib_qp_attr qp_attr; qp_attr 1117 drivers/infiniband/hw/bnxt_re/main.c qp_attr.qp_state = IB_QPS_ERR; qp_attr 1128 drivers/infiniband/hw/bnxt_re/main.c bnxt_re_modify_qp(&qp->ib_qp, &qp_attr, mask, qp_attr 124 drivers/infiniband/hw/efa/efa.h int efa_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, qp_attr 155 drivers/infiniband/hw/efa/efa.h int efa_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, qp_attr 349 drivers/infiniband/hw/efa/efa_verbs.c int efa_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, qp_attr 370 drivers/infiniband/hw/efa/efa_verbs.c memset(qp_attr, 0, sizeof(*qp_attr)); qp_attr 378 drivers/infiniband/hw/efa/efa_verbs.c qp_attr->qp_state = result.qp_state; qp_attr 379 drivers/infiniband/hw/efa/efa_verbs.c qp_attr->qkey = result.qkey; qp_attr 380 drivers/infiniband/hw/efa/efa_verbs.c qp_attr->sq_psn = result.sq_psn; qp_attr 381 drivers/infiniband/hw/efa/efa_verbs.c qp_attr->sq_draining = result.sq_draining; qp_attr 382 drivers/infiniband/hw/efa/efa_verbs.c qp_attr->port_num = 1; qp_attr 384 drivers/infiniband/hw/efa/efa_verbs.c qp_attr->cap.max_send_wr = qp->max_send_wr; qp_attr 385 drivers/infiniband/hw/efa/efa_verbs.c qp_attr->cap.max_recv_wr = qp->max_recv_wr; qp_attr 386 drivers/infiniband/hw/efa/efa_verbs.c qp_attr->cap.max_send_sge = qp->max_send_sge; qp_attr 387 drivers/infiniband/hw/efa/efa_verbs.c qp_attr->cap.max_recv_sge = qp->max_recv_sge; qp_attr 388 drivers/infiniband/hw/efa/efa_verbs.c qp_attr->cap.max_inline_data = qp->max_inline_data; qp_attr 394 drivers/infiniband/hw/efa/efa_verbs.c qp_init_attr->cap = qp_attr->cap; qp_attr 787 drivers/infiniband/hw/efa/efa_verbs.c struct ib_qp_attr *qp_attr, int qp_attr_mask, qp_attr 808 drivers/infiniband/hw/efa/efa_verbs.c if ((qp_attr_mask & IB_QP_PORT) && qp_attr->port_num != 1) { qp_attr 813 drivers/infiniband/hw/efa/efa_verbs.c if ((qp_attr_mask & IB_QP_PKEY_INDEX) && qp_attr->pkey_index) { qp_attr 821 drivers/infiniband/hw/efa/efa_verbs.c int efa_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, qp_attr 838 drivers/infiniband/hw/efa/efa_verbs.c cur_state = qp_attr_mask & IB_QP_CUR_STATE ? qp_attr->cur_qp_state : qp_attr 840 drivers/infiniband/hw/efa/efa_verbs.c new_state = qp_attr_mask & IB_QP_STATE ? qp_attr->qp_state : cur_state; qp_attr 842 drivers/infiniband/hw/efa/efa_verbs.c err = efa_modify_qp_validate(dev, qp, qp_attr, qp_attr_mask, cur_state, qp_attr 852 drivers/infiniband/hw/efa/efa_verbs.c params.cur_qp_state = qp_attr->cur_qp_state; qp_attr 853 drivers/infiniband/hw/efa/efa_verbs.c params.qp_state = qp_attr->qp_state; qp_attr 859 drivers/infiniband/hw/efa/efa_verbs.c params.sq_drained_async_notify = qp_attr->en_sqd_async_notify; qp_attr 864 drivers/infiniband/hw/efa/efa_verbs.c params.qkey = qp_attr->qkey; qp_attr 869 drivers/infiniband/hw/efa/efa_verbs.c params.sq_psn = qp_attr->sq_psn; qp_attr 961 drivers/infiniband/hw/hns/hns_roce_device.h int (*query_qp)(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, qp_attr 3379 drivers/infiniband/hw/hns/hns_roce_hw_v1.c static int hns_roce_v1_q_sqp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, qp_attr 3391 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->qp_state = IB_QPS_RESET; qp_attr 3411 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->qp_state = hr_qp->state; qp_attr 3412 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->path_mtu = IB_MTU_256; qp_attr 3413 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->path_mig_state = IB_MIG_ARMED; qp_attr 3414 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->qkey = QKEY_VAL; qp_attr 3415 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE; qp_attr 3416 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->rq_psn = 0; qp_attr 3417 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->sq_psn = 0; qp_attr 3418 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->dest_qp_num = 1; qp_attr 3419 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->qp_access_flags = 6; qp_attr 3421 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->pkey_index = roce_get_field(context.qp1c_bytes_20, qp_attr 3424 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->port_num = hr_qp->port + 1; qp_attr 3425 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->sq_draining = 0; qp_attr 3426 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->max_rd_atomic = 0; qp_attr 3427 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->max_dest_rd_atomic = 0; qp_attr 3428 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->min_rnr_timer = 0; qp_attr 3429 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->timeout = 0; qp_attr 3430 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->retry_cnt = 0; qp_attr 3431 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->rnr_retry = 0; qp_attr 3432 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->alt_timeout = 0; qp_attr 3435 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cur_qp_state = qp_attr->qp_state; qp_attr 3436 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cap.max_recv_wr = hr_qp->rq.wqe_cnt; qp_attr 3437 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cap.max_recv_sge = hr_qp->rq.max_gs; qp_attr 3438 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cap.max_send_wr = hr_qp->sq.wqe_cnt; qp_attr 3439 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cap.max_send_sge = hr_qp->sq.max_gs; qp_attr 3440 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cap.max_inline_data = 0; qp_attr 3441 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_init_attr->cap = qp_attr->cap; qp_attr 3449 drivers/infiniband/hw/hns/hns_roce_hw_v1.c static int hns_roce_v1_q_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, qp_attr 3465 drivers/infiniband/hw/hns/hns_roce_hw_v1.c memset(qp_attr, 0, sizeof(*qp_attr)); qp_attr 3471 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->qp_state = IB_QPS_RESET; qp_attr 3492 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->qp_state = (enum ib_qp_state)hr_qp->state; qp_attr 3493 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->path_mtu = (enum ib_mtu)roce_get_field(context->qpc_bytes_48, qp_attr 3496 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->path_mig_state = IB_MIG_ARMED; qp_attr 3497 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE; qp_attr 3499 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->qkey = QKEY_VAL; qp_attr 3501 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->rq_psn = roce_get_field(context->qpc_bytes_88, qp_attr 3504 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->sq_psn = (u32)roce_get_field(context->qpc_bytes_164, qp_attr 3507 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->dest_qp_num = (u8)roce_get_field(context->qpc_bytes_36, qp_attr 3510 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->qp_access_flags = ((roce_get_bit(context->qpc_bytes_4, qp_attr 3520 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_retrieve_grh(&qp_attr->ah_attr); qp_attr 3522 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_set_sl(&qp_attr->ah_attr, qp_attr 3526 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_set_ah_flags(&qp_attr->ah_attr, IB_AH_GRH); qp_attr 3548 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->pkey_index = roce_get_field(context->qpc_bytes_12, qp_attr 3551 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->port_num = hr_qp->port + 1; qp_attr 3552 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->sq_draining = 0; qp_attr 3553 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->max_rd_atomic = 1 << roce_get_field(context->qpc_bytes_156, qp_attr 3556 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->max_dest_rd_atomic = 1 << roce_get_field(context->qpc_bytes_32, qp_attr 3559 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->min_rnr_timer = (u8)(roce_get_field(context->qpc_bytes_24, qp_attr 3562 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->timeout = (u8)(roce_get_field(context->qpc_bytes_156, qp_attr 3565 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->retry_cnt = roce_get_field(context->qpc_bytes_148, qp_attr 3568 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->rnr_retry = (u8)le32_to_cpu(context->rnr_retry); qp_attr 3571 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cur_qp_state = qp_attr->qp_state; qp_attr 3572 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cap.max_recv_wr = hr_qp->rq.wqe_cnt; qp_attr 3573 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cap.max_recv_sge = hr_qp->rq.max_gs; qp_attr 3576 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cap.max_send_wr = hr_qp->sq.wqe_cnt; qp_attr 3577 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cap.max_send_sge = hr_qp->sq.max_gs; qp_attr 3579 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cap.max_send_wr = 0; qp_attr 3580 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cap.max_send_sge = 0; qp_attr 3583 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_init_attr->cap = qp_attr->cap; qp_attr 3591 drivers/infiniband/hw/hns/hns_roce_hw_v1.c static int hns_roce_v1_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, qp_attr 3598 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hns_roce_v1_q_sqp(ibqp, qp_attr, qp_attr_mask, qp_init_attr) : qp_attr 3599 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hns_roce_v1_q_qp(ibqp, qp_attr, qp_attr_mask, qp_init_attr); qp_attr 4521 drivers/infiniband/hw/hns/hns_roce_hw_v2.c static int hns_roce_v2_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, qp_attr 4533 drivers/infiniband/hw/hns/hns_roce_hw_v2.c memset(qp_attr, 0, sizeof(*qp_attr)); qp_attr 4539 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->qp_state = IB_QPS_RESET; qp_attr 4560 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->qp_state = (enum ib_qp_state)hr_qp->state; qp_attr 4561 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->path_mtu = (enum ib_mtu)roce_get_field(context.byte_24_mtu_tc, qp_attr 4564 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->path_mig_state = IB_MIG_ARMED; qp_attr 4565 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE; qp_attr 4567 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->qkey = V2_QKEY_VAL; qp_attr 4569 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->rq_psn = roce_get_field(context.byte_108_rx_reqepsn, qp_attr 4572 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->sq_psn = (u32)roce_get_field(context.byte_172_sq_psn, qp_attr 4575 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->dest_qp_num = (u8)roce_get_field(context.byte_56_dqpn_err, qp_attr 4578 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->qp_access_flags = ((roce_get_bit(context.byte_76_srqn_op_en, qp_attr 4588 drivers/infiniband/hw/hns/hns_roce_hw_v2.c rdma_ah_retrieve_grh(&qp_attr->ah_attr); qp_attr 4590 drivers/infiniband/hw/hns/hns_roce_hw_v2.c rdma_ah_set_sl(&qp_attr->ah_attr, qp_attr 4610 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->port_num = hr_qp->port + 1; qp_attr 4611 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->sq_draining = 0; qp_attr 4612 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->max_rd_atomic = 1 << roce_get_field(context.byte_208_irrl, qp_attr 4615 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->max_dest_rd_atomic = 1 << roce_get_field(context.byte_140_raq, qp_attr 4618 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->min_rnr_timer = (u8)roce_get_field(context.byte_80_rnr_rx_cqn, qp_attr 4621 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->timeout = (u8)roce_get_field(context.byte_28_at_fl, qp_attr 4624 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->retry_cnt = roce_get_field(context.byte_212_lsn, qp_attr 4627 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->rnr_retry = le32_to_cpu(context.rq_rnr_timer); qp_attr 4630 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->cur_qp_state = qp_attr->qp_state; qp_attr 4631 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->cap.max_recv_wr = hr_qp->rq.wqe_cnt; qp_attr 4632 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->cap.max_recv_sge = hr_qp->rq.max_gs; qp_attr 4635 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->cap.max_send_wr = hr_qp->sq.wqe_cnt; qp_attr 4636 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->cap.max_send_sge = hr_qp->sq.max_gs; qp_attr 4638 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->cap.max_send_wr = 0; qp_attr 4639 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->cap.max_send_sge = 0; qp_attr 4642 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_init_attr->cap = qp_attr->cap; qp_attr 779 drivers/infiniband/hw/mlx4/mlx4_ib.h int mlx4_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, qp_attr 4022 drivers/infiniband/hw/mlx4/qp.c int mlx4_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, qp_attr 4037 drivers/infiniband/hw/mlx4/qp.c qp_attr->qp_state = IB_QPS_RESET; qp_attr 4050 drivers/infiniband/hw/mlx4/qp.c qp_attr->qp_state = qp->state; qp_attr 4051 drivers/infiniband/hw/mlx4/qp.c qp_attr->path_mtu = context.mtu_msgmax >> 5; qp_attr 4052 drivers/infiniband/hw/mlx4/qp.c qp_attr->path_mig_state = qp_attr 4054 drivers/infiniband/hw/mlx4/qp.c qp_attr->qkey = be32_to_cpu(context.qkey); qp_attr 4055 drivers/infiniband/hw/mlx4/qp.c qp_attr->rq_psn = be32_to_cpu(context.rnr_nextrecvpsn) & 0xffffff; qp_attr 4056 drivers/infiniband/hw/mlx4/qp.c qp_attr->sq_psn = be32_to_cpu(context.next_send_psn) & 0xffffff; qp_attr 4057 drivers/infiniband/hw/mlx4/qp.c qp_attr->dest_qp_num = be32_to_cpu(context.remote_qpn) & 0xffffff; qp_attr 4058 drivers/infiniband/hw/mlx4/qp.c qp_attr->qp_access_flags = qp_attr 4062 drivers/infiniband/hw/mlx4/qp.c to_rdma_ah_attr(dev, &qp_attr->ah_attr, &context.pri_path); qp_attr 4063 drivers/infiniband/hw/mlx4/qp.c to_rdma_ah_attr(dev, &qp_attr->alt_ah_attr, &context.alt_path); qp_attr 4064 drivers/infiniband/hw/mlx4/qp.c qp_attr->alt_pkey_index = context.alt_path.pkey_index & 0x7f; qp_attr 4065 drivers/infiniband/hw/mlx4/qp.c qp_attr->alt_port_num = qp_attr 4066 drivers/infiniband/hw/mlx4/qp.c rdma_ah_get_port_num(&qp_attr->alt_ah_attr); qp_attr 4069 drivers/infiniband/hw/mlx4/qp.c qp_attr->pkey_index = context.pri_path.pkey_index & 0x7f; qp_attr 4070 drivers/infiniband/hw/mlx4/qp.c if (qp_attr->qp_state == IB_QPS_INIT) qp_attr 4071 drivers/infiniband/hw/mlx4/qp.c qp_attr->port_num = qp->port; qp_attr 4073 drivers/infiniband/hw/mlx4/qp.c qp_attr->port_num = context.pri_path.sched_queue & 0x40 ? 2 : 1; qp_attr 4076 drivers/infiniband/hw/mlx4/qp.c qp_attr->sq_draining = mlx4_state == MLX4_QP_STATE_SQ_DRAINING; qp_attr 4078 drivers/infiniband/hw/mlx4/qp.c qp_attr->max_rd_atomic = 1 << ((be32_to_cpu(context.params1) >> 21) & 0x7); qp_attr 4080 drivers/infiniband/hw/mlx4/qp.c qp_attr->max_dest_rd_atomic = qp_attr 4082 drivers/infiniband/hw/mlx4/qp.c qp_attr->min_rnr_timer = qp_attr 4084 drivers/infiniband/hw/mlx4/qp.c qp_attr->timeout = context.pri_path.ackto >> 3; qp_attr 4085 drivers/infiniband/hw/mlx4/qp.c qp_attr->retry_cnt = (be32_to_cpu(context.params1) >> 16) & 0x7; qp_attr 4086 drivers/infiniband/hw/mlx4/qp.c qp_attr->rnr_retry = (be32_to_cpu(context.params1) >> 13) & 0x7; qp_attr 4087 drivers/infiniband/hw/mlx4/qp.c qp_attr->alt_timeout = context.alt_path.ackto >> 3; qp_attr 4090 drivers/infiniband/hw/mlx4/qp.c qp_attr->cur_qp_state = qp_attr->qp_state; qp_attr 4091 drivers/infiniband/hw/mlx4/qp.c qp_attr->cap.max_recv_wr = qp->rq.wqe_cnt; qp_attr 4092 drivers/infiniband/hw/mlx4/qp.c qp_attr->cap.max_recv_sge = qp->rq.max_gs; qp_attr 4095 drivers/infiniband/hw/mlx4/qp.c qp_attr->cap.max_send_wr = qp->sq.wqe_cnt; qp_attr 4096 drivers/infiniband/hw/mlx4/qp.c qp_attr->cap.max_send_sge = qp->sq.max_gs; qp_attr 4098 drivers/infiniband/hw/mlx4/qp.c qp_attr->cap.max_send_wr = 0; qp_attr 4099 drivers/infiniband/hw/mlx4/qp.c qp_attr->cap.max_send_sge = 0; qp_attr 4106 drivers/infiniband/hw/mlx4/qp.c qp_attr->cap.max_inline_data = 0; qp_attr 4108 drivers/infiniband/hw/mlx4/qp.c qp_init_attr->cap = qp_attr->cap; qp_attr 398 drivers/infiniband/hw/mlx5/gsi.c int mlx5_ib_gsi_query_qp(struct ib_qp *qp, struct ib_qp_attr *qp_attr, qp_attr 406 drivers/infiniband/hw/mlx5/gsi.c ret = ib_query_qp(gsi->rx_qp, qp_attr, qp_attr_mask, qp_init_attr); qp_attr 1125 drivers/infiniband/hw/mlx5/mlx5_ib.h int mlx5_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, qp_attr 1319 drivers/infiniband/hw/mlx5/mlx5_ib.h int mlx5_ib_gsi_query_qp(struct ib_qp *qp, struct ib_qp_attr *qp_attr, qp_attr 5628 drivers/infiniband/hw/mlx5/qp.c struct ib_qp_attr *qp_attr) qp_attr 5651 drivers/infiniband/hw/mlx5/qp.c qp_attr->path_mtu = context->mtu_msgmax >> 5; qp_attr 5652 drivers/infiniband/hw/mlx5/qp.c qp_attr->path_mig_state = qp_attr 5654 drivers/infiniband/hw/mlx5/qp.c qp_attr->qkey = be32_to_cpu(context->qkey); qp_attr 5655 drivers/infiniband/hw/mlx5/qp.c qp_attr->rq_psn = be32_to_cpu(context->rnr_nextrecvpsn) & 0xffffff; qp_attr 5656 drivers/infiniband/hw/mlx5/qp.c qp_attr->sq_psn = be32_to_cpu(context->next_send_psn) & 0xffffff; qp_attr 5657 drivers/infiniband/hw/mlx5/qp.c qp_attr->dest_qp_num = be32_to_cpu(context->log_pg_sz_remote_qpn) & 0xffffff; qp_attr 5658 drivers/infiniband/hw/mlx5/qp.c qp_attr->qp_access_flags = qp_attr 5662 drivers/infiniband/hw/mlx5/qp.c to_rdma_ah_attr(dev, &qp_attr->ah_attr, &context->pri_path); qp_attr 5663 drivers/infiniband/hw/mlx5/qp.c to_rdma_ah_attr(dev, &qp_attr->alt_ah_attr, &context->alt_path); qp_attr 5664 drivers/infiniband/hw/mlx5/qp.c qp_attr->alt_pkey_index = qp_attr 5666 drivers/infiniband/hw/mlx5/qp.c qp_attr->alt_port_num = qp_attr 5667 drivers/infiniband/hw/mlx5/qp.c rdma_ah_get_port_num(&qp_attr->alt_ah_attr); qp_attr 5670 drivers/infiniband/hw/mlx5/qp.c qp_attr->pkey_index = be16_to_cpu(context->pri_path.pkey_index); qp_attr 5671 drivers/infiniband/hw/mlx5/qp.c qp_attr->port_num = context->pri_path.port; qp_attr 5674 drivers/infiniband/hw/mlx5/qp.c qp_attr->sq_draining = mlx5_state == MLX5_QP_STATE_SQ_DRAINING; qp_attr 5676 drivers/infiniband/hw/mlx5/qp.c qp_attr->max_rd_atomic = 1 << ((be32_to_cpu(context->params1) >> 21) & 0x7); qp_attr 5678 drivers/infiniband/hw/mlx5/qp.c qp_attr->max_dest_rd_atomic = qp_attr 5680 drivers/infiniband/hw/mlx5/qp.c qp_attr->min_rnr_timer = qp_attr 5682 drivers/infiniband/hw/mlx5/qp.c qp_attr->timeout = context->pri_path.ackto_lt >> 3; qp_attr 5683 drivers/infiniband/hw/mlx5/qp.c qp_attr->retry_cnt = (be32_to_cpu(context->params1) >> 16) & 0x7; qp_attr 5684 drivers/infiniband/hw/mlx5/qp.c qp_attr->rnr_retry = (be32_to_cpu(context->params1) >> 13) & 0x7; qp_attr 5685 drivers/infiniband/hw/mlx5/qp.c qp_attr->alt_timeout = context->alt_path.ackto_lt >> 3; qp_attr 5693 drivers/infiniband/hw/mlx5/qp.c struct ib_qp_attr *qp_attr, int qp_attr_mask, qp_attr 5726 drivers/infiniband/hw/mlx5/qp.c qp_attr->qp_state = IB_QPS_RTR; qp_attr 5735 drivers/infiniband/hw/mlx5/qp.c qp_attr->qp_access_flags = access_flags; qp_attr 5739 drivers/infiniband/hw/mlx5/qp.c qp_attr->port_num = MLX5_GET(dctc, dctc, port); qp_attr 5741 drivers/infiniband/hw/mlx5/qp.c qp_attr->min_rnr_timer = MLX5_GET(dctc, dctc, min_rnr_nak); qp_attr 5743 drivers/infiniband/hw/mlx5/qp.c qp_attr->ah_attr.grh.traffic_class = MLX5_GET(dctc, dctc, tclass); qp_attr 5744 drivers/infiniband/hw/mlx5/qp.c qp_attr->ah_attr.grh.flow_label = MLX5_GET(dctc, dctc, flow_label); qp_attr 5745 drivers/infiniband/hw/mlx5/qp.c qp_attr->ah_attr.grh.sgid_index = MLX5_GET(dctc, dctc, my_addr_index); qp_attr 5746 drivers/infiniband/hw/mlx5/qp.c qp_attr->ah_attr.grh.hop_limit = MLX5_GET(dctc, dctc, hop_limit); qp_attr 5749 drivers/infiniband/hw/mlx5/qp.c qp_attr->path_mtu = MLX5_GET(dctc, dctc, mtu); qp_attr 5751 drivers/infiniband/hw/mlx5/qp.c qp_attr->pkey_index = MLX5_GET(dctc, dctc, pkey_index); qp_attr 5757 drivers/infiniband/hw/mlx5/qp.c int mlx5_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, qp_attr 5769 drivers/infiniband/hw/mlx5/qp.c return mlx5_ib_gsi_query_qp(ibqp, qp_attr, qp_attr_mask, qp_attr 5774 drivers/infiniband/hw/mlx5/qp.c memset(qp_attr, 0, sizeof(*qp_attr)); qp_attr 5777 drivers/infiniband/hw/mlx5/qp.c return mlx5_ib_dct_query_qp(dev, qp, qp_attr, qp_attr 5788 drivers/infiniband/hw/mlx5/qp.c qp_attr->port_num = 1; qp_attr 5790 drivers/infiniband/hw/mlx5/qp.c err = query_qp_attr(dev, qp, qp_attr); qp_attr 5795 drivers/infiniband/hw/mlx5/qp.c qp_attr->qp_state = qp->state; qp_attr 5796 drivers/infiniband/hw/mlx5/qp.c qp_attr->cur_qp_state = qp_attr->qp_state; qp_attr 5797 drivers/infiniband/hw/mlx5/qp.c qp_attr->cap.max_recv_wr = qp->rq.wqe_cnt; qp_attr 5798 drivers/infiniband/hw/mlx5/qp.c qp_attr->cap.max_recv_sge = qp->rq.max_gs; qp_attr 5801 drivers/infiniband/hw/mlx5/qp.c qp_attr->cap.max_send_wr = qp->sq.max_post; qp_attr 5802 drivers/infiniband/hw/mlx5/qp.c qp_attr->cap.max_send_sge = qp->sq.max_gs; qp_attr 5805 drivers/infiniband/hw/mlx5/qp.c qp_attr->cap.max_send_wr = 0; qp_attr 5806 drivers/infiniband/hw/mlx5/qp.c qp_attr->cap.max_send_sge = 0; qp_attr 5813 drivers/infiniband/hw/mlx5/qp.c qp_attr->cap.max_inline_data = qp->max_inline_data; qp_attr 5815 drivers/infiniband/hw/mlx5/qp.c qp_init_attr->cap = qp_attr->cap; qp_attr 530 drivers/infiniband/hw/mthca/mthca_dev.h int mthca_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, qp_attr 430 drivers/infiniband/hw/mthca/mthca_qp.c int mthca_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, qp_attr 444 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->qp_state = IB_QPS_RESET; qp_attr 465 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->qp_state = qp->state; qp_attr 466 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->path_mtu = context->mtu_msgmax >> 5; qp_attr 467 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->path_mig_state = qp_attr 469 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->qkey = be32_to_cpu(context->qkey); qp_attr 470 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->rq_psn = be32_to_cpu(context->rnr_nextrecvpsn) & 0xffffff; qp_attr 471 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->sq_psn = be32_to_cpu(context->next_send_psn) & 0xffffff; qp_attr 472 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->dest_qp_num = be32_to_cpu(context->remote_qpn) & 0xffffff; qp_attr 473 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->qp_access_flags = qp_attr 477 drivers/infiniband/hw/mthca/mthca_qp.c to_rdma_ah_attr(dev, &qp_attr->ah_attr, &context->pri_path); qp_attr 478 drivers/infiniband/hw/mthca/mthca_qp.c to_rdma_ah_attr(dev, &qp_attr->alt_ah_attr, &context->alt_path); qp_attr 479 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->alt_pkey_index = qp_attr 481 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->alt_port_num = qp_attr 482 drivers/infiniband/hw/mthca/mthca_qp.c rdma_ah_get_port_num(&qp_attr->alt_ah_attr); qp_attr 485 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->pkey_index = be32_to_cpu(context->pri_path.port_pkey) & 0x7f; qp_attr 486 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->port_num = qp_attr 490 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->sq_draining = mthca_state == MTHCA_QP_STATE_DRAINING; qp_attr 492 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->max_rd_atomic = 1 << ((be32_to_cpu(context->params1) >> 21) & 0x7); qp_attr 494 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->max_dest_rd_atomic = qp_attr 496 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->min_rnr_timer = qp_attr 498 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->timeout = context->pri_path.ackto >> 3; qp_attr 499 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->retry_cnt = (be32_to_cpu(context->params1) >> 16) & 0x7; qp_attr 500 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->rnr_retry = context->pri_path.rnr_retry >> 5; qp_attr 501 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->alt_timeout = context->alt_path.ackto >> 3; qp_attr 504 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->cur_qp_state = qp_attr->qp_state; qp_attr 505 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->cap.max_send_wr = qp->sq.max; qp_attr 506 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->cap.max_recv_wr = qp->rq.max; qp_attr 507 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->cap.max_send_sge = qp->sq.max_gs; qp_attr 508 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->cap.max_recv_sge = qp->rq.max_gs; qp_attr 509 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->cap.max_inline_data = qp->max_inline_data; qp_attr 511 drivers/infiniband/hw/mthca/mthca_qp.c qp_init_attr->cap = qp_attr->cap; qp_attr 1469 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c struct ib_qp_attr *qp_attr, qp_attr 1485 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->qkey = params.qkey; qp_attr 1486 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->path_mtu = qp_attr 1490 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->path_mig_state = IB_MIG_MIGRATED; qp_attr 1491 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->rq_psn = params.hop_lmt_rq_psn & OCRDMA_QP_PARAMS_RQ_PSN_MASK; qp_attr 1492 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->sq_psn = params.tclass_sq_psn & OCRDMA_QP_PARAMS_SQ_PSN_MASK; qp_attr 1493 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->dest_qp_num = qp_attr 1496 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->qp_access_flags = ocrdma_to_ib_qp_acc_flags(qp->cap_flags); qp_attr 1497 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->cap.max_send_wr = qp->sq.max_cnt - 1; qp_attr 1498 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->cap.max_recv_wr = qp->rq.max_cnt - 1; qp_attr 1499 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->cap.max_send_sge = qp->sq.max_sges; qp_attr 1500 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->cap.max_recv_sge = qp->rq.max_sges; qp_attr 1501 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->cap.max_inline_data = qp->max_inline_data; qp_attr 1502 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_init_attr->cap = qp_attr->cap; qp_attr 1503 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE; qp_attr 1505 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c rdma_ah_set_grh(&qp_attr->ah_attr, NULL, qp_attr 1515 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c rdma_ah_set_dgid_raw(&qp_attr->ah_attr, ¶ms.dgid[0]); qp_attr 1517 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c rdma_ah_set_port_num(&qp_attr->ah_attr, 1); qp_attr 1518 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c rdma_ah_set_sl(&qp_attr->ah_attr, (params.rnt_rc_sl_fl & qp_attr 1521 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->timeout = (params.ack_to_rnr_rtc_dest_qpn & qp_attr 1524 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->rnr_retry = (params.ack_to_rnr_rtc_dest_qpn & qp_attr 1527 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->retry_cnt = qp_attr 1530 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->min_rnr_timer = 0; qp_attr 1531 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->pkey_index = 0; qp_attr 1532 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->port_num = 1; qp_attr 1533 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c rdma_ah_set_path_bits(&qp_attr->ah_attr, 0); qp_attr 1534 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c rdma_ah_set_static_rate(&qp_attr->ah_attr, 0); qp_attr 1535 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->alt_pkey_index = 0; qp_attr 1536 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->alt_port_num = 0; qp_attr 1537 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->alt_timeout = 0; qp_attr 1538 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c memset(&qp_attr->alt_ah_attr, 0, sizeof(qp_attr->alt_ah_attr)); qp_attr 1541 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->qp_state = get_ibqp_state(qp_state); qp_attr 1542 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->cur_qp_state = qp_attr->qp_state; qp_attr 1543 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->sq_draining = (qp_state == OCRDMA_QPS_SQ_DRAINING) ? 1 : 0; qp_attr 1544 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->max_dest_rd_atomic = qp_attr 1546 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->max_rd_atomic = qp_attr 1548 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->en_sqd_async_notify = (params.max_sge_recv_flags & qp_attr 1551 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c ocrdma_qp_state_change(qp, qp_attr->qp_state, NULL); qp_attr 87 drivers/infiniband/hw/ocrdma/ocrdma_verbs.h struct ib_qp_attr *qp_attr, qp_attr 2377 drivers/infiniband/hw/qedr/verbs.c struct ib_qp_attr *qp_attr, qp_attr 2391 drivers/infiniband/hw/qedr/verbs.c memset(qp_attr, 0, sizeof(*qp_attr)); qp_attr 2394 drivers/infiniband/hw/qedr/verbs.c qp_attr->qp_state = qedr_get_ibqp_state(params.state); qp_attr 2395 drivers/infiniband/hw/qedr/verbs.c qp_attr->cur_qp_state = qedr_get_ibqp_state(params.state); qp_attr 2396 drivers/infiniband/hw/qedr/verbs.c qp_attr->path_mtu = ib_mtu_int_to_enum(params.mtu); qp_attr 2397 drivers/infiniband/hw/qedr/verbs.c qp_attr->path_mig_state = IB_MIG_MIGRATED; qp_attr 2398 drivers/infiniband/hw/qedr/verbs.c qp_attr->rq_psn = params.rq_psn; qp_attr 2399 drivers/infiniband/hw/qedr/verbs.c qp_attr->sq_psn = params.sq_psn; qp_attr 2400 drivers/infiniband/hw/qedr/verbs.c qp_attr->dest_qp_num = params.dest_qp; qp_attr 2402 drivers/infiniband/hw/qedr/verbs.c qp_attr->qp_access_flags = qedr_to_ib_qp_acc_flags(¶ms); qp_attr 2404 drivers/infiniband/hw/qedr/verbs.c qp_attr->cap.max_send_wr = qp->sq.max_wr; qp_attr 2405 drivers/infiniband/hw/qedr/verbs.c qp_attr->cap.max_recv_wr = qp->rq.max_wr; qp_attr 2406 drivers/infiniband/hw/qedr/verbs.c qp_attr->cap.max_send_sge = qp->sq.max_sges; qp_attr 2407 drivers/infiniband/hw/qedr/verbs.c qp_attr->cap.max_recv_sge = qp->rq.max_sges; qp_attr 2408 drivers/infiniband/hw/qedr/verbs.c qp_attr->cap.max_inline_data = ROCE_REQ_MAX_INLINE_DATA_SIZE; qp_attr 2409 drivers/infiniband/hw/qedr/verbs.c qp_init_attr->cap = qp_attr->cap; qp_attr 2411 drivers/infiniband/hw/qedr/verbs.c qp_attr->ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE; qp_attr 2412 drivers/infiniband/hw/qedr/verbs.c rdma_ah_set_grh(&qp_attr->ah_attr, NULL, qp_attr 2415 drivers/infiniband/hw/qedr/verbs.c rdma_ah_set_dgid_raw(&qp_attr->ah_attr, ¶ms.dgid.bytes[0]); qp_attr 2416 drivers/infiniband/hw/qedr/verbs.c rdma_ah_set_port_num(&qp_attr->ah_attr, 1); qp_attr 2417 drivers/infiniband/hw/qedr/verbs.c rdma_ah_set_sl(&qp_attr->ah_attr, 0); qp_attr 2418 drivers/infiniband/hw/qedr/verbs.c qp_attr->timeout = params.timeout; qp_attr 2419 drivers/infiniband/hw/qedr/verbs.c qp_attr->rnr_retry = params.rnr_retry; qp_attr 2420 drivers/infiniband/hw/qedr/verbs.c qp_attr->retry_cnt = params.retry_cnt; qp_attr 2421 drivers/infiniband/hw/qedr/verbs.c qp_attr->min_rnr_timer = params.min_rnr_nak_timer; qp_attr 2422 drivers/infiniband/hw/qedr/verbs.c qp_attr->pkey_index = params.pkey_index; qp_attr 2423 drivers/infiniband/hw/qedr/verbs.c qp_attr->port_num = 1; qp_attr 2424 drivers/infiniband/hw/qedr/verbs.c rdma_ah_set_path_bits(&qp_attr->ah_attr, 0); qp_attr 2425 drivers/infiniband/hw/qedr/verbs.c rdma_ah_set_static_rate(&qp_attr->ah_attr, 0); qp_attr 2426 drivers/infiniband/hw/qedr/verbs.c qp_attr->alt_pkey_index = 0; qp_attr 2427 drivers/infiniband/hw/qedr/verbs.c qp_attr->alt_port_num = 0; qp_attr 2428 drivers/infiniband/hw/qedr/verbs.c qp_attr->alt_timeout = 0; qp_attr 2429 drivers/infiniband/hw/qedr/verbs.c memset(&qp_attr->alt_ah_attr, 0, sizeof(qp_attr->alt_ah_attr)); qp_attr 2431 drivers/infiniband/hw/qedr/verbs.c qp_attr->sq_draining = (params.state == QED_ROCE_QP_STATE_SQD) ? 1 : 0; qp_attr 2432 drivers/infiniband/hw/qedr/verbs.c qp_attr->max_dest_rd_atomic = params.max_dest_rd_atomic; qp_attr 2433 drivers/infiniband/hw/qedr/verbs.c qp_attr->max_rd_atomic = params.max_rd_atomic; qp_attr 2434 drivers/infiniband/hw/qedr/verbs.c qp_attr->en_sqd_async_notify = (params.sqd_async) ? 1 : 0; qp_attr 2437 drivers/infiniband/hw/qedr/verbs.c qp_attr->cap.max_inline_data); qp_attr 62 drivers/infiniband/hw/qedr/verbs.h int qedr_query_qp(struct ib_qp *, struct ib_qp_attr *qp_attr, qp_attr 384 drivers/infiniband/hw/usnic/usnic_ib_verbs.c int usnic_ib_query_qp(struct ib_qp *qp, struct ib_qp_attr *qp_attr, qp_attr 394 drivers/infiniband/hw/usnic/usnic_ib_verbs.c memset(qp_attr, 0, sizeof(*qp_attr)); qp_attr 401 drivers/infiniband/hw/usnic/usnic_ib_verbs.c qp_attr->qp_state = qp_grp->state; qp_attr 402 drivers/infiniband/hw/usnic/usnic_ib_verbs.c qp_attr->cur_qp_state = qp_grp->state; qp_attr 406 drivers/infiniband/hw/usnic/usnic_ib_verbs.c qp_attr->qkey = 0; qp_attr 46 drivers/infiniband/hw/usnic/usnic_ib_verbs.h int usnic_ib_query_qp(struct ib_qp *qp, struct ib_qp_attr *qp_attr, qp_attr 433 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h int pvrdma_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, qp_attr 523 drivers/infiniband/sw/siw/siw_verbs.c int siw_query_qp(struct ib_qp *base_qp, struct ib_qp_attr *qp_attr, qp_attr 529 drivers/infiniband/sw/siw/siw_verbs.c if (base_qp && qp_attr && qp_init_attr) { qp_attr 535 drivers/infiniband/sw/siw/siw_verbs.c qp_attr->cap.max_inline_data = SIW_MAX_INLINE; qp_attr 536 drivers/infiniband/sw/siw/siw_verbs.c qp_attr->cap.max_send_wr = qp->attrs.sq_size; qp_attr 537 drivers/infiniband/sw/siw/siw_verbs.c qp_attr->cap.max_send_sge = qp->attrs.sq_max_sges; qp_attr 538 drivers/infiniband/sw/siw/siw_verbs.c qp_attr->cap.max_recv_wr = qp->attrs.rq_size; qp_attr 539 drivers/infiniband/sw/siw/siw_verbs.c qp_attr->cap.max_recv_sge = qp->attrs.rq_max_sges; qp_attr 540 drivers/infiniband/sw/siw/siw_verbs.c qp_attr->path_mtu = ib_mtu_int_to_enum(sdev->netdev->mtu); qp_attr 541 drivers/infiniband/sw/siw/siw_verbs.c qp_attr->max_rd_atomic = qp->attrs.irq_size; qp_attr 542 drivers/infiniband/sw/siw/siw_verbs.c qp_attr->max_dest_rd_atomic = qp->attrs.orq_size; qp_attr 544 drivers/infiniband/sw/siw/siw_verbs.c qp_attr->qp_access_flags = IB_ACCESS_LOCAL_WRITE | qp_attr 553 drivers/infiniband/sw/siw/siw_verbs.c qp_init_attr->cap = qp_attr->cap; qp_attr 57 drivers/infiniband/sw/siw/siw_verbs.h int siw_query_qp(struct ib_qp *base_qp, struct ib_qp_attr *qp_attr, qp_attr 278 drivers/infiniband/ulp/ipoib/ipoib_cm.c struct ib_qp_attr qp_attr; qp_attr 281 drivers/infiniband/ulp/ipoib/ipoib_cm.c qp_attr.qp_state = IB_QPS_INIT; qp_attr 282 drivers/infiniband/ulp/ipoib/ipoib_cm.c ret = ib_cm_init_qp_attr(cm_id, &qp_attr, &qp_attr_mask); qp_attr 287 drivers/infiniband/ulp/ipoib/ipoib_cm.c ret = ib_modify_qp(qp, &qp_attr, qp_attr_mask); qp_attr 292 drivers/infiniband/ulp/ipoib/ipoib_cm.c qp_attr.qp_state = IB_QPS_RTR; qp_attr 293 drivers/infiniband/ulp/ipoib/ipoib_cm.c ret = ib_cm_init_qp_attr(cm_id, &qp_attr, &qp_attr_mask); qp_attr 298 drivers/infiniband/ulp/ipoib/ipoib_cm.c qp_attr.rq_psn = psn; qp_attr 299 drivers/infiniband/ulp/ipoib/ipoib_cm.c ret = ib_modify_qp(qp, &qp_attr, qp_attr_mask); qp_attr 313 drivers/infiniband/ulp/ipoib/ipoib_cm.c qp_attr.qp_state = IB_QPS_RTS; qp_attr 314 drivers/infiniband/ulp/ipoib/ipoib_cm.c ret = ib_cm_init_qp_attr(cm_id, &qp_attr, &qp_attr_mask); qp_attr 319 drivers/infiniband/ulp/ipoib/ipoib_cm.c ret = ib_modify_qp(qp, &qp_attr, qp_attr_mask); qp_attr 992 drivers/infiniband/ulp/ipoib/ipoib_cm.c struct ib_qp_attr qp_attr; qp_attr 1004 drivers/infiniband/ulp/ipoib/ipoib_cm.c qp_attr.qp_state = IB_QPS_RTR; qp_attr 1005 drivers/infiniband/ulp/ipoib/ipoib_cm.c ret = ib_cm_init_qp_attr(cm_id, &qp_attr, &qp_attr_mask); qp_attr 1011 drivers/infiniband/ulp/ipoib/ipoib_cm.c qp_attr.rq_psn = 0 /* FIXME */; qp_attr 1012 drivers/infiniband/ulp/ipoib/ipoib_cm.c ret = ib_modify_qp(p->qp, &qp_attr, qp_attr_mask); qp_attr 1018 drivers/infiniband/ulp/ipoib/ipoib_cm.c qp_attr.qp_state = IB_QPS_RTS; qp_attr 1019 drivers/infiniband/ulp/ipoib/ipoib_cm.c ret = ib_cm_init_qp_attr(cm_id, &qp_attr, &qp_attr_mask); qp_attr 1024 drivers/infiniband/ulp/ipoib/ipoib_cm.c ret = ib_modify_qp(p->qp, &qp_attr, qp_attr_mask); qp_attr 1123 drivers/infiniband/ulp/ipoib/ipoib_cm.c struct ib_qp_attr qp_attr; qp_attr 1125 drivers/infiniband/ulp/ipoib/ipoib_cm.c ret = ib_find_pkey(priv->ca, priv->port, priv->pkey, &qp_attr.pkey_index); qp_attr 1131 drivers/infiniband/ulp/ipoib/ipoib_cm.c qp_attr.qp_state = IB_QPS_INIT; qp_attr 1132 drivers/infiniband/ulp/ipoib/ipoib_cm.c qp_attr.qp_access_flags = IB_ACCESS_LOCAL_WRITE; qp_attr 1133 drivers/infiniband/ulp/ipoib/ipoib_cm.c qp_attr.port_num = priv->port; qp_attr 1136 drivers/infiniband/ulp/ipoib/ipoib_cm.c ret = ib_modify_qp(qp, &qp_attr, qp_attr_mask); qp_attr 351 drivers/infiniband/ulp/ipoib/ipoib_ib.c struct ib_qp_attr qp_attr; qp_attr 355 drivers/infiniband/ulp/ipoib/ipoib_ib.c ret = ib_query_qp(priv->qp, &qp_attr, IB_QP_STATE, &query_init_attr); qp_attr 362 drivers/infiniband/ulp/ipoib/ipoib_ib.c __func__, priv->qp->qp_num, qp_attr.qp_state); qp_attr 365 drivers/infiniband/ulp/ipoib/ipoib_ib.c if (qp_attr.qp_state == IB_QPS_SQE) { qp_attr 366 drivers/infiniband/ulp/ipoib/ipoib_ib.c qp_attr.qp_state = IB_QPS_RTS; qp_attr 368 drivers/infiniband/ulp/ipoib/ipoib_ib.c ret = ib_modify_qp(priv->qp, &qp_attr, IB_QP_STATE); qp_attr 378 drivers/infiniband/ulp/ipoib/ipoib_ib.c priv->qp->qp_num, qp_attr.qp_state); qp_attr 740 drivers/infiniband/ulp/ipoib/ipoib_ib.c struct ib_qp_attr qp_attr; qp_attr 744 drivers/infiniband/ulp/ipoib/ipoib_ib.c ret = ib_query_qp(qp, &qp_attr, IB_QP_STATE, &query_init_attr); qp_attr 750 drivers/infiniband/ulp/ipoib/ipoib_ib.c if (new_state == IB_QPS_ERR && qp_attr.qp_state == IB_QPS_RESET) qp_attr 754 drivers/infiniband/ulp/ipoib/ipoib_ib.c new_state, qp_attr.qp_state); qp_attr 776 drivers/infiniband/ulp/ipoib/ipoib_ib.c struct ib_qp_attr qp_attr; qp_attr 790 drivers/infiniband/ulp/ipoib/ipoib_ib.c qp_attr.qp_state = IB_QPS_ERR; qp_attr 791 drivers/infiniband/ulp/ipoib/ipoib_ib.c if (ib_modify_qp(priv->qp, &qp_attr, IB_QP_STATE)) qp_attr 840 drivers/infiniband/ulp/ipoib/ipoib_ib.c qp_attr.qp_state = IB_QPS_RESET; qp_attr 841 drivers/infiniband/ulp/ipoib/ipoib_ib.c if (ib_modify_qp(priv->qp, &qp_attr, IB_QP_STATE)) qp_attr 42 drivers/infiniband/ulp/ipoib/ipoib_verbs.c struct ib_qp_attr *qp_attr = NULL; qp_attr 55 drivers/infiniband/ulp/ipoib/ipoib_verbs.c qp_attr = kmalloc(sizeof(*qp_attr), GFP_KERNEL); qp_attr 56 drivers/infiniband/ulp/ipoib/ipoib_verbs.c if (!qp_attr) qp_attr 60 drivers/infiniband/ulp/ipoib/ipoib_verbs.c qp_attr->qkey = qkey; qp_attr 61 drivers/infiniband/ulp/ipoib/ipoib_verbs.c ret = ib_modify_qp(priv->qp, qp_attr, IB_QP_QKEY); qp_attr 74 drivers/infiniband/ulp/ipoib/ipoib_verbs.c kfree(qp_attr); qp_attr 93 drivers/infiniband/ulp/ipoib/ipoib_verbs.c struct ib_qp_attr qp_attr; qp_attr 99 drivers/infiniband/ulp/ipoib/ipoib_verbs.c qp_attr.qp_state = IB_QPS_INIT; qp_attr 100 drivers/infiniband/ulp/ipoib/ipoib_verbs.c qp_attr.qkey = 0; qp_attr 101 drivers/infiniband/ulp/ipoib/ipoib_verbs.c qp_attr.port_num = priv->port; qp_attr 102 drivers/infiniband/ulp/ipoib/ipoib_verbs.c qp_attr.pkey_index = priv->pkey_index; qp_attr 108 drivers/infiniband/ulp/ipoib/ipoib_verbs.c ret = ib_modify_qp(priv->qp, &qp_attr, attr_mask); qp_attr 114 drivers/infiniband/ulp/ipoib/ipoib_verbs.c qp_attr.qp_state = IB_QPS_RTR; qp_attr 117 drivers/infiniband/ulp/ipoib/ipoib_verbs.c ret = ib_modify_qp(priv->qp, &qp_attr, attr_mask); qp_attr 123 drivers/infiniband/ulp/ipoib/ipoib_verbs.c qp_attr.qp_state = IB_QPS_RTS; qp_attr 124 drivers/infiniband/ulp/ipoib/ipoib_verbs.c qp_attr.sq_psn = 0; qp_attr 127 drivers/infiniband/ulp/ipoib/ipoib_verbs.c ret = ib_modify_qp(priv->qp, &qp_attr, attr_mask); qp_attr 136 drivers/infiniband/ulp/ipoib/ipoib_verbs.c qp_attr.qp_state = IB_QPS_RESET; qp_attr 137 drivers/infiniband/ulp/ipoib/ipoib_verbs.c if (ib_modify_qp(priv->qp, &qp_attr, IB_QP_STATE)) qp_attr 2499 drivers/infiniband/ulp/srp/ib_srp.c static uint32_t srp_compute_rq_tmo(struct ib_qp_attr *qp_attr, int attr_mask) qp_attr 2518 drivers/infiniband/ulp/srp/ib_srp.c T_tr_ns = 4096 * (1ULL << qp_attr->timeout); qp_attr 2519 drivers/infiniband/ulp/srp/ib_srp.c max_compl_time_ms = qp_attr->retry_cnt * 4 * T_tr_ns; qp_attr 2531 drivers/infiniband/ulp/srp/ib_srp.c struct ib_qp_attr *qp_attr = NULL; qp_attr 2583 drivers/infiniband/ulp/srp/ib_srp.c qp_attr = kmalloc(sizeof(*qp_attr), GFP_KERNEL); qp_attr 2584 drivers/infiniband/ulp/srp/ib_srp.c if (!qp_attr) qp_attr 2587 drivers/infiniband/ulp/srp/ib_srp.c qp_attr->qp_state = IB_QPS_RTR; qp_attr 2588 drivers/infiniband/ulp/srp/ib_srp.c ret = ib_cm_init_qp_attr(cm_id, qp_attr, &attr_mask); qp_attr 2592 drivers/infiniband/ulp/srp/ib_srp.c ret = ib_modify_qp(ch->qp, qp_attr, attr_mask); qp_attr 2596 drivers/infiniband/ulp/srp/ib_srp.c qp_attr->qp_state = IB_QPS_RTS; qp_attr 2597 drivers/infiniband/ulp/srp/ib_srp.c ret = ib_cm_init_qp_attr(cm_id, qp_attr, &attr_mask); qp_attr 2601 drivers/infiniband/ulp/srp/ib_srp.c target->rq_tmo_jiffies = srp_compute_rq_tmo(qp_attr, attr_mask); qp_attr 2603 drivers/infiniband/ulp/srp/ib_srp.c ret = ib_modify_qp(ch->qp, qp_attr, attr_mask); qp_attr 2611 drivers/infiniband/ulp/srp/ib_srp.c kfree(qp_attr); qp_attr 1152 drivers/infiniband/ulp/srpt/ib_srpt.c struct ib_qp_attr qp_attr; qp_attr 1158 drivers/infiniband/ulp/srpt/ib_srpt.c qp_attr.qp_state = IB_QPS_RTR; qp_attr 1159 drivers/infiniband/ulp/srpt/ib_srpt.c ret = ib_cm_init_qp_attr(ch->ib_cm.cm_id, &qp_attr, &attr_mask); qp_attr 1163 drivers/infiniband/ulp/srpt/ib_srpt.c qp_attr.max_dest_rd_atomic = 4; qp_attr 1165 drivers/infiniband/ulp/srpt/ib_srpt.c ret = ib_modify_qp(qp, &qp_attr, attr_mask); qp_attr 1184 drivers/infiniband/ulp/srpt/ib_srpt.c struct ib_qp_attr qp_attr; qp_attr 1188 drivers/infiniband/ulp/srpt/ib_srpt.c qp_attr.qp_state = IB_QPS_RTS; qp_attr 1189 drivers/infiniband/ulp/srpt/ib_srpt.c ret = ib_cm_init_qp_attr(ch->ib_cm.cm_id, &qp_attr, &attr_mask); qp_attr 1193 drivers/infiniband/ulp/srpt/ib_srpt.c qp_attr.max_rd_atomic = 4; qp_attr 1195 drivers/infiniband/ulp/srpt/ib_srpt.c ret = ib_modify_qp(qp, &qp_attr, attr_mask); qp_attr 1207 drivers/infiniband/ulp/srpt/ib_srpt.c struct ib_qp_attr qp_attr; qp_attr 1209 drivers/infiniband/ulp/srpt/ib_srpt.c qp_attr.qp_state = IB_QPS_ERR; qp_attr 1210 drivers/infiniband/ulp/srpt/ib_srpt.c return ib_modify_qp(ch->qp, &qp_attr, IB_QP_STATE); qp_attr 493 drivers/net/ethernet/ibm/ehea/ehea_qmr.c struct ehea_qp_init_attr *qp_attr = &qp->init_attr; qp_attr 504 drivers/net/ethernet/ibm/ehea/ehea_qmr.c if (qp_attr->rq_count > 1) qp_attr 506 drivers/net/ethernet/ibm/ehea/ehea_qmr.c if (qp_attr->rq_count > 2) qp_attr 976 drivers/nvme/target/rdma.c struct ib_qp_init_attr qp_attr; qp_attr 1002 drivers/nvme/target/rdma.c memset(&qp_attr, 0, sizeof(qp_attr)); qp_attr 1003 drivers/nvme/target/rdma.c qp_attr.qp_context = queue; qp_attr 1004 drivers/nvme/target/rdma.c qp_attr.event_handler = nvmet_rdma_qp_event; qp_attr 1005 drivers/nvme/target/rdma.c qp_attr.send_cq = queue->cq; qp_attr 1006 drivers/nvme/target/rdma.c qp_attr.recv_cq = queue->cq; qp_attr 1007 drivers/nvme/target/rdma.c qp_attr.sq_sig_type = IB_SIGNAL_REQ_WR; qp_attr 1008 drivers/nvme/target/rdma.c qp_attr.qp_type = IB_QPT_RC; qp_attr 1010 drivers/nvme/target/rdma.c qp_attr.cap.max_send_wr = queue->send_queue_size + 1; qp_attr 1011 drivers/nvme/target/rdma.c qp_attr.cap.max_rdma_ctxs = queue->send_queue_size; qp_attr 1012 drivers/nvme/target/rdma.c qp_attr.cap.max_send_sge = max(ndev->device->attrs.max_sge_rd, qp_attr 1016 drivers/nvme/target/rdma.c qp_attr.srq = ndev->srq; qp_attr 1019 drivers/nvme/target/rdma.c qp_attr.cap.max_recv_wr = 1 + queue->recv_queue_size; qp_attr 1020 drivers/nvme/target/rdma.c qp_attr.cap.max_recv_sge = 1 + ndev->inline_page_count; qp_attr 1023 drivers/nvme/target/rdma.c ret = rdma_create_qp(queue->cm_id, ndev->pd, &qp_attr); qp_attr 1029 drivers/nvme/target/rdma.c atomic_set(&queue->sq_wr_avail, qp_attr.cap.max_send_wr); qp_attr 1032 drivers/nvme/target/rdma.c __func__, queue->cq->cqe, qp_attr.cap.max_send_sge, qp_attr 1033 drivers/nvme/target/rdma.c qp_attr.cap.max_send_wr, queue->cm_id); qp_attr 1597 fs/cifs/smbdirect.c struct ib_qp_init_attr qp_attr; qp_attr 1675 fs/cifs/smbdirect.c memset(&qp_attr, 0, sizeof(qp_attr)); qp_attr 1676 fs/cifs/smbdirect.c qp_attr.event_handler = smbd_qp_async_error_upcall; qp_attr 1677 fs/cifs/smbdirect.c qp_attr.qp_context = info; qp_attr 1678 fs/cifs/smbdirect.c qp_attr.cap.max_send_wr = info->send_credit_target; qp_attr 1679 fs/cifs/smbdirect.c qp_attr.cap.max_recv_wr = info->receive_credit_max; qp_attr 1680 fs/cifs/smbdirect.c qp_attr.cap.max_send_sge = SMBDIRECT_MAX_SGE; qp_attr 1681 fs/cifs/smbdirect.c qp_attr.cap.max_recv_sge = SMBDIRECT_MAX_SGE; qp_attr 1682 fs/cifs/smbdirect.c qp_attr.cap.max_inline_data = 0; qp_attr 1683 fs/cifs/smbdirect.c qp_attr.sq_sig_type = IB_SIGNAL_REQ_WR; qp_attr 1684 fs/cifs/smbdirect.c qp_attr.qp_type = IB_QPT_RC; qp_attr 1685 fs/cifs/smbdirect.c qp_attr.send_cq = info->send_cq; qp_attr 1686 fs/cifs/smbdirect.c qp_attr.recv_cq = info->recv_cq; qp_attr 1687 fs/cifs/smbdirect.c qp_attr.port_num = ~0; qp_attr 1689 fs/cifs/smbdirect.c rc = rdma_create_qp(info->id, info->pd, &qp_attr); qp_attr 57 fs/cifs/smbdirect.h struct ib_qp_init_attr qp_attr; qp_attr 560 include/rdma/ib_cm.h struct ib_qp_attr *qp_attr, qp_attr 2384 include/rdma/ib_verbs.h int (*modify_qp)(struct ib_qp *qp, struct ib_qp_attr *qp_attr, qp_attr 2386 include/rdma/ib_verbs.h int (*query_qp)(struct ib_qp *qp, struct ib_qp_attr *qp_attr, qp_attr 3628 include/rdma/ib_verbs.h struct ib_qp_attr *qp_attr, qp_attr 3643 include/rdma/ib_verbs.h struct ib_qp_attr *qp_attr, qp_attr 242 include/rdma/iw_cm.h int iw_cm_init_qp_attr(struct iw_cm_id *cm_id, struct ib_qp_attr *qp_attr, qp_attr 250 include/rdma/rdma_cm.h int rdma_init_qp_attr(struct rdma_cm_id *id, struct ib_qp_attr *qp_attr, qp_attr 632 net/9p/trans_rdma.c struct ib_qp_init_attr qp_attr; qp_attr 700 net/9p/trans_rdma.c memset(&qp_attr, 0, sizeof qp_attr); qp_attr 701 net/9p/trans_rdma.c qp_attr.event_handler = qp_event_handler; qp_attr 702 net/9p/trans_rdma.c qp_attr.qp_context = client; qp_attr 703 net/9p/trans_rdma.c qp_attr.cap.max_send_wr = opts.sq_depth; qp_attr 704 net/9p/trans_rdma.c qp_attr.cap.max_recv_wr = opts.rq_depth; qp_attr 705 net/9p/trans_rdma.c qp_attr.cap.max_send_sge = P9_RDMA_SEND_SGE; qp_attr 706 net/9p/trans_rdma.c qp_attr.cap.max_recv_sge = P9_RDMA_RECV_SGE; qp_attr 707 net/9p/trans_rdma.c qp_attr.sq_sig_type = IB_SIGNAL_REQ_WR; qp_attr 708 net/9p/trans_rdma.c qp_attr.qp_type = IB_QPT_RC; qp_attr 709 net/9p/trans_rdma.c qp_attr.send_cq = rdma->cq; qp_attr 710 net/9p/trans_rdma.c qp_attr.recv_cq = rdma->cq; qp_attr 711 net/9p/trans_rdma.c err = rdma_create_qp(rdma->cm_id, rdma->pd, &qp_attr); qp_attr 102 net/rds/ib_cm.c struct ib_qp_attr qp_attr; qp_attr 171 net/rds/ib_cm.c rds_ib_tune_rnr(ic, &qp_attr); qp_attr 173 net/rds/ib_cm.c qp_attr.qp_state = IB_QPS_RTS; qp_attr 174 net/rds/ib_cm.c err = ib_modify_qp(ic->i_cm_id->qp, &qp_attr, IB_QP_STATE); qp_attr 80 net/smc/smc_core.h struct ib_qp_attr qp_attr; /* IB queue pair attributes */ qp_attr 47 net/smc/smc_ib.c struct ib_qp_attr qp_attr; qp_attr 49 net/smc/smc_ib.c memset(&qp_attr, 0, sizeof(qp_attr)); qp_attr 50 net/smc/smc_ib.c qp_attr.qp_state = IB_QPS_INIT; qp_attr 51 net/smc/smc_ib.c qp_attr.pkey_index = 0; qp_attr 52 net/smc/smc_ib.c qp_attr.port_num = lnk->ibport; qp_attr 53 net/smc/smc_ib.c qp_attr.qp_access_flags = IB_ACCESS_LOCAL_WRITE qp_attr 55 net/smc/smc_ib.c return ib_modify_qp(lnk->roce_qp, &qp_attr, qp_attr 65 net/smc/smc_ib.c struct ib_qp_attr qp_attr; qp_attr 67 net/smc/smc_ib.c memset(&qp_attr, 0, sizeof(qp_attr)); qp_attr 68 net/smc/smc_ib.c qp_attr.qp_state = IB_QPS_RTR; qp_attr 69 net/smc/smc_ib.c qp_attr.path_mtu = min(lnk->path_mtu, lnk->peer_mtu); qp_attr 70 net/smc/smc_ib.c qp_attr.ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE; qp_attr 71 net/smc/smc_ib.c rdma_ah_set_port_num(&qp_attr.ah_attr, lnk->ibport); qp_attr 72 net/smc/smc_ib.c rdma_ah_set_grh(&qp_attr.ah_attr, NULL, 0, lnk->sgid_index, 1, 0); qp_attr 73 net/smc/smc_ib.c rdma_ah_set_dgid_raw(&qp_attr.ah_attr, lnk->peer_gid); qp_attr 74 net/smc/smc_ib.c memcpy(&qp_attr.ah_attr.roce.dmac, lnk->peer_mac, qp_attr 76 net/smc/smc_ib.c qp_attr.dest_qp_num = lnk->peer_qpn; qp_attr 77 net/smc/smc_ib.c qp_attr.rq_psn = lnk->peer_psn; /* starting receive packet seq # */ qp_attr 78 net/smc/smc_ib.c qp_attr.max_dest_rd_atomic = 1; /* max # of resources for incoming qp_attr 81 net/smc/smc_ib.c qp_attr.min_rnr_timer = SMC_QP_MIN_RNR_TIMER; qp_attr 83 net/smc/smc_ib.c return ib_modify_qp(lnk->roce_qp, &qp_attr, qp_attr_mask); qp_attr 88 net/smc/smc_ib.c struct ib_qp_attr qp_attr; qp_attr 90 net/smc/smc_ib.c memset(&qp_attr, 0, sizeof(qp_attr)); qp_attr 91 net/smc/smc_ib.c qp_attr.qp_state = IB_QPS_RTS; qp_attr 92 net/smc/smc_ib.c qp_attr.timeout = SMC_QP_TIMEOUT; /* local ack timeout */ qp_attr 93 net/smc/smc_ib.c qp_attr.retry_cnt = SMC_QP_RETRY_CNT; /* retry count */ qp_attr 94 net/smc/smc_ib.c qp_attr.rnr_retry = SMC_QP_RNR_RETRY; /* RNR retries, 7=infinite */ qp_attr 95 net/smc/smc_ib.c qp_attr.sq_psn = lnk->psn_initial; /* starting send packet seq # */ qp_attr 96 net/smc/smc_ib.c qp_attr.max_rd_atomic = 1; /* # of outstanding RDMA reads and qp_attr 99 net/smc/smc_ib.c return ib_modify_qp(lnk->roce_qp, &qp_attr, qp_attr 107 net/smc/smc_ib.c struct ib_qp_attr qp_attr; qp_attr 109 net/smc/smc_ib.c memset(&qp_attr, 0, sizeof(qp_attr)); qp_attr 110 net/smc/smc_ib.c qp_attr.qp_state = IB_QPS_RESET; qp_attr 111 net/smc/smc_ib.c return ib_modify_qp(lnk->roce_qp, &qp_attr, IB_QP_STATE); qp_attr 328 net/smc/smc_ib.c struct ib_qp_init_attr qp_attr = { qp_attr 348 net/smc/smc_ib.c lnk->roce_qp = ib_create_qp(lnk->roce_pd, &qp_attr); qp_attr 432 net/smc/smc_wr.c struct ib_qp_attr *attr = &lnk->qp_attr; qp_attr 458 net/smc/smc_wr.c lnk->qp_attr.cap.max_send_wr); qp_attr 460 net/smc/smc_wr.c lnk->qp_attr.cap.max_recv_wr); qp_attr 393 net/sunrpc/xprtrdma/svc_rdma_transport.c struct ib_qp_init_attr qp_attr; qp_attr 468 net/sunrpc/xprtrdma/svc_rdma_transport.c memset(&qp_attr, 0, sizeof qp_attr); qp_attr 469 net/sunrpc/xprtrdma/svc_rdma_transport.c qp_attr.event_handler = qp_event_handler; qp_attr 470 net/sunrpc/xprtrdma/svc_rdma_transport.c qp_attr.qp_context = &newxprt->sc_xprt; qp_attr 471 net/sunrpc/xprtrdma/svc_rdma_transport.c qp_attr.port_num = newxprt->sc_port_num; qp_attr 472 net/sunrpc/xprtrdma/svc_rdma_transport.c qp_attr.cap.max_rdma_ctxs = ctxts; qp_attr 473 net/sunrpc/xprtrdma/svc_rdma_transport.c qp_attr.cap.max_send_wr = newxprt->sc_sq_depth - ctxts; qp_attr 474 net/sunrpc/xprtrdma/svc_rdma_transport.c qp_attr.cap.max_recv_wr = rq_depth; qp_attr 475 net/sunrpc/xprtrdma/svc_rdma_transport.c qp_attr.cap.max_send_sge = newxprt->sc_max_send_sges; qp_attr 476 net/sunrpc/xprtrdma/svc_rdma_transport.c qp_attr.cap.max_recv_sge = 1; qp_attr 477 net/sunrpc/xprtrdma/svc_rdma_transport.c qp_attr.sq_sig_type = IB_SIGNAL_REQ_WR; qp_attr 478 net/sunrpc/xprtrdma/svc_rdma_transport.c qp_attr.qp_type = IB_QPT_RC; qp_attr 479 net/sunrpc/xprtrdma/svc_rdma_transport.c qp_attr.send_cq = newxprt->sc_sq_cq; qp_attr 480 net/sunrpc/xprtrdma/svc_rdma_transport.c qp_attr.recv_cq = newxprt->sc_rq_cq; qp_attr 484 net/sunrpc/xprtrdma/svc_rdma_transport.c qp_attr.cap.max_send_wr, qp_attr.cap.max_recv_wr); qp_attr 486 net/sunrpc/xprtrdma/svc_rdma_transport.c qp_attr.cap.max_send_sge, qp_attr.cap.max_recv_sge); qp_attr 488 net/sunrpc/xprtrdma/svc_rdma_transport.c ret = rdma_create_qp(newxprt->sc_cm_id, newxprt->sc_pd, &qp_attr);