Lines Matching refs:cons_index
181 return cqe_sw(get_cqe(cq, cq->cons_index & cq->ibcq.cqe)); in next_cqe_sw()
208 *cq->set_ci_db = cpu_to_be32(cq->cons_index); in update_cons_index()
289 for (prod_index = cq->cons_index; in mthca_cq_clean()
292 if (prod_index == cq->cons_index + cq->ibcq.cqe) in mthca_cq_clean()
297 qpn, cq->cqn, cq->cons_index, prod_index); in mthca_cq_clean()
303 while ((int) --prod_index - (int) cq->cons_index >= 0) { in mthca_cq_clean()
316 set_cqe_hw(get_cqe(cq, (cq->cons_index + i) & cq->ibcq.cqe)); in mthca_cq_clean()
318 cq->cons_index += nfreed; in mthca_cq_clean()
337 cq->cons_index &= cq->ibcq.cqe; in mthca_cq_resize_copy_cqes()
339 cq->cons_index -= cq->ibcq.cqe + 1; in mthca_cq_resize_copy_cqes()
342 for (i = cq->cons_index; cqe_sw(get_cqe(cq, i & cq->ibcq.cqe)); ++i) in mthca_cq_resize_copy_cqes()
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()
648 ++cq->cons_index; in mthca_poll_one()
698 cq->cons_index &= cq->ibcq.cqe; in mthca_poll_cq()
701 cq->cons_index & cq->resize_buf->cqe))) { in mthca_poll_cq()
743 db_rec[0] = cpu_to_be32(cq->cons_index); in mthca_arbel_arm_cq()
761 mthca_write64(dbhi, cq->cons_index, in mthca_arbel_arm_cq()
857 cq->cons_index = 0; in mthca_init_cq()
919 cq->cqn, cq->cons_index, in mthca_free_cq()