Lines Matching refs:udata
208 struct ib_udata *udata, in hns_roce_ib_get_cq_umem() argument
216 *umem = ib_umem_get(udata, buf_addr, cqe * hr_dev->caps.cq_entry_sz, in hns_roce_ib_get_cq_umem()
301 struct ib_udata *udata, in create_user_cq() argument
309 udata, struct hns_roce_ucontext, ibucontext); in create_user_cq()
311 if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd))) { in create_user_cq()
317 ret = hns_roce_ib_get_cq_umem(hr_dev, udata, &hr_cq->hr_buf, in create_user_cq()
326 (udata->outlen >= sizeof(*resp))) { in create_user_cq()
327 ret = hns_roce_db_map_user(context, udata, ucmd.db_addr, in create_user_cq()
385 struct ib_udata *udata, in destroy_user_cq() argument
389 udata, struct hns_roce_ucontext, ibucontext); in destroy_user_cq()
392 (udata->outlen >= sizeof(*resp))) in destroy_user_cq()
411 struct ib_udata *udata) in hns_roce_ib_create_cq() argument
434 if (udata) { in hns_roce_ib_create_cq()
435 ret = create_user_cq(hr_dev, hr_cq, udata, &resp, cq_entries); in hns_roce_ib_create_cq()
462 if (!udata && hr_cq->tptr_addr) in hns_roce_ib_create_cq()
470 if (udata) { in hns_roce_ib_create_cq()
472 ret = ib_copy_to_udata(udata, &resp, sizeof(resp)); in hns_roce_ib_create_cq()
483 if (udata) in hns_roce_ib_create_cq()
484 destroy_user_cq(hr_dev, hr_cq, udata, &resp); in hns_roce_ib_create_cq()
492 void hns_roce_ib_destroy_cq(struct ib_cq *ib_cq, struct ib_udata *udata) in hns_roce_ib_destroy_cq() argument
498 hr_dev->hw->destroy_cq(ib_cq, udata); in hns_roce_ib_destroy_cq()
506 if (udata) { in hns_roce_ib_destroy_cq()
509 udata, in hns_roce_ib_destroy_cq()