Lines Matching refs:cq
613 struct ib_cq *cq; in ib_create_cq() local
615 cq = device->create_cq(device, cqe, comp_vector, NULL, NULL); in ib_create_cq()
617 if (!IS_ERR(cq)) { in ib_create_cq()
618 cq->device = device; in ib_create_cq()
619 cq->uobject = NULL; in ib_create_cq()
620 cq->comp_handler = comp_handler; in ib_create_cq()
621 cq->event_handler = event_handler; in ib_create_cq()
622 cq->cq_context = cq_context; in ib_create_cq()
623 atomic_set(&cq->usecnt, 0); in ib_create_cq()
626 return cq; in ib_create_cq()
630 int ib_modify_cq(struct ib_cq *cq, u16 cq_count, u16 cq_period) in ib_modify_cq() argument
632 return cq->device->modify_cq ? in ib_modify_cq()
633 cq->device->modify_cq(cq, cq_count, cq_period) : -ENOSYS; in ib_modify_cq()
637 int ib_destroy_cq(struct ib_cq *cq) in ib_destroy_cq() argument
639 if (atomic_read(&cq->usecnt)) in ib_destroy_cq()
642 return cq->device->destroy_cq(cq); in ib_destroy_cq()
646 int ib_resize_cq(struct ib_cq *cq, int cqe) in ib_resize_cq() argument
648 return cq->device->resize_cq ? in ib_resize_cq()
649 cq->device->resize_cq(cq, cqe, NULL) : -ENOSYS; in ib_resize_cq()