Lines Matching refs:ucmd
299 struct hns_roce_ib_create_cq *ucmd) in get_cq_ucmd() argument
304 ret = ib_copy_from_udata(ucmd, udata, min(udata->inlen, sizeof(*ucmd))); in get_cq_ucmd()
314 struct hns_roce_ib_create_cq *ucmd) in set_cq_param() argument
330 struct hns_roce_ib_create_cq *ucmd) in set_cqe_size() argument
339 if (udata->inlen >= offsetofend(typeof(*ucmd), cqe_size)) { in set_cqe_size()
340 if (ucmd->cqe_size != HNS_ROCE_V2_CQE_SIZE && in set_cqe_size()
341 ucmd->cqe_size != HNS_ROCE_V3_CQE_SIZE) { in set_cqe_size()
343 "invalid cqe size %u.\n", ucmd->cqe_size); in set_cqe_size()
347 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
376 ret = get_cq_ucmd(hr_cq, udata, &ucmd); in hns_roce_create_cq()
381 set_cq_param(hr_cq, attr->cqe, attr->comp_vector, &ucmd); in hns_roce_create_cq()
383 ret = set_cqe_size(hr_cq, udata, &ucmd); in hns_roce_create_cq()
387 ret = alloc_cq_buf(hr_dev, hr_cq, udata, ucmd.buf_addr); in hns_roce_create_cq()
393 ret = alloc_cq_db(hr_dev, hr_cq, udata, ucmd.db_addr, &resp); in hns_roce_create_cq()