Lines Matching refs:qplib_qp

435 static int bnxt_re_bind_fence_mw(struct bnxt_qplib_qp *qplib_qp)  in bnxt_re_bind_fence_mw()  argument
437 struct bnxt_re_qp *qp = container_of(qplib_qp, struct bnxt_re_qp, in bnxt_re_bind_fence_mw()
438 qplib_qp); in bnxt_re_bind_fence_mw()
452 wqe.bind.r_key, qp->qplib_qp.id, pd); in bnxt_re_bind_fence_mw()
453 rc = bnxt_qplib_post_send(&qp->qplib_qp, &wqe); in bnxt_re_bind_fence_mw()
458 bnxt_qplib_post_send_db(&qp->qplib_qp); in bnxt_re_bind_fence_mw()
872 bnxt_qplib_clean_qp(&qp->qplib_qp); in bnxt_re_destroy_gsi_sqp()
875 rc = bnxt_qplib_destroy_qp(&rdev->qplib_res, &gsi_sqp->qplib_qp); in bnxt_re_destroy_gsi_sqp()
880 bnxt_qplib_free_qp_res(&rdev->qplib_res, &gsi_sqp->qplib_qp); in bnxt_re_destroy_gsi_sqp()
904 struct bnxt_qplib_qp *qplib_qp = &qp->qplib_qp; in bnxt_re_destroy_qp() local
911 bnxt_qplib_flush_cqn_wq(&qp->qplib_qp); in bnxt_re_destroy_qp()
913 rc = bnxt_qplib_destroy_qp(&rdev->qplib_res, &qp->qplib_qp); in bnxt_re_destroy_qp()
921 bnxt_qplib_clean_qp(&qp->qplib_qp); in bnxt_re_destroy_qp()
925 bnxt_qplib_free_qp_res(&rdev->qplib_res, &qp->qplib_qp); in bnxt_re_destroy_qp()
937 if (qp->qplib_qp.type == CMDQ_CREATE_QP_TYPE_RC) in bnxt_re_destroy_qp()
939 else if (qp->qplib_qp.type == CMDQ_CREATE_QP_TYPE_UD) in bnxt_re_destroy_qp()
948 scq_nq = qplib_qp->scq->nq; in bnxt_re_destroy_qp()
949 rcq_nq = qplib_qp->rcq->nq; in bnxt_re_destroy_qp()
1002 qplqp = &qp->qplib_qp; in bnxt_re_setup_swqe_size()
1034 struct bnxt_qplib_qp *qplib_qp; in bnxt_re_init_user_qp() local
1039 qplib_qp = &qp->qplib_qp; in bnxt_re_init_user_qp()
1041 bytes = (qplib_qp->sq.max_wqe * qplib_qp->sq.wqe_size); in bnxt_re_init_user_qp()
1043 if (qplib_qp->type == CMDQ_CREATE_QP_TYPE_RC) { in bnxt_re_init_user_qp()
1050 psn_nume = (qplib_qp->wqe_mode == BNXT_QPLIB_WQE_MODE_STATIC) ? in bnxt_re_init_user_qp()
1051 qplib_qp->sq.max_wqe : ((qplib_qp->sq.max_wqe * qplib_qp->sq.wqe_size) / in bnxt_re_init_user_qp()
1066 qplib_qp->sq.sg_info.umem = umem; in bnxt_re_init_user_qp()
1067 qplib_qp->sq.sg_info.pgsize = PAGE_SIZE; in bnxt_re_init_user_qp()
1068 qplib_qp->sq.sg_info.pgshft = PAGE_SHIFT; in bnxt_re_init_user_qp()
1069 qplib_qp->qp_handle = ureq->qp_handle; in bnxt_re_init_user_qp()
1071 if (!qp->qplib_qp.srq) { in bnxt_re_init_user_qp()
1072 bytes = (qplib_qp->rq.max_wqe * qplib_qp->rq.wqe_size); in bnxt_re_init_user_qp()
1079 qplib_qp->rq.sg_info.umem = umem; in bnxt_re_init_user_qp()
1080 qplib_qp->rq.sg_info.pgsize = PAGE_SIZE; in bnxt_re_init_user_qp()
1081 qplib_qp->rq.sg_info.pgshft = PAGE_SHIFT; in bnxt_re_init_user_qp()
1084 qplib_qp->dpi = &cntx->dpi; in bnxt_re_init_user_qp()
1089 memset(&qplib_qp->sq.sg_info, 0, sizeof(qplib_qp->sq.sg_info)); in bnxt_re_init_user_qp()
1158 ether_addr_copy(qp->qplib_qp.smac, rdev->netdev->dev_addr); in bnxt_re_create_shadow_qp()
1160 qp->qplib_qp.pd = &pd->qplib_pd; in bnxt_re_create_shadow_qp()
1161 qp->qplib_qp.qp_handle = (u64)(unsigned long)(&qp->qplib_qp); in bnxt_re_create_shadow_qp()
1162 qp->qplib_qp.type = IB_QPT_UD; in bnxt_re_create_shadow_qp()
1164 qp->qplib_qp.max_inline_data = 0; in bnxt_re_create_shadow_qp()
1165 qp->qplib_qp.sig_type = true; in bnxt_re_create_shadow_qp()
1168 qp->qplib_qp.sq.wqe_size = bnxt_re_get_wqe_size(0, 6); in bnxt_re_create_shadow_qp()
1169 qp->qplib_qp.sq.max_wqe = qp1_qp->rq.max_wqe; in bnxt_re_create_shadow_qp()
1170 qp->qplib_qp.sq.max_sw_wqe = qp1_qp->rq.max_wqe; in bnxt_re_create_shadow_qp()
1171 qp->qplib_qp.sq.max_sge = 2; in bnxt_re_create_shadow_qp()
1173 qp->qplib_qp.sq.q_full_delta = 1; in bnxt_re_create_shadow_qp()
1174 qp->qplib_qp.sq.sg_info.pgsize = PAGE_SIZE; in bnxt_re_create_shadow_qp()
1175 qp->qplib_qp.sq.sg_info.pgshft = PAGE_SHIFT; in bnxt_re_create_shadow_qp()
1177 qp->qplib_qp.scq = qp1_qp->scq; in bnxt_re_create_shadow_qp()
1178 qp->qplib_qp.rcq = qp1_qp->rcq; in bnxt_re_create_shadow_qp()
1180 qp->qplib_qp.rq.wqe_size = bnxt_re_get_rwqe_size(6); in bnxt_re_create_shadow_qp()
1181 qp->qplib_qp.rq.max_wqe = qp1_qp->rq.max_wqe; in bnxt_re_create_shadow_qp()
1182 qp->qplib_qp.rq.max_sw_wqe = qp1_qp->rq.max_wqe; in bnxt_re_create_shadow_qp()
1183 qp->qplib_qp.rq.max_sge = qp1_qp->rq.max_sge; in bnxt_re_create_shadow_qp()
1185 qp->qplib_qp.rq.q_full_delta = 1; in bnxt_re_create_shadow_qp()
1186 qp->qplib_qp.rq.sg_info.pgsize = PAGE_SIZE; in bnxt_re_create_shadow_qp()
1187 qp->qplib_qp.rq.sg_info.pgshft = PAGE_SHIFT; in bnxt_re_create_shadow_qp()
1189 qp->qplib_qp.mtu = qp1_qp->mtu; in bnxt_re_create_shadow_qp()
1191 qp->qplib_qp.sq_hdr_buf_size = 0; in bnxt_re_create_shadow_qp()
1192 qp->qplib_qp.rq_hdr_buf_size = BNXT_QPLIB_MAX_GRH_HDR_SIZE_IPV6; in bnxt_re_create_shadow_qp()
1193 qp->qplib_qp.dpi = &rdev->dpi_privileged; in bnxt_re_create_shadow_qp()
1195 rc = bnxt_qplib_create_qp(qp1_res, &qp->qplib_qp); in bnxt_re_create_shadow_qp()
1222 qplqp = &qp->qplib_qp; in bnxt_re_init_rq_attr()
1260 qplqp = &qp->qplib_qp; in bnxt_re_adjust_gsi_rq_attr()
1285 qplqp = &qp->qplib_qp; in bnxt_re_init_sq_attr()
1339 qplqp = &qp->qplib_qp; in bnxt_re_adjust_gsi_sq_attr()
1388 qplqp = &qp->qplib_qp; in bnxt_re_init_qp_attr()
1467 sqp = bnxt_re_create_shadow_qp(pd, &rdev->qplib_res, &qp->qplib_qp); in bnxt_re_create_shadow_gsi()
1478 &qp->qplib_qp); in bnxt_re_create_shadow_gsi()
1481 &sqp->qplib_qp); in bnxt_re_create_shadow_gsi()
1503 qplqp = &qp->qplib_qp; in bnxt_re_create_gsi_qp()
1586 rc = bnxt_qplib_create_qp(&rdev->qplib_res, &qp->qplib_qp); in bnxt_re_create_qp()
1594 resp.qpid = qp->qplib_qp.id; in bnxt_re_create_qp()
1604 qp->ib_qp.qp_num = qp->qplib_qp.id; in bnxt_re_create_qp()
1628 bnxt_qplib_destroy_qp(&rdev->qplib_res, &qp->qplib_qp); in bnxt_re_create_qp()
1961 qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_STATE; in bnxt_re_modify_shadow_qp()
1962 qp->qplib_qp.state = qp1_qp->qplib_qp.state; in bnxt_re_modify_shadow_qp()
1965 qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_PKEY; in bnxt_re_modify_shadow_qp()
1966 qp->qplib_qp.pkey_index = qp1_qp->qplib_qp.pkey_index; in bnxt_re_modify_shadow_qp()
1970 qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_QKEY; in bnxt_re_modify_shadow_qp()
1972 qp->qplib_qp.qkey = 0x81818181; in bnxt_re_modify_shadow_qp()
1975 qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_SQ_PSN; in bnxt_re_modify_shadow_qp()
1976 qp->qplib_qp.sq.psn = qp1_qp->qplib_qp.sq.psn; in bnxt_re_modify_shadow_qp()
1979 rc = bnxt_qplib_modify_qp(&rdev->qplib_res, &qp->qplib_qp); in bnxt_re_modify_shadow_qp()
1999 qp->qplib_qp.modify_flags = 0; in bnxt_re_modify_qp()
2001 curr_qp_state = __to_ib_qp_state(qp->qplib_qp.cur_qp_state); in bnxt_re_modify_qp()
2016 qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_STATE; in bnxt_re_modify_qp()
2017 qp->qplib_qp.state = __from_ib_qp_state(qp_attr->qp_state); in bnxt_re_modify_qp()
2020 qp->qplib_qp.state == CMDQ_MODIFY_QP_NEW_STATE_ERR) { in bnxt_re_modify_qp()
2024 bnxt_qplib_add_flush_qp(&qp->qplib_qp); in bnxt_re_modify_qp()
2028 qp->qplib_qp.state == CMDQ_MODIFY_QP_NEW_STATE_RESET) { in bnxt_re_modify_qp()
2032 bnxt_qplib_clean_qp(&qp->qplib_qp); in bnxt_re_modify_qp()
2037 qp->qplib_qp.modify_flags |= in bnxt_re_modify_qp()
2039 qp->qplib_qp.en_sqd_async_notify = true; in bnxt_re_modify_qp()
2042 qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_ACCESS; in bnxt_re_modify_qp()
2043 qp->qplib_qp.access = in bnxt_re_modify_qp()
2046 qp->qplib_qp.access |= BNXT_QPLIB_ACCESS_LOCAL_WRITE; in bnxt_re_modify_qp()
2048 qp->qplib_qp.access |= CMDQ_MODIFY_QP_ACCESS_REMOTE_WRITE; in bnxt_re_modify_qp()
2049 qp->qplib_qp.access |= CMDQ_MODIFY_QP_ACCESS_REMOTE_READ; in bnxt_re_modify_qp()
2052 qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_PKEY; in bnxt_re_modify_qp()
2053 qp->qplib_qp.pkey_index = qp_attr->pkey_index; in bnxt_re_modify_qp()
2056 qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_QKEY; in bnxt_re_modify_qp()
2057 qp->qplib_qp.qkey = qp_attr->qkey; in bnxt_re_modify_qp()
2065 qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_DGID | in bnxt_re_modify_qp()
2072 memcpy(qp->qplib_qp.ah.dgid.data, grh->dgid.raw, in bnxt_re_modify_qp()
2073 sizeof(qp->qplib_qp.ah.dgid.data)); in bnxt_re_modify_qp()
2074 qp->qplib_qp.ah.flow_label = grh->flow_label; in bnxt_re_modify_qp()
2080 qp->qplib_qp.ah.sgid_index = ctx->idx; in bnxt_re_modify_qp()
2081 qp->qplib_qp.ah.host_sgid_index = grh->sgid_index; in bnxt_re_modify_qp()
2082 qp->qplib_qp.ah.hop_limit = grh->hop_limit; in bnxt_re_modify_qp()
2083 qp->qplib_qp.ah.traffic_class = grh->traffic_class; in bnxt_re_modify_qp()
2084 qp->qplib_qp.ah.sl = rdma_ah_get_sl(&qp_attr->ah_attr); in bnxt_re_modify_qp()
2085 ether_addr_copy(qp->qplib_qp.ah.dmac, in bnxt_re_modify_qp()
2089 &qp->qplib_qp.smac[0]); in bnxt_re_modify_qp()
2096 qp->qplib_qp.nw_type = in bnxt_re_modify_qp()
2100 qp->qplib_qp.nw_type = in bnxt_re_modify_qp()
2104 qp->qplib_qp.nw_type = in bnxt_re_modify_qp()
2111 qp->qplib_qp.modify_flags |= in bnxt_re_modify_qp()
2113 qp->qplib_qp.path_mtu = __from_ib_mtu(qp_attr->path_mtu); in bnxt_re_modify_qp()
2114 qp->qplib_qp.mtu = ib_mtu_enum_to_int(qp_attr->path_mtu); in bnxt_re_modify_qp()
2116 qp->qplib_qp.modify_flags |= in bnxt_re_modify_qp()
2118 qp->qplib_qp.path_mtu = in bnxt_re_modify_qp()
2120 qp->qplib_qp.mtu = in bnxt_re_modify_qp()
2125 qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_TIMEOUT; in bnxt_re_modify_qp()
2126 qp->qplib_qp.timeout = qp_attr->timeout; in bnxt_re_modify_qp()
2129 qp->qplib_qp.modify_flags |= in bnxt_re_modify_qp()
2131 qp->qplib_qp.retry_cnt = qp_attr->retry_cnt; in bnxt_re_modify_qp()
2134 qp->qplib_qp.modify_flags |= in bnxt_re_modify_qp()
2136 qp->qplib_qp.rnr_retry = qp_attr->rnr_retry; in bnxt_re_modify_qp()
2139 qp->qplib_qp.modify_flags |= in bnxt_re_modify_qp()
2141 qp->qplib_qp.min_rnr_timer = qp_attr->min_rnr_timer; in bnxt_re_modify_qp()
2144 qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_RQ_PSN; in bnxt_re_modify_qp()
2145 qp->qplib_qp.rq.psn = qp_attr->rq_psn; in bnxt_re_modify_qp()
2148 qp->qplib_qp.modify_flags |= in bnxt_re_modify_qp()
2151 qp->qplib_qp.max_rd_atomic = min_t(u32, qp_attr->max_rd_atomic, in bnxt_re_modify_qp()
2155 qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_SQ_PSN; in bnxt_re_modify_qp()
2156 qp->qplib_qp.sq.psn = qp_attr->sq_psn; in bnxt_re_modify_qp()
2168 qp->qplib_qp.modify_flags |= in bnxt_re_modify_qp()
2170 qp->qplib_qp.max_dest_rd_atomic = qp_attr->max_dest_rd_atomic; in bnxt_re_modify_qp()
2176 qp->qplib_qp.modify_flags |= in bnxt_re_modify_qp()
2193 qp->qplib_qp.sq.max_wqe = min_t(u32, entries, in bnxt_re_modify_qp()
2195 qp->qplib_qp.sq.q_full_delta = qp->qplib_qp.sq.max_wqe - in bnxt_re_modify_qp()
2202 qp->qplib_qp.sq.q_full_delta -= 1; in bnxt_re_modify_qp()
2203 qp->qplib_qp.sq.max_sge = qp_attr->cap.max_send_sge; in bnxt_re_modify_qp()
2204 if (qp->qplib_qp.rq.max_wqe) { in bnxt_re_modify_qp()
2206 qp->qplib_qp.rq.max_wqe = in bnxt_re_modify_qp()
2208 qp->qplib_qp.rq.max_sw_wqe = qp->qplib_qp.rq.max_wqe; in bnxt_re_modify_qp()
2209 qp->qplib_qp.rq.q_full_delta = qp->qplib_qp.rq.max_wqe - in bnxt_re_modify_qp()
2211 qp->qplib_qp.rq.max_sge = qp_attr->cap.max_recv_sge; in bnxt_re_modify_qp()
2217 qp->qplib_qp.modify_flags |= in bnxt_re_modify_qp()
2219 qp->qplib_qp.dest_qpn = qp_attr->dest_qp_num; in bnxt_re_modify_qp()
2221 rc = bnxt_qplib_modify_qp(&rdev->qplib_res, &qp->qplib_qp); in bnxt_re_modify_qp()
2236 struct bnxt_qplib_qp *qplib_qp; in bnxt_re_query_qp() local
2239 qplib_qp = kzalloc(sizeof(*qplib_qp), GFP_KERNEL); in bnxt_re_query_qp()
2240 if (!qplib_qp) in bnxt_re_query_qp()
2243 qplib_qp->id = qp->qplib_qp.id; in bnxt_re_query_qp()
2244 qplib_qp->ah.host_sgid_index = qp->qplib_qp.ah.host_sgid_index; in bnxt_re_query_qp()
2246 rc = bnxt_qplib_query_qp(&rdev->qplib_res, qplib_qp); in bnxt_re_query_qp()
2251 qp_attr->qp_state = __to_ib_qp_state(qplib_qp->state); in bnxt_re_query_qp()
2252 qp_attr->cur_qp_state = __to_ib_qp_state(qplib_qp->cur_qp_state); in bnxt_re_query_qp()
2253 qp_attr->en_sqd_async_notify = qplib_qp->en_sqd_async_notify ? 1 : 0; in bnxt_re_query_qp()
2254 qp_attr->qp_access_flags = __to_ib_access_flags(qplib_qp->access); in bnxt_re_query_qp()
2255 qp_attr->pkey_index = qplib_qp->pkey_index; in bnxt_re_query_qp()
2256 qp_attr->qkey = qplib_qp->qkey; in bnxt_re_query_qp()
2258 rdma_ah_set_grh(&qp_attr->ah_attr, NULL, qplib_qp->ah.flow_label, in bnxt_re_query_qp()
2259 qplib_qp->ah.host_sgid_index, in bnxt_re_query_qp()
2260 qplib_qp->ah.hop_limit, in bnxt_re_query_qp()
2261 qplib_qp->ah.traffic_class); in bnxt_re_query_qp()
2262 rdma_ah_set_dgid_raw(&qp_attr->ah_attr, qplib_qp->ah.dgid.data); in bnxt_re_query_qp()
2263 rdma_ah_set_sl(&qp_attr->ah_attr, qplib_qp->ah.sl); in bnxt_re_query_qp()
2264 ether_addr_copy(qp_attr->ah_attr.roce.dmac, qplib_qp->ah.dmac); in bnxt_re_query_qp()
2265 qp_attr->path_mtu = __to_ib_mtu(qplib_qp->path_mtu); in bnxt_re_query_qp()
2266 qp_attr->timeout = qplib_qp->timeout; in bnxt_re_query_qp()
2267 qp_attr->retry_cnt = qplib_qp->retry_cnt; in bnxt_re_query_qp()
2268 qp_attr->rnr_retry = qplib_qp->rnr_retry; in bnxt_re_query_qp()
2269 qp_attr->min_rnr_timer = qplib_qp->min_rnr_timer; in bnxt_re_query_qp()
2270 qp_attr->rq_psn = qplib_qp->rq.psn; in bnxt_re_query_qp()
2271 qp_attr->max_rd_atomic = qplib_qp->max_rd_atomic; in bnxt_re_query_qp()
2272 qp_attr->sq_psn = qplib_qp->sq.psn; in bnxt_re_query_qp()
2273 qp_attr->max_dest_rd_atomic = qplib_qp->max_dest_rd_atomic; in bnxt_re_query_qp()
2274 qp_init_attr->sq_sig_type = qplib_qp->sig_type ? IB_SIGNAL_ALL_WR : in bnxt_re_query_qp()
2276 qp_attr->dest_qp_num = qplib_qp->dest_qpn; in bnxt_re_query_qp()
2278 qp_attr->cap.max_send_wr = qp->qplib_qp.sq.max_wqe; in bnxt_re_query_qp()
2279 qp_attr->cap.max_send_sge = qp->qplib_qp.sq.max_sge; in bnxt_re_query_qp()
2280 qp_attr->cap.max_recv_wr = qp->qplib_qp.rq.max_wqe; in bnxt_re_query_qp()
2281 qp_attr->cap.max_recv_sge = qp->qplib_qp.rq.max_sge; in bnxt_re_query_qp()
2282 qp_attr->cap.max_inline_data = qp->qplib_qp.max_inline_data; in bnxt_re_query_qp()
2286 kfree(qplib_qp); in bnxt_re_query_qp()
2357 ether_addr_copy(qp->qp1_hdr.eth.smac_h, qp->qplib_qp.smac); in bnxt_re_build_qp1_send_v2()
2418 buf = bnxt_qplib_get_qp1_sq_buf(&qp->qplib_qp, &sge); in bnxt_re_build_qp1_send_v2()
2478 rq_prod_index = bnxt_qplib_get_rq_prod_index(&qp->qplib_qp); in bnxt_re_build_qp1_shadow_qp_recv()
2480 if (!bnxt_qplib_get_qp1_rq_buf(&qp->qplib_qp, &sge)) in bnxt_re_build_qp1_shadow_qp_recv()
2511 return (qp->qplib_qp.type == CMDQ_CREATE_QP_TYPE_UD || in is_ud_qp()
2512 qp->qplib_qp.type == CMDQ_CREATE_QP_TYPE_GSI); in is_ud_qp()
2713 qp->qplib_qp.wqe_cnt == BNXT_RE_UD_QP_HW_STALL) { in bnxt_ud_qp_hw_stall_workaround()
2720 qp->qplib_qp.wqe_cnt = 0; in bnxt_ud_qp_hw_stall_workaround()
2737 if (wr->num_sge > qp->qplib_qp.sq.max_sge) { in bnxt_re_post_send_shadow_qp()
2755 rc = bnxt_qplib_post_send(&qp->qplib_qp, &wqe); in bnxt_re_post_send_shadow_qp()
2765 bnxt_qplib_post_send_db(&qp->qplib_qp); in bnxt_re_post_send_shadow_qp()
2798 if (wr->num_sge > qp->qplib_qp.sq.max_sge) { in bnxt_re_post_send()
2815 if (qp->qplib_qp.type == CMDQ_CREATE_QP1_TYPE_GSI) { in bnxt_re_post_send()
2865 rc = bnxt_qplib_post_send(&qp->qplib_qp, &wqe); in bnxt_re_post_send()
2871 wr->opcode, qp->qplib_qp.state, rc); in bnxt_re_post_send()
2877 bnxt_qplib_post_send_db(&qp->qplib_qp); in bnxt_re_post_send()
2897 if (wr->num_sge > qp->qplib_qp.rq.max_sge) { in bnxt_re_post_recv_shadow_qp()
2907 rc = bnxt_qplib_post_recv(&qp->qplib_qp, &wqe); in bnxt_re_post_recv_shadow_qp()
2914 bnxt_qplib_post_recv_db(&qp->qplib_qp); in bnxt_re_post_recv_shadow_qp()
2934 if (wr->num_sge > qp->qplib_qp.rq.max_sge) { in bnxt_re_post_recv()
2948 qp->qplib_qp.type != CMDQ_CREATE_QP_TYPE_GSI) in bnxt_re_post_recv()
2952 rc = bnxt_qplib_post_recv(&qp->qplib_qp, &wqe); in bnxt_re_post_recv()
2960 bnxt_qplib_post_recv_db(&qp->qplib_qp); in bnxt_re_post_recv()
2968 bnxt_qplib_post_recv_db(&qp->qplib_qp); in bnxt_re_post_recv()
3464 rq_hdr_buf = gsi_qp->qplib_qp.rq_hdr_buf + in bnxt_re_process_raw_qp_pkt_rx()
3465 (tbl_idx * gsi_qp->qplib_qp.rq_hdr_buf_size); in bnxt_re_process_raw_qp_pkt_rx()
3466 rq_hdr_buf_map = bnxt_qplib_get_qp_buf_from_index(&gsi_qp->qplib_qp, in bnxt_re_process_raw_qp_pkt_rx()
3470 shrq_hdr_buf_map = bnxt_qplib_get_qp_buf_from_index(&gsi_qp->qplib_qp, in bnxt_re_process_raw_qp_pkt_rx()
3544 udwr.remote_qpn = gsi_sqp->qplib_qp.id; in bnxt_re_process_raw_qp_pkt_rx()
3545 udwr.remote_qkey = gsi_sqp->qplib_qp.qkey; in bnxt_re_process_raw_qp_pkt_rx()
3676 if (qp->qplib_qp.type == CMDQ_CREATE_QP_TYPE_GSI) { in bnxt_re_process_res_ud_wc()
3698 struct bnxt_qplib_qp *lib_qp = &qp->qplib_qp; in send_phantom_wqe()
3754 struct bnxt_re_qp, qplib_qp); in bnxt_re_poll_cq()
3779 struct bnxt_re_qp, qplib_qp); in bnxt_re_poll_cq()
3791 qp->qplib_qp.id == sh_qp->qplib_qp.id) { in bnxt_re_poll_cq()
3827 qp->qplib_qp.id == sh_qp->qplib_qp.id) { in bnxt_re_poll_cq()