Lines Matching refs:init_attr

299 			     struct ib_qp_init_attr *init_attr)  in hns_roce_qp_store()  argument
312 add_qp_to_list(hr_dev, hr_qp, init_attr->send_cq, in hns_roce_qp_store()
313 init_attr->recv_cq); in hns_roce_qp_store()
708 struct ib_qp_init_attr *init_attr) in alloc_rq_inline_buf() argument
710 u32 max_recv_sge = init_attr->cap.max_recv_sge; in alloc_rq_inline_buf()
751 struct ib_qp_init_attr *init_attr, in alloc_qp_buf() argument
759 ret = alloc_rq_inline_buf(hr_qp, init_attr); in alloc_qp_buf()
797 struct ib_qp_init_attr *init_attr, in user_qp_has_sdb() argument
804 hns_roce_qp_has_sq(init_attr) && in user_qp_has_sdb()
809 struct ib_qp_init_attr *init_attr, in user_qp_has_rdb() argument
815 hns_roce_qp_has_rq(init_attr)); in user_qp_has_rdb()
819 struct ib_qp_init_attr *init_attr) in kernel_qp_has_rdb() argument
822 hns_roce_qp_has_rq(init_attr)); in kernel_qp_has_rdb()
827 struct ib_qp_init_attr *init_attr, in alloc_user_qp_db() argument
837 if (user_qp_has_sdb(hr_dev, init_attr, udata, resp, ucmd)) { in alloc_user_qp_db()
848 if (user_qp_has_rdb(hr_dev, init_attr, udata, resp)) { in alloc_user_qp_db()
870 struct ib_qp_init_attr *init_attr) in alloc_kernel_qp_db() argument
885 if (kernel_qp_has_rdb(hr_dev, init_attr)) { in alloc_kernel_qp_db()
901 struct ib_qp_init_attr *init_attr, in alloc_qp_db() argument
912 ret = alloc_user_qp_db(hr_dev, hr_qp, init_attr, udata, ucmd, in alloc_qp_db()
917 ret = alloc_kernel_qp_db(hr_dev, hr_qp, init_attr); in alloc_qp_db()
981 struct ib_qp_init_attr *init_attr, in set_qp_param() argument
988 if (init_attr->cap.max_inline_data > hr_dev->caps.max_sq_inline) in set_qp_param()
989 init_attr->cap.max_inline_data = hr_dev->caps.max_sq_inline; in set_qp_param()
991 hr_qp->max_inline_data = init_attr->cap.max_inline_data; in set_qp_param()
993 if (init_attr->sq_sig_type == IB_SIGNAL_ALL_WR) in set_qp_param()
998 ret = set_rq_size(hr_dev, &init_attr->cap, hr_qp, in set_qp_param()
999 hns_roce_qp_has_rq(init_attr), !!udata); in set_qp_param()
1015 ret = set_user_sq_size(hr_dev, &init_attr->cap, hr_qp, ucmd); in set_qp_param()
1021 ret = set_kernel_sq_size(hr_dev, &init_attr->cap, hr_qp); in set_qp_param()
1033 struct ib_qp_init_attr *init_attr, in hns_roce_create_qp_common() argument
1049 if (init_attr->create_flags) in hns_roce_create_qp_common()
1052 ret = set_qp_param(hr_dev, hr_qp, init_attr, udata, &ucmd); in hns_roce_create_qp_common()
1067 ret = alloc_qp_buf(hr_dev, hr_qp, init_attr, udata, ucmd.buf_addr); in hns_roce_create_qp_common()
1079 ret = alloc_qp_db(hr_dev, hr_qp, init_attr, udata, &ucmd, &resp); in hns_roce_create_qp_common()
1093 ret = hns_roce_qp_store(hr_dev, hr_qp, init_attr); in hns_roce_create_qp_common()
1180 int hns_roce_create_qp(struct ib_qp *qp, struct ib_qp_init_attr *init_attr, in hns_roce_create_qp() argument
1189 ret = check_qp_type(hr_dev, init_attr->qp_type, !!udata); in hns_roce_create_qp()
1193 if (init_attr->qp_type == IB_QPT_XRC_TGT) in hns_roce_create_qp()
1194 hr_qp->xrcdn = to_hr_xrcd(init_attr->xrcd)->xrcdn; in hns_roce_create_qp()
1196 if (init_attr->qp_type == IB_QPT_GSI) { in hns_roce_create_qp()
1197 hr_qp->port = init_attr->port_num - 1; in hns_roce_create_qp()
1201 ret = hns_roce_create_qp_common(hr_dev, pd, init_attr, udata, hr_qp); in hns_roce_create_qp()
1204 init_attr->qp_type, ret); in hns_roce_create_qp()