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