Lines Matching defs:attr_p

68 	ibt_qp_alloc_attr_t		*attr_p;
94 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*attr_p, *queuesz_p))
99 attr_p = qpinfo->qpi_attrp;
105 alloc_flags = attr_p->qp_alloc_flags;
128 switch (attr_p->qp_fc.fc_hca_port) {
176 if (attr_p->qp_ibc_srq_hdl == NULL) {
180 srq = (hermon_srqhdl_t)attr_p->qp_ibc_srq_hdl;
196 if (attr_p->qp_pd_hdl == NULL) {
200 pd = (hermon_pdhdl_t)attr_p->qp_pd_hdl;
218 if (attr_p->qp_ibc_scq_hdl == NULL) {
222 sq_cq = (hermon_cqhdl_t)attr_p->qp_ibc_scq_hdl;
223 if ((attr_p->qp_ibc_rcq_hdl == NULL)) {
230 rq_cq = (hermon_cqhdl_t)attr_p->qp_ibc_rcq_hdl;
327 qp->qp_uses_lso = (attr_p->qp_flags & IBT_USES_LSO);
342 if ((attr_p->qp_sizes.cs_sq_sgl > max_sgl) ||
343 (!qp_srq_en && (attr_p->qp_sizes.cs_rq_sgl > max_recv_sgl))) {
360 hermon_qp_sgl_to_logwqesz(state, attr_p->qp_sizes.cs_rq_sgl,
364 hermon_qp_sgl_to_logwqesz(state, attr_p->qp_sizes.cs_sq_sgl,
397 attr_p->qp_sizes.cs_sq = max(attr_p->qp_sizes.cs_sq,
399 attr_p->qp_sizes.cs_rq = max(attr_p->qp_sizes.cs_rq,
405 log_qp_sq_size = highbit(attr_p->qp_sizes.cs_sq + qp->qp_sq_hdrmwqes);
407 if (ISP2(attr_p->qp_sizes.cs_sq + qp->qp_sq_hdrmwqes)) {
411 log_qp_rq_size = highbit(attr_p->qp_sizes.cs_rq);
412 if (ISP2(attr_p->qp_sizes.cs_rq)) {
426 if ((attr_p->qp_sizes.cs_sq >
609 qp->qp_sq_sigtype = (attr_p->qp_flags & IBT_WR_SIGNALED) ?
621 qp->qp_rlky = (attr_p->qp_flags & IBT_FAST_REG_RES_LKEY) !=
771 ibt_qp_alloc_attr_t *attr_p;
795 attr_p = qpinfo->qpi_attrp;
822 if (attr_p->qp_pd_hdl == NULL) {
826 pd = (hermon_pdhdl_t)attr_p->qp_pd_hdl;
834 if ((attr_p->qp_ibc_scq_hdl == NULL) ||
835 (attr_p->qp_ibc_rcq_hdl == NULL)) {
839 sq_cq = (hermon_cqhdl_t)attr_p->qp_ibc_scq_hdl;
840 rq_cq = (hermon_cqhdl_t)attr_p->qp_ibc_rcq_hdl;
890 qp->qp_alloc_flags = attr_p->qp_alloc_flags;
918 attr_p->qp_sizes.cs_sq =
919 max(attr_p->qp_sizes.cs_sq, HERMON_QP_MIN_SIZE);
920 attr_p->qp_sizes.cs_rq =
921 max(attr_p->qp_sizes.cs_rq, HERMON_QP_MIN_SIZE);
922 log_qp_sq_size = highbit(attr_p->qp_sizes.cs_sq);
923 if (ISP2(attr_p->qp_sizes.cs_sq)) {
926 log_qp_rq_size = highbit(attr_p->qp_sizes.cs_rq);
927 if (ISP2(attr_p->qp_sizes.cs_rq)) {
948 if ((attr_p->qp_sizes.cs_sq_sgl > max_sgl) ||
949 (attr_p->qp_sizes.cs_rq_sgl > max_sgl)) {
960 hermon_qp_sgl_to_logwqesz(state, attr_p->qp_sizes.cs_rq_sgl,
964 hermon_qp_sgl_to_logwqesz(state, attr_p->qp_sizes.cs_sq_sgl,
968 hermon_qp_sgl_to_logwqesz(state, attr_p->qp_sizes.cs_sq_sgl,
1121 qp->qp_sq_sigtype = (attr_p->qp_flags & IBT_WR_SIGNALED) ?
1232 ibt_qp_alloc_attr_t *attr_p;
1255 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*attr_p, *queuesz_p))
1260 attr_p = qpinfo->qpi_attrp;
1264 if (attr_p->qp_alloc_flags & IBT_QP_USES_RSS) {
1269 } else if (attr_p->qp_alloc_flags & IBT_QP_USES_FEXCH) {
1272 switch (attr_p->qp_fc.fc_hca_port) {
1291 if (attr_p->qp_alloc_flags & IBT_QP_USER_MAP) {
1300 qp_srq_en = (attr_p->qp_alloc_flags & IBT_QP_USES_SRQ) ? 1 : 0;
1305 if (attr_p->qp_ibc_srq_hdl == NULL) {
1308 srq = (hermon_srqhdl_t)attr_p->qp_ibc_srq_hdl;
1321 if (attr_p->qp_pd_hdl == NULL) {
1324 pd = (hermon_pdhdl_t)attr_p->qp_pd_hdl;
1351 if (attr_p->qp_alloc_flags & IBT_QP_USES_FEXCH)
1359 attr_p->qp_fc.fc_hca_port, qpc->hr_indx);
1384 if (attr_p->qp_alloc_flags & IBT_QP_USES_FEXCH) {
1422 qp->qp_alloc_flags = attr_p->qp_alloc_flags;
1448 qp->qp_uses_lso = (attr_p->qp_flags & IBT_USES_LSO);
1458 if ((attr_p->qp_sizes.cs_sq_sgl > max_sgl) ||
1459 (!qp_srq_en && (attr_p->qp_sizes.cs_rq_sgl > max_recv_sgl))) {
1476 hermon_qp_sgl_to_logwqesz(state, attr_p->qp_sizes.cs_rq_sgl,
1480 hermon_qp_sgl_to_logwqesz(state, attr_p->qp_sizes.cs_sq_sgl,
1513 attr_p->qp_sizes.cs_sq = max(attr_p->qp_sizes.cs_sq,
1515 attr_p->qp_sizes.cs_rq = max(attr_p->qp_sizes.cs_rq,
1521 log_qp_sq_size = highbit(attr_p->qp_sizes.cs_sq + qp->qp_sq_hdrmwqes);
1523 if (ISP2(attr_p->qp_sizes.cs_sq + qp->qp_sq_hdrmwqes)) {
1527 log_qp_rq_size = highbit(attr_p->qp_sizes.cs_rq);
1528 if (ISP2(attr_p->qp_sizes.cs_rq)) {
1542 if ((attr_p->qp_sizes.cs_sq >
1710 qp->qp_sq_sigtype = (attr_p->qp_flags & IBT_WR_SIGNALED) ?
1722 qp->qp_rlky = (attr_p->qp_flags & IBT_FAST_REG_RES_LKEY) !=
1761 if ((attr_p->qp_alloc_flags & IBT_QP_USES_FEXCH) == 0) {
2104 ibt_qp_query_attr_t *attr_p)
2155 attr_p->qp_info.qp_state = qp_state;
2158 attr_p->qp_srq = NULL;
2165 attr_p->qp_sq_cq =
2167 attr_p->qp_rq_cq =
2170 attr_p->qp_qpn = (qp->qp_is_special == HERMON_QP_SMI) ? 0 : 1;
2172 attr_p->qp_qpn = (ib_qpn_t)qp->qp_qpnum;
2174 attr_p->qp_sq_sgl = qp->qp_sq_sgl;
2175 attr_p->qp_rq_sgl = qp->qp_rq_sgl;
2176 attr_p->qp_info.qp_sq_sz = qp->qp_sq_bufsz - qp->qp_sq_hdrmwqes;
2177 attr_p->qp_info.qp_rq_sz = qp->qp_rq_bufsz;
2218 ud = &attr_p->qp_info.qp_transport.ud;
2226 attr_p->qp_info.qp_trans = IBT_UD_SRV;
2233 pmr = &attr_p->qp_query_fexch.fq_uni_mem_desc;
2241 pmr = &attr_p->qp_query_fexch.fq_bi_mem_desc;
2248 attr_p->qp_query_fexch.fq_flags =
2263 rc = &attr_p->qp_info.qp_transport.rc;
2316 attr_p->qp_info.qp_flags = enable_flags;
2318 attr_p->qp_info.qp_trans = IBT_RC_SRV;
2323 uc = &attr_p->qp_info.qp_transport.uc;
2367 attr_p->qp_info.qp_flags = enable_flags;
2369 attr_p->qp_info.qp_trans = IBT_UC_SRV;
2384 attr_p->qp_info.qp_state = IBT_STATE_SQE;
2389 attr_p->qp_info.qp_state = IBT_STATE_ERROR;