Lines Matching refs:cq_context
240 cq->ibcq.comp_handler(&cq->ibcq, cq->ibcq.cq_context);
266 cq->ibcq.event_handler(&event, cq->ibcq.cq_context);
792 struct mthca_cq_context *cq_context;
829 cq_context = mailbox->buf;
842 memset(cq_context, 0, sizeof *cq_context);
843 cq_context->flags = cpu_to_be32(MTHCA_CQ_STATUS_OK |
846 cq_context->logsize_usrpage = cpu_to_be32((ffs(nent) - 1) << 24);
848 cq_context->logsize_usrpage |= cpu_to_be32(ctx->uar.index);
850 cq_context->logsize_usrpage |= cpu_to_be32(dev->driver_uar.index);
851 cq_context->error_eqn = cpu_to_be32(dev->eq_table.eq[MTHCA_EQ_ASYNC].eqn);
852 cq_context->comp_eqn = cpu_to_be32(dev->eq_table.eq[MTHCA_EQ_COMP].eqn);
853 cq_context->pd = cpu_to_be32(pdn);
854 cq_context->lkey = cpu_to_be32(cq->buf.mr.ibmr.lkey);
855 cq_context->cqn = cpu_to_be32(cq->cqn);
858 cq_context->ci_db = cpu_to_be32(cq->set_ci_db_index);
859 cq_context->state_db = cpu_to_be32(cq->arm_db_index);