Lines Matching refs:ucmd
300 struct hns_roce_ib_create_cq *ucmd) in get_cq_ucmd() argument
305 ret = ib_copy_from_udata(ucmd, udata, min(udata->inlen, sizeof(*ucmd))); in get_cq_ucmd()
315 struct hns_roce_ib_create_cq *ucmd) in set_cq_param() argument
331 struct hns_roce_ib_create_cq *ucmd) in set_cqe_size() argument
340 if (udata->inlen >= offsetofend(typeof(*ucmd), cqe_size)) { in set_cqe_size()
341 if (ucmd->cqe_size != HNS_ROCE_V2_CQE_SIZE && in set_cqe_size()
342 ucmd->cqe_size != HNS_ROCE_V3_CQE_SIZE) { in set_cqe_size()
344 "invalid cqe size %u.\n", ucmd->cqe_size); in set_cqe_size()
348 hr_cq->cqe_size = ucmd->cqe_size; in set_cqe_size()
363 struct hns_roce_ib_create_cq ucmd = {}; in hns_roce_create_cq() local
374 ret = get_cq_ucmd(hr_cq, udata, &ucmd); in hns_roce_create_cq()
379 set_cq_param(hr_cq, attr->cqe, attr->comp_vector, &ucmd); in hns_roce_create_cq()
381 ret = set_cqe_size(hr_cq, udata, &ucmd); in hns_roce_create_cq()
385 ret = alloc_cq_buf(hr_dev, hr_cq, udata, ucmd.buf_addr); in hns_roce_create_cq()
391 ret = alloc_cq_db(hr_dev, hr_cq, udata, ucmd.db_addr, &resp); in hns_roce_create_cq()