Lines Matching refs:cqn

76 	__be32 cqn;  member
211 mthca_write64(MTHCA_TAVOR_CQ_DB_INC_CI | cq->cqn, incr - 1, in update_cons_index()
217 void mthca_cq_completion(struct mthca_dev *dev, u32 cqn) in mthca_cq_completion() argument
221 cq = mthca_array_get(&dev->cq_table.cq, cqn & (dev->limits.num_cqs - 1)); in mthca_cq_completion()
224 mthca_warn(dev, "Completion event for bogus CQ %08x\n", cqn); in mthca_cq_completion()
233 void mthca_cq_event(struct mthca_dev *dev, u32 cqn, in mthca_cq_event() argument
241 cq = mthca_array_get(&dev->cq_table.cq, cqn & (dev->limits.num_cqs - 1)); in mthca_cq_event()
248 mthca_warn(dev, "Async event for bogus CQ %08x\n", cqn); in mthca_cq_event()
297 qpn, cq->cqn, cq->cons_index, prod_index); in mthca_cq_clean()
384 cq->cqn, cq->cons_index); in handle_error_cqe()
505 cq->cqn, cq->cons_index, be32_to_cpu(cqe->my_qpn), in mthca_poll_one()
728 to_mcq(cq)->cqn; in mthca_tavor_arm_cq()
744 db_rec[1] = cpu_to_be32((cq->cqn << 8) | (2 << 5) | (sn << 3) | in mthca_arbel_arm_cq()
759 MTHCA_ARBEL_CQ_DB_REQ_NOT) | cq->cqn; in mthca_arbel_arm_cq()
779 cq->cqn = mthca_alloc(&dev->cq_table.alloc); in mthca_init_cq()
780 if (cq->cqn == -1) in mthca_init_cq()
784 err = mthca_table_get(dev, dev->cq_table.table, cq->cqn); in mthca_init_cq()
794 cq->cqn, &cq->set_ci_db); in mthca_init_cq()
799 cq->cqn, &cq->arm_db); in mthca_init_cq()
837 cq_context->cqn = cpu_to_be32(cq->cqn); in mthca_init_cq()
844 err = mthca_SW2HW_CQ(dev, mailbox, cq->cqn); in mthca_init_cq()
852 cq->cqn & (dev->limits.num_cqs - 1), cq); in mthca_init_cq()
881 mthca_table_put(dev, dev->cq_table.table, cq->cqn); in mthca_init_cq()
884 mthca_free(&dev->cq_table.alloc, cq->cqn); in mthca_init_cq()
912 err = mthca_HW2SW_CQ(dev, mailbox, cq->cqn); in mthca_free_cq()
921 cq->cqn, cq->cons_index, in mthca_free_cq()
929 cq->cqn & (dev->limits.num_cqs - 1)); in mthca_free_cq()
948 mthca_table_put(dev, dev->cq_table.table, cq->cqn); in mthca_free_cq()
949 mthca_free(&dev->cq_table.alloc, cq->cqn); in mthca_free_cq()