Lines Matching refs:ib_cq
44 struct ib_cq *ibcq = &hr_cq->ib_cq; in hns_roce_ib_cq_comp()
54 struct ib_cq *ibcq; in hns_roce_ib_cq_event()
56 ibcq = &hr_cq->ib_cq; in hns_roce_ib_cq_event()
403 hns_roce_ib_free_cq_buf(hr_dev, &hr_cq->hr_buf, hr_cq->ib_cq.cqe); in destroy_kernel_cq()
409 int hns_roce_ib_create_cq(struct ib_cq *ib_cq, in hns_roce_ib_create_cq() argument
413 struct hns_roce_dev *hr_dev = to_hr_dev(ib_cq->device); in hns_roce_ib_create_cq()
416 struct hns_roce_cq *hr_cq = to_hr_cq(ib_cq); in hns_roce_ib_create_cq()
431 hr_cq->ib_cq.cqe = cq_entries - 1; 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
494 struct hns_roce_dev *hr_dev = to_hr_dev(ib_cq->device); in hns_roce_ib_destroy_cq()
495 struct hns_roce_cq *hr_cq = to_hr_cq(ib_cq); in hns_roce_ib_destroy_cq()
498 hr_dev->hw->destroy_cq(ib_cq, udata); 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()