• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/infiniband/hw/mlx4/

Lines Matching refs:ibcq

43 	struct ib_cq *ibcq = &to_mibcq(cq)->ibcq;
44 ibcq->comp_handler(ibcq, ibcq->cq_context);
50 struct ib_cq *ibcq;
58 ibcq = &to_mibcq(cq)->ibcq;
59 if (ibcq->event_handler) {
60 event.device = ibcq->device;
62 event.element.cq = ibcq;
63 ibcq->event_handler(&event, ibcq->cq_context);
79 struct mlx4_cqe *cqe = get_cqe(cq, n & cq->ibcq.cqe);
82 !!(n & (cq->ibcq.cqe + 1))) ? NULL : cqe;
183 cq->ibcq.cqe = entries - 1;
239 return &cq->ibcq;
251 mlx4_ib_free_cq_buf(dev, &cq->buf, cq->ibcq.cqe);
321 while (get_sw_cqe(cq, i & cq->ibcq.cqe))
333 cqe = get_cqe(cq, i & cq->ibcq.cqe);
337 memcpy(new_cqe, get_cqe(cq, i & cq->ibcq.cqe), sizeof(struct mlx4_cqe));
340 cqe = get_cqe(cq, ++i & cq->ibcq.cqe);
345 int mlx4_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata)
347 struct mlx4_ib_dev *dev = to_mdev(ibcq->device);
348 struct mlx4_ib_cq *cq = to_mcq(ibcq);
361 if (entries == ibcq->cqe + 1) {
366 if (ibcq->uobject) {
390 if (ibcq->uobject) {
392 cq->ibcq.cqe = cq->resize_buf->cqe;
403 mlx4_ib_free_cq_buf(dev, &cq->buf, cq->ibcq.cqe);
405 cq->ibcq.cqe = cq->resize_buf->cqe;
417 if (!ibcq->uobject)
579 struct mlx4_ib_dev *dev = to_mdev(cq->ibcq.device);
581 mlx4_ib_free_cq_buf(dev, &cq->buf, cq->ibcq.cqe);
583 cq->ibcq.cqe = cq->resize_buf->cqe;
599 mqp = __mlx4_qp_lookup(to_mdev(cq->ibcq.device)->dev,
723 int mlx4_ib_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc)
725 struct mlx4_ib_cq *cq = to_mcq(ibcq);
750 int mlx4_ib_arm_cq(struct ib_cq *ibcq, enum ib_cq_notify_flags flags)
752 mlx4_cq_arm(&to_mcq(ibcq)->mcq,
755 to_mdev(ibcq->device)->uar_map,
756 MLX4_GET_DOORBELL_LOCK(&to_mdev(ibcq->device)->uar_lock));
776 if (prod_index == cq->mcq.cons_index + cq->ibcq.cqe)
784 cqe = get_cqe(cq, prod_index & cq->ibcq.cqe);
790 dest = get_cqe(cq, (prod_index + nfreed) & cq->ibcq.cqe);