Lines Matching refs:init_attr

555 			       struct ib_qp_init_attr *init_attr)  in efa_qp_validate_cap()  argument
557 if (init_attr->cap.max_send_wr > dev->dev_attr.max_sq_depth) { in efa_qp_validate_cap()
560 init_attr->cap.max_send_wr, in efa_qp_validate_cap()
564 if (init_attr->cap.max_recv_wr > dev->dev_attr.max_rq_depth) { in efa_qp_validate_cap()
567 init_attr->cap.max_recv_wr, in efa_qp_validate_cap()
571 if (init_attr->cap.max_send_sge > dev->dev_attr.max_sq_sge) { in efa_qp_validate_cap()
574 init_attr->cap.max_send_sge, dev->dev_attr.max_sq_sge); in efa_qp_validate_cap()
577 if (init_attr->cap.max_recv_sge > dev->dev_attr.max_rq_sge) { in efa_qp_validate_cap()
580 init_attr->cap.max_recv_sge, dev->dev_attr.max_rq_sge); in efa_qp_validate_cap()
583 if (init_attr->cap.max_inline_data > dev->dev_attr.inline_buf_size) { in efa_qp_validate_cap()
586 init_attr->cap.max_inline_data, in efa_qp_validate_cap()
595 struct ib_qp_init_attr *init_attr) in efa_qp_validate_attr() argument
597 if (init_attr->qp_type != IB_QPT_DRIVER && in efa_qp_validate_attr()
598 init_attr->qp_type != IB_QPT_UD) { in efa_qp_validate_attr()
600 "Unsupported qp type %d\n", init_attr->qp_type); in efa_qp_validate_attr()
604 if (init_attr->srq) { in efa_qp_validate_attr()
609 if (init_attr->create_flags) { in efa_qp_validate_attr()
617 int efa_create_qp(struct ib_qp *ibqp, struct ib_qp_init_attr *init_attr, in efa_create_qp() argument
632 err = efa_qp_validate_cap(dev, init_attr); in efa_create_qp()
636 err = efa_qp_validate_attr(dev, init_attr); in efa_create_qp()
674 if (init_attr->qp_type == IB_QPT_UD) { in efa_create_qp()
681 init_attr->qp_type, cmd.driver_qp_type); in efa_create_qp()
687 init_attr->qp_type, cmd.driver_qp_type); in efa_create_qp()
688 create_qp_params.send_cq_idx = to_ecq(init_attr->send_cq)->cq_idx; in efa_create_qp()
689 create_qp_params.recv_cq_idx = to_ecq(init_attr->recv_cq)->cq_idx; in efa_create_qp()
690 create_qp_params.sq_depth = init_attr->cap.max_send_wr; in efa_create_qp()
693 create_qp_params.rq_depth = init_attr->cap.max_recv_wr; in efa_create_qp()
728 qp->max_send_wr = init_attr->cap.max_send_wr; in efa_create_qp()
729 qp->max_recv_wr = init_attr->cap.max_recv_wr; in efa_create_qp()
730 qp->max_send_sge = init_attr->cap.max_send_sge; in efa_create_qp()
731 qp->max_recv_sge = init_attr->cap.max_recv_sge; in efa_create_qp()
732 qp->max_inline_data = init_attr->cap.max_inline_data; in efa_create_qp()
1951 struct rdma_ah_init_attr *init_attr, in efa_create_ah() argument
1954 struct rdma_ah_attr *ah_attr = init_attr->ah_attr; in efa_create_ah()
1962 if (!(init_attr->flags & RDMA_CREATE_AH_SLEEPABLE)) { in efa_create_ah()