Lines Matching defs:cq
11 struct mana_ib_cq *cq = container_of(ibcq, struct mana_ib_cq, ibcq);
25 "Failed to copy from udata for create cq, %d\n", err);
34 cq->cqe = attr->cqe;
35 cq->umem = ib_umem_get(ibdev, ucmd.buf_addr, cq->cqe * COMP_ENTRY_SIZE,
37 if (IS_ERR(cq->umem)) {
38 err = PTR_ERR(cq->umem);
39 ibdev_dbg(ibdev, "Failed to get umem for create cq, err %d\n",
44 err = mana_ib_gd_create_dma_region(mdev, cq->umem, &cq->gdma_region);
47 "Failed to create dma region for create cq, %d\n",
54 err, cq->gdma_region);
63 ib_umem_release(cq->umem);
69 struct mana_ib_cq *cq = container_of(ibcq, struct mana_ib_cq, ibcq);
75 mana_ib_gd_destroy_dma_region(mdev, cq->gdma_region);
76 ib_umem_release(cq->umem);