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);
778 struct mthca_cq_context *cq_context;
814 cq_context = mailbox->buf;
827 memset(cq_context, 0, sizeof *cq_context);
828 cq_context->flags = cpu_to_be32(MTHCA_CQ_STATUS_OK |
831 cq_context->logsize_usrpage = cpu_to_be32((ffs(nent) - 1) << 24);
833 cq_context->logsize_usrpage |= cpu_to_be32(ctx->uar.index);
835 cq_context->logsize_usrpage |= cpu_to_be32(dev->driver_uar.index);
836 cq_context->error_eqn = cpu_to_be32(dev->eq_table.eq[MTHCA_EQ_ASYNC].eqn);
837 cq_context->comp_eqn = cpu_to_be32(dev->eq_table.eq[MTHCA_EQ_COMP].eqn);
838 cq_context->pd = cpu_to_be32(pdn);
839 cq_context->lkey = cpu_to_be32(cq->buf.mr.ibmr.lkey);
840 cq_context->cqn = cpu_to_be32(cq->cqn);
843 cq_context->ci_db = cpu_to_be32(cq->set_ci_db_index);
844 cq_context->state_db = cpu_to_be32(cq->arm_db_index);