qplib_qp 429 drivers/infiniband/hw/bnxt_re/ib_verbs.c static int bnxt_re_bind_fence_mw(struct bnxt_qplib_qp *qplib_qp) qplib_qp 431 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct bnxt_re_qp *qp = container_of(qplib_qp, struct bnxt_re_qp, qplib_qp 432 drivers/infiniband/hw/bnxt_re/ib_verbs.c qplib_qp); qplib_qp 446 drivers/infiniband/hw/bnxt_re/ib_verbs.c wqe.bind.r_key, qp->qplib_qp.id, pd); qplib_qp 447 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = bnxt_qplib_post_send(&qp->qplib_qp, &wqe); qplib_qp 452 drivers/infiniband/hw/bnxt_re/ib_verbs.c bnxt_qplib_post_send_db(&qp->qplib_qp); qplib_qp 771 drivers/infiniband/hw/bnxt_re/ib_verbs.c bnxt_qplib_flush_cqn_wq(&qp->qplib_qp); qplib_qp 772 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = bnxt_qplib_destroy_qp(&rdev->qplib_res, &qp->qplib_qp); qplib_qp 780 drivers/infiniband/hw/bnxt_re/ib_verbs.c bnxt_qplib_clean_qp(&qp->qplib_qp); qplib_qp 784 drivers/infiniband/hw/bnxt_re/ib_verbs.c bnxt_qplib_free_qp_res(&rdev->qplib_res, &qp->qplib_qp); qplib_qp 790 drivers/infiniband/hw/bnxt_re/ib_verbs.c bnxt_qplib_clean_qp(&qp->qplib_qp); qplib_qp 792 drivers/infiniband/hw/bnxt_re/ib_verbs.c &rdev->qp1_sqp->qplib_qp); qplib_qp 799 drivers/infiniband/hw/bnxt_re/ib_verbs.c &rdev->qp1_sqp->qplib_qp); qplib_qp 840 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct bnxt_qplib_qp *qplib_qp = &qp->qplib_qp; qplib_qp 849 drivers/infiniband/hw/bnxt_re/ib_verbs.c bytes = (qplib_qp->sq.max_wqe * BNXT_QPLIB_MAX_SQE_ENTRY_SIZE); qplib_qp 851 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (qplib_qp->type == CMDQ_CREATE_QP_TYPE_RC) { qplib_qp 855 drivers/infiniband/hw/bnxt_re/ib_verbs.c bytes += (qplib_qp->sq.max_wqe * psn_sz); qplib_qp 863 drivers/infiniband/hw/bnxt_re/ib_verbs.c qplib_qp->sq.sg_info.sglist = umem->sg_head.sgl; qplib_qp 864 drivers/infiniband/hw/bnxt_re/ib_verbs.c qplib_qp->sq.sg_info.npages = ib_umem_num_pages(umem); qplib_qp 865 drivers/infiniband/hw/bnxt_re/ib_verbs.c qplib_qp->sq.sg_info.nmap = umem->nmap; qplib_qp 866 drivers/infiniband/hw/bnxt_re/ib_verbs.c qplib_qp->qp_handle = ureq.qp_handle; qplib_qp 868 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (!qp->qplib_qp.srq) { qplib_qp 869 drivers/infiniband/hw/bnxt_re/ib_verbs.c bytes = (qplib_qp->rq.max_wqe * BNXT_QPLIB_MAX_RQE_ENTRY_SIZE); qplib_qp 876 drivers/infiniband/hw/bnxt_re/ib_verbs.c qplib_qp->rq.sg_info.sglist = umem->sg_head.sgl; qplib_qp 877 drivers/infiniband/hw/bnxt_re/ib_verbs.c qplib_qp->rq.sg_info.npages = ib_umem_num_pages(umem); qplib_qp 878 drivers/infiniband/hw/bnxt_re/ib_verbs.c qplib_qp->rq.sg_info.nmap = umem->nmap; qplib_qp 881 drivers/infiniband/hw/bnxt_re/ib_verbs.c qplib_qp->dpi = &cntx->dpi; qplib_qp 886 drivers/infiniband/hw/bnxt_re/ib_verbs.c memset(&qplib_qp->sq.sg_info, 0, sizeof(qplib_qp->sq.sg_info)); qplib_qp 954 drivers/infiniband/hw/bnxt_re/ib_verbs.c ether_addr_copy(qp->qplib_qp.smac, rdev->netdev->dev_addr); qplib_qp 956 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.pd = &pd->qplib_pd; qplib_qp 957 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.qp_handle = (u64)(unsigned long)(&qp->qplib_qp); qplib_qp 958 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.type = IB_QPT_UD; qplib_qp 960 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.max_inline_data = 0; qplib_qp 961 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sig_type = true; qplib_qp 964 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.max_wqe = qp1_qp->rq.max_wqe; qplib_qp 965 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.max_sge = 2; qplib_qp 967 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.q_full_delta = 1; qplib_qp 969 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.scq = qp1_qp->scq; qplib_qp 970 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rcq = qp1_qp->rcq; qplib_qp 972 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rq.max_wqe = qp1_qp->rq.max_wqe; qplib_qp 973 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rq.max_sge = qp1_qp->rq.max_sge; qplib_qp 975 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rq.q_full_delta = 1; qplib_qp 977 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.mtu = qp1_qp->mtu; qplib_qp 979 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq_hdr_buf_size = 0; qplib_qp 980 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rq_hdr_buf_size = BNXT_QPLIB_MAX_GRH_HDR_SIZE_IPV6; qplib_qp 981 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.dpi = &rdev->dpi_privileged; qplib_qp 983 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = bnxt_qplib_create_qp(qp1_res, &qp->qplib_qp); qplib_qp 987 drivers/infiniband/hw/bnxt_re/ib_verbs.c rdev->sqp_id = qp->qplib_qp.id; qplib_qp 1025 drivers/infiniband/hw/bnxt_re/ib_verbs.c ether_addr_copy(qp->qplib_qp.smac, rdev->netdev->dev_addr); qplib_qp 1026 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.pd = &pd->qplib_pd; qplib_qp 1027 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.qp_handle = (u64)(unsigned long)(&qp->qplib_qp); qplib_qp 1028 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.type = __from_ib_qp_type(qp_init_attr->qp_type); qplib_qp 1032 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.type = CMDQ_CREATE_QP_TYPE_GSI; qplib_qp 1033 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (qp->qplib_qp.type == IB_QPT_MAX) { qplib_qp 1035 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.type); qplib_qp 1040 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.max_inline_data = qp_init_attr->cap.max_inline_data; qplib_qp 1041 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sig_type = ((qp_init_attr->sq_sig_type == qplib_qp 1044 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.max_sge = qp_init_attr->cap.max_send_sge; qplib_qp 1045 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (qp->qplib_qp.sq.max_sge > dev_attr->max_qp_sges) qplib_qp 1046 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.max_sge = dev_attr->max_qp_sges; qplib_qp 1056 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.scq = &cq->qplib_cq; qplib_qp 1068 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rcq = &cq->qplib_cq; qplib_qp 1080 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.srq = &srq->qplib_srq; qplib_qp 1081 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rq.max_wqe = 0; qplib_qp 1087 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rq.max_wqe = min_t(u32, entries, qplib_qp 1090 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rq.q_full_delta = qp->qplib_qp.rq.max_wqe - qplib_qp 1093 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rq.max_sge = qp_init_attr->cap.max_recv_sge; qplib_qp 1094 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (qp->qplib_qp.rq.max_sge > dev_attr->max_qp_sges) qplib_qp 1095 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rq.max_sge = dev_attr->max_qp_sges; qplib_qp 1098 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.mtu = ib_mtu_enum_to_int(iboe_get_mtu(rdev->netdev->mtu)); qplib_qp 1104 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.max_wqe = min_t(u32, entries, qplib_qp 1106 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.q_full_delta = qp->qplib_qp.sq.max_wqe - qplib_qp 1108 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rq.max_sge = dev_attr->max_qp_sges; qplib_qp 1109 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (qp->qplib_qp.rq.max_sge > dev_attr->max_qp_sges) qplib_qp 1110 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rq.max_sge = dev_attr->max_qp_sges; qplib_qp 1111 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.max_sge++; qplib_qp 1112 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (qp->qplib_qp.sq.max_sge > dev_attr->max_qp_sges) qplib_qp 1113 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.max_sge = dev_attr->max_qp_sges; qplib_qp 1115 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rq_hdr_buf_size = qplib_qp 1118 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq_hdr_buf_size = qplib_qp 1120 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.dpi = &rdev->dpi_privileged; qplib_qp 1121 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = bnxt_qplib_create_qp1(&rdev->qplib_res, &qp->qplib_qp); qplib_qp 1128 drivers/infiniband/hw/bnxt_re/ib_verbs.c &qp->qplib_qp); qplib_qp 1136 drivers/infiniband/hw/bnxt_re/ib_verbs.c &qp->qplib_qp); qplib_qp 1139 drivers/infiniband/hw/bnxt_re/ib_verbs.c &rdev->qp1_sqp->qplib_qp); qplib_qp 1150 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.max_wqe = min_t(u32, entries, qplib_qp 1153 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.q_full_delta = BNXT_QPLIB_RESERVED_QP_WRS + 1; qplib_qp 1161 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.q_full_delta -= 1; qplib_qp 1163 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.max_rd_atomic = dev_attr->max_qp_rd_atom; qplib_qp 1164 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.max_dest_rd_atomic = dev_attr->max_qp_init_rd_atom; qplib_qp 1170 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.dpi = &rdev->dpi_privileged; qplib_qp 1173 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = bnxt_qplib_create_qp(&rdev->qplib_res, &qp->qplib_qp); qplib_qp 1180 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->ib_qp.qp_num = qp->qplib_qp.id; qplib_qp 1203 drivers/infiniband/hw/bnxt_re/ib_verbs.c bnxt_qplib_destroy_qp(&rdev->qplib_res, &qp->qplib_qp); qplib_qp 1510 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_STATE; qplib_qp 1511 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.state = qp1_qp->qplib_qp.state; qplib_qp 1514 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_PKEY; qplib_qp 1515 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.pkey_index = qp1_qp->qplib_qp.pkey_index; qplib_qp 1519 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_QKEY; qplib_qp 1521 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.qkey = 0x81818181; qplib_qp 1524 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_SQ_PSN; qplib_qp 1525 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.psn = qp1_qp->qplib_qp.sq.psn; qplib_qp 1528 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = bnxt_qplib_modify_qp(&rdev->qplib_res, &qp->qplib_qp); qplib_qp 1546 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.modify_flags = 0; qplib_qp 1548 drivers/infiniband/hw/bnxt_re/ib_verbs.c curr_qp_state = __to_ib_qp_state(qp->qplib_qp.cur_qp_state); qplib_qp 1563 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_STATE; qplib_qp 1564 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.state = __from_ib_qp_state(qp_attr->qp_state); qplib_qp 1567 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.state == CMDQ_MODIFY_QP_NEW_STATE_ERR) { qplib_qp 1572 drivers/infiniband/hw/bnxt_re/ib_verbs.c bnxt_qplib_add_flush_qp(&qp->qplib_qp); qplib_qp 1576 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.state == CMDQ_MODIFY_QP_NEW_STATE_RESET) { qplib_qp 1581 drivers/infiniband/hw/bnxt_re/ib_verbs.c bnxt_qplib_clean_qp(&qp->qplib_qp); qplib_qp 1586 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.modify_flags |= qplib_qp 1588 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.en_sqd_async_notify = true; qplib_qp 1591 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_ACCESS; qplib_qp 1592 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.access = qplib_qp 1595 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.access |= BNXT_QPLIB_ACCESS_LOCAL_WRITE; qplib_qp 1597 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.access |= CMDQ_MODIFY_QP_ACCESS_REMOTE_WRITE; qplib_qp 1598 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.access |= CMDQ_MODIFY_QP_ACCESS_REMOTE_READ; qplib_qp 1601 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_PKEY; qplib_qp 1602 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.pkey_index = qp_attr->pkey_index; qplib_qp 1605 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_QKEY; qplib_qp 1606 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.qkey = qp_attr->qkey; qplib_qp 1613 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_DGID | qplib_qp 1620 drivers/infiniband/hw/bnxt_re/ib_verbs.c memcpy(qp->qplib_qp.ah.dgid.data, grh->dgid.raw, qplib_qp 1621 drivers/infiniband/hw/bnxt_re/ib_verbs.c sizeof(qp->qplib_qp.ah.dgid.data)); qplib_qp 1622 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.ah.flow_label = grh->flow_label; qplib_qp 1627 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.ah.sgid_index = grh->sgid_index / 2; qplib_qp 1628 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.ah.host_sgid_index = grh->sgid_index; qplib_qp 1629 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.ah.hop_limit = grh->hop_limit; qplib_qp 1630 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.ah.traffic_class = grh->traffic_class; qplib_qp 1631 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.ah.sl = rdma_ah_get_sl(&qp_attr->ah_attr); qplib_qp 1632 drivers/infiniband/hw/bnxt_re/ib_verbs.c ether_addr_copy(qp->qplib_qp.ah.dmac, qplib_qp 1637 drivers/infiniband/hw/bnxt_re/ib_verbs.c &qp->qplib_qp.smac[0]); qplib_qp 1644 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.nw_type = qplib_qp 1648 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.nw_type = qplib_qp 1652 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.nw_type = qplib_qp 1659 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.modify_flags |= qplib_qp 1661 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.path_mtu = __from_ib_mtu(qp_attr->path_mtu); qplib_qp 1662 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.mtu = ib_mtu_enum_to_int(qp_attr->path_mtu); qplib_qp 1664 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.modify_flags |= qplib_qp 1666 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.path_mtu = qplib_qp 1668 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.mtu = qplib_qp 1673 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_TIMEOUT; qplib_qp 1674 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.timeout = qp_attr->timeout; qplib_qp 1677 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.modify_flags |= qplib_qp 1679 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.retry_cnt = qp_attr->retry_cnt; qplib_qp 1682 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.modify_flags |= qplib_qp 1684 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rnr_retry = qp_attr->rnr_retry; qplib_qp 1687 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.modify_flags |= qplib_qp 1689 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.min_rnr_timer = qp_attr->min_rnr_timer; qplib_qp 1692 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_RQ_PSN; qplib_qp 1693 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rq.psn = qp_attr->rq_psn; qplib_qp 1696 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.modify_flags |= qplib_qp 1699 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.max_rd_atomic = min_t(u32, qp_attr->max_rd_atomic, qplib_qp 1703 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.modify_flags |= CMDQ_MODIFY_QP_MODIFY_MASK_SQ_PSN; qplib_qp 1704 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.psn = qp_attr->sq_psn; qplib_qp 1716 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.modify_flags |= qplib_qp 1718 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.max_dest_rd_atomic = qp_attr->max_dest_rd_atomic; qplib_qp 1721 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.modify_flags |= qplib_qp 1738 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.max_wqe = min_t(u32, entries, qplib_qp 1740 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.q_full_delta = qp->qplib_qp.sq.max_wqe - qplib_qp 1747 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.q_full_delta -= 1; qplib_qp 1748 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.max_sge = qp_attr->cap.max_send_sge; qplib_qp 1749 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (qp->qplib_qp.rq.max_wqe) { qplib_qp 1751 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rq.max_wqe = qplib_qp 1753 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rq.q_full_delta = qp->qplib_qp.rq.max_wqe - qplib_qp 1755 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rq.max_sge = qp_attr->cap.max_recv_sge; qplib_qp 1761 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.modify_flags |= qplib_qp 1763 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.dest_qpn = qp_attr->dest_qp_num; qplib_qp 1765 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = bnxt_qplib_modify_qp(&rdev->qplib_res, &qp->qplib_qp); qplib_qp 1780 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct bnxt_qplib_qp *qplib_qp; qplib_qp 1783 drivers/infiniband/hw/bnxt_re/ib_verbs.c qplib_qp = kzalloc(sizeof(*qplib_qp), GFP_KERNEL); qplib_qp 1784 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (!qplib_qp) qplib_qp 1787 drivers/infiniband/hw/bnxt_re/ib_verbs.c qplib_qp->id = qp->qplib_qp.id; qplib_qp 1788 drivers/infiniband/hw/bnxt_re/ib_verbs.c qplib_qp->ah.host_sgid_index = qp->qplib_qp.ah.host_sgid_index; qplib_qp 1790 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = bnxt_qplib_query_qp(&rdev->qplib_res, qplib_qp); qplib_qp 1795 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->qp_state = __to_ib_qp_state(qplib_qp->state); qplib_qp 1796 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->en_sqd_async_notify = qplib_qp->en_sqd_async_notify ? 1 : 0; qplib_qp 1797 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->qp_access_flags = __to_ib_access_flags(qplib_qp->access); qplib_qp 1798 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->pkey_index = qplib_qp->pkey_index; qplib_qp 1799 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->qkey = qplib_qp->qkey; qplib_qp 1801 drivers/infiniband/hw/bnxt_re/ib_verbs.c rdma_ah_set_grh(&qp_attr->ah_attr, NULL, qplib_qp->ah.flow_label, qplib_qp 1802 drivers/infiniband/hw/bnxt_re/ib_verbs.c qplib_qp->ah.host_sgid_index, qplib_qp 1803 drivers/infiniband/hw/bnxt_re/ib_verbs.c qplib_qp->ah.hop_limit, qplib_qp 1804 drivers/infiniband/hw/bnxt_re/ib_verbs.c qplib_qp->ah.traffic_class); qplib_qp 1805 drivers/infiniband/hw/bnxt_re/ib_verbs.c rdma_ah_set_dgid_raw(&qp_attr->ah_attr, qplib_qp->ah.dgid.data); qplib_qp 1806 drivers/infiniband/hw/bnxt_re/ib_verbs.c rdma_ah_set_sl(&qp_attr->ah_attr, qplib_qp->ah.sl); qplib_qp 1807 drivers/infiniband/hw/bnxt_re/ib_verbs.c ether_addr_copy(qp_attr->ah_attr.roce.dmac, qplib_qp->ah.dmac); qplib_qp 1808 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->path_mtu = __to_ib_mtu(qplib_qp->path_mtu); qplib_qp 1809 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->timeout = qplib_qp->timeout; qplib_qp 1810 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->retry_cnt = qplib_qp->retry_cnt; qplib_qp 1811 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->rnr_retry = qplib_qp->rnr_retry; qplib_qp 1812 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->min_rnr_timer = qplib_qp->min_rnr_timer; qplib_qp 1813 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->rq_psn = qplib_qp->rq.psn; qplib_qp 1814 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->max_rd_atomic = qplib_qp->max_rd_atomic; qplib_qp 1815 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->sq_psn = qplib_qp->sq.psn; qplib_qp 1816 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->max_dest_rd_atomic = qplib_qp->max_dest_rd_atomic; qplib_qp 1817 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_init_attr->sq_sig_type = qplib_qp->sig_type ? IB_SIGNAL_ALL_WR : qplib_qp 1819 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->dest_qp_num = qplib_qp->dest_qpn; qplib_qp 1821 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->cap.max_send_wr = qp->qplib_qp.sq.max_wqe; qplib_qp 1822 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->cap.max_send_sge = qp->qplib_qp.sq.max_sge; qplib_qp 1823 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->cap.max_recv_wr = qp->qplib_qp.rq.max_wqe; qplib_qp 1824 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->cap.max_recv_sge = qp->qplib_qp.rq.max_sge; qplib_qp 1825 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->cap.max_inline_data = qp->qplib_qp.max_inline_data; qplib_qp 1829 drivers/infiniband/hw/bnxt_re/ib_verbs.c kfree(qplib_qp); qplib_qp 1900 drivers/infiniband/hw/bnxt_re/ib_verbs.c ether_addr_copy(qp->qp1_hdr.eth.smac_h, qp->qplib_qp.smac); qplib_qp 1961 drivers/infiniband/hw/bnxt_re/ib_verbs.c buf = bnxt_qplib_get_qp1_sq_buf(&qp->qplib_qp, &sge); qplib_qp 2018 drivers/infiniband/hw/bnxt_re/ib_verbs.c rq_prod_index = bnxt_qplib_get_rq_prod_index(&qp->qplib_qp); qplib_qp 2020 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (!bnxt_qplib_get_qp1_rq_buf(&qp->qplib_qp, &sge)) qplib_qp 2051 drivers/infiniband/hw/bnxt_re/ib_verbs.c return (qp->qplib_qp.type == CMDQ_CREATE_QP_TYPE_UD || qplib_qp 2052 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.type == CMDQ_CREATE_QP_TYPE_GSI); qplib_qp 2263 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.wqe_cnt == BNXT_RE_UD_QP_HW_STALL) { qplib_qp 2270 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.wqe_cnt = 0; qplib_qp 2290 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (wr->num_sge > qp->qplib_qp.sq.max_sge) { qplib_qp 2308 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = bnxt_qplib_post_send(&qp->qplib_qp, &wqe); qplib_qp 2318 drivers/infiniband/hw/bnxt_re/ib_verbs.c bnxt_qplib_post_send_db(&qp->qplib_qp); qplib_qp 2339 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (wr->num_sge > qp->qplib_qp.sq.max_sge) { qplib_qp 2356 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (qp->qplib_qp.type == CMDQ_CREATE_QP1_TYPE_GSI) { qplib_qp 2404 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = bnxt_qplib_post_send(&qp->qplib_qp, &wqe); qplib_qp 2409 drivers/infiniband/hw/bnxt_re/ib_verbs.c wr->opcode, qp->qplib_qp.state, rc); qplib_qp 2415 drivers/infiniband/hw/bnxt_re/ib_verbs.c bnxt_qplib_post_send_db(&qp->qplib_qp); qplib_qp 2436 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (wr->num_sge > qp->qplib_qp.rq.max_sge) { qplib_qp 2446 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = bnxt_qplib_post_recv(&qp->qplib_qp, &wqe); qplib_qp 2453 drivers/infiniband/hw/bnxt_re/ib_verbs.c bnxt_qplib_post_recv_db(&qp->qplib_qp); qplib_qp 2473 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (wr->num_sge > qp->qplib_qp.rq.max_sge) { qplib_qp 2487 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.type != CMDQ_CREATE_QP_TYPE_GSI) qplib_qp 2491 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = bnxt_qplib_post_recv(&qp->qplib_qp, &wqe); qplib_qp 2499 drivers/infiniband/hw/bnxt_re/ib_verbs.c bnxt_qplib_post_recv_db(&qp->qplib_qp); qplib_qp 2507 drivers/infiniband/hw/bnxt_re/ib_verbs.c bnxt_qplib_post_recv_db(&qp->qplib_qp); qplib_qp 2879 drivers/infiniband/hw/bnxt_re/ib_verbs.c rq_hdr_buf = qp1_qp->qplib_qp.rq_hdr_buf + qplib_qp 2880 drivers/infiniband/hw/bnxt_re/ib_verbs.c (tbl_idx * qp1_qp->qplib_qp.rq_hdr_buf_size); qplib_qp 2881 drivers/infiniband/hw/bnxt_re/ib_verbs.c rq_hdr_buf_map = bnxt_qplib_get_qp_buf_from_index(&qp1_qp->qplib_qp, qplib_qp 2885 drivers/infiniband/hw/bnxt_re/ib_verbs.c shrq_hdr_buf_map = bnxt_qplib_get_qp_buf_from_index(&qp->qplib_qp, qplib_qp 2959 drivers/infiniband/hw/bnxt_re/ib_verbs.c udwr.remote_qpn = rdev->qp1_sqp->qplib_qp.id; qplib_qp 2960 drivers/infiniband/hw/bnxt_re/ib_verbs.c udwr.remote_qkey = rdev->qp1_sqp->qplib_qp.qkey; qplib_qp 3075 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (qp->qplib_qp.type == CMDQ_CREATE_QP_TYPE_GSI) { qplib_qp 3094 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct bnxt_qplib_qp *lib_qp = &qp->qplib_qp; qplib_qp 3141 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct bnxt_re_qp, qplib_qp); qplib_qp 3166 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct bnxt_re_qp, qplib_qp); qplib_qp 3181 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (qp->rdev->qp1_sqp && qp->qplib_qp.id == qplib_qp 3182 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->rdev->qp1_sqp->qplib_qp.id) { qplib_qp 3216 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (qp->rdev->qp1_sqp && qp->qplib_qp.id == qplib_qp 3217 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->rdev->qp1_sqp->qplib_qp.id) { qplib_qp 86 drivers/infiniband/hw/bnxt_re/ib_verbs.h struct bnxt_qplib_qp qplib_qp; qplib_qp 792 drivers/infiniband/hw/bnxt_re/main.c if (qp->qplib_qp.state == CMDQ_MODIFY_QP_NEW_STATE_ERR) { qplib_qp 794 drivers/infiniband/hw/bnxt_re/main.c bnxt_qplib_add_flush_qp(&qp->qplib_qp); qplib_qp 799 drivers/infiniband/hw/bnxt_re/main.c if (qp->qplib_qp.srq) { qplib_qp 824 drivers/infiniband/hw/bnxt_re/main.c qplib_qp); qplib_qp 1122 drivers/infiniband/hw/bnxt_re/main.c if (qp->qplib_qp.state != qplib_qp 1124 drivers/infiniband/hw/bnxt_re/main.c qp->qplib_qp.state !=