Lines Matching refs:qp_attr

1456 		    struct ib_qp_attr *qp_attr,  in ocrdma_query_qp()  argument
1472 qp_attr->qkey = params.qkey; in ocrdma_query_qp()
1473 qp_attr->path_mtu = in ocrdma_query_qp()
1477 qp_attr->path_mig_state = IB_MIG_MIGRATED; in ocrdma_query_qp()
1478 qp_attr->rq_psn = params.hop_lmt_rq_psn & OCRDMA_QP_PARAMS_RQ_PSN_MASK; in ocrdma_query_qp()
1479 qp_attr->sq_psn = params.tclass_sq_psn & OCRDMA_QP_PARAMS_SQ_PSN_MASK; in ocrdma_query_qp()
1480 qp_attr->dest_qp_num = in ocrdma_query_qp()
1483 qp_attr->qp_access_flags = ocrdma_to_ib_qp_acc_flags(qp->cap_flags); in ocrdma_query_qp()
1484 qp_attr->cap.max_send_wr = qp->sq.max_cnt - 1; in ocrdma_query_qp()
1485 qp_attr->cap.max_recv_wr = qp->rq.max_cnt - 1; in ocrdma_query_qp()
1486 qp_attr->cap.max_send_sge = qp->sq.max_sges; in ocrdma_query_qp()
1487 qp_attr->cap.max_recv_sge = qp->rq.max_sges; in ocrdma_query_qp()
1488 qp_attr->cap.max_inline_data = qp->max_inline_data; in ocrdma_query_qp()
1489 qp_init_attr->cap = qp_attr->cap; in ocrdma_query_qp()
1490 qp_attr->ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE; in ocrdma_query_qp()
1492 rdma_ah_set_grh(&qp_attr->ah_attr, NULL, in ocrdma_query_qp()
1502 rdma_ah_set_dgid_raw(&qp_attr->ah_attr, &params.dgid[0]); in ocrdma_query_qp()
1504 rdma_ah_set_port_num(&qp_attr->ah_attr, 1); in ocrdma_query_qp()
1505 rdma_ah_set_sl(&qp_attr->ah_attr, (params.rnt_rc_sl_fl & in ocrdma_query_qp()
1508 qp_attr->timeout = (params.ack_to_rnr_rtc_dest_qpn & in ocrdma_query_qp()
1511 qp_attr->rnr_retry = (params.ack_to_rnr_rtc_dest_qpn & in ocrdma_query_qp()
1514 qp_attr->retry_cnt = in ocrdma_query_qp()
1517 qp_attr->min_rnr_timer = 0; in ocrdma_query_qp()
1518 qp_attr->pkey_index = 0; in ocrdma_query_qp()
1519 qp_attr->port_num = 1; in ocrdma_query_qp()
1520 rdma_ah_set_path_bits(&qp_attr->ah_attr, 0); in ocrdma_query_qp()
1521 rdma_ah_set_static_rate(&qp_attr->ah_attr, 0); in ocrdma_query_qp()
1522 qp_attr->alt_pkey_index = 0; in ocrdma_query_qp()
1523 qp_attr->alt_port_num = 0; in ocrdma_query_qp()
1524 qp_attr->alt_timeout = 0; in ocrdma_query_qp()
1525 memset(&qp_attr->alt_ah_attr, 0, sizeof(qp_attr->alt_ah_attr)); in ocrdma_query_qp()
1528 qp_attr->qp_state = get_ibqp_state(qp_state); in ocrdma_query_qp()
1529 qp_attr->cur_qp_state = qp_attr->qp_state; in ocrdma_query_qp()
1530 qp_attr->sq_draining = (qp_state == OCRDMA_QPS_SQ_DRAINING) ? 1 : 0; in ocrdma_query_qp()
1531 qp_attr->max_dest_rd_atomic = in ocrdma_query_qp()
1533 qp_attr->max_rd_atomic = in ocrdma_query_qp()
1535 qp_attr->en_sqd_async_notify = (params.max_sge_recv_flags & in ocrdma_query_qp()
1538 ocrdma_qp_state_change(qp, qp_attr->qp_state, NULL); in ocrdma_query_qp()