Lines Matching refs:hr_buf
261 (1 << page_shift) * 2, &buf->hr_buf, in hns_roce_ib_alloc_cq_buf()
271 ret = hns_roce_mtt_init(hr_dev, buf->hr_buf.npages, in hns_roce_ib_alloc_cq_buf()
272 buf->hr_buf.page_shift, &buf->hr_mtt); in hns_roce_ib_alloc_cq_buf()
276 ret = hns_roce_buf_write_mtt(hr_dev, &buf->hr_mtt, &buf->hr_buf); in hns_roce_ib_alloc_cq_buf()
287 &buf->hr_buf); in hns_roce_ib_alloc_cq_buf()
296 &buf->hr_buf); in hns_roce_ib_free_cq_buf()
317 ret = hns_roce_ib_get_cq_umem(hr_dev, udata, &hr_cq->hr_buf, in create_user_cq()
340 hns_roce_mtt_cleanup(hr_dev, &hr_cq->hr_buf.hr_mtt); in create_user_cq()
364 ret = hns_roce_ib_alloc_cq_buf(hr_dev, &hr_cq->hr_buf, cq_entries); in create_kernel_cq()
395 hns_roce_mtt_cleanup(hr_dev, &hr_cq->hr_buf.hr_mtt); in destroy_user_cq()
402 hns_roce_mtt_cleanup(hr_dev, &hr_cq->hr_buf.hr_mtt); in destroy_kernel_cq()
403 hns_roce_ib_free_cq_buf(hr_dev, &hr_cq->hr_buf, hr_cq->ib_cq.cqe); in destroy_kernel_cq()
449 ret = hns_roce_cq_alloc(hr_dev, cq_entries, &hr_cq->hr_buf.hr_mtt, in hns_roce_ib_create_cq()
503 hns_roce_mtt_cleanup(hr_dev, &hr_cq->hr_buf.hr_mtt); in hns_roce_ib_destroy_cq()
515 hns_roce_ib_free_cq_buf(hr_dev, &hr_cq->hr_buf, ib_cq->cqe); in hns_roce_ib_destroy_cq()