init_attr 1653 drivers/infiniband/core/uverbs_cmd.c struct ib_qp_init_attr *init_attr; init_attr 1661 drivers/infiniband/core/uverbs_cmd.c init_attr = kmalloc(sizeof *init_attr, GFP_KERNEL); init_attr 1662 drivers/infiniband/core/uverbs_cmd.c if (!attr || !init_attr) { init_attr 1673 drivers/infiniband/core/uverbs_cmd.c ret = ib_query_qp(qp, attr, cmd.attr_mask, init_attr); init_attr 1707 drivers/infiniband/core/uverbs_cmd.c resp.max_send_wr = init_attr->cap.max_send_wr; init_attr 1708 drivers/infiniband/core/uverbs_cmd.c resp.max_recv_wr = init_attr->cap.max_recv_wr; init_attr 1709 drivers/infiniband/core/uverbs_cmd.c resp.max_send_sge = init_attr->cap.max_send_sge; init_attr 1710 drivers/infiniband/core/uverbs_cmd.c resp.max_recv_sge = init_attr->cap.max_recv_sge; init_attr 1711 drivers/infiniband/core/uverbs_cmd.c resp.max_inline_data = init_attr->cap.max_inline_data; init_attr 1712 drivers/infiniband/core/uverbs_cmd.c resp.sq_sig_all = init_attr->sq_sig_type == IB_SIGNAL_ALL_WR; init_attr 1718 drivers/infiniband/core/uverbs_cmd.c kfree(init_attr); init_attr 3048 drivers/infiniband/core/uverbs_cmd.c struct ib_rwq_ind_table_init_attr init_attr = {}; init_attr 3107 drivers/infiniband/core/uverbs_cmd.c init_attr.log_ind_tbl_size = cmd.log_ind_tbl_size; init_attr 3108 drivers/infiniband/core/uverbs_cmd.c init_attr.ind_tbl = wqs; init_attr 3110 drivers/infiniband/core/uverbs_cmd.c rwq_ind_tbl = ib_dev->ops.create_rwq_ind_table(ib_dev, &init_attr, init_attr 3119 drivers/infiniband/core/uverbs_cmd.c rwq_ind_tbl->log_ind_tbl_size = init_attr.log_ind_tbl_size; init_attr 2147 drivers/infiniband/core/verbs.c struct ib_qp_init_attr init_attr = {}; init_attr 2155 drivers/infiniband/core/verbs.c if (!ib_query_qp(qp, &attr, IB_QP_STATE | IB_QP_PORT, &init_attr)) { init_attr 2351 drivers/infiniband/core/verbs.c struct ib_rwq_ind_table_init_attr *init_attr) init_attr 2360 drivers/infiniband/core/verbs.c table_size = (1 << init_attr->log_ind_tbl_size); init_attr 2362 drivers/infiniband/core/verbs.c init_attr, NULL); init_attr 2366 drivers/infiniband/core/verbs.c rwq_ind_table->ind_tbl = init_attr->ind_tbl; init_attr 2367 drivers/infiniband/core/verbs.c rwq_ind_table->log_ind_tbl_size = init_attr->log_ind_tbl_size; init_attr 819 drivers/infiniband/hw/cxgb3/iwch_qp.c struct t3_rdma_init_attr init_attr; init_attr 822 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.tid = qhp->ep->hwtid; init_attr 823 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.qpid = qhp->wq.qpid; init_attr 824 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.pdid = qhp->attr.pd; init_attr 825 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.scqid = qhp->attr.scq; init_attr 826 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.rcqid = qhp->attr.rcq; init_attr 827 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.rq_addr = qhp->wq.rq_addr; init_attr 828 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.rq_size = 1 << qhp->wq.rq_size_log2; init_attr 829 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.mpaattrs = uP_RI_MPA_IETF_ENABLE | init_attr 834 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.qpcaps = uP_RI_QP_RDMA_READ_ENABLE | init_attr 838 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.qpcaps |= uP_RI_QP_STAG0_ENABLE | init_attr 841 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.tcp_emss = qhp->ep->emss; init_attr 842 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.ord = qhp->attr.max_ord; init_attr 843 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.ird = qhp->attr.max_ird; init_attr 844 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.qp_dma_addr = qhp->wq.dma_addr; init_attr 845 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.qp_dma_size = (1UL << qhp->wq.size_log2); init_attr 846 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.rqe_count = iwch_rqes_posted(qhp); init_attr 847 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.flags = qhp->attr.mpa_attr.initiator ? MPA_INITIATOR : 0; init_attr 848 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.chan = qhp->ep->l2t->smt_idx; init_attr 850 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.rtr_type = RTR_READ; init_attr 851 drivers/infiniband/hw/cxgb3/iwch_qp.c if (init_attr.ord == 0 && qhp->attr.mpa_attr.initiator) init_attr 852 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.ord = 1; init_attr 853 drivers/infiniband/hw/cxgb3/iwch_qp.c if (init_attr.ird == 0 && !qhp->attr.mpa_attr.initiator) init_attr 854 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.ird = 1; init_attr 856 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.rtr_type = 0; init_attr 857 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.irs = qhp->ep->rcv_seq; init_attr 860 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.rq_addr, init_attr.rq_size, init_attr 861 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.flags, init_attr.qpcaps); init_attr 862 drivers/infiniband/hw/cxgb3/iwch_qp.c ret = cxio_rdma_init(&rhp->rdev, &init_attr); init_attr 1012 drivers/infiniband/hw/cxgb4/iw_cxgb4.h int attr_mask, struct ib_qp_init_attr *init_attr); init_attr 2464 drivers/infiniband/hw/cxgb4/qp.c int attr_mask, struct ib_qp_init_attr *init_attr) init_attr 2469 drivers/infiniband/hw/cxgb4/qp.c memset(init_attr, 0, sizeof(*init_attr)); init_attr 2471 drivers/infiniband/hw/cxgb4/qp.c init_attr->cap.max_send_wr = qhp->attr.sq_num_entries; init_attr 2472 drivers/infiniband/hw/cxgb4/qp.c init_attr->cap.max_recv_wr = qhp->attr.rq_num_entries; init_attr 2473 drivers/infiniband/hw/cxgb4/qp.c init_attr->cap.max_send_sge = qhp->attr.sq_max_sges; init_attr 2474 drivers/infiniband/hw/cxgb4/qp.c init_attr->cap.max_recv_sge = qhp->attr.sq_max_sges; init_attr 2475 drivers/infiniband/hw/cxgb4/qp.c init_attr->cap.max_inline_data = T4_MAX_SEND_INLINE; init_attr 2476 drivers/infiniband/hw/cxgb4/qp.c init_attr->sq_sig_type = qhp->sq_sig_all ? IB_SIGNAL_ALL_WR : 0; init_attr 135 drivers/infiniband/hw/efa/efa.h struct ib_qp_init_attr *init_attr, init_attr 566 drivers/infiniband/hw/efa/efa_verbs.c struct ib_qp_init_attr *init_attr) init_attr 568 drivers/infiniband/hw/efa/efa_verbs.c if (init_attr->cap.max_send_wr > dev->dev_attr.max_sq_depth) { init_attr 571 drivers/infiniband/hw/efa/efa_verbs.c init_attr->cap.max_send_wr, init_attr 575 drivers/infiniband/hw/efa/efa_verbs.c if (init_attr->cap.max_recv_wr > dev->dev_attr.max_rq_depth) { init_attr 578 drivers/infiniband/hw/efa/efa_verbs.c init_attr->cap.max_recv_wr, init_attr 582 drivers/infiniband/hw/efa/efa_verbs.c if (init_attr->cap.max_send_sge > dev->dev_attr.max_sq_sge) { init_attr 585 drivers/infiniband/hw/efa/efa_verbs.c init_attr->cap.max_send_sge, dev->dev_attr.max_sq_sge); init_attr 588 drivers/infiniband/hw/efa/efa_verbs.c if (init_attr->cap.max_recv_sge > dev->dev_attr.max_rq_sge) { init_attr 591 drivers/infiniband/hw/efa/efa_verbs.c init_attr->cap.max_recv_sge, dev->dev_attr.max_rq_sge); init_attr 594 drivers/infiniband/hw/efa/efa_verbs.c if (init_attr->cap.max_inline_data > dev->dev_attr.inline_buf_size) { init_attr 597 drivers/infiniband/hw/efa/efa_verbs.c init_attr->cap.max_inline_data, init_attr 606 drivers/infiniband/hw/efa/efa_verbs.c struct ib_qp_init_attr *init_attr) init_attr 608 drivers/infiniband/hw/efa/efa_verbs.c if (init_attr->qp_type != IB_QPT_DRIVER && init_attr 609 drivers/infiniband/hw/efa/efa_verbs.c init_attr->qp_type != IB_QPT_UD) { init_attr 611 drivers/infiniband/hw/efa/efa_verbs.c "Unsupported qp type %d\n", init_attr->qp_type); init_attr 615 drivers/infiniband/hw/efa/efa_verbs.c if (init_attr->srq) { init_attr 620 drivers/infiniband/hw/efa/efa_verbs.c if (init_attr->create_flags) { init_attr 629 drivers/infiniband/hw/efa/efa_verbs.c struct ib_qp_init_attr *init_attr, init_attr 645 drivers/infiniband/hw/efa/efa_verbs.c err = efa_qp_validate_cap(dev, init_attr); init_attr 649 drivers/infiniband/hw/efa/efa_verbs.c err = efa_qp_validate_attr(dev, init_attr); init_attr 693 drivers/infiniband/hw/efa/efa_verbs.c if (init_attr->qp_type == IB_QPT_UD) { init_attr 700 drivers/infiniband/hw/efa/efa_verbs.c init_attr->qp_type, cmd.driver_qp_type); init_attr 706 drivers/infiniband/hw/efa/efa_verbs.c init_attr->qp_type, cmd.driver_qp_type); init_attr 707 drivers/infiniband/hw/efa/efa_verbs.c create_qp_params.send_cq_idx = to_ecq(init_attr->send_cq)->cq_idx; init_attr 708 drivers/infiniband/hw/efa/efa_verbs.c create_qp_params.recv_cq_idx = to_ecq(init_attr->recv_cq)->cq_idx; init_attr 709 drivers/infiniband/hw/efa/efa_verbs.c create_qp_params.sq_depth = init_attr->cap.max_send_wr; init_attr 712 drivers/infiniband/hw/efa/efa_verbs.c create_qp_params.rq_depth = init_attr->cap.max_recv_wr; init_attr 748 drivers/infiniband/hw/efa/efa_verbs.c qp->ibqp.qp_type = init_attr->qp_type; init_attr 749 drivers/infiniband/hw/efa/efa_verbs.c qp->max_send_wr = init_attr->cap.max_send_wr; init_attr 750 drivers/infiniband/hw/efa/efa_verbs.c qp->max_recv_wr = init_attr->cap.max_recv_wr; init_attr 751 drivers/infiniband/hw/efa/efa_verbs.c qp->max_send_sge = init_attr->cap.max_send_sge; init_attr 752 drivers/infiniband/hw/efa/efa_verbs.c qp->max_recv_sge = init_attr->cap.max_recv_sge; init_attr 753 drivers/infiniband/hw/efa/efa_verbs.c qp->max_inline_data = init_attr->cap.max_inline_data; init_attr 126 drivers/infiniband/hw/hfi1/qp.h struct ib_qp_init_attr *init_attr, init_attr 338 drivers/infiniband/hw/hfi1/tid_rdma.c struct ib_qp_init_attr *init_attr) init_attr 367 drivers/infiniband/hw/hfi1/tid_rdma.c if (init_attr->qp_type == IB_QPT_RC && HFI1_CAP_IS_KSET(TID_RDMA)) { init_attr 231 drivers/infiniband/hw/hfi1/tid_rdma.h struct ib_qp_init_attr *init_attr); init_attr 1238 drivers/infiniband/hw/hns/hns_roce_device.h struct ib_qp_init_attr *init_attr, init_attr 680 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct ib_qp_init_attr init_attr; init_attr 683 drivers/infiniband/hw/hns/hns_roce_hw_v1.c memset(&init_attr, 0, sizeof(struct ib_qp_init_attr)); init_attr 684 drivers/infiniband/hw/hns/hns_roce_hw_v1.c init_attr.qp_type = IB_QPT_RC; init_attr 685 drivers/infiniband/hw/hns/hns_roce_hw_v1.c init_attr.sq_sig_type = IB_SIGNAL_ALL_WR; init_attr 686 drivers/infiniband/hw/hns/hns_roce_hw_v1.c init_attr.cap.max_recv_wr = HNS_ROCE_MIN_WQE_NUM; init_attr 687 drivers/infiniband/hw/hns/hns_roce_hw_v1.c init_attr.cap.max_send_wr = HNS_ROCE_MIN_WQE_NUM; init_attr 689 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp = hns_roce_create_qp(pd, &init_attr, NULL); init_attr 641 drivers/infiniband/hw/hns/hns_roce_qp.c struct ib_qp_init_attr *init_attr) init_attr 643 drivers/infiniband/hw/hns/hns_roce_qp.c u32 max_recv_sge = init_attr->cap.max_recv_sge; init_attr 686 drivers/infiniband/hw/hns/hns_roce_qp.c struct ib_qp_init_attr *init_attr, init_attr 709 drivers/infiniband/hw/hns/hns_roce_qp.c hr_qp->ibqp.qp_type = init_attr->qp_type; init_attr 711 drivers/infiniband/hw/hns/hns_roce_qp.c if (init_attr->sq_sig_type == IB_SIGNAL_ALL_WR) init_attr 716 drivers/infiniband/hw/hns/hns_roce_qp.c ret = hns_roce_set_rq_size(hr_dev, &init_attr->cap, udata, init_attr 717 drivers/infiniband/hw/hns/hns_roce_qp.c hns_roce_qp_has_rq(init_attr), hr_qp); init_attr 724 drivers/infiniband/hw/hns/hns_roce_qp.c hns_roce_qp_has_rq(init_attr)) { init_attr 725 drivers/infiniband/hw/hns/hns_roce_qp.c ret = alloc_rq_inline_buf(hr_qp, init_attr); init_attr 740 drivers/infiniband/hw/hns/hns_roce_qp.c ret = hns_roce_set_user_sq_size(hr_dev, &init_attr->cap, hr_qp, init_attr 781 drivers/infiniband/hw/hns/hns_roce_qp.c hns_roce_qp_has_sq(init_attr)) { init_attr 796 drivers/infiniband/hw/hns/hns_roce_qp.c hns_roce_qp_has_rq(init_attr)) { init_attr 809 drivers/infiniband/hw/hns/hns_roce_qp.c if (init_attr->create_flags & init_attr 816 drivers/infiniband/hw/hns/hns_roce_qp.c if (init_attr->create_flags & IB_QP_CREATE_IPOIB_UD_LSO) { init_attr 823 drivers/infiniband/hw/hns/hns_roce_qp.c ret = hns_roce_set_kernel_sq_size(hr_dev, &init_attr->cap, init_attr 837 drivers/infiniband/hw/hns/hns_roce_qp.c hns_roce_qp_has_rq(init_attr)) { init_attr 918 drivers/infiniband/hw/hns/hns_roce_qp.c if (init_attr->qp_type == IB_QPT_GSI && init_attr 958 drivers/infiniband/hw/hns/hns_roce_qp.c if (init_attr->qp_type == IB_QPT_GSI && init_attr 975 drivers/infiniband/hw/hns/hns_roce_qp.c hns_roce_qp_has_rq(init_attr)) init_attr 987 drivers/infiniband/hw/hns/hns_roce_qp.c hns_roce_qp_has_sq(init_attr)) init_attr 1003 drivers/infiniband/hw/hns/hns_roce_qp.c if (!udata && hns_roce_qp_has_rq(init_attr) && init_attr 1009 drivers/infiniband/hw/hns/hns_roce_qp.c hns_roce_qp_has_rq(init_attr)) init_attr 1017 drivers/infiniband/hw/hns/hns_roce_qp.c struct ib_qp_init_attr *init_attr, init_attr 1026 drivers/infiniband/hw/hns/hns_roce_qp.c switch (init_attr->qp_type) { init_attr 1032 drivers/infiniband/hw/hns/hns_roce_qp.c ret = hns_roce_create_qp_common(hr_dev, pd, init_attr, udata, 0, init_attr 1057 drivers/infiniband/hw/hns/hns_roce_qp.c hr_qp->port = init_attr->port_num - 1; init_attr 1067 drivers/infiniband/hw/hns/hns_roce_qp.c ret = hns_roce_create_qp_common(hr_dev, pd, init_attr, udata, init_attr 1079 drivers/infiniband/hw/hns/hns_roce_qp.c init_attr->qp_type); init_attr 518 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct ib_qp_init_attr *init_attr, init_attr 549 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (init_attr->create_flags) init_attr 551 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (init_attr->cap.max_inline_data > I40IW_MAX_INLINE_DATA_SIZE) init_attr 552 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->cap.max_inline_data = I40IW_MAX_INLINE_DATA_SIZE; init_attr 554 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (init_attr->cap.max_send_sge > I40IW_MAX_WQ_FRAGMENT_COUNT) init_attr 555 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->cap.max_send_sge = I40IW_MAX_WQ_FRAGMENT_COUNT; init_attr 557 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (init_attr->cap.max_recv_sge > I40IW_MAX_WQ_FRAGMENT_COUNT) init_attr 558 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->cap.max_recv_sge = I40IW_MAX_WQ_FRAGMENT_COUNT; init_attr 562 drivers/infiniband/hw/i40iw/i40iw_verbs.c sq_size = init_attr->cap.max_send_wr; init_attr 563 drivers/infiniband/hw/i40iw/i40iw_verbs.c rq_size = init_attr->cap.max_recv_wr; init_attr 568 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_info.qp_uk_init_info.max_sq_frag_cnt = init_attr->cap.max_send_sge; init_attr 569 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_info.qp_uk_init_info.max_rq_frag_cnt = init_attr->cap.max_recv_sge; init_attr 570 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_info.qp_uk_init_info.max_inline_data = init_attr->cap.max_inline_data; init_attr 610 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->iwscq = to_iwcq(init_attr->send_cq); init_attr 611 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->iwrcq = to_iwcq(init_attr->recv_cq); init_attr 621 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (init_attr->qp_type != IB_QPT_RC) { init_attr 722 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->sig_all = (init_attr->sq_sig_type == IB_SIGNAL_ALL_WR) ? 1 : 0; init_attr 759 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct ib_qp_init_attr *init_attr) init_attr 773 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->event_handler = iwqp->ibqp.event_handler; init_attr 774 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->qp_context = iwqp->ibqp.qp_context; init_attr 775 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->send_cq = iwqp->ibqp.send_cq; init_attr 776 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->recv_cq = iwqp->ibqp.recv_cq; init_attr 777 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->srq = iwqp->ibqp.srq; init_attr 778 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->cap = attr->cap; init_attr 779 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->port_num = 1; init_attr 1811 drivers/infiniband/hw/mlx4/mad.c qp_init_attr.init_attr.send_cq = ctx->cq; init_attr 1812 drivers/infiniband/hw/mlx4/mad.c qp_init_attr.init_attr.recv_cq = ctx->cq; init_attr 1813 drivers/infiniband/hw/mlx4/mad.c qp_init_attr.init_attr.sq_sig_type = IB_SIGNAL_ALL_WR; init_attr 1814 drivers/infiniband/hw/mlx4/mad.c qp_init_attr.init_attr.cap.max_send_wr = MLX4_NUM_TUNNEL_BUFS; init_attr 1815 drivers/infiniband/hw/mlx4/mad.c qp_init_attr.init_attr.cap.max_recv_wr = MLX4_NUM_TUNNEL_BUFS; init_attr 1816 drivers/infiniband/hw/mlx4/mad.c qp_init_attr.init_attr.cap.max_send_sge = 1; init_attr 1817 drivers/infiniband/hw/mlx4/mad.c qp_init_attr.init_attr.cap.max_recv_sge = 1; init_attr 1819 drivers/infiniband/hw/mlx4/mad.c qp_init_attr.init_attr.qp_type = IB_QPT_UD; init_attr 1820 drivers/infiniband/hw/mlx4/mad.c qp_init_attr.init_attr.create_flags = MLX4_IB_SRIOV_TUNNEL_QP; init_attr 1827 drivers/infiniband/hw/mlx4/mad.c qp_init_attr.init_attr.qp_type = qp_type; init_attr 1828 drivers/infiniband/hw/mlx4/mad.c qp_init_attr.init_attr.create_flags = MLX4_IB_SRIOV_SQP; init_attr 1831 drivers/infiniband/hw/mlx4/mad.c qp_init_attr.init_attr.port_num = ctx->port; init_attr 1832 drivers/infiniband/hw/mlx4/mad.c qp_init_attr.init_attr.qp_context = ctx; init_attr 1833 drivers/infiniband/hw/mlx4/mad.c qp_init_attr.init_attr.event_handler = pv_qp_event_handler; init_attr 1834 drivers/infiniband/hw/mlx4/mad.c tun_qp->qp = ib_create_qp(ctx->pd, &qp_init_attr.init_attr); init_attr 630 drivers/infiniband/hw/mlx4/mlx4_ib.h struct ib_qp_init_attr init_attr; init_attr 761 drivers/infiniband/hw/mlx4/mlx4_ib.h int mlx4_ib_create_srq(struct ib_srq *srq, struct ib_srq_init_attr *init_attr, init_attr 772 drivers/infiniband/hw/mlx4/mlx4_ib.h struct ib_qp_init_attr *init_attr, init_attr 907 drivers/infiniband/hw/mlx4/mlx4_ib.h struct ib_wq_init_attr *init_attr, init_attr 915 drivers/infiniband/hw/mlx4/mlx4_ib.h struct ib_rwq_ind_table_init_attr *init_attr, init_attr 540 drivers/infiniband/hw/mlx4/qp.c struct ib_qp_init_attr *init_attr, init_attr 543 drivers/infiniband/hw/mlx4/qp.c rss_ctx->base_qpn_tbl_sz = init_attr->rwq_ind_tbl->ind_tbl[0]->wq_num | init_attr 544 drivers/infiniband/hw/mlx4/qp.c (init_attr->rwq_ind_tbl->log_ind_tbl_size << 24); init_attr 642 drivers/infiniband/hw/mlx4/qp.c struct ib_qp_init_attr *init_attr, init_attr 673 drivers/infiniband/hw/mlx4/qp.c (struct ib_qp *)init_attr->rwq_ind_tbl->ind_tbl[0]))->mtt; init_attr 681 drivers/infiniband/hw/mlx4/qp.c err = set_qp_rss(dev, qp->rss_ctx, init_attr, ucmd); init_attr 700 drivers/infiniband/hw/mlx4/qp.c struct ib_qp_init_attr *init_attr, init_attr 741 drivers/infiniband/hw/mlx4/qp.c if (init_attr->qp_type != IB_QPT_RAW_PACKET) { init_attr 743 drivers/infiniband/hw/mlx4/qp.c init_attr->qp_type); init_attr 747 drivers/infiniband/hw/mlx4/qp.c if (init_attr->create_flags) { init_attr 752 drivers/infiniband/hw/mlx4/qp.c if (init_attr->send_cq || init_attr->cap.max_send_wr) { init_attr 764 drivers/infiniband/hw/mlx4/qp.c err = create_qp_rss(to_mdev(pd->device), init_attr, &ucmd, qp); init_attr 858 drivers/infiniband/hw/mlx4/qp.c static int create_rq(struct ib_pd *pd, struct ib_qp_init_attr *init_attr, init_attr 906 drivers/infiniband/hw/mlx4/qp.c if (init_attr->create_flags & IB_QP_CREATE_SCATTER_FCS) init_attr 909 drivers/infiniband/hw/mlx4/qp.c err = set_rq_size(dev, &init_attr->cap, true, true, qp, qp->inl_recv_sz); init_attr 959 drivers/infiniband/hw/mlx4/qp.c mlx4_ib_lock_cqs(to_mcq(init_attr->send_cq), init_attr 960 drivers/infiniband/hw/mlx4/qp.c to_mcq(init_attr->recv_cq)); init_attr 968 drivers/infiniband/hw/mlx4/qp.c mcq = to_mcq(init_attr->send_cq); init_attr 970 drivers/infiniband/hw/mlx4/qp.c mcq = to_mcq(init_attr->recv_cq); init_attr 972 drivers/infiniband/hw/mlx4/qp.c mlx4_ib_unlock_cqs(to_mcq(init_attr->send_cq), init_attr 973 drivers/infiniband/hw/mlx4/qp.c to_mcq(init_attr->recv_cq)); init_attr 990 drivers/infiniband/hw/mlx4/qp.c static int create_qp_common(struct ib_pd *pd, struct ib_qp_init_attr *init_attr, init_attr 1001 drivers/infiniband/hw/mlx4/qp.c enum mlx4_ib_qp_type qp_type = (enum mlx4_ib_qp_type) init_attr->qp_type; init_attr 1009 drivers/infiniband/hw/mlx4/qp.c !(init_attr->create_flags & MLX4_IB_SRIOV_SQP))) { init_attr 1010 drivers/infiniband/hw/mlx4/qp.c if (init_attr->qp_type == IB_QPT_GSI) init_attr 1022 drivers/infiniband/hw/mlx4/qp.c init_attr->cap.max_recv_sge++; init_attr 1023 drivers/infiniband/hw/mlx4/qp.c } else if (init_attr->create_flags & MLX4_IB_SRIOV_TUNNEL_QP) { init_attr 1025 drivers/infiniband/hw/mlx4/qp.c container_of(init_attr, init_attr 1026 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_qp_tunnel_init_attr, init_attr); init_attr 1073 drivers/infiniband/hw/mlx4/qp.c if (init_attr->sq_sig_type == IB_SIGNAL_ALL_WR) init_attr 1091 drivers/infiniband/hw/mlx4/qp.c if (init_attr->create_flags & IB_QP_CREATE_SCATTER_FCS) { init_attr 1102 drivers/infiniband/hw/mlx4/qp.c err = set_rq_size(dev, &init_attr->cap, udata, init_attr 1103 drivers/infiniband/hw/mlx4/qp.c qp_has_rq(init_attr), qp, qp->inl_recv_sz); init_attr 1131 drivers/infiniband/hw/mlx4/qp.c if (qp_has_rq(init_attr)) { init_attr 1138 drivers/infiniband/hw/mlx4/qp.c err = set_rq_size(dev, &init_attr->cap, udata, init_attr 1139 drivers/infiniband/hw/mlx4/qp.c qp_has_rq(init_attr), qp, 0); init_attr 1145 drivers/infiniband/hw/mlx4/qp.c if (init_attr->create_flags & IB_QP_CREATE_IPOIB_UD_LSO) init_attr 1148 drivers/infiniband/hw/mlx4/qp.c if (init_attr->create_flags & IB_QP_CREATE_NETIF_QP) { init_attr 1156 drivers/infiniband/hw/mlx4/qp.c err = set_kernel_sq_size(dev, &init_attr->cap, qp_type, qp); init_attr 1160 drivers/infiniband/hw/mlx4/qp.c if (qp_has_rq(init_attr)) { init_attr 1206 drivers/infiniband/hw/mlx4/qp.c if (init_attr->qp_type == IB_QPT_RAW_PACKET) init_attr 1208 drivers/infiniband/hw/mlx4/qp.c (init_attr->cap.max_send_wr ? init_attr 1210 drivers/infiniband/hw/mlx4/qp.c (init_attr->cap.max_recv_wr ? init_attr 1223 drivers/infiniband/hw/mlx4/qp.c if (init_attr->create_flags & IB_QP_CREATE_BLOCK_MULTICAST_LOOPBACK) init_attr 1230 drivers/infiniband/hw/mlx4/qp.c if (init_attr->qp_type == IB_QPT_XRC_TGT) init_attr 1246 drivers/infiniband/hw/mlx4/qp.c mlx4_ib_lock_cqs(to_mcq(init_attr->send_cq), init_attr 1247 drivers/infiniband/hw/mlx4/qp.c to_mcq(init_attr->recv_cq)); init_attr 1255 drivers/infiniband/hw/mlx4/qp.c mcq = to_mcq(init_attr->send_cq); init_attr 1257 drivers/infiniband/hw/mlx4/qp.c mcq = to_mcq(init_attr->recv_cq); init_attr 1259 drivers/infiniband/hw/mlx4/qp.c mlx4_ib_unlock_cqs(to_mcq(init_attr->send_cq), init_attr 1260 drivers/infiniband/hw/mlx4/qp.c to_mcq(init_attr->recv_cq)); init_attr 1276 drivers/infiniband/hw/mlx4/qp.c if (qp_has_rq(init_attr)) init_attr 1292 drivers/infiniband/hw/mlx4/qp.c if (!udata && qp_has_rq(init_attr)) init_attr 1533 drivers/infiniband/hw/mlx4/qp.c struct ib_qp_init_attr *init_attr, init_attr 1541 drivers/infiniband/hw/mlx4/qp.c if (init_attr->rwq_ind_tbl) init_attr 1542 drivers/infiniband/hw/mlx4/qp.c return _mlx4_ib_create_qp_rss(pd, init_attr, udata); init_attr 1548 drivers/infiniband/hw/mlx4/qp.c if (init_attr->create_flags & ~(MLX4_IB_QP_LSO | init_attr 1556 drivers/infiniband/hw/mlx4/qp.c if (init_attr->create_flags & IB_QP_CREATE_NETIF_QP) { init_attr 1557 drivers/infiniband/hw/mlx4/qp.c if (init_attr->qp_type != IB_QPT_UD) init_attr 1561 drivers/infiniband/hw/mlx4/qp.c if (init_attr->create_flags) { init_attr 1562 drivers/infiniband/hw/mlx4/qp.c if (udata && init_attr->create_flags & ~(sup_u_create_flags)) init_attr 1565 drivers/infiniband/hw/mlx4/qp.c if ((init_attr->create_flags & ~(MLX4_IB_SRIOV_SQP | init_attr 1568 drivers/infiniband/hw/mlx4/qp.c init_attr->qp_type != IB_QPT_UD) || init_attr 1569 drivers/infiniband/hw/mlx4/qp.c (init_attr->create_flags & MLX4_IB_SRIOV_SQP && init_attr 1570 drivers/infiniband/hw/mlx4/qp.c init_attr->qp_type > IB_QPT_GSI) || init_attr 1571 drivers/infiniband/hw/mlx4/qp.c (init_attr->create_flags & MLX4_IB_QP_CREATE_ROCE_V2_GSI && init_attr 1572 drivers/infiniband/hw/mlx4/qp.c init_attr->qp_type != IB_QPT_GSI)) init_attr 1576 drivers/infiniband/hw/mlx4/qp.c switch (init_attr->qp_type) { init_attr 1578 drivers/infiniband/hw/mlx4/qp.c pd = to_mxrcd(init_attr->xrcd)->pd; init_attr 1579 drivers/infiniband/hw/mlx4/qp.c xrcdn = to_mxrcd(init_attr->xrcd)->xrcdn; init_attr 1580 drivers/infiniband/hw/mlx4/qp.c init_attr->send_cq = to_mxrcd(init_attr->xrcd)->cq; init_attr 1585 drivers/infiniband/hw/mlx4/qp.c init_attr->recv_cq = init_attr->send_cq; init_attr 1598 drivers/infiniband/hw/mlx4/qp.c err = create_qp_common(pd, init_attr, udata, 0, &qp); init_attr 1617 drivers/infiniband/hw/mlx4/qp.c if (init_attr->create_flags & MLX4_IB_QP_CREATE_ROCE_V2_GSI) { init_attr 1625 drivers/infiniband/hw/mlx4/qp.c sqpn = get_sqp_num(to_mdev(pd->device), init_attr); init_attr 1628 drivers/infiniband/hw/mlx4/qp.c err = create_qp_common(pd, init_attr, udata, sqpn, &qp); init_attr 1632 drivers/infiniband/hw/mlx4/qp.c qp->port = init_attr->port_num; init_attr 1633 drivers/infiniband/hw/mlx4/qp.c qp->ibqp.qp_num = init_attr->qp_type == IB_QPT_SMI ? 0 : init_attr 1634 drivers/infiniband/hw/mlx4/qp.c init_attr->create_flags & MLX4_IB_QP_CREATE_ROCE_V2_GSI ? sqpn : 1; init_attr 1646 drivers/infiniband/hw/mlx4/qp.c struct ib_qp_init_attr *init_attr, init_attr 1648 drivers/infiniband/hw/mlx4/qp.c struct ib_device *device = pd ? pd->device : init_attr->xrcd->device; init_attr 1652 drivers/infiniband/hw/mlx4/qp.c ibqp = _mlx4_ib_create_qp(pd, init_attr, udata); init_attr 1655 drivers/infiniband/hw/mlx4/qp.c (init_attr->qp_type == IB_QPT_GSI) && init_attr 1656 drivers/infiniband/hw/mlx4/qp.c !(init_attr->create_flags & MLX4_IB_QP_CREATE_ROCE_V2_GSI)) { init_attr 1658 drivers/infiniband/hw/mlx4/qp.c int is_eth = rdma_cap_eth_ah(&dev->ib_dev, init_attr->port_num); init_attr 1662 drivers/infiniband/hw/mlx4/qp.c init_attr->create_flags |= MLX4_IB_QP_CREATE_ROCE_V2_GSI; init_attr 1663 drivers/infiniband/hw/mlx4/qp.c sqp->roce_v2_gsi = ib_create_qp(pd, init_attr); init_attr 1673 drivers/infiniband/hw/mlx4/qp.c init_attr->create_flags &= ~MLX4_IB_QP_CREATE_ROCE_V2_GSI; init_attr 4130 drivers/infiniband/hw/mlx4/qp.c struct ib_wq_init_attr *init_attr, init_attr 4159 drivers/infiniband/hw/mlx4/qp.c if (init_attr->wq_type != IB_WQT_RQ) { init_attr 4160 drivers/infiniband/hw/mlx4/qp.c pr_debug("unsupported wq type %d\n", init_attr->wq_type); init_attr 4164 drivers/infiniband/hw/mlx4/qp.c if (init_attr->create_flags & ~IB_WQ_FLAGS_SCATTER_FCS || init_attr 4167 drivers/infiniband/hw/mlx4/qp.c init_attr->create_flags); init_attr 4178 drivers/infiniband/hw/mlx4/qp.c ib_qp_init_attr.qp_context = init_attr->wq_context; init_attr 4180 drivers/infiniband/hw/mlx4/qp.c ib_qp_init_attr.cap.max_recv_wr = init_attr->max_wr; init_attr 4181 drivers/infiniband/hw/mlx4/qp.c ib_qp_init_attr.cap.max_recv_sge = init_attr->max_sge; init_attr 4182 drivers/infiniband/hw/mlx4/qp.c ib_qp_init_attr.recv_cq = init_attr->cq; init_attr 4185 drivers/infiniband/hw/mlx4/qp.c if (init_attr->create_flags & IB_WQ_FLAGS_SCATTER_FCS) init_attr 4194 drivers/infiniband/hw/mlx4/qp.c qp->ibwq.event_handler = init_attr->event_handler; init_attr 4345 drivers/infiniband/hw/mlx4/qp.c struct ib_rwq_ind_table_init_attr *init_attr, init_attr 4350 drivers/infiniband/hw/mlx4/qp.c unsigned int ind_tbl_size = 1 << init_attr->log_ind_tbl_size; init_attr 4373 drivers/infiniband/hw/mlx4/qp.c base_wqn = init_attr->ind_tbl[0]->wq_num; init_attr 4382 drivers/infiniband/hw/mlx4/qp.c if (++base_wqn != init_attr->ind_tbl[i]->wq_num) { init_attr 73 drivers/infiniband/hw/mlx4/srq.c struct ib_srq_init_attr *init_attr, init_attr 90 drivers/infiniband/hw/mlx4/srq.c if (init_attr->attr.max_wr >= dev->dev->caps.max_srq_wqes || init_attr 91 drivers/infiniband/hw/mlx4/srq.c init_attr->attr.max_sge > dev->dev->caps.max_srq_sge) init_attr 96 drivers/infiniband/hw/mlx4/srq.c srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1); init_attr 97 drivers/infiniband/hw/mlx4/srq.c srq->msrq.max_gs = init_attr->attr.max_sge; init_attr 174 drivers/infiniband/hw/mlx4/srq.c cqn = ib_srq_has_cq(init_attr->srq_type) ? init_attr 175 drivers/infiniband/hw/mlx4/srq.c to_mcq(init_attr->ext.cq)->mcq.cqn : 0; init_attr 176 drivers/infiniband/hw/mlx4/srq.c xrcdn = (init_attr->srq_type == IB_SRQT_XRC) ? init_attr 177 drivers/infiniband/hw/mlx4/srq.c to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn : init_attr 193 drivers/infiniband/hw/mlx4/srq.c init_attr->attr.max_wr = srq->msrq.max - 1; init_attr 116 drivers/infiniband/hw/mlx5/gsi.c struct ib_qp_init_attr *init_attr) init_attr 120 drivers/infiniband/hw/mlx5/gsi.c struct ib_qp_init_attr hw_init_attr = *init_attr; init_attr 121 drivers/infiniband/hw/mlx5/gsi.c const u8 port_num = init_attr->port_num; init_attr 145 drivers/infiniband/hw/mlx5/gsi.c gsi->outstanding_wrs = kcalloc(init_attr->cap.max_send_wr, init_attr 166 drivers/infiniband/hw/mlx5/gsi.c gsi->cap = init_attr->cap; init_attr 167 drivers/infiniband/hw/mlx5/gsi.c gsi->sq_sig_type = init_attr->sq_sig_type; init_attr 171 drivers/infiniband/hw/mlx5/gsi.c gsi->cq = ib_alloc_cq(pd->device, gsi, init_attr->cap.max_send_wr, 0, init_attr 195 drivers/infiniband/hw/mlx5/gsi.c dev->devr.ports[init_attr->port_num - 1].gsi = gsi; init_attr 254 drivers/infiniband/hw/mlx5/gsi.c struct ib_qp_init_attr init_attr = { init_attr 269 drivers/infiniband/hw/mlx5/gsi.c return ib_create_qp(pd, &init_attr); init_attr 4806 drivers/infiniband/hw/mlx5/main.c struct ib_qp_init_attr *init_attr = NULL; init_attr 4814 drivers/infiniband/hw/mlx5/main.c init_attr = kzalloc(sizeof(*init_attr), GFP_KERNEL); init_attr 4815 drivers/infiniband/hw/mlx5/main.c if (!attr || !init_attr) { init_attr 4834 drivers/infiniband/hw/mlx5/main.c init_attr->send_cq = cq; init_attr 4835 drivers/infiniband/hw/mlx5/main.c init_attr->recv_cq = cq; init_attr 4836 drivers/infiniband/hw/mlx5/main.c init_attr->sq_sig_type = IB_SIGNAL_ALL_WR; init_attr 4837 drivers/infiniband/hw/mlx5/main.c init_attr->cap.max_send_wr = MAX_UMR_WR; init_attr 4838 drivers/infiniband/hw/mlx5/main.c init_attr->cap.max_send_sge = 1; init_attr 4839 drivers/infiniband/hw/mlx5/main.c init_attr->qp_type = MLX5_IB_QPT_REG_UMR; init_attr 4840 drivers/infiniband/hw/mlx5/main.c init_attr->port_num = 1; init_attr 4841 drivers/infiniband/hw/mlx5/main.c qp = mlx5_ib_create_qp(pd, init_attr, NULL); init_attr 4851 drivers/infiniband/hw/mlx5/main.c qp->send_cq = init_attr->send_cq; init_attr 4852 drivers/infiniband/hw/mlx5/main.c qp->recv_cq = init_attr->recv_cq; init_attr 4893 drivers/infiniband/hw/mlx5/main.c kfree(init_attr); init_attr 4911 drivers/infiniband/hw/mlx5/main.c kfree(init_attr); init_attr 1110 drivers/infiniband/hw/mlx5/mlx5_ib.h int mlx5_ib_create_srq(struct ib_srq *srq, struct ib_srq_init_attr *init_attr, init_attr 1121 drivers/infiniband/hw/mlx5/mlx5_ib.h struct ib_qp_init_attr *init_attr, init_attr 1230 drivers/infiniband/hw/mlx5/mlx5_ib.h struct ib_wq_init_attr *init_attr, init_attr 1236 drivers/infiniband/hw/mlx5/mlx5_ib.h struct ib_rwq_ind_table_init_attr *init_attr, init_attr 1315 drivers/infiniband/hw/mlx5/mlx5_ib.h struct ib_qp_init_attr *init_attr); init_attr 1031 drivers/infiniband/hw/mlx5/qp.c struct ib_qp_init_attr *init_attr, init_attr 1040 drivers/infiniband/hw/mlx5/qp.c if (init_attr->create_flags & ~(IB_QP_CREATE_INTEGRITY_EN | init_attr 1047 drivers/infiniband/hw/mlx5/qp.c if (init_attr->qp_type == MLX5_IB_QPT_REG_UMR) init_attr 1058 drivers/infiniband/hw/mlx5/qp.c err = calc_sq_size(dev, init_attr, qp); init_attr 1107 drivers/infiniband/hw/mlx5/qp.c if (init_attr->create_flags & mlx5_ib_create_qp_sqpn_qp1()) { init_attr 1588 drivers/infiniband/hw/mlx5/qp.c struct ib_qp_init_attr *init_attr, init_attr 1609 drivers/infiniband/hw/mlx5/qp.c if (init_attr->qp_type != IB_QPT_RAW_PACKET) init_attr 1612 drivers/infiniband/hw/mlx5/qp.c if (init_attr->create_flags || init_attr->send_cq) init_attr 1689 drivers/infiniband/hw/mlx5/qp.c init_attr->rwq_ind_tbl->ind_tbl_num); init_attr 1726 drivers/infiniband/hw/mlx5/qp.c if (!init_attr->rwq_ind_tbl->log_ind_tbl_size) init_attr 1842 drivers/infiniband/hw/mlx5/qp.c static void configure_responder_scat_cqe(struct ib_qp_init_attr *init_attr, init_attr 1847 drivers/infiniband/hw/mlx5/qp.c if (init_attr->qp_type == MLX5_IB_QPT_DCI) init_attr 1850 drivers/infiniband/hw/mlx5/qp.c rcqe_sz = mlx5_ib_get_cqe_size(init_attr->recv_cq); init_attr 1852 drivers/infiniband/hw/mlx5/qp.c if (init_attr->qp_type == MLX5_IB_QPT_DCT) { init_attr 1865 drivers/infiniband/hw/mlx5/qp.c struct ib_qp_init_attr *init_attr, init_attr 1869 drivers/infiniband/hw/mlx5/qp.c enum ib_qp_type qpt = init_attr->qp_type; init_attr 1879 drivers/infiniband/hw/mlx5/qp.c if (!allow_scat_cqe && init_attr->sq_sig_type != IB_SIGNAL_ALL_WR) init_attr 1882 drivers/infiniband/hw/mlx5/qp.c scqe_sz = mlx5_ib_get_cqe_size(init_attr->send_cq); init_attr 1888 drivers/infiniband/hw/mlx5/qp.c if (init_attr->qp_type != MLX5_IB_QPT_DCI || init_attr 1946 drivers/infiniband/hw/mlx5/qp.c struct ib_qp_init_attr *init_attr, init_attr 1970 drivers/infiniband/hw/mlx5/qp.c mlx5_st = to_mlx5_st(init_attr->qp_type); init_attr 1974 drivers/infiniband/hw/mlx5/qp.c if (init_attr->rwq_ind_tbl) { init_attr 1978 drivers/infiniband/hw/mlx5/qp.c err = create_rss_raw_qp_tir(dev, qp, pd, init_attr, udata); init_attr 1982 drivers/infiniband/hw/mlx5/qp.c if (init_attr->create_flags & IB_QP_CREATE_BLOCK_MULTICAST_LOOPBACK) { init_attr 1991 drivers/infiniband/hw/mlx5/qp.c if (init_attr->create_flags & init_attr 1999 drivers/infiniband/hw/mlx5/qp.c if (init_attr->create_flags & IB_QP_CREATE_CROSS_CHANNEL) init_attr 2001 drivers/infiniband/hw/mlx5/qp.c if (init_attr->create_flags & IB_QP_CREATE_MANAGED_SEND) init_attr 2003 drivers/infiniband/hw/mlx5/qp.c if (init_attr->create_flags & IB_QP_CREATE_MANAGED_RECV) init_attr 2007 drivers/infiniband/hw/mlx5/qp.c if (init_attr->qp_type == IB_QPT_UD && init_attr 2008 drivers/infiniband/hw/mlx5/qp.c (init_attr->create_flags & IB_QP_CREATE_IPOIB_UD_LSO)) init_attr 2014 drivers/infiniband/hw/mlx5/qp.c if (init_attr->create_flags & IB_QP_CREATE_SCATTER_FCS) { init_attr 2015 drivers/infiniband/hw/mlx5/qp.c if (init_attr->qp_type != IB_QPT_RAW_PACKET) { init_attr 2027 drivers/infiniband/hw/mlx5/qp.c if (init_attr->sq_sig_type == IB_SIGNAL_ALL_WR) init_attr 2030 drivers/infiniband/hw/mlx5/qp.c if (init_attr->create_flags & IB_QP_CREATE_CVLAN_STRIPPING) { init_attr 2033 drivers/infiniband/hw/mlx5/qp.c (init_attr->qp_type != IB_QPT_RAW_PACKET)) init_attr 2065 drivers/infiniband/hw/mlx5/qp.c if (init_attr->qp_type != IB_QPT_RAW_PACKET || init_attr 2074 drivers/infiniband/hw/mlx5/qp.c if (init_attr->qp_type != IB_QPT_RAW_PACKET) { init_attr 2082 drivers/infiniband/hw/mlx5/qp.c if (init_attr->qp_type != IB_QPT_RAW_PACKET) { init_attr 2090 drivers/infiniband/hw/mlx5/qp.c if (init_attr->qp_type != IB_QPT_RC || init_attr 2098 drivers/infiniband/hw/mlx5/qp.c if (init_attr->create_flags & IB_QP_CREATE_SOURCE_QPN) { init_attr 2099 drivers/infiniband/hw/mlx5/qp.c if (init_attr->qp_type != IB_QPT_UD || init_attr 2108 drivers/infiniband/hw/mlx5/qp.c qp->underlay_qpn = init_attr->source_qpn; init_attr 2114 drivers/infiniband/hw/mlx5/qp.c base = (init_attr->qp_type == IB_QPT_RAW_PACKET || init_attr 2119 drivers/infiniband/hw/mlx5/qp.c qp->has_rq = qp_has_rq(init_attr); init_attr 2120 drivers/infiniband/hw/mlx5/qp.c err = set_rq_size(dev, &init_attr->cap, qp->has_rq, init_attr 2142 drivers/infiniband/hw/mlx5/qp.c if (init_attr->create_flags & init_attr 2147 drivers/infiniband/hw/mlx5/qp.c err = create_user_qp(dev, pd, qp, udata, init_attr, &in, init_attr 2152 drivers/infiniband/hw/mlx5/qp.c err = create_kernel_qp(dev, init_attr, qp, &in, &inlen, init_attr 2168 drivers/infiniband/hw/mlx5/qp.c if (is_sqp(init_attr->qp_type)) init_attr 2169 drivers/infiniband/hw/mlx5/qp.c qp->port = init_attr->port_num; init_attr 2176 drivers/infiniband/hw/mlx5/qp.c if (init_attr->qp_type != MLX5_IB_QPT_REG_UMR) init_attr 2196 drivers/infiniband/hw/mlx5/qp.c if (qp->scat_cqe && is_connected(init_attr->qp_type)) { init_attr 2197 drivers/infiniband/hw/mlx5/qp.c configure_responder_scat_cqe(init_attr, qpc); init_attr 2198 drivers/infiniband/hw/mlx5/qp.c configure_requester_scat_cqe(dev, init_attr, init_attr 2208 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(qpc, qpc, rq_type, get_rx_type(qp, init_attr)); init_attr 2214 drivers/infiniband/hw/mlx5/qp.c if (init_attr->srq && init_attr 2215 drivers/infiniband/hw/mlx5/qp.c init_attr->srq->srq_type == IB_SRQT_TM) init_attr 2221 drivers/infiniband/hw/mlx5/qp.c switch (init_attr->qp_type) { init_attr 2226 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(qpc, qpc, xrcd, to_mxrcd(init_attr->xrcd)->xrcdn); init_attr 2234 drivers/infiniband/hw/mlx5/qp.c if (init_attr->srq) { init_attr 2236 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, to_msrq(init_attr->srq)->msrq.srqn); init_attr 2243 drivers/infiniband/hw/mlx5/qp.c if (init_attr->send_cq) init_attr 2244 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(qpc, qpc, cqn_snd, to_mcq(init_attr->send_cq)->mcq.cqn); init_attr 2246 drivers/infiniband/hw/mlx5/qp.c if (init_attr->recv_cq) init_attr 2247 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(init_attr->recv_cq)->mcq.cqn); init_attr 2256 drivers/infiniband/hw/mlx5/qp.c if (init_attr->qp_type == IB_QPT_UD && init_attr 2257 drivers/infiniband/hw/mlx5/qp.c (init_attr->create_flags & IB_QP_CREATE_IPOIB_UD_LSO)) { init_attr 2262 drivers/infiniband/hw/mlx5/qp.c if (init_attr->create_flags & IB_QP_CREATE_PCI_WRITE_END_PADDING) { init_attr 2267 drivers/infiniband/hw/mlx5/qp.c } else if (init_attr->qp_type != IB_QPT_RAW_PACKET) { init_attr 2280 drivers/infiniband/hw/mlx5/qp.c if (init_attr->qp_type == IB_QPT_RAW_PACKET || init_attr 2300 drivers/infiniband/hw/mlx5/qp.c get_cqs(init_attr->qp_type, init_attr->send_cq, init_attr->recv_cq, init_attr 2590 drivers/infiniband/hw/mlx5/qp.c struct ib_qp_init_attr *init_attr, init_attr 2609 drivers/infiniband/hw/mlx5/qp.c init_attr->qp_type = MLX5_IB_QPT_DCI; init_attr 2612 drivers/infiniband/hw/mlx5/qp.c init_attr->qp_type = MLX5_IB_QPT_DCT; init_attr 2636 drivers/infiniband/hw/mlx5/qp.c struct ib_qp_init_attr *init_attr = verbs_init_attr; init_attr 2643 drivers/infiniband/hw/mlx5/qp.c if (init_attr->qp_type == IB_QPT_RAW_PACKET) { init_attr 2654 drivers/infiniband/hw/mlx5/qp.c if (init_attr->qp_type != IB_QPT_XRC_TGT && init_attr 2655 drivers/infiniband/hw/mlx5/qp.c init_attr->qp_type != MLX5_IB_QPT_REG_UMR) { init_attr 2657 drivers/infiniband/hw/mlx5/qp.c ib_qp_type_str(init_attr->qp_type)); init_attr 2660 drivers/infiniband/hw/mlx5/qp.c dev = to_mdev(to_mxrcd(init_attr->xrcd)->ibxrcd.device); init_attr 2663 drivers/infiniband/hw/mlx5/qp.c if (init_attr->qp_type == IB_QPT_DRIVER) { init_attr 2666 drivers/infiniband/hw/mlx5/qp.c init_attr = &mlx_init_attr; init_attr 2667 drivers/infiniband/hw/mlx5/qp.c memcpy(init_attr, verbs_init_attr, sizeof(*verbs_init_attr)); init_attr 2668 drivers/infiniband/hw/mlx5/qp.c err = set_mlx_qp_type(dev, init_attr, &ucmd, udata); init_attr 2672 drivers/infiniband/hw/mlx5/qp.c if (init_attr->qp_type == MLX5_IB_QPT_DCI) { init_attr 2673 drivers/infiniband/hw/mlx5/qp.c if (init_attr->cap.max_recv_wr || init_attr 2674 drivers/infiniband/hw/mlx5/qp.c init_attr->cap.max_recv_sge) { init_attr 2679 drivers/infiniband/hw/mlx5/qp.c return mlx5_ib_create_dct(pd, init_attr, &ucmd, udata); init_attr 2683 drivers/infiniband/hw/mlx5/qp.c switch (init_attr->qp_type) { init_attr 2690 drivers/infiniband/hw/mlx5/qp.c init_attr->recv_cq = NULL; init_attr 2691 drivers/infiniband/hw/mlx5/qp.c if (init_attr->qp_type == IB_QPT_XRC_TGT) { init_attr 2692 drivers/infiniband/hw/mlx5/qp.c xrcdn = to_mxrcd(init_attr->xrcd)->xrcdn; init_attr 2693 drivers/infiniband/hw/mlx5/qp.c init_attr->send_cq = NULL; init_attr 2709 drivers/infiniband/hw/mlx5/qp.c err = create_qp_common(dev, pd, init_attr, udata, qp); init_attr 2716 drivers/infiniband/hw/mlx5/qp.c if (is_qp0(init_attr->qp_type)) init_attr 2718 drivers/infiniband/hw/mlx5/qp.c else if (is_qp1(init_attr->qp_type)) init_attr 2725 drivers/infiniband/hw/mlx5/qp.c init_attr->recv_cq ? to_mcq(init_attr->recv_cq)->mcq.cqn : -1, init_attr 2726 drivers/infiniband/hw/mlx5/qp.c init_attr->send_cq ? to_mcq(init_attr->send_cq)->mcq.cqn : -1); init_attr 2733 drivers/infiniband/hw/mlx5/qp.c return mlx5_ib_gsi_create_qp(pd, init_attr); init_attr 2740 drivers/infiniband/hw/mlx5/qp.c init_attr->qp_type); init_attr 2746 drivers/infiniband/hw/mlx5/qp.c qp->qp_sub_type = init_attr->qp_type; init_attr 5919 drivers/infiniband/hw/mlx5/qp.c struct ib_wq_init_attr *init_attr) init_attr 5942 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(rqc, rqc, cqn, to_mcq(init_attr->cq)->mcq.cqn); init_attr 5949 drivers/infiniband/hw/mlx5/qp.c if (init_attr->create_flags & IB_WQ_FLAGS_PCI_WRITE_END_PADDING) { init_attr 5974 drivers/infiniband/hw/mlx5/qp.c if (init_attr->create_flags & IB_WQ_FLAGS_CVLAN_STRIPPING) { init_attr 5983 drivers/infiniband/hw/mlx5/qp.c if (init_attr->create_flags & IB_WQ_FLAGS_SCATTER_FCS) { init_attr 5991 drivers/infiniband/hw/mlx5/qp.c if (init_attr->create_flags & IB_WQ_FLAGS_DELAY_DROP) { init_attr 6003 drivers/infiniband/hw/mlx5/qp.c if (!err && init_attr->create_flags & IB_WQ_FLAGS_DELAY_DROP) { init_attr 6041 drivers/infiniband/hw/mlx5/qp.c struct ib_wq_init_attr *init_attr, init_attr 6104 drivers/infiniband/hw/mlx5/qp.c err = set_user_rq_size(dev, init_attr, &ucmd, rwq); init_attr 6121 drivers/infiniband/hw/mlx5/qp.c struct ib_wq_init_attr *init_attr, init_attr 6138 drivers/infiniband/hw/mlx5/qp.c init_attr->create_flags & IB_WQ_FLAGS_DELAY_DROP) init_attr 6142 drivers/infiniband/hw/mlx5/qp.c switch (init_attr->wq_type) { init_attr 6147 drivers/infiniband/hw/mlx5/qp.c err = prepare_user_rq(pd, init_attr, udata, rwq); init_attr 6150 drivers/infiniband/hw/mlx5/qp.c err = create_rq(rwq, pd, init_attr); init_attr 6156 drivers/infiniband/hw/mlx5/qp.c init_attr->wq_type); init_attr 6171 drivers/infiniband/hw/mlx5/qp.c rwq->ibwq.event_handler = init_attr->event_handler; init_attr 6194 drivers/infiniband/hw/mlx5/qp.c struct ib_rwq_ind_table_init_attr *init_attr, init_attr 6199 drivers/infiniband/hw/mlx5/qp.c int sz = 1 << init_attr->log_ind_tbl_size; init_attr 6213 drivers/infiniband/hw/mlx5/qp.c if (init_attr->log_ind_tbl_size > init_attr 6216 drivers/infiniband/hw/mlx5/qp.c init_attr->log_ind_tbl_size, init_attr 6242 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(rqtc, rqtc, rq_num[i], init_attr->ind_tbl[i]->wq_num); init_attr 6244 drivers/infiniband/hw/mlx5/qp.c rwq_ind_tbl->uid = to_mpd(init_attr->ind_tbl[0]->pd)->uid; init_attr 218 drivers/infiniband/hw/mlx5/srq.c struct ib_srq_init_attr *init_attr, init_attr 230 drivers/infiniband/hw/mlx5/srq.c if (init_attr->attr.max_wr >= max_srq_wqes) { init_attr 232 drivers/infiniband/hw/mlx5/srq.c init_attr->attr.max_wr, init_attr 239 drivers/infiniband/hw/mlx5/srq.c srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1); init_attr 240 drivers/infiniband/hw/mlx5/srq.c srq->msrq.max_gs = init_attr->attr.max_sge; init_attr 259 drivers/infiniband/hw/mlx5/srq.c in.type = init_attr->srq_type; init_attr 277 drivers/infiniband/hw/mlx5/srq.c if (init_attr->srq_type == IB_SRQT_XRC) init_attr 278 drivers/infiniband/hw/mlx5/srq.c in.xrcd = to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn; init_attr 282 drivers/infiniband/hw/mlx5/srq.c if (init_attr->srq_type == IB_SRQT_TM) { init_attr 284 drivers/infiniband/hw/mlx5/srq.c ilog2(init_attr->ext.tag_matching.max_num_tags) + 1; init_attr 294 drivers/infiniband/hw/mlx5/srq.c if (ib_srq_has_cq(init_attr->srq_type)) init_attr 295 drivers/infiniband/hw/mlx5/srq.c in.cqn = to_mcq(init_attr->ext.cq)->mcq.cqn; init_attr 320 drivers/infiniband/hw/mlx5/srq.c init_attr->attr.max_wr = srq->msrq.max - 1; init_attr 407 drivers/infiniband/hw/mthca/mthca_provider.c struct ib_srq_init_attr *init_attr, init_attr 416 drivers/infiniband/hw/mthca/mthca_provider.c if (init_attr->srq_type != IB_SRQT_BASIC) init_attr 435 drivers/infiniband/hw/mthca/mthca_provider.c &init_attr->attr, srq, udata); init_attr 469 drivers/infiniband/hw/mthca/mthca_provider.c struct ib_qp_init_attr *init_attr, init_attr 478 drivers/infiniband/hw/mthca/mthca_provider.c if (init_attr->create_flags) init_attr 481 drivers/infiniband/hw/mthca/mthca_provider.c switch (init_attr->qp_type) { init_attr 522 drivers/infiniband/hw/mthca/mthca_provider.c to_mcq(init_attr->send_cq), init_attr 523 drivers/infiniband/hw/mthca/mthca_provider.c to_mcq(init_attr->recv_cq), init_attr 524 drivers/infiniband/hw/mthca/mthca_provider.c init_attr->qp_type, init_attr->sq_sig_type, init_attr 525 drivers/infiniband/hw/mthca/mthca_provider.c &init_attr->cap, qp, udata); init_attr 552 drivers/infiniband/hw/mthca/mthca_provider.c qp->ibqp.qp_num = init_attr->qp_type == IB_QPT_SMI ? 0 : 1; init_attr 555 drivers/infiniband/hw/mthca/mthca_provider.c to_mcq(init_attr->send_cq), init_attr 556 drivers/infiniband/hw/mthca/mthca_provider.c to_mcq(init_attr->recv_cq), init_attr 557 drivers/infiniband/hw/mthca/mthca_provider.c init_attr->sq_sig_type, &init_attr->cap, init_attr 558 drivers/infiniband/hw/mthca/mthca_provider.c qp->ibqp.qp_num, init_attr->port_num, init_attr 572 drivers/infiniband/hw/mthca/mthca_provider.c init_attr->cap.max_send_wr = qp->sq.max; init_attr 573 drivers/infiniband/hw/mthca/mthca_provider.c init_attr->cap.max_recv_wr = qp->rq.max; init_attr 574 drivers/infiniband/hw/mthca/mthca_provider.c init_attr->cap.max_send_sge = qp->sq.max_gs; init_attr 575 drivers/infiniband/hw/mthca/mthca_provider.c init_attr->cap.max_recv_sge = qp->rq.max_gs; init_attr 576 drivers/infiniband/hw/mthca/mthca_provider.c init_attr->cap.max_inline_data = qp->max_inline_data; init_attr 1780 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c int ocrdma_create_srq(struct ib_srq *ibsrq, struct ib_srq_init_attr *init_attr, init_attr 1788 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (init_attr->attr.max_sge > dev->attr.max_recv_sge) init_attr 1790 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (init_attr->attr.max_wr > dev->attr.max_rqe) init_attr 1796 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = ocrdma_mbx_create_srq(dev, srq, init_attr, pd); init_attr 1821 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (init_attr->attr.srq_limit) { init_attr 1822 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = ocrdma_mbx_modify_srq(srq, &init_attr->attr); init_attr 1316 drivers/infiniband/hw/qedr/verbs.c struct ib_srq_init_attr *init_attr) init_attr 1336 drivers/infiniband/hw/qedr/verbs.c num_elems = init_attr->attr.max_wr * RDMA_MAX_SRQ_WQE_SIZE; init_attr 1357 drivers/infiniband/hw/qedr/verbs.c int qedr_create_srq(struct ib_srq *ibsrq, struct ib_srq_init_attr *init_attr, init_attr 1376 drivers/infiniband/hw/qedr/verbs.c rc = qedr_check_srq_params(dev, init_attr, udata); init_attr 1384 drivers/infiniband/hw/qedr/verbs.c hw_srq->max_wr = init_attr->attr.max_wr; init_attr 1385 drivers/infiniband/hw/qedr/verbs.c hw_srq->max_sges = init_attr->attr.max_sge; init_attr 1405 drivers/infiniband/hw/qedr/verbs.c rc = qedr_alloc_srq_kernel_params(srq, dev, init_attr); init_attr 470 drivers/infiniband/hw/usnic/usnic_ib_verbs.c struct ib_qp_init_attr *init_attr, init_attr 487 drivers/infiniband/hw/usnic/usnic_ib_verbs.c if (init_attr->create_flags) init_attr 504 drivers/infiniband/hw/usnic/usnic_ib_verbs.c if (init_attr->qp_type != IB_QPT_UD) { init_attr 506 drivers/infiniband/hw/usnic/usnic_ib_verbs.c dev_name(&us_ibdev->ib_dev.dev), init_attr->qp_type); init_attr 512 drivers/infiniband/hw/usnic/usnic_ib_verbs.c cq_cnt = (init_attr->send_cq == init_attr->recv_cq) ? 1 : 2; init_attr 56 drivers/infiniband/hw/usnic/usnic_ib_verbs.h struct ib_qp_init_attr *init_attr, init_attr 189 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c struct ib_qp_init_attr *init_attr, init_attr 201 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c bool is_srq = !!init_attr->srq; init_attr 203 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c if (init_attr->create_flags) { init_attr 206 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->create_flags); init_attr 210 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c if (init_attr->qp_type != IB_QPT_RC && init_attr 211 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->qp_type != IB_QPT_UD && init_attr 212 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->qp_type != IB_QPT_GSI) { init_attr 214 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->qp_type); init_attr 227 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c switch (init_attr->qp_type) { init_attr 229 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c if (init_attr->port_num == 0 || init_attr 230 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->port_num > pd->device->phys_port_cnt || init_attr 274 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c qp->srq = to_vsrq(init_attr->srq); init_attr 294 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c &init_attr->cap, qp); init_attr 299 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c &init_attr->cap, qp); init_attr 345 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->cap.max_inline_data = 0; init_attr 350 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->send_cq_handle = to_vcq(init_attr->send_cq)->cq_handle; init_attr 351 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->recv_cq_handle = to_vcq(init_attr->recv_cq)->cq_handle; init_attr 353 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->srq_handle = to_vsrq(init_attr->srq)->srq_handle; init_attr 356 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->max_send_wr = init_attr->cap.max_send_wr; init_attr 357 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->max_recv_wr = init_attr->cap.max_recv_wr; init_attr 358 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->max_send_sge = init_attr->cap.max_send_sge; init_attr 359 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->max_recv_sge = init_attr->cap.max_recv_sge; init_attr 360 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->max_inline_data = init_attr->cap.max_inline_data; init_attr 361 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->sq_sig_all = (init_attr->sq_sig_type == IB_SIGNAL_ALL_WR) ? 1 : 0; init_attr 362 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->qp_type = ib_qp_type_to_pvrdma(init_attr->qp_type); init_attr 383 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c qp->port = init_attr->port_num; init_attr 922 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c int attr_mask, struct ib_qp_init_attr *init_attr) init_attr 987 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->event_handler = qp->ibqp.event_handler; init_attr 988 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->qp_context = qp->ibqp.qp_context; init_attr 989 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->send_cq = qp->ibqp.send_cq; init_attr 990 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->recv_cq = qp->ibqp.recv_cq; init_attr 991 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->srq = qp->ibqp.srq; init_attr 992 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->xrcd = NULL; init_attr 993 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->cap = attr->cap; init_attr 994 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->sq_sig_type = 0; init_attr 995 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->qp_type = qp->ibqp.qp_type; init_attr 996 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->create_flags = 0; init_attr 997 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->port_num = qp->port; init_attr 99 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c int pvrdma_create_srq(struct ib_srq *ibsrq, struct ib_srq_init_attr *init_attr, init_attr 120 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c if (init_attr->srq_type != IB_SRQT_BASIC) { init_attr 123 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c init_attr->srq_type); init_attr 127 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c if (init_attr->attr.max_wr > dev->dsr->caps.max_srq_wr || init_attr 128 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c init_attr->attr.max_sge > dev->dsr->caps.max_srq_sge) { init_attr 175 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c cmd->srq_type = init_attr->srq_type; init_attr 178 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c cmd->attrs.max_wr = init_attr->attr.max_wr; init_attr 179 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c cmd->attrs.max_sge = init_attr->attr.max_sge; init_attr 180 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c cmd->attrs.srq_limit = init_attr->attr.srq_limit; init_attr 421 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h int pvrdma_create_srq(struct ib_srq *srq, struct ib_srq_init_attr *init_attr, init_attr 429 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h struct ib_qp_init_attr *init_attr, init_attr 1065 drivers/infiniband/sw/rdmavt/qp.c struct ib_qp_init_attr *init_attr, init_attr 1081 drivers/infiniband/sw/rdmavt/qp.c if (init_attr->cap.max_send_sge > rdi->dparms.props.max_send_sge || init_attr 1082 drivers/infiniband/sw/rdmavt/qp.c init_attr->cap.max_send_wr > rdi->dparms.props.max_qp_wr || init_attr 1083 drivers/infiniband/sw/rdmavt/qp.c init_attr->create_flags) init_attr 1087 drivers/infiniband/sw/rdmavt/qp.c if (!init_attr->srq) { init_attr 1088 drivers/infiniband/sw/rdmavt/qp.c if (init_attr->cap.max_recv_sge > init_attr 1090 drivers/infiniband/sw/rdmavt/qp.c init_attr->cap.max_recv_wr > rdi->dparms.props.max_qp_wr) init_attr 1093 drivers/infiniband/sw/rdmavt/qp.c if (init_attr->cap.max_send_sge + init_attr 1094 drivers/infiniband/sw/rdmavt/qp.c init_attr->cap.max_send_wr + init_attr 1095 drivers/infiniband/sw/rdmavt/qp.c init_attr->cap.max_recv_sge + init_attr 1096 drivers/infiniband/sw/rdmavt/qp.c init_attr->cap.max_recv_wr == 0) init_attr 1100 drivers/infiniband/sw/rdmavt/qp.c init_attr->cap.max_send_wr + 1 + init_attr 1102 drivers/infiniband/sw/rdmavt/qp.c switch (init_attr->qp_type) { init_attr 1105 drivers/infiniband/sw/rdmavt/qp.c if (init_attr->port_num == 0 || init_attr 1106 drivers/infiniband/sw/rdmavt/qp.c init_attr->port_num > ibpd->device->phys_port_cnt) init_attr 1112 drivers/infiniband/sw/rdmavt/qp.c sz = struct_size(swq, sg_list, init_attr->cap.max_send_sge); init_attr 1119 drivers/infiniband/sw/rdmavt/qp.c if (init_attr->srq) { init_attr 1120 drivers/infiniband/sw/rdmavt/qp.c struct rvt_srq *srq = ibsrq_to_rvtsrq(init_attr->srq); init_attr 1125 drivers/infiniband/sw/rdmavt/qp.c } else if (init_attr->cap.max_recv_sge > 1) init_attr 1127 drivers/infiniband/sw/rdmavt/qp.c (init_attr->cap.max_recv_sge - 1); init_attr 1132 drivers/infiniband/sw/rdmavt/qp.c qp->allowed_ops = get_allowed_ops(init_attr->qp_type); init_attr 1135 drivers/infiniband/sw/rdmavt/qp.c if (init_attr->qp_type == IB_QPT_RC) { init_attr 1163 drivers/infiniband/sw/rdmavt/qp.c if (init_attr->srq) { init_attr 1166 drivers/infiniband/sw/rdmavt/qp.c qp->r_rq.size = init_attr->cap.max_recv_wr + 1; init_attr 1167 drivers/infiniband/sw/rdmavt/qp.c qp->r_rq.max_sge = init_attr->cap.max_recv_sge; init_attr 1192 drivers/infiniband/sw/rdmavt/qp.c qp->s_avail = init_attr->cap.max_send_wr; init_attr 1193 drivers/infiniband/sw/rdmavt/qp.c qp->s_max_sge = init_attr->cap.max_send_sge; init_attr 1194 drivers/infiniband/sw/rdmavt/qp.c if (init_attr->sq_sig_type == IB_SIGNAL_REQ_WR) init_attr 1203 drivers/infiniband/sw/rdmavt/qp.c init_attr->qp_type, init_attr 1204 drivers/infiniband/sw/rdmavt/qp.c init_attr->port_num); init_attr 1210 drivers/infiniband/sw/rdmavt/qp.c qp->port_num = init_attr->port_num; init_attr 1211 drivers/infiniband/sw/rdmavt/qp.c rvt_init_qp(rdi, qp, init_attr->qp_type); init_attr 1213 drivers/infiniband/sw/rdmavt/qp.c err = rdi->driver_f.qp_priv_init(rdi, qp, init_attr); init_attr 1226 drivers/infiniband/sw/rdmavt/qp.c init_attr->cap.max_inline_data = 0; init_attr 1279 drivers/infiniband/sw/rdmavt/qp.c if (init_attr->qp_type == IB_QPT_RC) { init_attr 1759 drivers/infiniband/sw/rdmavt/qp.c int attr_mask, struct ib_qp_init_attr *init_attr) init_attr 1796 drivers/infiniband/sw/rdmavt/qp.c init_attr->event_handler = qp->ibqp.event_handler; init_attr 1797 drivers/infiniband/sw/rdmavt/qp.c init_attr->qp_context = qp->ibqp.qp_context; init_attr 1798 drivers/infiniband/sw/rdmavt/qp.c init_attr->send_cq = qp->ibqp.send_cq; init_attr 1799 drivers/infiniband/sw/rdmavt/qp.c init_attr->recv_cq = qp->ibqp.recv_cq; init_attr 1800 drivers/infiniband/sw/rdmavt/qp.c init_attr->srq = qp->ibqp.srq; init_attr 1801 drivers/infiniband/sw/rdmavt/qp.c init_attr->cap = attr->cap; init_attr 1803 drivers/infiniband/sw/rdmavt/qp.c init_attr->sq_sig_type = IB_SIGNAL_REQ_WR; init_attr 1805 drivers/infiniband/sw/rdmavt/qp.c init_attr->sq_sig_type = IB_SIGNAL_ALL_WR; init_attr 1806 drivers/infiniband/sw/rdmavt/qp.c init_attr->qp_type = qp->ibqp.qp_type; init_attr 1807 drivers/infiniband/sw/rdmavt/qp.c init_attr->port_num = qp->port_num; init_attr 56 drivers/infiniband/sw/rdmavt/qp.h struct ib_qp_init_attr *init_attr, init_attr 62 drivers/infiniband/sw/rdmavt/qp.h int attr_mask, struct ib_qp_init_attr *init_attr); init_attr 146 drivers/infiniband/ulp/ipoib/ipoib_verbs.c struct ib_qp_init_attr init_attr = { init_attr 197 drivers/infiniband/ulp/ipoib/ipoib_verbs.c init_attr.send_cq = priv->send_cq; init_attr 198 drivers/infiniband/ulp/ipoib/ipoib_verbs.c init_attr.recv_cq = priv->recv_cq; init_attr 201 drivers/infiniband/ulp/ipoib/ipoib_verbs.c init_attr.create_flags |= IB_QP_CREATE_IPOIB_UD_LSO; init_attr 204 drivers/infiniband/ulp/ipoib/ipoib_verbs.c init_attr.create_flags |= IB_QP_CREATE_BLOCK_MULTICAST_LOOPBACK; init_attr 207 drivers/infiniband/ulp/ipoib/ipoib_verbs.c init_attr.create_flags |= IB_QP_CREATE_NETIF_QP; init_attr 209 drivers/infiniband/ulp/ipoib/ipoib_verbs.c priv->qp = ib_create_qp(priv->pd, &init_attr); init_attr 233 drivers/infiniband/ulp/ipoib/ipoib_verbs.c if (init_attr.cap.max_send_sge > 1) init_attr 236 drivers/infiniband/ulp/ipoib/ipoib_verbs.c priv->max_send_sge = init_attr.cap.max_send_sge; init_attr 368 drivers/infiniband/ulp/iser/iser_verbs.c struct ib_qp_init_attr init_attr; init_attr 377 drivers/infiniband/ulp/iser/iser_verbs.c memset(&init_attr, 0, sizeof init_attr); init_attr 391 drivers/infiniband/ulp/iser/iser_verbs.c init_attr.event_handler = iser_qp_event_callback; init_attr 392 drivers/infiniband/ulp/iser/iser_verbs.c init_attr.qp_context = (void *)ib_conn; init_attr 393 drivers/infiniband/ulp/iser/iser_verbs.c init_attr.send_cq = ib_conn->comp->cq; init_attr 394 drivers/infiniband/ulp/iser/iser_verbs.c init_attr.recv_cq = ib_conn->comp->cq; init_attr 395 drivers/infiniband/ulp/iser/iser_verbs.c init_attr.cap.max_recv_wr = ISER_QP_MAX_RECV_DTOS; init_attr 396 drivers/infiniband/ulp/iser/iser_verbs.c init_attr.cap.max_send_sge = 2; init_attr 397 drivers/infiniband/ulp/iser/iser_verbs.c init_attr.cap.max_recv_sge = 1; init_attr 398 drivers/infiniband/ulp/iser/iser_verbs.c init_attr.sq_sig_type = IB_SIGNAL_REQ_WR; init_attr 399 drivers/infiniband/ulp/iser/iser_verbs.c init_attr.qp_type = IB_QPT_RC; init_attr 401 drivers/infiniband/ulp/iser/iser_verbs.c init_attr.cap.max_send_wr = ISER_QP_SIG_MAX_REQ_DTOS + 1; init_attr 402 drivers/infiniband/ulp/iser/iser_verbs.c init_attr.create_flags |= IB_QP_CREATE_INTEGRITY_EN; init_attr 407 drivers/infiniband/ulp/iser/iser_verbs.c init_attr.cap.max_send_wr = ISER_QP_MAX_REQ_DTOS + 1; init_attr 411 drivers/infiniband/ulp/iser/iser_verbs.c init_attr.cap.max_send_wr = ib_dev->attrs.max_qp_wr; init_attr 420 drivers/infiniband/ulp/iser/iser_verbs.c ret = rdma_create_qp(ib_conn->cma_id, device->pd, &init_attr); init_attr 784 drivers/infiniband/ulp/iser/iser_verbs.c struct ib_qp_init_attr init_attr; init_attr 791 drivers/infiniband/ulp/iser/iser_verbs.c (void)ib_query_qp(cma_id->qp, &attr, ~0, &init_attr); init_attr 555 drivers/infiniband/ulp/srp/ib_srp.c struct ib_qp_init_attr *init_attr; init_attr 563 drivers/infiniband/ulp/srp/ib_srp.c init_attr = kzalloc(sizeof *init_attr, GFP_KERNEL); init_attr 564 drivers/infiniband/ulp/srp/ib_srp.c if (!init_attr) init_attr 582 drivers/infiniband/ulp/srp/ib_srp.c init_attr->event_handler = srp_qp_event; init_attr 583 drivers/infiniband/ulp/srp/ib_srp.c init_attr->cap.max_send_wr = m * target->queue_size; init_attr 584 drivers/infiniband/ulp/srp/ib_srp.c init_attr->cap.max_recv_wr = target->queue_size + 1; init_attr 585 drivers/infiniband/ulp/srp/ib_srp.c init_attr->cap.max_recv_sge = 1; init_attr 586 drivers/infiniband/ulp/srp/ib_srp.c init_attr->cap.max_send_sge = SRP_MAX_SGE; init_attr 587 drivers/infiniband/ulp/srp/ib_srp.c init_attr->sq_sig_type = IB_SIGNAL_REQ_WR; init_attr 588 drivers/infiniband/ulp/srp/ib_srp.c init_attr->qp_type = IB_QPT_RC; init_attr 589 drivers/infiniband/ulp/srp/ib_srp.c init_attr->send_cq = send_cq; init_attr 590 drivers/infiniband/ulp/srp/ib_srp.c init_attr->recv_cq = recv_cq; init_attr 593 drivers/infiniband/ulp/srp/ib_srp.c ret = rdma_create_qp(ch->rdma_cm.cm_id, dev->pd, init_attr); init_attr 596 drivers/infiniband/ulp/srp/ib_srp.c qp = ib_create_qp(dev->pd, init_attr); init_attr 650 drivers/infiniband/ulp/srp/ib_srp.c kfree(init_attr); init_attr 666 drivers/infiniband/ulp/srp/ib_srp.c kfree(init_attr); init_attr 277 drivers/net/ethernet/ibm/ehea/ehea.h struct ehea_qp_init_attr init_attr; init_attr 639 drivers/net/ethernet/ibm/ehea/ehea_main.c pr->qp->init_attr.qp_nr); init_attr 1250 drivers/net/ethernet/ibm/ehea/ehea_main.c struct ehea_qp_init_attr *init_attr = &pr->qp->init_attr; init_attr 1254 drivers/net/ethernet/ibm/ehea/ehea_main.c ret = ehea_refill_rq2(pr, init_attr->act_nr_rwqes_rq2 - 1); init_attr 1256 drivers/net/ethernet/ibm/ehea/ehea_main.c ret |= ehea_refill_rq3(pr, init_attr->act_nr_rwqes_rq3 - 1); init_attr 1364 drivers/net/ethernet/ibm/ehea/ehea_main.c port->port_res[i].qp->init_attr.qp_nr; init_attr 1367 drivers/net/ethernet/ibm/ehea/ehea_main.c port->port_res[0].qp->init_attr.qp_nr; init_attr 1441 drivers/net/ethernet/ibm/ehea/ehea_main.c struct ehea_qp_init_attr *init_attr = NULL; init_attr 1486 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr = kzalloc(sizeof(*init_attr), GFP_KERNEL); init_attr 1487 drivers/net/ethernet/ibm/ehea/ehea_main.c if (!init_attr) { init_attr 1493 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr->low_lat_rq1 = 1; init_attr 1494 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr->signalingtype = 1; /* generate CQE if specified in WQE */ init_attr 1495 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr->rq_count = 3; init_attr 1496 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr->qp_token = queue_token; init_attr 1497 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr->max_nr_send_wqes = pr_cfg->max_entries_sq; init_attr 1498 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr->max_nr_rwqes_rq1 = pr_cfg->max_entries_rq1; init_attr 1499 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr->max_nr_rwqes_rq2 = pr_cfg->max_entries_rq2; init_attr 1500 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr->max_nr_rwqes_rq3 = pr_cfg->max_entries_rq3; init_attr 1501 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr->wqe_size_enc_sq = EHEA_SG_SQ; init_attr 1502 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr->wqe_size_enc_rq1 = EHEA_SG_RQ1; init_attr 1503 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr->wqe_size_enc_rq2 = EHEA_SG_RQ2; init_attr 1504 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr->wqe_size_enc_rq3 = EHEA_SG_RQ3; init_attr 1505 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr->rq2_threshold = EHEA_RQ2_THRESHOLD; init_attr 1506 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr->rq3_threshold = EHEA_RQ3_THRESHOLD; init_attr 1507 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr->port_nr = port->logical_port_id; init_attr 1508 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr->send_cq_handle = pr->send_cq->fw_handle; init_attr 1509 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr->recv_cq_handle = pr->recv_cq->fw_handle; init_attr 1510 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr->aff_eq_handle = port->qp_eq->fw_handle; init_attr 1512 drivers/net/ethernet/ibm/ehea/ehea_main.c pr->qp = ehea_create_qp(adapter, adapter->pd, init_attr); init_attr 1521 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr->qp_nr, init_attr 1522 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr->act_nr_send_wqes, init_attr 1523 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr->act_nr_rwqes_rq1, init_attr 1524 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr->act_nr_rwqes_rq2, init_attr 1525 drivers/net/ethernet/ibm/ehea/ehea_main.c init_attr->act_nr_rwqes_rq3); init_attr 1527 drivers/net/ethernet/ibm/ehea/ehea_main.c pr->sq_skba_size = init_attr->act_nr_send_wqes + 1; init_attr 1530 drivers/net/ethernet/ibm/ehea/ehea_main.c ret |= ehea_init_q_skba(&pr->rq1_skba, init_attr->act_nr_rwqes_rq1 + 1); init_attr 1531 drivers/net/ethernet/ibm/ehea/ehea_main.c ret |= ehea_init_q_skba(&pr->rq2_skba, init_attr->act_nr_rwqes_rq2 + 1); init_attr 1532 drivers/net/ethernet/ibm/ehea/ehea_main.c ret |= ehea_init_q_skba(&pr->rq3_skba, init_attr->act_nr_rwqes_rq3 + 1); init_attr 1536 drivers/net/ethernet/ibm/ehea/ehea_main.c pr->swqe_refill_th = init_attr->act_nr_send_wqes / 10; init_attr 1542 drivers/net/ethernet/ibm/ehea/ehea_main.c atomic_set(&pr->swqe_avail, init_attr->act_nr_send_wqes - 1); init_attr 1544 drivers/net/ethernet/ibm/ehea/ehea_main.c kfree(init_attr); init_attr 1552 drivers/net/ethernet/ibm/ehea/ehea_main.c kfree(init_attr); init_attr 2066 drivers/net/ethernet/ibm/ehea/ehea_main.c "post swqe on QP %d\n", pr->qp->init_attr.qp_nr); init_attr 2474 drivers/net/ethernet/ibm/ehea/ehea_main.c struct ehea_qp_init_attr *init_attr = &qp.init_attr; init_attr 2479 drivers/net/ethernet/ibm/ehea/ehea_main.c for (i = 0; i < init_attr->act_nr_send_wqes; i++) { init_attr 2577 drivers/net/ethernet/ibm/ehea/ehea_main.c struct ehea_qp_init_attr *init_attr = &qp.init_attr; init_attr 2588 drivers/net/ethernet/ibm/ehea/ehea_main.c for (i = 0; i < init_attr->act_nr_rwqes_rq2 + 1; i++) { init_attr 2597 drivers/net/ethernet/ibm/ehea/ehea_main.c for (i = 0; i < init_attr->act_nr_rwqes_rq3 + 1; i++) { init_attr 199 drivers/net/ethernet/ibm/ehea/ehea_phyp.c struct ehea_qp_init_attr *init_attr, const u32 pd, init_attr 206 drivers/net/ethernet/ibm/ehea/ehea_phyp.c EHEA_BMASK_SET(H_ALL_RES_QP_EQPO, init_attr->low_lat_rq1 ? 1 : 0) init_attr 210 drivers/net/ethernet/ibm/ehea/ehea_phyp.c | EHEA_BMASK_SET(H_ALL_RES_QP_LL_QP, init_attr->low_lat_rq1) init_attr 213 drivers/net/ethernet/ibm/ehea/ehea_phyp.c | EHEA_BMASK_SET(H_ALL_RES_QP_SIGT, init_attr->signalingtype) init_attr 217 drivers/net/ethernet/ibm/ehea/ehea_phyp.c | EHEA_BMASK_SET(H_ALL_RES_QP_TOKEN, init_attr->qp_token); init_attr 221 drivers/net/ethernet/ibm/ehea/ehea_phyp.c get_order_of_qentries(init_attr->max_nr_send_wqes)) init_attr 223 drivers/net/ethernet/ibm/ehea/ehea_phyp.c get_order_of_qentries(init_attr->max_nr_rwqes_rq1)) init_attr 225 drivers/net/ethernet/ibm/ehea/ehea_phyp.c get_order_of_qentries(init_attr->max_nr_rwqes_rq2)) init_attr 227 drivers/net/ethernet/ibm/ehea/ehea_phyp.c get_order_of_qentries(init_attr->max_nr_rwqes_rq3)) init_attr 228 drivers/net/ethernet/ibm/ehea/ehea_phyp.c | EHEA_BMASK_SET(H_ALL_RES_QP_MAX_SSGE, init_attr->wqe_size_enc_sq) init_attr 230 drivers/net/ethernet/ibm/ehea/ehea_phyp.c init_attr->wqe_size_enc_rq1) init_attr 232 drivers/net/ethernet/ibm/ehea/ehea_phyp.c init_attr->wqe_size_enc_rq2) init_attr 234 drivers/net/ethernet/ibm/ehea/ehea_phyp.c init_attr->wqe_size_enc_rq3); init_attr 237 drivers/net/ethernet/ibm/ehea/ehea_phyp.c EHEA_BMASK_SET(H_ALL_RES_QP_SWQE_IDL, init_attr->swqe_imm_data_len) init_attr 238 drivers/net/ethernet/ibm/ehea/ehea_phyp.c | EHEA_BMASK_SET(H_ALL_RES_QP_PORT_NUM, init_attr->port_nr); init_attr 240 drivers/net/ethernet/ibm/ehea/ehea_phyp.c EHEA_BMASK_SET(H_ALL_RES_QP_TH_RQ2, init_attr->rq2_threshold) init_attr 241 drivers/net/ethernet/ibm/ehea/ehea_phyp.c | EHEA_BMASK_SET(H_ALL_RES_QP_TH_RQ3, init_attr->rq3_threshold); init_attr 247 drivers/net/ethernet/ibm/ehea/ehea_phyp.c init_attr->send_cq_handle, /* R6 */ init_attr 248 drivers/net/ethernet/ibm/ehea/ehea_phyp.c init_attr->recv_cq_handle, /* R7 */ init_attr 249 drivers/net/ethernet/ibm/ehea/ehea_phyp.c init_attr->aff_eq_handle, /* R8 */ init_attr 256 drivers/net/ethernet/ibm/ehea/ehea_phyp.c init_attr->qp_nr = (u32)outs[1]; init_attr 258 drivers/net/ethernet/ibm/ehea/ehea_phyp.c init_attr->act_nr_send_wqes = init_attr 260 drivers/net/ethernet/ibm/ehea/ehea_phyp.c init_attr->act_nr_rwqes_rq1 = init_attr 262 drivers/net/ethernet/ibm/ehea/ehea_phyp.c init_attr->act_nr_rwqes_rq2 = init_attr 264 drivers/net/ethernet/ibm/ehea/ehea_phyp.c init_attr->act_nr_rwqes_rq3 = init_attr 267 drivers/net/ethernet/ibm/ehea/ehea_phyp.c init_attr->act_wqe_size_enc_sq = init_attr->wqe_size_enc_sq; init_attr 268 drivers/net/ethernet/ibm/ehea/ehea_phyp.c init_attr->act_wqe_size_enc_rq1 = init_attr->wqe_size_enc_rq1; init_attr 269 drivers/net/ethernet/ibm/ehea/ehea_phyp.c init_attr->act_wqe_size_enc_rq2 = init_attr->wqe_size_enc_rq2; init_attr 270 drivers/net/ethernet/ibm/ehea/ehea_phyp.c init_attr->act_wqe_size_enc_rq3 = init_attr->wqe_size_enc_rq3; init_attr 272 drivers/net/ethernet/ibm/ehea/ehea_phyp.c init_attr->nr_sq_pages = init_attr 274 drivers/net/ethernet/ibm/ehea/ehea_phyp.c init_attr->nr_rq1_pages = init_attr 276 drivers/net/ethernet/ibm/ehea/ehea_phyp.c init_attr->nr_rq2_pages = init_attr 278 drivers/net/ethernet/ibm/ehea/ehea_phyp.c init_attr->nr_rq3_pages = init_attr 281 drivers/net/ethernet/ibm/ehea/ehea_phyp.c init_attr->liobn_sq = init_attr 283 drivers/net/ethernet/ibm/ehea/ehea_phyp.c init_attr->liobn_rq1 = init_attr 285 drivers/net/ethernet/ibm/ehea/ehea_phyp.c init_attr->liobn_rq2 = init_attr 287 drivers/net/ethernet/ibm/ehea/ehea_phyp.c init_attr->liobn_rq3 = init_attr 367 drivers/net/ethernet/ibm/ehea/ehea_phyp.h struct ehea_qp_init_attr *init_attr, init_attr 398 drivers/net/ethernet/ibm/ehea/ehea_qmr.c u32 pd, struct ehea_qp_init_attr *init_attr) init_attr 413 drivers/net/ethernet/ibm/ehea/ehea_qmr.c hret = ehea_h_alloc_resource_qp(adapter->handle, init_attr, pd, init_attr 420 drivers/net/ethernet/ibm/ehea/ehea_qmr.c wqe_size_in_bytes_sq = map_wqe_size(init_attr->act_wqe_size_enc_sq); init_attr 421 drivers/net/ethernet/ibm/ehea/ehea_qmr.c wqe_size_in_bytes_rq1 = map_wqe_size(init_attr->act_wqe_size_enc_rq1); init_attr 422 drivers/net/ethernet/ibm/ehea/ehea_qmr.c wqe_size_in_bytes_rq2 = map_wqe_size(init_attr->act_wqe_size_enc_rq2); init_attr 423 drivers/net/ethernet/ibm/ehea/ehea_qmr.c wqe_size_in_bytes_rq3 = map_wqe_size(init_attr->act_wqe_size_enc_rq3); init_attr 425 drivers/net/ethernet/ibm/ehea/ehea_qmr.c ret = ehea_qp_alloc_register(qp, &qp->hw_squeue, init_attr->nr_sq_pages, init_attr 427 drivers/net/ethernet/ibm/ehea/ehea_qmr.c init_attr->act_wqe_size_enc_sq, adapter, init_attr 435 drivers/net/ethernet/ibm/ehea/ehea_qmr.c init_attr->nr_rq1_pages, init_attr 437 drivers/net/ethernet/ibm/ehea/ehea_qmr.c init_attr->act_wqe_size_enc_rq1, init_attr 444 drivers/net/ethernet/ibm/ehea/ehea_qmr.c if (init_attr->rq_count > 1) { init_attr 446 drivers/net/ethernet/ibm/ehea/ehea_qmr.c init_attr->nr_rq2_pages, init_attr 448 drivers/net/ethernet/ibm/ehea/ehea_qmr.c init_attr->act_wqe_size_enc_rq2, init_attr 456 drivers/net/ethernet/ibm/ehea/ehea_qmr.c if (init_attr->rq_count > 2) { init_attr 458 drivers/net/ethernet/ibm/ehea/ehea_qmr.c init_attr->nr_rq3_pages, init_attr 460 drivers/net/ethernet/ibm/ehea/ehea_qmr.c init_attr->act_wqe_size_enc_rq3, init_attr 468 drivers/net/ethernet/ibm/ehea/ehea_qmr.c qp->init_attr = *init_attr; init_attr 493 drivers/net/ethernet/ibm/ehea/ehea_qmr.c struct ehea_qp_init_attr *qp_attr = &qp->init_attr; init_attr 370 drivers/net/ethernet/ibm/ehea/ehea_qmr.h struct ehea_qp_init_attr *init_attr); init_attr 1249 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c struct mlx5_fpga_conn_attr init_attr = {0}; init_attr 1274 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c init_attr.rx_size = SBU_QP_QUEUE_SIZE; init_attr 1275 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c init_attr.tx_size = SBU_QP_QUEUE_SIZE; init_attr 1276 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c init_attr.recv_cb = mlx5_fpga_ipsec_recv; init_attr 1277 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c init_attr.cb_arg = fdev; init_attr 1278 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c conn = mlx5_fpga_sbu_conn_create(fdev, &init_attr); init_attr 449 drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c struct mlx5_fpga_conn_attr init_attr = {0}; init_attr 470 drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c init_attr.rx_size = SBU_QP_QUEUE_SIZE; init_attr 471 drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c init_attr.tx_size = SBU_QP_QUEUE_SIZE; init_attr 472 drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c init_attr.recv_cb = mlx5_fpga_tls_hw_qp_recv_cb; init_attr 473 drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c init_attr.cb_arg = fdev; init_attr 474 drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c conn = mlx5_fpga_sbu_conn_create(fdev, &init_attr); init_attr 865 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c struct dr_qp_init_attr init_attr = {}; init_attr 881 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c init_attr.cqn = dmn->send_ring->cq->mcq.cqn; init_attr 882 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c init_attr.pdn = dmn->pdn; init_attr 883 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c init_attr.uar = dmn->uar; init_attr 884 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c init_attr.max_send_wr = QUEUE_SIZE; init_attr 886 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c dmn->send_ring->qp = dr_create_rc_qp(dmn->mdev, &init_attr); init_attr 257 drivers/nvme/host/rdma.c struct ib_qp_init_attr init_attr; init_attr 260 drivers/nvme/host/rdma.c memset(&init_attr, 0, sizeof(init_attr)); init_attr 261 drivers/nvme/host/rdma.c init_attr.event_handler = nvme_rdma_qp_event; init_attr 263 drivers/nvme/host/rdma.c init_attr.cap.max_send_wr = factor * queue->queue_size + 1; init_attr 265 drivers/nvme/host/rdma.c init_attr.cap.max_recv_wr = queue->queue_size + 1; init_attr 266 drivers/nvme/host/rdma.c init_attr.cap.max_recv_sge = 1; init_attr 267 drivers/nvme/host/rdma.c init_attr.cap.max_send_sge = 1 + dev->num_inline_segments; init_attr 268 drivers/nvme/host/rdma.c init_attr.sq_sig_type = IB_SIGNAL_REQ_WR; init_attr 269 drivers/nvme/host/rdma.c init_attr.qp_type = IB_QPT_RC; init_attr 270 drivers/nvme/host/rdma.c init_attr.send_cq = queue->ib_cq; init_attr 271 drivers/nvme/host/rdma.c init_attr.recv_cq = queue->ib_cq; init_attr 273 drivers/nvme/host/rdma.c ret = rdma_create_qp(queue->cm_id, dev->pd, &init_attr); init_attr 2453 include/rdma/ib_verbs.h struct ib_wq_init_attr *init_attr, init_attr 2460 include/rdma/ib_verbs.h struct ib_rwq_ind_table_init_attr *init_attr, init_attr 4324 include/rdma/ib_verbs.h struct ib_wq_init_attr *init_attr); init_attr 294 include/rdma/rdma_vt.h struct ib_qp_init_attr *init_attr); init_attr 433 net/smc/smc_wr.c struct ib_qp_init_attr init_attr; init_attr 436 net/smc/smc_wr.c memset(&init_attr, 0, sizeof(init_attr)); init_attr 455 net/smc/smc_wr.c &init_attr);