Lines Matching refs:cq

226 static void put_cq_read(struct ib_cq *cq)  in put_cq_read()  argument
228 put_uobj_read(cq->uobject); in put_cq_read()
1363 struct ib_cq *cq; in create_cq() local
1398 cq = ib_dev->create_cq(ib_dev, &attr, in create_cq()
1400 if (IS_ERR(cq)) { in create_cq()
1401 ret = PTR_ERR(cq); in create_cq()
1405 cq->device = ib_dev; in create_cq()
1406 cq->uobject = &obj->uobject; in create_cq()
1407 cq->comp_handler = ib_uverbs_comp_handler; in create_cq()
1408 cq->event_handler = ib_uverbs_cq_event_handler; in create_cq()
1409 cq->cq_context = ev_file; in create_cq()
1410 atomic_set(&cq->usecnt, 0); in create_cq()
1412 obj->uobject.object = cq; in create_cq()
1419 resp.base.cqe = cq->cqe; in create_cq()
1442 ib_destroy_cq(cq); in create_cq()
1562 struct ib_cq *cq; in ib_uverbs_resize_cq() local
1572 cq = idr_read_cq(cmd.cq_handle, file->ucontext, 0); in ib_uverbs_resize_cq()
1573 if (!cq) in ib_uverbs_resize_cq()
1576 ret = cq->device->resize_cq(cq, cmd.cqe, &udata); in ib_uverbs_resize_cq()
1580 resp.cqe = cq->cqe; in ib_uverbs_resize_cq()
1587 put_cq_read(cq); in ib_uverbs_resize_cq()
1627 struct ib_cq *cq; in ib_uverbs_poll_cq() local
1634 cq = idr_read_cq(cmd.cq_handle, file->ucontext, 0); in ib_uverbs_poll_cq()
1635 if (!cq) in ib_uverbs_poll_cq()
1644 ret = ib_poll_cq(cq, 1, &wc); in ib_uverbs_poll_cq()
1666 put_cq_read(cq); in ib_uverbs_poll_cq()
1676 struct ib_cq *cq; in ib_uverbs_req_notify_cq() local
1681 cq = idr_read_cq(cmd.cq_handle, file->ucontext, 0); in ib_uverbs_req_notify_cq()
1682 if (!cq) in ib_uverbs_req_notify_cq()
1685 ib_req_notify_cq(cq, cmd.solicited_only ? in ib_uverbs_req_notify_cq()
1688 put_cq_read(cq); in ib_uverbs_req_notify_cq()
1701 struct ib_cq *cq; in ib_uverbs_destroy_cq() local
1712 cq = uobj->object; in ib_uverbs_destroy_cq()
1713 ev_file = cq->cq_context; in ib_uverbs_destroy_cq()
1714 obj = container_of(cq->uobject, struct ib_ucq_object, uobject); in ib_uverbs_destroy_cq()
1716 ret = ib_destroy_cq(cq); in ib_uverbs_destroy_cq()
3303 attr.ext.xrc.cq = idr_read_cq(cmd->cq_handle, file->ucontext, 0); in __uverbs_create_xsrq()
3304 if (!attr.ext.xrc.cq) { in __uverbs_create_xsrq()
3340 srq->ext.xrc.cq = attr.ext.xrc.cq; in __uverbs_create_xsrq()
3342 atomic_inc(&attr.ext.xrc.cq->usecnt); in __uverbs_create_xsrq()
3369 put_cq_read(attr.ext.xrc.cq); in __uverbs_create_xsrq()
3394 put_cq_read(attr.ext.xrc.cq); in __uverbs_create_xsrq()