Lines Matching refs:qpcb
1896 struct hcp_modify_qp_control_block *qpcb; in ehca_query_qp() local
1907 qpcb = ehca_alloc_fw_ctrlblock(GFP_KERNEL); in ehca_query_qp()
1908 if (!qpcb) { in ehca_query_qp()
1917 qpcb, my_qp->galpas.kernel); in ehca_query_qp()
1927 qp_attr->cur_qp_state = ehca2ib_qp_state(qpcb->qp_state); in ehca_query_qp()
1934 qpcb->qp_state, my_qp, qp->qp_num); in ehca_query_qp()
1941 qp_attr->qkey = qpcb->qkey; in ehca_query_qp()
1942 qp_attr->path_mtu = qpcb->path_mtu; in ehca_query_qp()
1943 qp_attr->path_mig_state = qpcb->path_migration_state - 1; in ehca_query_qp()
1944 qp_attr->rq_psn = qpcb->receive_psn; in ehca_query_qp()
1945 qp_attr->sq_psn = qpcb->send_psn; in ehca_query_qp()
1946 qp_attr->min_rnr_timer = qpcb->min_rnr_nak_timer_field; in ehca_query_qp()
1947 qp_attr->cap.max_send_wr = qpcb->max_nr_outst_send_wr-1; in ehca_query_qp()
1948 qp_attr->cap.max_recv_wr = qpcb->max_nr_outst_recv_wr-1; in ehca_query_qp()
1952 qpcb->actual_nr_sges_in_sq_wqe - 2; in ehca_query_qp()
1954 qpcb->actual_nr_sges_in_rq_wqe - 2; in ehca_query_qp()
1957 qpcb->actual_nr_sges_in_sq_wqe; in ehca_query_qp()
1959 qpcb->actual_nr_sges_in_rq_wqe; in ehca_query_qp()
1963 qp_attr->dest_qp_num = qpcb->dest_qp_nr; in ehca_query_qp()
1965 qp_attr->pkey_index = qpcb->prim_p_key_idx; in ehca_query_qp()
1966 qp_attr->port_num = qpcb->prim_phys_port; in ehca_query_qp()
1967 qp_attr->timeout = qpcb->timeout; in ehca_query_qp()
1968 qp_attr->retry_cnt = qpcb->retry_count; in ehca_query_qp()
1969 qp_attr->rnr_retry = qpcb->rnr_retry_count; in ehca_query_qp()
1971 qp_attr->alt_pkey_index = qpcb->alt_p_key_idx; in ehca_query_qp()
1972 qp_attr->alt_port_num = qpcb->alt_phys_port; in ehca_query_qp()
1973 qp_attr->alt_timeout = qpcb->timeout_al; in ehca_query_qp()
1975 qp_attr->max_dest_rd_atomic = qpcb->rdma_nr_atomic_resp_res; in ehca_query_qp()
1976 qp_attr->max_rd_atomic = qpcb->rdma_atomic_outst_dest_qp; in ehca_query_qp()
1979 qp_attr->ah_attr.sl = qpcb->service_level; in ehca_query_qp()
1981 if (qpcb->send_grh_flag) { in ehca_query_qp()
1985 qp_attr->ah_attr.static_rate = qpcb->max_static_rate; in ehca_query_qp()
1986 qp_attr->ah_attr.dlid = qpcb->dlid; in ehca_query_qp()
1987 qp_attr->ah_attr.src_path_bits = qpcb->source_path_bits; in ehca_query_qp()
1991 qp_attr->ah_attr.grh.traffic_class = qpcb->traffic_class; in ehca_query_qp()
1992 qp_attr->ah_attr.grh.hop_limit = qpcb->hop_limit; in ehca_query_qp()
1993 qp_attr->ah_attr.grh.sgid_index = qpcb->source_gid_idx; in ehca_query_qp()
1994 qp_attr->ah_attr.grh.flow_label = qpcb->flow_label; in ehca_query_qp()
1998 qpcb->dest_gid.byte[cnt]; in ehca_query_qp()
2001 qp_attr->alt_ah_attr.sl = qpcb->service_level_al; in ehca_query_qp()
2002 if (qpcb->send_grh_flag_al) { in ehca_query_qp()
2006 qp_attr->alt_ah_attr.static_rate = qpcb->max_static_rate_al; in ehca_query_qp()
2007 qp_attr->alt_ah_attr.dlid = qpcb->dlid_al; in ehca_query_qp()
2008 qp_attr->alt_ah_attr.src_path_bits = qpcb->source_path_bits_al; in ehca_query_qp()
2011 qp_attr->alt_ah_attr.grh.traffic_class = qpcb->traffic_class_al; in ehca_query_qp()
2012 qp_attr->alt_ah_attr.grh.hop_limit = qpcb->hop_limit_al; in ehca_query_qp()
2013 qp_attr->alt_ah_attr.grh.sgid_index = qpcb->source_gid_idx_al; in ehca_query_qp()
2014 qp_attr->alt_ah_attr.grh.flow_label = qpcb->flow_label_al; in ehca_query_qp()
2018 qpcb->dest_gid_al.byte[cnt]; in ehca_query_qp()
2025 ehca_dmp(qpcb, 4*70, "qp_num=%x", qp->qp_num); in ehca_query_qp()
2028 ehca_free_fw_ctrlblock(qpcb); in ehca_query_qp()
2097 struct hcp_modify_qp_control_block *qpcb; in ehca_query_srq() local
2101 qpcb = ehca_alloc_fw_ctrlblock(GFP_KERNEL); in ehca_query_srq()
2102 if (!qpcb) { in ehca_query_srq()
2109 NULL, qpcb, my_qp->galpas.kernel); in ehca_query_srq()
2119 srq_attr->max_wr = qpcb->max_nr_outst_recv_wr - 1; in ehca_query_srq()
2121 srq_attr->srq_limit = qpcb->curr_srq_limit; in ehca_query_srq()
2124 ehca_dmp(qpcb, 4*70, "qp_num=%x", my_qp->real_qp_num); in ehca_query_srq()
2127 ehca_free_fw_ctrlblock(qpcb); in ehca_query_srq()