Lines Matching refs:cq_context
230 cq->ibcq.comp_handler(&cq->ibcq, cq->ibcq.cq_context); in mthca_cq_completion()
256 cq->ibcq.event_handler(&event, cq->ibcq.cq_context); in mthca_cq_event()
773 struct mthca_cq_context *cq_context; in mthca_init_cq() local
811 cq_context = mailbox->buf; in mthca_init_cq()
824 memset(cq_context, 0, sizeof *cq_context); in mthca_init_cq()
825 cq_context->flags = cpu_to_be32(MTHCA_CQ_STATUS_OK | in mthca_init_cq()
828 cq_context->logsize_usrpage = cpu_to_be32((ffs(nent) - 1) << 24); in mthca_init_cq()
830 cq_context->logsize_usrpage |= cpu_to_be32(ctx->uar.index); in mthca_init_cq()
832 cq_context->logsize_usrpage |= cpu_to_be32(dev->driver_uar.index); in mthca_init_cq()
833 cq_context->error_eqn = cpu_to_be32(dev->eq_table.eq[MTHCA_EQ_ASYNC].eqn); in mthca_init_cq()
834 cq_context->comp_eqn = cpu_to_be32(dev->eq_table.eq[MTHCA_EQ_COMP].eqn); in mthca_init_cq()
835 cq_context->pd = cpu_to_be32(pdn); in mthca_init_cq()
836 cq_context->lkey = cpu_to_be32(cq->buf.mr.ibmr.lkey); in mthca_init_cq()
837 cq_context->cqn = cpu_to_be32(cq->cqn); in mthca_init_cq()
840 cq_context->ci_db = cpu_to_be32(cq->set_ci_db_index); in mthca_init_cq()
841 cq_context->state_db = cpu_to_be32(cq->arm_db_index); in mthca_init_cq()