Lines Matching refs:ucmd

598 					struct hns_roce_ib_create_qp *ucmd)  in check_sq_size_with_integrity()  argument
604 if (ucmd->log_sq_stride > max_sq_stride || in check_sq_size_with_integrity()
605 ucmd->log_sq_stride < HNS_ROCE_IB_MIN_SQ_STRIDE) { in check_sq_size_with_integrity()
621 struct hns_roce_ib_create_qp *ucmd) in set_user_sq_size() argument
627 if (check_shl_overflow(1, ucmd->log_sq_bb_count, &cnt) || in set_user_sq_size()
631 ret = check_sq_size_with_integrity(hr_dev, cap, ucmd); in set_user_sq_size()
640 hr_qp->sq.wqe_shift = ucmd->log_sq_stride; in set_user_sq_size()
787 struct hns_roce_ib_create_qp *ucmd) in user_qp_has_sdb() argument
792 udata->inlen >= offsetofend(typeof(*ucmd), sdb_addr)); in user_qp_has_sdb()
845 struct hns_roce_ib_create_qp *ucmd, in alloc_user_qp_db() argument
853 if (user_qp_has_sdb(hr_dev, init_attr, udata, resp, ucmd)) { in alloc_user_qp_db()
854 ret = hns_roce_db_map_user(uctx, ucmd->sdb_addr, &hr_qp->sdb); in alloc_user_qp_db()
865 ret = hns_roce_db_map_user(uctx, ucmd->db_addr, &hr_qp->rdb); in alloc_user_qp_db()
919 struct hns_roce_ib_create_qp *ucmd, in alloc_qp_db() argument
934 ret = alloc_user_qp_db(hr_dev, hr_qp, init_attr, udata, ucmd, in alloc_qp_db()
1021 struct hns_roce_ib_create_qp *ucmd) in set_congest_type() argument
1025 switch (ucmd->cong_type_flags) { in set_congest_type()
1054 struct hns_roce_ib_create_qp *ucmd) in set_congest_param() argument
1056 if (ucmd->comp_mask & HNS_ROCE_CREATE_QP_MASK_CONGEST_TYPE) in set_congest_param()
1057 return set_congest_type(hr_qp, ucmd); in set_congest_param()
1067 struct hns_roce_ib_create_qp *ucmd) in set_qp_param() argument
1087 ret = ib_copy_from_udata(ucmd, udata, in set_qp_param()
1088 min(udata->inlen, sizeof(*ucmd))); in set_qp_param()
1098 ret = set_user_sq_size(hr_dev, &init_attr->cap, hr_qp, ucmd); in set_qp_param()
1104 ret = set_congest_param(hr_dev, hr_qp, ucmd); in set_qp_param()
1129 struct hns_roce_ib_create_qp ucmd = {}; in hns_roce_create_qp_common() local
1142 ret = set_qp_param(hr_dev, hr_qp, init_attr, udata, &ucmd); in hns_roce_create_qp_common()
1157 ret = alloc_qp_buf(hr_dev, hr_qp, init_attr, udata, ucmd.buf_addr); in hns_roce_create_qp_common()
1169 ret = alloc_qp_db(hr_dev, hr_qp, init_attr, udata, &ucmd, &resp); in hns_roce_create_qp_common()