Lines Matching refs:qp_attr

1808 int bnxt_re_modify_qp(struct ib_qp *ib_qp, struct ib_qp_attr *qp_attr,  in bnxt_re_modify_qp()  argument
1825 new_qp_state = qp_attr->qp_state; in bnxt_re_modify_qp()
1840 qp->qplib_qp.state = __from_ib_qp_state(qp_attr->qp_state); in bnxt_re_modify_qp()
1867 __from_ib_access_flags(qp_attr->qp_access_flags); in bnxt_re_modify_qp()
1876 qp->qplib_qp.pkey_index = qp_attr->pkey_index; in bnxt_re_modify_qp()
1880 qp->qplib_qp.qkey = qp_attr->qkey; in bnxt_re_modify_qp()
1884 rdma_ah_read_grh(&qp_attr->ah_attr); in bnxt_re_modify_qp()
1907 qp->qplib_qp.ah.sl = rdma_ah_get_sl(&qp_attr->ah_attr); in bnxt_re_modify_qp()
1909 qp_attr->ah_attr.roce.dmac); in bnxt_re_modify_qp()
1936 qp->qplib_qp.path_mtu = __from_ib_mtu(qp_attr->path_mtu); in bnxt_re_modify_qp()
1937 qp->qplib_qp.mtu = ib_mtu_enum_to_int(qp_attr->path_mtu); in bnxt_re_modify_qp()
1938 } else if (qp_attr->qp_state == IB_QPS_RTR) { in bnxt_re_modify_qp()
1949 qp->qplib_qp.timeout = qp_attr->timeout; in bnxt_re_modify_qp()
1954 qp->qplib_qp.retry_cnt = qp_attr->retry_cnt; in bnxt_re_modify_qp()
1959 qp->qplib_qp.rnr_retry = qp_attr->rnr_retry; in bnxt_re_modify_qp()
1964 qp->qplib_qp.min_rnr_timer = qp_attr->min_rnr_timer; in bnxt_re_modify_qp()
1968 qp->qplib_qp.rq.psn = qp_attr->rq_psn; in bnxt_re_modify_qp()
1974 qp->qplib_qp.max_rd_atomic = min_t(u32, qp_attr->max_rd_atomic, in bnxt_re_modify_qp()
1979 qp->qplib_qp.sq.psn = qp_attr->sq_psn; in bnxt_re_modify_qp()
1982 if (qp_attr->max_dest_rd_atomic > in bnxt_re_modify_qp()
1986 qp_attr->max_dest_rd_atomic, in bnxt_re_modify_qp()
1993 qp->qplib_qp.max_dest_rd_atomic = qp_attr->max_dest_rd_atomic; in bnxt_re_modify_qp()
2002 if ((qp_attr->cap.max_send_wr >= dev_attr->max_qp_wqes) || in bnxt_re_modify_qp()
2003 (qp_attr->cap.max_recv_wr >= dev_attr->max_qp_wqes) || in bnxt_re_modify_qp()
2004 (qp_attr->cap.max_send_sge >= dev_attr->max_qp_sges) || in bnxt_re_modify_qp()
2005 (qp_attr->cap.max_recv_sge >= dev_attr->max_qp_sges) || in bnxt_re_modify_qp()
2006 (qp_attr->cap.max_inline_data >= in bnxt_re_modify_qp()
2012 entries = roundup_pow_of_two(qp_attr->cap.max_send_wr); in bnxt_re_modify_qp()
2016 qp_attr->cap.max_send_wr; in bnxt_re_modify_qp()
2023 qp->qplib_qp.sq.max_sge = qp_attr->cap.max_send_sge; in bnxt_re_modify_qp()
2025 entries = roundup_pow_of_two(qp_attr->cap.max_recv_wr); in bnxt_re_modify_qp()
2029 qp_attr->cap.max_recv_wr; in bnxt_re_modify_qp()
2030 qp->qplib_qp.rq.max_sge = qp_attr->cap.max_recv_sge; in bnxt_re_modify_qp()
2038 qp->qplib_qp.dest_qpn = qp_attr->dest_qp_num; in bnxt_re_modify_qp()
2050 int bnxt_re_query_qp(struct ib_qp *ib_qp, struct ib_qp_attr *qp_attr, in bnxt_re_query_qp() argument
2070 qp_attr->qp_state = __to_ib_qp_state(qplib_qp->state); in bnxt_re_query_qp()
2071 qp_attr->cur_qp_state = __to_ib_qp_state(qplib_qp->cur_qp_state); in bnxt_re_query_qp()
2072 qp_attr->en_sqd_async_notify = qplib_qp->en_sqd_async_notify ? 1 : 0; in bnxt_re_query_qp()
2073 qp_attr->qp_access_flags = __to_ib_access_flags(qplib_qp->access); in bnxt_re_query_qp()
2074 qp_attr->pkey_index = qplib_qp->pkey_index; in bnxt_re_query_qp()
2075 qp_attr->qkey = qplib_qp->qkey; in bnxt_re_query_qp()
2076 qp_attr->ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE; in bnxt_re_query_qp()
2077 rdma_ah_set_grh(&qp_attr->ah_attr, NULL, qplib_qp->ah.flow_label, in bnxt_re_query_qp()
2081 rdma_ah_set_dgid_raw(&qp_attr->ah_attr, qplib_qp->ah.dgid.data); in bnxt_re_query_qp()
2082 rdma_ah_set_sl(&qp_attr->ah_attr, qplib_qp->ah.sl); in bnxt_re_query_qp()
2083 ether_addr_copy(qp_attr->ah_attr.roce.dmac, qplib_qp->ah.dmac); in bnxt_re_query_qp()
2084 qp_attr->path_mtu = __to_ib_mtu(qplib_qp->path_mtu); in bnxt_re_query_qp()
2085 qp_attr->timeout = qplib_qp->timeout; in bnxt_re_query_qp()
2086 qp_attr->retry_cnt = qplib_qp->retry_cnt; in bnxt_re_query_qp()
2087 qp_attr->rnr_retry = qplib_qp->rnr_retry; in bnxt_re_query_qp()
2088 qp_attr->min_rnr_timer = qplib_qp->min_rnr_timer; in bnxt_re_query_qp()
2089 qp_attr->rq_psn = qplib_qp->rq.psn; in bnxt_re_query_qp()
2090 qp_attr->max_rd_atomic = qplib_qp->max_rd_atomic; in bnxt_re_query_qp()
2091 qp_attr->sq_psn = qplib_qp->sq.psn; in bnxt_re_query_qp()
2092 qp_attr->max_dest_rd_atomic = qplib_qp->max_dest_rd_atomic; in bnxt_re_query_qp()
2095 qp_attr->dest_qp_num = qplib_qp->dest_qpn; in bnxt_re_query_qp()
2097 qp_attr->cap.max_send_wr = qp->qplib_qp.sq.max_wqe; in bnxt_re_query_qp()
2098 qp_attr->cap.max_send_sge = qp->qplib_qp.sq.max_sge; in bnxt_re_query_qp()
2099 qp_attr->cap.max_recv_wr = qp->qplib_qp.rq.max_wqe; in bnxt_re_query_qp()
2100 qp_attr->cap.max_recv_sge = qp->qplib_qp.rq.max_sge; in bnxt_re_query_qp()
2101 qp_attr->cap.max_inline_data = qp->qplib_qp.max_inline_data; in bnxt_re_query_qp()
2102 qp_init_attr->cap = qp_attr->cap; in bnxt_re_query_qp()
2545 struct ib_qp_attr qp_attr; in bnxt_ud_qp_hw_stall_workaround() local
2548 qp_attr.qp_state = IB_QPS_RTS; in bnxt_ud_qp_hw_stall_workaround()
2549 bnxt_re_modify_qp(&qp->ib_qp, &qp_attr, qp_attr_mask, NULL); in bnxt_ud_qp_hw_stall_workaround()