Lines Matching defs:cq_context
235 cq->ibcq.comp_handler(&cq->ibcq, cq->ibcq.cq_context);
261 cq->ibcq.event_handler(&event, cq->ibcq.cq_context);
780 struct mthca_cq_context *cq_context;
817 cq_context = mailbox->buf;
830 memset(cq_context, 0, sizeof *cq_context);
831 cq_context->flags = cpu_to_be32(MTHCA_CQ_STATUS_OK |
834 cq_context->logsize_usrpage = cpu_to_be32((ffs(nent) - 1) << 24);
836 cq_context->logsize_usrpage |= cpu_to_be32(ctx->uar.index);
838 cq_context->logsize_usrpage |= cpu_to_be32(dev->driver_uar.index);
839 cq_context->error_eqn = cpu_to_be32(dev->eq_table.eq[MTHCA_EQ_ASYNC].eqn);
840 cq_context->comp_eqn = cpu_to_be32(dev->eq_table.eq[MTHCA_EQ_COMP].eqn);
841 cq_context->pd = cpu_to_be32(pdn);
842 cq_context->lkey = cpu_to_be32(cq->buf.mr.ibmr.lkey);
843 cq_context->cqn = cpu_to_be32(cq->cqn);
846 cq_context->ci_db = cpu_to_be32(cq->set_ci_db_index);
847 cq_context->state_db = cpu_to_be32(cq->arm_db_index);