Lines Matching refs:cq

55 int ehca_cq_assign_qp(struct ehca_cq *cq, struct ehca_qp *qp)  in ehca_cq_assign_qp()  argument
61 spin_lock_irqsave(&cq->spinlock, flags); in ehca_cq_assign_qp()
62 hlist_add_head(&qp->list_entries, &cq->qp_hashtab[key]); in ehca_cq_assign_qp()
63 spin_unlock_irqrestore(&cq->spinlock, flags); in ehca_cq_assign_qp()
65 ehca_dbg(cq->ib_cq.device, "cq_num=%x real_qp_num=%x", in ehca_cq_assign_qp()
66 cq->cq_number, qp_num); in ehca_cq_assign_qp()
71 int ehca_cq_unassign_qp(struct ehca_cq *cq, unsigned int real_qp_num) in ehca_cq_unassign_qp() argument
79 spin_lock_irqsave(&cq->spinlock, flags); in ehca_cq_unassign_qp()
80 hlist_for_each(iter, &cq->qp_hashtab[key]) { in ehca_cq_unassign_qp()
84 ehca_dbg(cq->ib_cq.device, in ehca_cq_unassign_qp()
86 cq->cq_number, real_qp_num); in ehca_cq_unassign_qp()
91 spin_unlock_irqrestore(&cq->spinlock, flags); in ehca_cq_unassign_qp()
93 ehca_err(cq->ib_cq.device, in ehca_cq_unassign_qp()
95 cq->cq_number, real_qp_num); in ehca_cq_unassign_qp()
100 struct ehca_qp *ehca_cq_get_qp(struct ehca_cq *cq, int real_qp_num) in ehca_cq_get_qp() argument
106 hlist_for_each(iter, &cq->qp_hashtab[key]) { in ehca_cq_get_qp()
121 struct ib_cq *cq; in ehca_create_cq() local
161 cq = &my_cq->ib_cq; in ehca_create_cq()
173 cq = ERR_PTR(-ENOMEM); in ehca_create_cq()
189 cq = ERR_PTR(ehca2ib_return_code(h_ret)); in ehca_create_cq()
198 cq = ERR_PTR(-EINVAL); in ehca_create_cq()
207 cq = ERR_PTR(-EAGAIN); in ehca_create_cq()
227 cq = ERR_PTR(-EINVAL); in ehca_create_cq()
238 cq = ERR_PTR(-EAGAIN); in ehca_create_cq()
248 cq = ERR_PTR(-ENOMEM); in ehca_create_cq()
286 cq = ERR_PTR(-EFAULT); in ehca_create_cq()
291 return cq; in ehca_create_cq()
311 return cq; in ehca_create_cq()
314 int ehca_destroy_cq(struct ib_cq *cq) in ehca_destroy_cq() argument
317 struct ehca_cq *my_cq = container_of(cq, struct ehca_cq, ib_cq); in ehca_destroy_cq()
319 struct ib_device *device = cq->device; in ehca_destroy_cq()
325 if (cq->uobject) { in ehca_destroy_cq()
369 int ehca_resize_cq(struct ib_cq *cq, int cqe, struct ib_udata *udata) in ehca_resize_cq() argument
372 ehca_err(cq->device, "not implemented yet"); in ehca_resize_cq()