Lines Matching refs:wq
15 struct mana_ib_wq *wq; in mana_ib_create_wq() local
29 wq = kzalloc(sizeof(*wq), GFP_KERNEL); in mana_ib_create_wq()
30 if (!wq) in mana_ib_create_wq()
44 wq->umem = umem; in mana_ib_create_wq()
45 wq->wqe = init_attr->max_wr; in mana_ib_create_wq()
46 wq->wq_buf_size = ucmd.wq_buf_size; in mana_ib_create_wq()
47 wq->rx_object = INVALID_MANA_HANDLE; in mana_ib_create_wq()
49 err = mana_ib_gd_create_dma_region(mdev, wq->umem, &wq->gdma_region); in mana_ib_create_wq()
59 err, wq->gdma_region); in mana_ib_create_wq()
63 return &wq->ibwq; in mana_ib_create_wq()
69 kfree(wq); in mana_ib_create_wq()
74 int mana_ib_modify_wq(struct ib_wq *wq, struct ib_wq_attr *wq_attr, in mana_ib_modify_wq() argument
83 struct mana_ib_wq *wq = container_of(ibwq, struct mana_ib_wq, ibwq); in mana_ib_destroy_wq() local
89 mana_ib_gd_destroy_dma_region(mdev, wq->gdma_region); in mana_ib_destroy_wq()
90 ib_umem_release(wq->umem); in mana_ib_destroy_wq()
92 kfree(wq); in mana_ib_destroy_wq()